diff --git a/accessapproval/apiv1/doc.go b/accessapproval/apiv1/doc.go index 90067202351c..eab8e16cc8f7 100644 --- a/accessapproval/apiv1/doc.go +++ b/accessapproval/apiv1/doc.go @@ -19,6 +19,11 @@ // // An API for controlling access to data by Google personnel. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package accessapproval // import "cloud.google.com/go/accessapproval/apiv1" import ( diff --git a/accessapproval/go.mod b/accessapproval/go.mod index 75a8c876f908..50f4271aaab4 100644 --- a/accessapproval/go.mod +++ b/accessapproval/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/accessapproval/go.sum b/accessapproval/go.sum index b197d3308493..067d9e20ab06 100644 --- a/accessapproval/go.sum +++ b/accessapproval/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/accesscontextmanager/apiv1/doc.go b/accesscontextmanager/apiv1/doc.go index e3d834c3d909..93df74018fe6 100644 --- a/accesscontextmanager/apiv1/doc.go +++ b/accesscontextmanager/apiv1/doc.go @@ -20,6 +20,11 @@ // An API for setting attribute based access control to requests to GCP // services. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package accesscontextmanager // import "cloud.google.com/go/accesscontextmanager/apiv1" import ( diff --git a/accesscontextmanager/go.mod b/accesscontextmanager/go.mod index e0d07b5cd23a..79e535dfa939 100644 --- a/accesscontextmanager/go.mod +++ b/accesscontextmanager/go.mod @@ -5,24 +5,25 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/accesscontextmanager/go.sum b/accesscontextmanager/go.sum index 1957b0c5def1..299518b5132c 100644 --- a/accesscontextmanager/go.sum +++ b/accesscontextmanager/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/aiplatform/apiv1/aiplatformpb/annotation.pb.go b/aiplatform/apiv1/aiplatformpb/annotation.pb.go index 6ff1e880d9b4..d7d4bbc9c4bd 100644 --- a/aiplatform/apiv1/aiplatformpb/annotation.pb.go +++ b/aiplatform/apiv1/aiplatformpb/annotation.pb.go @@ -47,8 +47,9 @@ type Annotation struct { // Output only. Resource name of the Annotation. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Required. Google Cloud Storage URI points to a YAML file describing [payload][google.cloud.aiplatform.v1.Annotation.payload]. The - // schema is defined as an [OpenAPI 3.0.2 Schema + // Required. Google Cloud Storage URI points to a YAML file describing + // [payload][google.cloud.aiplatform.v1.Annotation.payload]. The schema is + // defined as an [OpenAPI 3.0.2 Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). // The schema files that can be used here are found in // gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the @@ -62,12 +63,13 @@ type Annotation struct { CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when this Annotation was last updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // Optional. Used to perform consistent read-modify-write updates. If not set, a blind - // "overwrite" update happens. + // Optional. Used to perform consistent read-modify-write updates. If not set, + // a blind "overwrite" update happens. Etag string `protobuf:"bytes,8,opt,name=etag,proto3" json:"etag,omitempty"` // Output only. The source of the Annotation. AnnotationSource *UserActionReference `protobuf:"bytes,5,opt,name=annotation_source,json=annotationSource,proto3" json:"annotation_source,omitempty"` - // Optional. The labels with user-defined metadata to organize your Annotations. + // Optional. The labels with user-defined metadata to organize your + // Annotations. // // Label keys and values can be no longer than 64 characters // (Unicode codepoints), can only contain lowercase letters, numeric @@ -84,7 +86,8 @@ type Annotation struct { // If not set, the Annotation is not visible in the UI. // // - "aiplatform.googleapis.com/payload_schema": - // output only, its value is the [payload_schema's][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] + // output only, its value is the + // [payload_schema's][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] // title. 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"` } diff --git a/aiplatform/apiv1/aiplatformpb/annotation_spec.pb.go b/aiplatform/apiv1/aiplatformpb/annotation_spec.pb.go index 75c336ae2cfc..105abf56dc4e 100644 --- a/aiplatform/apiv1/aiplatformpb/annotation_spec.pb.go +++ b/aiplatform/apiv1/aiplatformpb/annotation_spec.pb.go @@ -53,8 +53,8 @@ type AnnotationSpec struct { CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when AnnotationSpec was last updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // Optional. Used to perform consistent read-modify-write updates. If not set, a blind - // "overwrite" update happens. + // Optional. Used to perform consistent read-modify-write updates. If not set, + // a blind "overwrite" update happens. Etag string `protobuf:"bytes,5,opt,name=etag,proto3" json:"etag,omitempty"` } diff --git a/aiplatform/apiv1/aiplatformpb/batch_prediction_job.pb.go b/aiplatform/apiv1/aiplatformpb/batch_prediction_job.pb.go index b01301ff3722..7fd3367a338e 100644 --- a/aiplatform/apiv1/aiplatformpb/batch_prediction_job.pb.go +++ b/aiplatform/apiv1/aiplatformpb/batch_prediction_job.pb.go @@ -39,8 +39,10 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// A job that uses a [Model][google.cloud.aiplatform.v1.BatchPredictionJob.model] to produce predictions -// on multiple [input instances][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. If +// A job that uses a +// [Model][google.cloud.aiplatform.v1.BatchPredictionJob.model] to produce +// predictions on multiple [input +// instances][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. If // predictions for significant portion of the instances fail, the job may finish // without attempting predictions for all remaining instances. type BatchPredictionJob struct { @@ -61,20 +63,25 @@ type BatchPredictionJob struct { // The model resource name may contain version id or version alias to specify // the version, if no version is specified, the default version will be used. Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"` - // Output only. The version ID of the Model that produces the predictions via this job. + // Output only. The version ID of the Model that produces the predictions via + // this job. ModelVersionId string `protobuf:"bytes,30,opt,name=model_version_id,json=modelVersionId,proto3" json:"model_version_id,omitempty"` // Contains model information necessary to perform batch prediction without // requiring uploading to model registry. // Exactly one of model and unmanaged_container_model must be set. UnmanagedContainerModel *UnmanagedContainerModel `protobuf:"bytes,28,opt,name=unmanaged_container_model,json=unmanagedContainerModel,proto3" json:"unmanaged_container_model,omitempty"` - // Required. Input configuration of the instances on which predictions are performed. - // The schema of any single instance may be specified via - // the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + // Required. Input configuration of the instances on which predictions are + // performed. The schema of any single instance may be specified via the + // [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] // [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] // [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. InputConfig *BatchPredictionJob_InputConfig `protobuf:"bytes,4,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"` + // Configuration for how to convert batch prediction input instances to the + // prediction instances that are sent to the Model. + InstanceConfig *BatchPredictionJob_InstanceConfig `protobuf:"bytes,27,opt,name=instance_config,json=instanceConfig,proto3" json:"instance_config,omitempty"` // The parameters that govern the predictions. The schema of the parameters - // may be specified via the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + // may be specified via the + // [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] // [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] // [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri]. ModelParameters *structpb.Value `protobuf:"bytes,5,opt,name=model_parameters,json=modelParameters,proto3" json:"model_parameters,omitempty"` @@ -88,7 +95,8 @@ type BatchPredictionJob struct { // [prediction_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.prediction_schema_uri]. OutputConfig *BatchPredictionJob_OutputConfig `protobuf:"bytes,6,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"` // The config of resources used by the Model during the batch prediction. If - // the Model [supports][google.cloud.aiplatform.v1.Model.supported_deployment_resources_types] + // the Model + // [supports][google.cloud.aiplatform.v1.Model.supported_deployment_resources_types] // DEDICATED_RESOURCES this config may be provided (and the job will use these // resources), if the Model doesn't support AUTOMATIC_RESOURCES, this config // must be provided. @@ -101,33 +109,47 @@ type BatchPredictionJob struct { // Users deploying the Model must have the `iam.serviceAccounts.actAs` // permission on this service account. ServiceAccount string `protobuf:"bytes,29,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` - // Immutable. Parameters configuring the batch behavior. Currently only applicable when - // [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does - // the tuning itself). + // Immutable. Parameters configuring the batch behavior. Currently only + // applicable when + // [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] + // are used (in other cases Vertex AI does the tuning itself). ManualBatchTuningParameters *ManualBatchTuningParameters `protobuf:"bytes,8,opt,name=manual_batch_tuning_parameters,json=manualBatchTuningParameters,proto3" json:"manual_batch_tuning_parameters,omitempty"` // Generate explanation with the batch prediction results. // // When set to `true`, the batch prediction output changes based on the // `predictions_format` field of the - // [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config] object: + // [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config] + // object: // // - `bigquery`: output includes a column named `explanation`. The value - // is a struct that conforms to the [Explanation][google.cloud.aiplatform.v1.Explanation] object. + // is a struct that conforms to the + // [Explanation][google.cloud.aiplatform.v1.Explanation] object. // - `jsonl`: The JSON objects on each line include an additional entry // keyed `explanation`. The value of the entry is a JSON object that - // conforms to the [Explanation][google.cloud.aiplatform.v1.Explanation] object. + // conforms to the [Explanation][google.cloud.aiplatform.v1.Explanation] + // object. // - `csv`: Generating explanations for CSV format is not supported. // - // If this field is set to true, either the [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] or - // [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] must be populated. + // If this field is set to true, either the + // [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + // or + // [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] + // must be populated. GenerateExplanation bool `protobuf:"varint,23,opt,name=generate_explanation,json=generateExplanation,proto3" json:"generate_explanation,omitempty"` // Explanation configuration for this BatchPredictionJob. Can be - // specified only if [generate_explanation][google.cloud.aiplatform.v1.BatchPredictionJob.generate_explanation] is set to `true`. + // specified only if + // [generate_explanation][google.cloud.aiplatform.v1.BatchPredictionJob.generate_explanation] + // is set to `true`. // - // This value overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. All fields of - // [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] are optional in the request. If a field of the - // [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] object is not populated, the corresponding field of - // the [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] object is inherited. + // This value overrides the value of + // [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. + // All fields of + // [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] + // are optional in the request. If a field of the + // [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] + // object is not populated, the corresponding field of the + // [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + // object is inherited. ExplanationSpec *ExplanationSpec `protobuf:"bytes,25,opt,name=explanation_spec,json=explanationSpec,proto3" json:"explanation_spec,omitempty"` // Output only. Information further describing the output of this job. OutputInfo *BatchPredictionJob_OutputInfo `protobuf:"bytes,9,opt,name=output_info,json=outputInfo,proto3" json:"output_info,omitempty"` @@ -141,8 +163,8 @@ type BatchPredictionJob struct { // This field never exceeds 20 entries. // Status details fields contain standard Google Cloud error details. PartialFailures []*status.Status `protobuf:"bytes,12,rep,name=partial_failures,json=partialFailures,proto3" json:"partial_failures,omitempty"` - // Output only. Information about resources that had been consumed by this job. - // Provided in real time at best effort basis, as well as a final value + // Output only. Information about resources that had been consumed by this + // job. Provided in real time at best effort basis, as well as a final value // once the job completes. // // Note: This field currently may be not populated for batch predictions that @@ -152,11 +174,11 @@ type BatchPredictionJob struct { CompletionStats *CompletionStats `protobuf:"bytes,14,opt,name=completion_stats,json=completionStats,proto3" json:"completion_stats,omitempty"` // Output only. Time when the BatchPredictionJob was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. Time when the BatchPredictionJob for the first time entered the - // `JOB_STATE_RUNNING` state. + // Output only. Time when the BatchPredictionJob for the first time entered + // the `JOB_STATE_RUNNING` state. StartTime *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - // Output only. Time when the BatchPredictionJob entered any of the following states: - // `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + // Output only. Time when the BatchPredictionJob entered any of the following + // states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. EndTime *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Time when the BatchPredictionJob was most recently updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` @@ -248,6 +270,13 @@ func (x *BatchPredictionJob) GetInputConfig() *BatchPredictionJob_InputConfig { return nil } +func (x *BatchPredictionJob) GetInstanceConfig() *BatchPredictionJob_InstanceConfig { + if x != nil { + return x.InstanceConfig + } + return nil +} + func (x *BatchPredictionJob) GetModelParameters() *structpb.Value { if x != nil { return x.ModelParameters @@ -381,9 +410,11 @@ func (x *BatchPredictionJob) GetEncryptionSpec() *EncryptionSpec { return nil } -// Configures the input to [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. -// See [Model.supported_input_storage_formats][google.cloud.aiplatform.v1.Model.supported_input_storage_formats] for Model's supported input -// formats, and how instances should be expressed via any of them. +// Configures the input to +// [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. See +// [Model.supported_input_storage_formats][google.cloud.aiplatform.v1.Model.supported_input_storage_formats] +// for Model's supported input formats, and how instances should be expressed +// via any of them. type BatchPredictionJob_InputConfig struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -484,9 +515,170 @@ func (*BatchPredictionJob_InputConfig_GcsSource) isBatchPredictionJob_InputConfi func (*BatchPredictionJob_InputConfig_BigquerySource) isBatchPredictionJob_InputConfig_Source() {} -// Configures the output of [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. -// See [Model.supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats] for supported output -// formats, and how predictions are expressed via any of them. +// Configuration defining how to transform batch prediction input instances to +// the instances that the Model accepts. +type BatchPredictionJob_InstanceConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The format of the instance that the Model accepts. Vertex AI will + // convert compatible + // [batch prediction input instance + // formats][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.instances_format] + // to the specified format. + // + // Supported values are: + // + // * `object`: Each input is converted to JSON object format. + // - For `bigquery`, each row is converted to an object. + // - For `jsonl`, each line of the JSONL input must be an object. + // - Does not apply to `csv`, `file-list`, `tf-record`, or + // `tf-record-gzip`. + // + // * `array`: Each input is converted to JSON array format. + // - For `bigquery`, each row is converted to an array. The order + // of columns is determined by the BigQuery column order, unless + // [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + // is populated. + // [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + // must be populated for specifying field orders. + // - For `jsonl`, if each line of the JSONL input is an object, + // [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + // must be populated for specifying field orders. + // - Does not apply to `csv`, `file-list`, `tf-record`, or + // `tf-record-gzip`. + // + // If not specified, Vertex AI converts the batch prediction input as + // follows: + // + // - For `bigquery` and `csv`, the behavior is the same as `array`. The + // order of columns is the same as defined in the file or table, unless + // [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + // is populated. + // - For `jsonl`, the prediction instance format is determined by + // each line of the input. + // - For `tf-record`/`tf-record-gzip`, each record will be converted to + // an object in the format of `{"b64": }`, where `` is + // the Base64-encoded string of the content of the record. + // - For `file-list`, each file in the list will be converted to an + // object in the format of `{"b64": }`, where `` is + // the Base64-encoded string of the content of the file. + InstanceType string `protobuf:"bytes,1,opt,name=instance_type,json=instanceType,proto3" json:"instance_type,omitempty"` + // The name of the field that is considered as a key. + // + // The values identified by the key field is not included in the transformed + // instances that is sent to the Model. This is similar to + // specifying this name of the field in + // [excluded_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.excluded_fields]. + // In addition, the batch prediction output will not include the instances. + // Instead the output will only include the value of the key field, in a + // field named `key` in the output: + // + // - For `jsonl` output format, the output will have a `key` field + // instead of the `instance` field. + // - For `csv`/`bigquery` output format, the output will have have a `key` + // column instead of the instance feature columns. + // + // The input must be JSONL with objects at each line, CSV, BigQuery + // or TfRecord. + KeyField string `protobuf:"bytes,2,opt,name=key_field,json=keyField,proto3" json:"key_field,omitempty"` + // Fields that will be included in the prediction instance that is + // sent to the Model. + // + // If + // [instance_type][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.instance_type] + // is `array`, the order of field names in included_fields also determines + // the order of the values in the array. + // + // When included_fields is populated, + // [excluded_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.excluded_fields] + // must be empty. + // + // The input must be JSONL with objects at each line, CSV, BigQuery + // or TfRecord. + IncludedFields []string `protobuf:"bytes,3,rep,name=included_fields,json=includedFields,proto3" json:"included_fields,omitempty"` + // Fields that will be excluded in the prediction instance that is + // sent to the Model. + // + // Excluded will be attached to the batch prediction output if + // [key_field][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.key_field] + // is not specified. + // + // When excluded_fields is populated, + // [included_fields][google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig.included_fields] + // must be empty. + // + // The input must be JSONL with objects at each line, CSV, BigQuery + // or TfRecord. + ExcludedFields []string `protobuf:"bytes,4,rep,name=excluded_fields,json=excludedFields,proto3" json:"excluded_fields,omitempty"` +} + +func (x *BatchPredictionJob_InstanceConfig) Reset() { + *x = BatchPredictionJob_InstanceConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_aiplatform_v1_batch_prediction_job_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BatchPredictionJob_InstanceConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatchPredictionJob_InstanceConfig) ProtoMessage() {} + +func (x *BatchPredictionJob_InstanceConfig) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_aiplatform_v1_batch_prediction_job_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 BatchPredictionJob_InstanceConfig.ProtoReflect.Descriptor instead. +func (*BatchPredictionJob_InstanceConfig) Descriptor() ([]byte, []int) { + return file_google_cloud_aiplatform_v1_batch_prediction_job_proto_rawDescGZIP(), []int{0, 1} +} + +func (x *BatchPredictionJob_InstanceConfig) GetInstanceType() string { + if x != nil { + return x.InstanceType + } + return "" +} + +func (x *BatchPredictionJob_InstanceConfig) GetKeyField() string { + if x != nil { + return x.KeyField + } + return "" +} + +func (x *BatchPredictionJob_InstanceConfig) GetIncludedFields() []string { + if x != nil { + return x.IncludedFields + } + return nil +} + +func (x *BatchPredictionJob_InstanceConfig) GetExcludedFields() []string { + if x != nil { + return x.ExcludedFields + } + return nil +} + +// Configures the output of +// [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. See +// [Model.supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats] +// for supported output formats, and how predictions are expressed via any of +// them. type BatchPredictionJob_OutputConfig struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -499,8 +691,8 @@ type BatchPredictionJob_OutputConfig struct { // *BatchPredictionJob_OutputConfig_GcsDestination // *BatchPredictionJob_OutputConfig_BigqueryDestination Destination isBatchPredictionJob_OutputConfig_Destination `protobuf_oneof:"destination"` - // Required. The format in which Vertex AI gives the predictions, must be one of the - // [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + // Required. The format in which Vertex AI gives the predictions, must be + // one of the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] // [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats]. PredictionsFormat string `protobuf:"bytes,1,opt,name=predictions_format,json=predictionsFormat,proto3" json:"predictions_format,omitempty"` } @@ -508,7 +700,7 @@ type BatchPredictionJob_OutputConfig struct { func (x *BatchPredictionJob_OutputConfig) Reset() { *x = BatchPredictionJob_OutputConfig{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_batch_prediction_job_proto_msgTypes[2] + mi := &file_google_cloud_aiplatform_v1_batch_prediction_job_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -521,7 +713,7 @@ func (x *BatchPredictionJob_OutputConfig) String() string { func (*BatchPredictionJob_OutputConfig) ProtoMessage() {} func (x *BatchPredictionJob_OutputConfig) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_batch_prediction_job_proto_msgTypes[2] + mi := &file_google_cloud_aiplatform_v1_batch_prediction_job_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -534,7 +726,7 @@ func (x *BatchPredictionJob_OutputConfig) ProtoReflect() protoreflect.Message { // Deprecated: Use BatchPredictionJob_OutputConfig.ProtoReflect.Descriptor instead. func (*BatchPredictionJob_OutputConfig) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_batch_prediction_job_proto_rawDescGZIP(), []int{0, 1} + return file_google_cloud_aiplatform_v1_batch_prediction_job_proto_rawDescGZIP(), []int{0, 2} } func (m *BatchPredictionJob_OutputConfig) GetDestination() isBatchPredictionJob_OutputConfig_Destination { @@ -577,11 +769,13 @@ type BatchPredictionJob_OutputConfig_GcsDestination struct { // Inside of it files `predictions_0001.`, // `predictions_0002.`, ..., `predictions_N.` // are created where `` depends on chosen - // [predictions_format][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.predictions_format], and N may equal 0001 and depends on the total - // number of successfully predicted instances. - // If the Model has both [instance][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] - // and [prediction][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri] schemata - // defined then each such file contains predictions as per the + // [predictions_format][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.predictions_format], + // and N may equal 0001 and depends on the total number of successfully + // predicted instances. If the Model has both + // [instance][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] + // and + // [prediction][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri] + // schemata defined then each such file contains predictions as per the // [predictions_format][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.predictions_format]. // If prediction for any instance failed (partially or completely), then // an additional `errors_0001.`, `errors_0002.`,..., @@ -602,13 +796,15 @@ type BatchPredictionJob_OutputConfig_BigqueryDestination struct { // become underscores), and timestamp is in // YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In the dataset // two tables will be created, `predictions`, and `errors`. - // If the Model has both [instance][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] - // and [prediction][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri] schemata - // defined then the tables have columns as follows: The `predictions` - // table contains instances for which the prediction succeeded, it - // has columns as per a concatenation of the Model's instance and - // prediction schemata. The `errors` table contains rows for which the - // prediction has failed, it has instance columns, as per the + // If the Model has both + // [instance][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] + // and + // [prediction][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri] + // schemata defined then the tables have columns as follows: The + // `predictions` table contains instances for which the prediction + // succeeded, it has columns as per a concatenation of the Model's + // instance and prediction schemata. The `errors` table contains rows for + // which the prediction has failed, it has instance columns, as per the // instance schema, followed by a single "errors" column, which as values // has [google.rpc.Status][google.rpc.Status] // represented as a STRUCT, and containing only `code` and `message`. @@ -622,7 +818,8 @@ func (*BatchPredictionJob_OutputConfig_BigqueryDestination) isBatchPredictionJob } // Further describes this job's output. -// Supplements [output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. +// Supplements +// [output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. type BatchPredictionJob_OutputInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -645,7 +842,7 @@ type BatchPredictionJob_OutputInfo struct { func (x *BatchPredictionJob_OutputInfo) Reset() { *x = BatchPredictionJob_OutputInfo{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_batch_prediction_job_proto_msgTypes[3] + mi := &file_google_cloud_aiplatform_v1_batch_prediction_job_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -658,7 +855,7 @@ func (x *BatchPredictionJob_OutputInfo) String() string { func (*BatchPredictionJob_OutputInfo) ProtoMessage() {} func (x *BatchPredictionJob_OutputInfo) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_batch_prediction_job_proto_msgTypes[3] + mi := &file_google_cloud_aiplatform_v1_batch_prediction_job_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -671,7 +868,7 @@ func (x *BatchPredictionJob_OutputInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use BatchPredictionJob_OutputInfo.ProtoReflect.Descriptor instead. func (*BatchPredictionJob_OutputInfo) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_batch_prediction_job_proto_rawDescGZIP(), []int{0, 2} + return file_google_cloud_aiplatform_v1_batch_prediction_job_proto_rawDescGZIP(), []int{0, 3} } func (m *BatchPredictionJob_OutputInfo) GetOutputLocation() isBatchPredictionJob_OutputInfo_OutputLocation { @@ -707,8 +904,8 @@ type isBatchPredictionJob_OutputInfo_OutputLocation interface { } type BatchPredictionJob_OutputInfo_GcsOutputDirectory struct { - // Output only. The full path of the Cloud Storage directory created, into which - // the prediction output is written. + // Output only. The full path of the Cloud Storage directory created, into + // which the prediction output is written. GcsOutputDirectory string `protobuf:"bytes,1,opt,name=gcs_output_directory,json=gcsOutputDirectory,proto3,oneof"` } @@ -767,7 +964,7 @@ var file_google_cloud_aiplatform_v1_batch_prediction_job_proto_rawDesc = []byte{ 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xec, 0x15, 0x0a, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfb, 0x17, 0x0a, 0x12, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0c, @@ -793,171 +990,187 @@ var file_google_cloud_aiplatform_v1_batch_prediction_job_proto_rawDesc = []byte{ 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x2e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x41, 0x0a, 0x10, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x70, 0x61, - 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x65, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, - 0x68, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x2e, 0x4f, - 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, - 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x64, - 0x0a, 0x13, 0x64, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, - 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, - 0x52, 0x12, 0x64, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x81, 0x01, - 0x0a, 0x1e, 0x6d, 0x61, 0x6e, 0x75, 0x61, 0x6c, 0x5f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x74, - 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x66, 0x0a, 0x0f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, + 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x2e, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x69, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x41, 0x0a, 0x10, + 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0f, + 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, + 0x65, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x6e, 0x75, 0x61, 0x6c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x54, - 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x42, - 0x03, 0xe0, 0x41, 0x05, 0x52, 0x1b, 0x6d, 0x61, 0x6e, 0x75, 0x61, 0x6c, 0x42, 0x61, 0x74, 0x63, - 0x68, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, - 0x73, 0x12, 0x31, 0x0a, 0x14, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x78, - 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x17, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x13, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x56, 0x0a, 0x10, 0x65, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, + 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x64, 0x0a, 0x13, 0x64, 0x65, 0x64, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x64, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x12, 0x64, 0x65, 0x64, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x1d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x81, 0x01, 0x0a, 0x1e, 0x6d, 0x61, 0x6e, 0x75, 0x61, 0x6c, + 0x5f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x74, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6c, - 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0f, 0x65, 0x78, 0x70, - 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x12, 0x5f, 0x0a, 0x0b, - 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, - 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x6f, - 0x62, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x03, 0xe0, 0x41, - 0x03, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3f, 0x0a, - 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x6e, 0x75, + 0x61, 0x6c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x05, 0x52, 0x1b, 0x6d, 0x61, + 0x6e, 0x75, 0x61, 0x6c, 0x42, 0x61, 0x74, 0x63, 0x68, 0x54, 0x75, 0x6e, 0x69, 0x6e, 0x67, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x31, 0x0a, 0x14, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x17, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x65, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x56, 0x0a, 0x10, + 0x65, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x70, 0x65, 0x63, + 0x18, 0x19, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x70, 0x65, 0x63, 0x52, 0x0f, 0x65, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x53, 0x70, 0x65, 0x63, 0x12, 0x5f, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x69, + 0x6e, 0x66, 0x6f, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x65, 0x64, + 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, + 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, + 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, + 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, + 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x42, 0x0a, 0x10, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, + 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, + 0x6c, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x73, 0x12, 0x61, 0x0a, 0x12, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x64, 0x18, + 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x73, + 0x75, 0x6d, 0x65, 0x64, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x64, 0x12, 0x5b, 0x0a, 0x10, + 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, + 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, + 0x61, 0x74, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, + 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, + 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, + 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x65, + 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, + 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x52, 0x0a, 0x06, 0x6c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x65, 0x64, + 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x53, 0x0a, + 0x0f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x70, 0x65, 0x63, + 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, + 0x65, 0x63, 0x52, 0x0e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, + 0x65, 0x63, 0x1a, 0xe6, 0x01, 0x0a, 0x0b, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x46, 0x0a, 0x0a, 0x67, 0x63, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, + 0x09, 0x67, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x55, 0x0a, 0x0f, 0x62, 0x69, + 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x2e, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, + 0x00, 0x52, 0x0e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x53, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x12, 0x2e, 0x0a, 0x10, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x5f, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, + 0x52, 0x0f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x46, 0x6f, 0x72, 0x6d, 0x61, + 0x74, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0xa4, 0x01, 0x0a, 0x0e, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, + 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x65, + 0x6c, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 0x75, + 0x64, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x63, + 0x6c, 0x75, 0x64, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x73, 0x1a, 0x8e, 0x02, 0x0a, 0x0c, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x55, 0x0a, 0x0f, 0x67, 0x63, 0x73, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2d, - 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x42, 0x0a, - 0x10, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, - 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, - 0x52, 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, - 0x73, 0x12, 0x61, 0x0a, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x5f, 0x63, - 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x64, 0x42, 0x03, 0xe0, 0x41, - 0x03, 0x52, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x73, - 0x75, 0x6d, 0x65, 0x64, 0x12, 0x5b, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, - 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, - 0x52, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, - 0x73, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, - 0x69, 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, - 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, - 0x69, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, - 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x12, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, - 0x65, 0x12, 0x52, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x44, 0x65, 0x73, + 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0e, 0x67, 0x63, 0x73, 0x44, + 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x64, 0x0a, 0x14, 0x62, 0x69, + 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, + 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x13, 0x62, 0x69, 0x67, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x32, 0x0a, 0x12, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, + 0x02, 0x52, 0x11, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x46, 0x6f, + 0x72, 0x6d, 0x61, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x1a, 0xd0, 0x01, 0x0a, 0x0a, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x49, 0x6e, + 0x66, 0x6f, 0x12, 0x37, 0x0a, 0x14, 0x67, 0x63, 0x73, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, + 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x03, 0x48, 0x00, 0x52, 0x12, 0x67, 0x63, 0x73, 0x4f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x3d, 0x0a, 0x17, 0x62, + 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x64, + 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, + 0x03, 0x48, 0x00, 0x52, 0x15, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x37, 0x0a, 0x15, 0x62, 0x69, + 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x13, + 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x6c, 0x6f, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x3a, 0x86, 0x01, 0xea, 0x41, 0x82, 0x01, 0x0a, 0x2c, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x12, 0x52, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, + 0x62, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4a, + 0x6f, 0x62, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x72, 0x65, 0x64, 0x69, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6a, 0x6f, 0x62, 0x7d, 0x42, 0xdb, 0x01, 0x0a, 0x1e, 0x63, + 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x42, 0x17, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x6f, - 0x62, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x53, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0e, 0x65, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x1a, 0xe6, 0x01, 0x0a, 0x0b, 0x49, - 0x6e, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x46, 0x0a, 0x0a, 0x67, 0x63, - 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x53, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x09, 0x67, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x12, 0x55, 0x0a, 0x0f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x62, 0x69, 0x67, 0x71, 0x75, - 0x65, 0x72, 0x79, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2e, 0x0a, 0x10, 0x69, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x73, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x1a, 0x8e, 0x02, 0x0a, 0x0c, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x55, 0x0a, 0x0f, 0x67, 0x63, 0x73, 0x5f, 0x64, 0x65, 0x73, 0x74, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x44, 0x65, - 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0e, 0x67, 0x63, 0x73, - 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x64, 0x0a, 0x14, 0x62, - 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, - 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x13, 0x62, 0x69, - 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x32, 0x0a, 0x12, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, - 0x41, 0x02, 0x52, 0x11, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x46, - 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xd0, 0x01, 0x0a, 0x0a, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x49, - 0x6e, 0x66, 0x6f, 0x12, 0x37, 0x0a, 0x14, 0x67, 0x63, 0x73, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x48, 0x00, 0x52, 0x12, 0x67, 0x63, 0x73, 0x4f, 0x75, 0x74, - 0x70, 0x75, 0x74, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x3d, 0x0a, 0x17, - 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, - 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, - 0x41, 0x03, 0x48, 0x00, 0x52, 0x15, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x75, - 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x37, 0x0a, 0x15, 0x62, - 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, - 0x13, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x3a, 0x86, 0x01, 0xea, 0x41, 0x82, 0x01, 0x0a, 0x2c, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x12, 0x52, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, - 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x4a, 0x6f, 0x62, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x72, 0x65, 0x64, - 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6a, 0x6f, 0x62, 0x7d, 0x42, 0xdb, 0x01, 0x0a, 0x1e, - 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x42, 0x17, - 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4a, - 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 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, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0xaa, - 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, - 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x47, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x62, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 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, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0xaa, 0x02, + 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, + 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x47, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -972,58 +1185,60 @@ func file_google_cloud_aiplatform_v1_batch_prediction_job_proto_rawDescGZIP() [] return file_google_cloud_aiplatform_v1_batch_prediction_job_proto_rawDescData } -var file_google_cloud_aiplatform_v1_batch_prediction_job_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_google_cloud_aiplatform_v1_batch_prediction_job_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_google_cloud_aiplatform_v1_batch_prediction_job_proto_goTypes = []interface{}{ - (*BatchPredictionJob)(nil), // 0: google.cloud.aiplatform.v1.BatchPredictionJob - (*BatchPredictionJob_InputConfig)(nil), // 1: google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig - (*BatchPredictionJob_OutputConfig)(nil), // 2: google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig - (*BatchPredictionJob_OutputInfo)(nil), // 3: google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo - nil, // 4: google.cloud.aiplatform.v1.BatchPredictionJob.LabelsEntry - (*UnmanagedContainerModel)(nil), // 5: google.cloud.aiplatform.v1.UnmanagedContainerModel - (*structpb.Value)(nil), // 6: google.protobuf.Value - (*BatchDedicatedResources)(nil), // 7: google.cloud.aiplatform.v1.BatchDedicatedResources - (*ManualBatchTuningParameters)(nil), // 8: google.cloud.aiplatform.v1.ManualBatchTuningParameters - (*ExplanationSpec)(nil), // 9: google.cloud.aiplatform.v1.ExplanationSpec - (JobState)(0), // 10: google.cloud.aiplatform.v1.JobState - (*status.Status)(nil), // 11: google.rpc.Status - (*ResourcesConsumed)(nil), // 12: google.cloud.aiplatform.v1.ResourcesConsumed - (*CompletionStats)(nil), // 13: google.cloud.aiplatform.v1.CompletionStats - (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp - (*EncryptionSpec)(nil), // 15: google.cloud.aiplatform.v1.EncryptionSpec - (*GcsSource)(nil), // 16: google.cloud.aiplatform.v1.GcsSource - (*BigQuerySource)(nil), // 17: google.cloud.aiplatform.v1.BigQuerySource - (*GcsDestination)(nil), // 18: google.cloud.aiplatform.v1.GcsDestination - (*BigQueryDestination)(nil), // 19: google.cloud.aiplatform.v1.BigQueryDestination + (*BatchPredictionJob)(nil), // 0: google.cloud.aiplatform.v1.BatchPredictionJob + (*BatchPredictionJob_InputConfig)(nil), // 1: google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig + (*BatchPredictionJob_InstanceConfig)(nil), // 2: google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig + (*BatchPredictionJob_OutputConfig)(nil), // 3: google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig + (*BatchPredictionJob_OutputInfo)(nil), // 4: google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo + nil, // 5: google.cloud.aiplatform.v1.BatchPredictionJob.LabelsEntry + (*UnmanagedContainerModel)(nil), // 6: google.cloud.aiplatform.v1.UnmanagedContainerModel + (*structpb.Value)(nil), // 7: google.protobuf.Value + (*BatchDedicatedResources)(nil), // 8: google.cloud.aiplatform.v1.BatchDedicatedResources + (*ManualBatchTuningParameters)(nil), // 9: google.cloud.aiplatform.v1.ManualBatchTuningParameters + (*ExplanationSpec)(nil), // 10: google.cloud.aiplatform.v1.ExplanationSpec + (JobState)(0), // 11: google.cloud.aiplatform.v1.JobState + (*status.Status)(nil), // 12: google.rpc.Status + (*ResourcesConsumed)(nil), // 13: google.cloud.aiplatform.v1.ResourcesConsumed + (*CompletionStats)(nil), // 14: google.cloud.aiplatform.v1.CompletionStats + (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp + (*EncryptionSpec)(nil), // 16: google.cloud.aiplatform.v1.EncryptionSpec + (*GcsSource)(nil), // 17: google.cloud.aiplatform.v1.GcsSource + (*BigQuerySource)(nil), // 18: google.cloud.aiplatform.v1.BigQuerySource + (*GcsDestination)(nil), // 19: google.cloud.aiplatform.v1.GcsDestination + (*BigQueryDestination)(nil), // 20: google.cloud.aiplatform.v1.BigQueryDestination } var file_google_cloud_aiplatform_v1_batch_prediction_job_proto_depIdxs = []int32{ - 5, // 0: google.cloud.aiplatform.v1.BatchPredictionJob.unmanaged_container_model:type_name -> google.cloud.aiplatform.v1.UnmanagedContainerModel + 6, // 0: google.cloud.aiplatform.v1.BatchPredictionJob.unmanaged_container_model:type_name -> google.cloud.aiplatform.v1.UnmanagedContainerModel 1, // 1: google.cloud.aiplatform.v1.BatchPredictionJob.input_config:type_name -> google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig - 6, // 2: google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters:type_name -> google.protobuf.Value - 2, // 3: google.cloud.aiplatform.v1.BatchPredictionJob.output_config:type_name -> google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig - 7, // 4: google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources:type_name -> google.cloud.aiplatform.v1.BatchDedicatedResources - 8, // 5: google.cloud.aiplatform.v1.BatchPredictionJob.manual_batch_tuning_parameters:type_name -> google.cloud.aiplatform.v1.ManualBatchTuningParameters - 9, // 6: google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec:type_name -> google.cloud.aiplatform.v1.ExplanationSpec - 3, // 7: google.cloud.aiplatform.v1.BatchPredictionJob.output_info:type_name -> google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo - 10, // 8: google.cloud.aiplatform.v1.BatchPredictionJob.state:type_name -> google.cloud.aiplatform.v1.JobState - 11, // 9: google.cloud.aiplatform.v1.BatchPredictionJob.error:type_name -> google.rpc.Status - 11, // 10: google.cloud.aiplatform.v1.BatchPredictionJob.partial_failures:type_name -> google.rpc.Status - 12, // 11: google.cloud.aiplatform.v1.BatchPredictionJob.resources_consumed:type_name -> google.cloud.aiplatform.v1.ResourcesConsumed - 13, // 12: google.cloud.aiplatform.v1.BatchPredictionJob.completion_stats:type_name -> google.cloud.aiplatform.v1.CompletionStats - 14, // 13: google.cloud.aiplatform.v1.BatchPredictionJob.create_time:type_name -> google.protobuf.Timestamp - 14, // 14: google.cloud.aiplatform.v1.BatchPredictionJob.start_time:type_name -> google.protobuf.Timestamp - 14, // 15: google.cloud.aiplatform.v1.BatchPredictionJob.end_time:type_name -> google.protobuf.Timestamp - 14, // 16: google.cloud.aiplatform.v1.BatchPredictionJob.update_time:type_name -> google.protobuf.Timestamp - 4, // 17: google.cloud.aiplatform.v1.BatchPredictionJob.labels:type_name -> google.cloud.aiplatform.v1.BatchPredictionJob.LabelsEntry - 15, // 18: google.cloud.aiplatform.v1.BatchPredictionJob.encryption_spec:type_name -> google.cloud.aiplatform.v1.EncryptionSpec - 16, // 19: google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.gcs_source:type_name -> google.cloud.aiplatform.v1.GcsSource - 17, // 20: google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.bigquery_source:type_name -> google.cloud.aiplatform.v1.BigQuerySource - 18, // 21: google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.gcs_destination:type_name -> google.cloud.aiplatform.v1.GcsDestination - 19, // 22: google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.bigquery_destination:type_name -> google.cloud.aiplatform.v1.BigQueryDestination - 23, // [23:23] is the sub-list for method output_type - 23, // [23:23] is the sub-list for method input_type - 23, // [23:23] is the sub-list for extension type_name - 23, // [23:23] is the sub-list for extension extendee - 0, // [0:23] is the sub-list for field type_name + 2, // 2: google.cloud.aiplatform.v1.BatchPredictionJob.instance_config:type_name -> google.cloud.aiplatform.v1.BatchPredictionJob.InstanceConfig + 7, // 3: google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters:type_name -> google.protobuf.Value + 3, // 4: google.cloud.aiplatform.v1.BatchPredictionJob.output_config:type_name -> google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig + 8, // 5: google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources:type_name -> google.cloud.aiplatform.v1.BatchDedicatedResources + 9, // 6: google.cloud.aiplatform.v1.BatchPredictionJob.manual_batch_tuning_parameters:type_name -> google.cloud.aiplatform.v1.ManualBatchTuningParameters + 10, // 7: google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec:type_name -> google.cloud.aiplatform.v1.ExplanationSpec + 4, // 8: google.cloud.aiplatform.v1.BatchPredictionJob.output_info:type_name -> google.cloud.aiplatform.v1.BatchPredictionJob.OutputInfo + 11, // 9: google.cloud.aiplatform.v1.BatchPredictionJob.state:type_name -> google.cloud.aiplatform.v1.JobState + 12, // 10: google.cloud.aiplatform.v1.BatchPredictionJob.error:type_name -> google.rpc.Status + 12, // 11: google.cloud.aiplatform.v1.BatchPredictionJob.partial_failures:type_name -> google.rpc.Status + 13, // 12: google.cloud.aiplatform.v1.BatchPredictionJob.resources_consumed:type_name -> google.cloud.aiplatform.v1.ResourcesConsumed + 14, // 13: google.cloud.aiplatform.v1.BatchPredictionJob.completion_stats:type_name -> google.cloud.aiplatform.v1.CompletionStats + 15, // 14: google.cloud.aiplatform.v1.BatchPredictionJob.create_time:type_name -> google.protobuf.Timestamp + 15, // 15: google.cloud.aiplatform.v1.BatchPredictionJob.start_time:type_name -> google.protobuf.Timestamp + 15, // 16: google.cloud.aiplatform.v1.BatchPredictionJob.end_time:type_name -> google.protobuf.Timestamp + 15, // 17: google.cloud.aiplatform.v1.BatchPredictionJob.update_time:type_name -> google.protobuf.Timestamp + 5, // 18: google.cloud.aiplatform.v1.BatchPredictionJob.labels:type_name -> google.cloud.aiplatform.v1.BatchPredictionJob.LabelsEntry + 16, // 19: google.cloud.aiplatform.v1.BatchPredictionJob.encryption_spec:type_name -> google.cloud.aiplatform.v1.EncryptionSpec + 17, // 20: google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.gcs_source:type_name -> google.cloud.aiplatform.v1.GcsSource + 18, // 21: google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.bigquery_source:type_name -> google.cloud.aiplatform.v1.BigQuerySource + 19, // 22: google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.gcs_destination:type_name -> google.cloud.aiplatform.v1.GcsDestination + 20, // 23: google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.bigquery_destination:type_name -> google.cloud.aiplatform.v1.BigQueryDestination + 24, // [24:24] is the sub-list for method output_type + 24, // [24:24] is the sub-list for method input_type + 24, // [24:24] is the sub-list for extension type_name + 24, // [24:24] is the sub-list for extension extendee + 0, // [0:24] is the sub-list for field type_name } func init() { file_google_cloud_aiplatform_v1_batch_prediction_job_proto_init() } @@ -1065,7 +1280,7 @@ func file_google_cloud_aiplatform_v1_batch_prediction_job_proto_init() { } } file_google_cloud_aiplatform_v1_batch_prediction_job_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchPredictionJob_OutputConfig); i { + switch v := v.(*BatchPredictionJob_InstanceConfig); i { case 0: return &v.state case 1: @@ -1077,6 +1292,18 @@ func file_google_cloud_aiplatform_v1_batch_prediction_job_proto_init() { } } file_google_cloud_aiplatform_v1_batch_prediction_job_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BatchPredictionJob_OutputConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_aiplatform_v1_batch_prediction_job_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*BatchPredictionJob_OutputInfo); i { case 0: return &v.state @@ -1093,11 +1320,11 @@ func file_google_cloud_aiplatform_v1_batch_prediction_job_proto_init() { (*BatchPredictionJob_InputConfig_GcsSource)(nil), (*BatchPredictionJob_InputConfig_BigquerySource)(nil), } - file_google_cloud_aiplatform_v1_batch_prediction_job_proto_msgTypes[2].OneofWrappers = []interface{}{ + file_google_cloud_aiplatform_v1_batch_prediction_job_proto_msgTypes[3].OneofWrappers = []interface{}{ (*BatchPredictionJob_OutputConfig_GcsDestination)(nil), (*BatchPredictionJob_OutputConfig_BigqueryDestination)(nil), } - file_google_cloud_aiplatform_v1_batch_prediction_job_proto_msgTypes[3].OneofWrappers = []interface{}{ + file_google_cloud_aiplatform_v1_batch_prediction_job_proto_msgTypes[4].OneofWrappers = []interface{}{ (*BatchPredictionJob_OutputInfo_GcsOutputDirectory)(nil), (*BatchPredictionJob_OutputInfo_BigqueryOutputDataset)(nil), } @@ -1107,7 +1334,7 @@ func file_google_cloud_aiplatform_v1_batch_prediction_job_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_google_cloud_aiplatform_v1_batch_prediction_job_proto_rawDesc, NumEnums: 0, - NumMessages: 5, + NumMessages: 6, NumExtensions: 0, NumServices: 0, }, diff --git a/aiplatform/apiv1/aiplatformpb/completion_stats.pb.go b/aiplatform/apiv1/aiplatformpb/completion_stats.pb.go index 968155468f37..d26d7d5c38c6 100644 --- a/aiplatform/apiv1/aiplatformpb/completion_stats.pb.go +++ b/aiplatform/apiv1/aiplatformpb/completion_stats.pb.go @@ -47,14 +47,15 @@ type CompletionStats struct { SuccessfulCount int64 `protobuf:"varint,1,opt,name=successful_count,json=successfulCount,proto3" json:"successful_count,omitempty"` // Output only. The number of entities for which any error was encountered. FailedCount int64 `protobuf:"varint,2,opt,name=failed_count,json=failedCount,proto3" json:"failed_count,omitempty"` - // Output only. In cases when enough errors are encountered a job, pipeline, or operation - // may be failed as a whole. Below is the number of entities for which the - // processing had not been finished (either in successful or failed state). - // Set to -1 if the number is unknown (for example, the operation failed - // before the total entity number could be collected). + // Output only. In cases when enough errors are encountered a job, pipeline, + // or operation may be failed as a whole. Below is the number of entities for + // which the processing had not been finished (either in successful or failed + // state). Set to -1 if the number is unknown (for example, the operation + // failed before the total entity number could be collected). IncompleteCount int64 `protobuf:"varint,3,opt,name=incomplete_count,json=incompleteCount,proto3" json:"incomplete_count,omitempty"` - // Output only. The number of the successful forecast points that are generated by the - // forecasting model. This is ONLY used by the forecasting batch prediction. + // Output only. The number of the successful forecast points that are + // generated by the forecasting model. This is ONLY used by the forecasting + // batch prediction. SuccessfulForecastPointCount int64 `protobuf:"varint,5,opt,name=successful_forecast_point_count,json=successfulForecastPointCount,proto3" json:"successful_forecast_point_count,omitempty"` } diff --git a/aiplatform/apiv1/aiplatformpb/context.pb.go b/aiplatform/apiv1/aiplatformpb/context.pb.go index a2e39c53cf53..414af0bd6611 100644 --- a/aiplatform/apiv1/aiplatformpb/context.pb.go +++ b/aiplatform/apiv1/aiplatformpb/context.pb.go @@ -64,8 +64,8 @@ type Context struct { CreateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when this Context was last updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // Output only. A list of resource names of Contexts that are parents of this Context. - // A Context may have at most 10 parent_contexts. + // Output only. A list of resource names of Contexts that are parents of this + // Context. A Context may have at most 10 parent_contexts. ParentContexts []string `protobuf:"bytes,12,rep,name=parent_contexts,json=parentContexts,proto3" json:"parent_contexts,omitempty"` // The title of the schema describing the metadata. // diff --git a/aiplatform/apiv1/aiplatformpb/custom_job.pb.go b/aiplatform/apiv1/aiplatformpb/custom_job.pb.go index 59b100b4841a..2ce5e3fd1cbd 100644 --- a/aiplatform/apiv1/aiplatformpb/custom_job.pb.go +++ b/aiplatform/apiv1/aiplatformpb/custom_job.pb.go @@ -86,7 +86,8 @@ type CustomJob struct { // Output only. URIs for accessing [interactive // shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) // (one URI for each training node). Only available if - // [job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] is `true`. + // [job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] + // is `true`. // // The keys are names of each node in the training job; for example, // `workerpool0-0` for the primary node, `workerpool1-0` for the first node in @@ -219,9 +220,9 @@ type CustomJobSpec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The spec of the worker pools including machine type and Docker image. - // All worker pools except the first one are optional and can be skipped by - // providing an empty value. + // Required. The spec of the worker pools including machine type and Docker + // image. All worker pools except the first one are optional and can be + // skipped by providing an empty value. WorkerPoolSpecs []*WorkerPoolSpec `protobuf:"bytes,1,rep,name=worker_pool_specs,json=workerPoolSpecs,proto3" json:"worker_pool_specs,omitempty"` // Scheduling options for a CustomJob. Scheduling *Scheduling `protobuf:"bytes,3,opt,name=scheduling,proto3" json:"scheduling,omitempty"` @@ -258,8 +259,8 @@ type CustomJobSpec struct { // HyperparameterTuningJob. For HyperparameterTuningJob, // the baseOutputDirectory of // each child CustomJob backing a Trial is set to a subdirectory of name - // [id][google.cloud.aiplatform.v1.Trial.id] under its parent HyperparameterTuningJob's - // baseOutputDirectory. + // [id][google.cloud.aiplatform.v1.Trial.id] under its parent + // HyperparameterTuningJob's baseOutputDirectory. // // The following Vertex AI environment variables will be passed to // containers or python modules when this field is set: @@ -276,9 +277,9 @@ type CustomJobSpec struct { // * AIP_CHECKPOINT_DIR = `//checkpoints/` // * AIP_TENSORBOARD_LOG_DIR = `//logs/` BaseOutputDirectory *GcsDestination `protobuf:"bytes,6,opt,name=base_output_directory,json=baseOutputDirectory,proto3" json:"base_output_directory,omitempty"` - // Optional. The name of a Vertex AI [Tensorboard][google.cloud.aiplatform.v1.Tensorboard] resource to which this CustomJob - // will upload Tensorboard logs. - // Format: + // Optional. The name of a Vertex AI + // [Tensorboard][google.cloud.aiplatform.v1.Tensorboard] resource to which + // this CustomJob will upload Tensorboard logs. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}` Tensorboard string `protobuf:"bytes,7,opt,name=tensorboard,proto3" json:"tensorboard,omitempty"` // Optional. Whether you want Vertex AI to enable [interactive shell @@ -286,7 +287,11 @@ type CustomJobSpec struct { // to training containers. // // If set to `true`, you can access interactive shells at the URIs given - // by [CustomJob.web_access_uris][google.cloud.aiplatform.v1.CustomJob.web_access_uris] or [Trial.web_access_uris][google.cloud.aiplatform.v1.Trial.web_access_uris] (within + // by + // [CustomJob.web_access_uris][google.cloud.aiplatform.v1.CustomJob.web_access_uris] + // or + // [Trial.web_access_uris][google.cloud.aiplatform.v1.Trial.web_access_uris] + // (within // [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials]). EnableWebAccess bool `protobuf:"varint,10,opt,name=enable_web_access,json=enableWebAccess,proto3" json:"enable_web_access,omitempty"` } @@ -507,8 +512,8 @@ type ContainerSpec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The URI of a container image in the Container Registry that is to be run on - // each worker replica. + // Required. The URI of a container image in the Container Registry that is to + // be run on each worker replica. ImageUri string `protobuf:"bytes,1,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"` // The command to be invoked when the container is started. // It overrides the entrypoint instruction in Dockerfile when provided. @@ -586,16 +591,16 @@ type PythonPackageSpec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The URI of a container image in Artifact Registry that will run the - // provided Python package. Vertex AI provides a wide range of executor + // Required. The URI of a container image in Artifact Registry that will run + // the provided Python package. Vertex AI provides a wide range of executor // images with pre-installed packages to meet users' various use cases. See // the list of [pre-built containers for // training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). // You must use an image from this list. ExecutorImageUri string `protobuf:"bytes,1,opt,name=executor_image_uri,json=executorImageUri,proto3" json:"executor_image_uri,omitempty"` - // Required. The Google Cloud Storage location of the Python package files which are - // the training program and its dependent packages. - // The maximum number of package URIs is 100. + // Required. The Google Cloud Storage location of the Python package files + // which are the training program and its dependent packages. The maximum + // number of package URIs is 100. PackageUris []string `protobuf:"bytes,2,rep,name=package_uris,json=packageUris,proto3" json:"package_uris,omitempty"` // Required. The Python module name to run after installing the packages. PythonModule string `protobuf:"bytes,3,opt,name=python_module,json=pythonModule,proto3" json:"python_module,omitempty"` diff --git a/aiplatform/apiv1/aiplatformpb/data_item.pb.go b/aiplatform/apiv1/aiplatformpb/data_item.pb.go index 9343ee52edbb..ee17b8f5e636 100644 --- a/aiplatform/apiv1/aiplatformpb/data_item.pb.go +++ b/aiplatform/apiv1/aiplatformpb/data_item.pb.go @@ -63,12 +63,13 @@ type DataItem struct { // System reserved label keys are prefixed with "aiplatform.googleapis.com/" // and are immutable. 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"` - // Required. The data that the DataItem represents (for example, an image or a text - // snippet). The schema of the payload is stored in the parent Dataset's - // [metadata schema's][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] dataItemSchemaUri field. + // Required. The data that the DataItem represents (for example, an image or a + // text snippet). The schema of the payload is stored in the parent Dataset's + // [metadata schema's][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] + // dataItemSchemaUri field. Payload *structpb.Value `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` - // Optional. Used to perform consistent read-modify-write updates. If not set, a blind - // "overwrite" update happens. + // Optional. Used to perform consistent read-modify-write updates. If not set, + // a blind "overwrite" update happens. Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"` } diff --git a/aiplatform/apiv1/aiplatformpb/data_labeling_job.pb.go b/aiplatform/apiv1/aiplatformpb/data_labeling_job.pb.go index 94c865354d87..6ff7612f86f9 100644 --- a/aiplatform/apiv1/aiplatformpb/data_labeling_job.pb.go +++ b/aiplatform/apiv1/aiplatformpb/data_labeling_job.pb.go @@ -104,9 +104,8 @@ type DataLabelingJob struct { // characters. // Display name of a DataLabelingJob. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - // Required. Dataset resource names. Right now we only support labeling from a single - // Dataset. - // Format: + // Required. Dataset resource names. Right now we only support labeling from a + // single Dataset. Format: // `projects/{project}/locations/{location}/datasets/{dataset}` Datasets []string `protobuf:"bytes,3,rep,name=datasets,proto3" json:"datasets,omitempty"` // Labels to assign to annotations generated by this DataLabelingJob. @@ -120,13 +119,13 @@ type DataLabelingJob struct { AnnotationLabels map[string]string `protobuf:"bytes,12,rep,name=annotation_labels,json=annotationLabels,proto3" json:"annotation_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Required. Number of labelers to work on each DataItem. LabelerCount int32 `protobuf:"varint,4,opt,name=labeler_count,json=labelerCount,proto3" json:"labeler_count,omitempty"` - // Required. The Google Cloud Storage location of the instruction pdf. This pdf is - // shared with labelers, and provides detailed description on how to label - // DataItems in Datasets. + // Required. The Google Cloud Storage location of the instruction pdf. This + // pdf is shared with labelers, and provides detailed description on how to + // label DataItems in Datasets. InstructionUri string `protobuf:"bytes,5,opt,name=instruction_uri,json=instructionUri,proto3" json:"instruction_uri,omitempty"` - // Required. Points to a YAML file stored on Google Cloud Storage describing the - // config for a specific type of DataLabelingJob. - // The schema files that can be used here are found in the + // Required. Points to a YAML file stored on Google Cloud Storage describing + // the config for a specific type of DataLabelingJob. The schema files that + // can be used here are found in the // https://storage.googleapis.com/google-cloud-aiplatform bucket in the // /schema/datalabelingjob/inputs/ folder. InputsSchemaUri string `protobuf:"bytes,6,opt,name=inputs_schema_uri,json=inputsSchemaUri,proto3" json:"inputs_schema_uri,omitempty"` @@ -134,18 +133,18 @@ type DataLabelingJob struct { Inputs *structpb.Value `protobuf:"bytes,7,opt,name=inputs,proto3" json:"inputs,omitempty"` // Output only. The detailed state of the job. State JobState `protobuf:"varint,8,opt,name=state,proto3,enum=google.cloud.aiplatform.v1.JobState" json:"state,omitempty"` - // Output only. Current labeling job progress percentage scaled in interval [0, 100], - // indicating the percentage of DataItems that has been finished. + // Output only. Current labeling job progress percentage scaled in interval + // [0, 100], indicating the percentage of DataItems that has been finished. LabelingProgress int32 `protobuf:"varint,13,opt,name=labeling_progress,json=labelingProgress,proto3" json:"labeling_progress,omitempty"` - // Output only. Estimated cost(in US dollars) that the DataLabelingJob has incurred to - // date. + // Output only. Estimated cost(in US dollars) that the DataLabelingJob has + // incurred to date. CurrentSpend *money.Money `protobuf:"bytes,14,opt,name=current_spend,json=currentSpend,proto3" json:"current_spend,omitempty"` // Output only. Timestamp when this DataLabelingJob was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when this DataLabelingJob was updated most recently. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // Output only. DataLabelingJob errors. It is only populated when job's state is - // `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`. + // Output only. DataLabelingJob errors. It is only populated when job's state + // is `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`. Error *status.Status `protobuf:"bytes,22,opt,name=error,proto3" json:"error,omitempty"` // The labels with user-defined metadata to organize your DataLabelingJobs. // @@ -158,7 +157,8 @@ type DataLabelingJob struct { // and are immutable. Following system labels exist for each DataLabelingJob: // // - "aiplatform.googleapis.com/schema": output only, its value is the - // [inputs_schema][google.cloud.aiplatform.v1.DataLabelingJob.inputs_schema_uri]'s title. + // [inputs_schema][google.cloud.aiplatform.v1.DataLabelingJob.inputs_schema_uri]'s + // title. Labels map[string]string `protobuf:"bytes,11,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // The SpecialistPools' resource names associated with this job. SpecialistPools []string `protobuf:"bytes,16,rep,name=specialist_pools,json=specialistPools,proto3" json:"specialist_pools,omitempty"` diff --git a/aiplatform/apiv1/aiplatformpb/dataset.pb.go b/aiplatform/apiv1/aiplatformpb/dataset.pb.go index 8352ccd11ef8..91bb72510c28 100644 --- a/aiplatform/apiv1/aiplatformpb/dataset.pb.go +++ b/aiplatform/apiv1/aiplatformpb/dataset.pb.go @@ -52,11 +52,10 @@ type Dataset struct { DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // The description of the Dataset. Description string `protobuf:"bytes,16,opt,name=description,proto3" json:"description,omitempty"` - // Required. Points to a YAML file stored on Google Cloud Storage describing additional - // information about the Dataset. - // The schema is defined as an OpenAPI 3.0.2 Schema Object. - // The schema files that can be used here are found in - // gs://google-cloud-aiplatform/schema/dataset/metadata/. + // Required. Points to a YAML file stored on Google Cloud Storage describing + // additional information about the Dataset. The schema is defined as an + // OpenAPI 3.0.2 Schema Object. The schema files that can be used here are + // found in gs://google-cloud-aiplatform/schema/dataset/metadata/. MetadataSchemaUri string `protobuf:"bytes,3,opt,name=metadata_schema_uri,json=metadataSchemaUri,proto3" json:"metadata_schema_uri,omitempty"` // Required. Additional information about the Dataset. Metadata *structpb.Value `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"` @@ -80,13 +79,24 @@ type Dataset struct { // and are immutable. Following system labels exist for each Dataset: // // - "aiplatform.googleapis.com/dataset_metadata_schema": output only, its - // value is the [metadata_schema's][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] title. + // value is the + // [metadata_schema's][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] + // title. Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // All SavedQueries belong to the Dataset will be returned in List/Get + // Dataset response. The [annotation_specs][SavedQuery.annotation_specs] field + // will not be populated except for UI cases which will only use + // [annotation_spec_count][google.cloud.aiplatform.v1.SavedQuery.annotation_spec_count]. + // In CreateDataset request, a SavedQuery is created together if + // this field is set, up to one SavedQuery can be set in CreateDatasetRequest. + // The SavedQuery should not contain any AnnotationSpec. + SavedQueries []*SavedQuery `protobuf:"bytes,9,rep,name=saved_queries,json=savedQueries,proto3" json:"saved_queries,omitempty"` // Customer-managed encryption key spec for a Dataset. If set, this Dataset // and all sub-resources of this Dataset will be secured by this key. EncryptionSpec *EncryptionSpec `protobuf:"bytes,11,opt,name=encryption_spec,json=encryptionSpec,proto3" json:"encryption_spec,omitempty"` - // Output only. The resource name of the Artifact that was created in MetadataStore when - // creating the Dataset. The Artifact resource name pattern is + // Output only. The resource name of the Artifact that was created in + // MetadataStore when creating the Dataset. The Artifact resource name pattern + // is // `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. MetadataArtifact string `protobuf:"bytes,17,opt,name=metadata_artifact,json=metadataArtifact,proto3" json:"metadata_artifact,omitempty"` } @@ -186,6 +196,13 @@ func (x *Dataset) GetLabels() map[string]string { return nil } +func (x *Dataset) GetSavedQueries() []*SavedQuery { + if x != nil { + return x.SavedQueries + } + return nil +} + func (x *Dataset) GetEncryptionSpec() *EncryptionSpec { if x != nil { return x.EncryptionSpec @@ -223,19 +240,24 @@ type ImportDataConfig struct { // considered identical if their content bytes are identical (e.g. image bytes // or pdf bytes). // These labels will be overridden by Annotation labels specified inside index - // file referenced by [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + // file referenced by + // [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], + // e.g. jsonl file. DataItemLabels map[string]string `protobuf:"bytes,2,rep,name=data_item_labels,json=dataItemLabels,proto3" json:"data_item_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Labels that will be applied to newly imported Annotations. If two // Annotations are identical, one of them will be deduped. Two Annotations are - // considered identical if their [payload][google.cloud.aiplatform.v1.Annotation.payload], - // [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] and all of their - // [labels][google.cloud.aiplatform.v1.Annotation.labels] are the same. - // These labels will be overridden by Annotation labels specified inside index - // file referenced by [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + // considered identical if their + // [payload][google.cloud.aiplatform.v1.Annotation.payload], + // [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] + // and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are + // the same. These labels will be overridden by Annotation labels specified + // inside index file referenced by + // [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], + // e.g. jsonl file. AnnotationLabels map[string]string `protobuf:"bytes,3,rep,name=annotation_labels,json=annotationLabels,proto3" json:"annotation_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Required. Points to a YAML file stored on Google Cloud Storage describing the import - // format. Validation will be done against the schema. The schema is defined - // as an [OpenAPI 3.0.2 Schema + // Required. Points to a YAML file stored on Google Cloud Storage describing + // the import format. Validation will be done against the schema. The schema + // is defined as an [OpenAPI 3.0.2 Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). ImportSchemaUri string `protobuf:"bytes,4,opt,name=import_schema_uri,json=importSchemaUri,proto3" json:"import_schema_uri,omitempty"` } @@ -426,113 +448,121 @@ var file_google_cloud_aiplatform_v1_dataset_proto_rawDesc = []byte{ 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, - 0x2f, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, - 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe1, 0x05, 0x0a, 0x07, 0x44, 0x61, 0x74, - 0x61, 0x73, 0x65, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, - 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, - 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x13, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x11, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x72, 0x69, 0x12, 0x37, 0x0a, 0x08, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x6d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x2f, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x61, 0x76, 0x65, 0x64, 0x5f, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xae, 0x06, 0x0a, 0x07, 0x44, 0x61, 0x74, 0x61, 0x73, + 0x65, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0c, 0x64, + 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x13, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x11, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x72, 0x69, 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, - 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x47, 0x0a, - 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, - 0x65, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, - 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x53, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0e, 0x65, 0x6e, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x12, 0x30, 0x0a, 0x11, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, - 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x10, 0x6d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x1a, 0x39, 0x0a, - 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x62, 0xea, 0x41, 0x5f, 0x0a, 0x21, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, - 0x12, 0x3a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, - 0x74, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x7d, 0x22, 0xfa, 0x03, 0x0a, - 0x10, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x46, 0x0a, 0x0a, 0x67, 0x63, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x09, - 0x67, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x6a, 0x0a, 0x10, 0x64, 0x61, 0x74, - 0x61, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, - 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x4c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x6f, 0x0a, 0x11, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6d, - 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x2f, 0x0a, 0x11, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, - 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x55, 0x72, 0x69, 0x1a, 0x41, 0x0a, 0x13, 0x44, 0x61, 0x74, 0x61, 0x49, - 0x74, 0x65, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x47, 0x0a, 0x06, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, + 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x12, 0x4b, 0x0a, 0x0d, 0x73, 0x61, 0x76, 0x65, 0x64, 0x5f, 0x71, 0x75, + 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x64, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x52, 0x0c, 0x73, 0x61, 0x76, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, + 0x73, 0x12, 0x53, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x73, 0x70, 0x65, 0x63, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x12, 0x30, 0x0a, 0x11, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x5f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x18, 0x11, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x10, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x3a, 0x62, 0xea, 0x41, 0x5f, 0x0a, 0x21, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x3a, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x64, + 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x7d, 0x22, 0xfa, 0x03, 0x0a, 0x10, 0x49, 0x6d, 0x70, 0x6f, + 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x46, 0x0a, 0x0a, + 0x67, 0x63, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x63, + 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x09, 0x67, 0x63, 0x73, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x12, 0x6a, 0x0a, 0x10, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x69, 0x74, 0x65, + 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x40, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6d, 0x70, 0x6f, + 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x61, 0x74, + 0x61, 0x49, 0x74, 0x65, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x12, 0x6f, 0x0a, 0x11, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x44, + 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x10, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x12, 0x2f, 0x0a, 0x11, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, + 0x02, 0x52, 0x0f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, + 0x72, 0x69, 0x1a, 0x41, 0x0a, 0x13, 0x44, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x43, 0x0a, 0x15, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x43, 0x0a, 0x15, 0x41, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, - 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xa7, 0x01, 0x0a, 0x10, 0x45, 0x78, - 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x55, - 0x0a, 0x0f, 0x67, 0x63, 0x73, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0e, 0x67, 0x63, 0x73, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x11, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x46, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x42, 0x0d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x42, 0xd0, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 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, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, - 0x31, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0xaa, 0x02, 0x1a, 0x47, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, - 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x22, 0xa7, 0x01, 0x0a, 0x10, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, + 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x55, 0x0a, 0x0f, 0x67, 0x63, 0x73, + 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x63, 0x73, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, + 0x52, 0x0e, 0x67, 0x63, 0x73, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x61, 0x6e, + 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x42, + 0x0d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xd0, + 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, + 0x31, 0x42, 0x0c, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x44, 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, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, + 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x69, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, + 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, + 0x31, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, + 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -557,25 +587,27 @@ var file_google_cloud_aiplatform_v1_dataset_proto_goTypes = []interface{}{ nil, // 5: google.cloud.aiplatform.v1.ImportDataConfig.AnnotationLabelsEntry (*structpb.Value)(nil), // 6: google.protobuf.Value (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp - (*EncryptionSpec)(nil), // 8: google.cloud.aiplatform.v1.EncryptionSpec - (*GcsSource)(nil), // 9: google.cloud.aiplatform.v1.GcsSource - (*GcsDestination)(nil), // 10: google.cloud.aiplatform.v1.GcsDestination + (*SavedQuery)(nil), // 8: google.cloud.aiplatform.v1.SavedQuery + (*EncryptionSpec)(nil), // 9: google.cloud.aiplatform.v1.EncryptionSpec + (*GcsSource)(nil), // 10: google.cloud.aiplatform.v1.GcsSource + (*GcsDestination)(nil), // 11: google.cloud.aiplatform.v1.GcsDestination } var file_google_cloud_aiplatform_v1_dataset_proto_depIdxs = []int32{ 6, // 0: google.cloud.aiplatform.v1.Dataset.metadata:type_name -> google.protobuf.Value 7, // 1: google.cloud.aiplatform.v1.Dataset.create_time:type_name -> google.protobuf.Timestamp 7, // 2: google.cloud.aiplatform.v1.Dataset.update_time:type_name -> google.protobuf.Timestamp 3, // 3: google.cloud.aiplatform.v1.Dataset.labels:type_name -> google.cloud.aiplatform.v1.Dataset.LabelsEntry - 8, // 4: google.cloud.aiplatform.v1.Dataset.encryption_spec:type_name -> google.cloud.aiplatform.v1.EncryptionSpec - 9, // 5: google.cloud.aiplatform.v1.ImportDataConfig.gcs_source:type_name -> google.cloud.aiplatform.v1.GcsSource - 4, // 6: google.cloud.aiplatform.v1.ImportDataConfig.data_item_labels:type_name -> google.cloud.aiplatform.v1.ImportDataConfig.DataItemLabelsEntry - 5, // 7: google.cloud.aiplatform.v1.ImportDataConfig.annotation_labels:type_name -> google.cloud.aiplatform.v1.ImportDataConfig.AnnotationLabelsEntry - 10, // 8: google.cloud.aiplatform.v1.ExportDataConfig.gcs_destination:type_name -> google.cloud.aiplatform.v1.GcsDestination - 9, // [9:9] is the sub-list for method output_type - 9, // [9:9] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name + 8, // 4: google.cloud.aiplatform.v1.Dataset.saved_queries:type_name -> google.cloud.aiplatform.v1.SavedQuery + 9, // 5: google.cloud.aiplatform.v1.Dataset.encryption_spec:type_name -> google.cloud.aiplatform.v1.EncryptionSpec + 10, // 6: google.cloud.aiplatform.v1.ImportDataConfig.gcs_source:type_name -> google.cloud.aiplatform.v1.GcsSource + 4, // 7: google.cloud.aiplatform.v1.ImportDataConfig.data_item_labels:type_name -> google.cloud.aiplatform.v1.ImportDataConfig.DataItemLabelsEntry + 5, // 8: google.cloud.aiplatform.v1.ImportDataConfig.annotation_labels:type_name -> google.cloud.aiplatform.v1.ImportDataConfig.AnnotationLabelsEntry + 11, // 9: google.cloud.aiplatform.v1.ExportDataConfig.gcs_destination:type_name -> google.cloud.aiplatform.v1.GcsDestination + 10, // [10:10] is the sub-list for method output_type + 10, // [10:10] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name } func init() { file_google_cloud_aiplatform_v1_dataset_proto_init() } @@ -585,6 +617,7 @@ func file_google_cloud_aiplatform_v1_dataset_proto_init() { } file_google_cloud_aiplatform_v1_encryption_spec_proto_init() file_google_cloud_aiplatform_v1_io_proto_init() + file_google_cloud_aiplatform_v1_saved_query_proto_init() if !protoimpl.UnsafeEnabled { file_google_cloud_aiplatform_v1_dataset_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Dataset); i { diff --git a/aiplatform/apiv1/aiplatformpb/dataset_service.pb.go b/aiplatform/apiv1/aiplatformpb/dataset_service.pb.go index 34fdc630497d..de47b287439a 100644 --- a/aiplatform/apiv1/aiplatformpb/dataset_service.pb.go +++ b/aiplatform/apiv1/aiplatformpb/dataset_service.pb.go @@ -42,7 +42,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [DatasetService.CreateDataset][google.cloud.aiplatform.v1.DatasetService.CreateDataset]. +// Request message for +// [DatasetService.CreateDataset][google.cloud.aiplatform.v1.DatasetService.CreateDataset]. type CreateDatasetRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -101,7 +102,8 @@ func (x *CreateDatasetRequest) GetDataset() *Dataset { return nil } -// Runtime operation information for [DatasetService.CreateDataset][google.cloud.aiplatform.v1.DatasetService.CreateDataset]. +// Runtime operation information for +// [DatasetService.CreateDataset][google.cloud.aiplatform.v1.DatasetService.CreateDataset]. type CreateDatasetOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -150,7 +152,8 @@ func (x *CreateDatasetOperationMetadata) GetGenericMetadata() *GenericOperationM return nil } -// Request message for [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset]. +// Request message for +// [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset]. type GetDatasetRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -208,7 +211,8 @@ func (x *GetDatasetRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Request message for [DatasetService.UpdateDataset][google.cloud.aiplatform.v1.DatasetService.UpdateDataset]. +// Request message for +// [DatasetService.UpdateDataset][google.cloud.aiplatform.v1.DatasetService.UpdateDataset]. type UpdateDatasetRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -217,8 +221,8 @@ type UpdateDatasetRequest struct { // Required. The Dataset which replaces the resource on the server. Dataset *Dataset `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` // Required. The update mask applies to the resource. - // For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. - // Updatable fields: + // For the `FieldMask` definition, see + // [google.protobuf.FieldMask][google.protobuf.FieldMask]. Updatable fields: // // - `display_name` // - `description` @@ -272,7 +276,8 @@ func (x *UpdateDatasetRequest) GetUpdateMask() *fieldmaskpb.FieldMask { return nil } -// Request message for [DatasetService.ListDatasets][google.cloud.aiplatform.v1.DatasetService.ListDatasets]. +// Request message for +// [DatasetService.ListDatasets][google.cloud.aiplatform.v1.DatasetService.ListDatasets]. type ListDatasetsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -386,7 +391,8 @@ func (x *ListDatasetsRequest) GetOrderBy() string { return "" } -// Response message for [DatasetService.ListDatasets][google.cloud.aiplatform.v1.DatasetService.ListDatasets]. +// Response message for +// [DatasetService.ListDatasets][google.cloud.aiplatform.v1.DatasetService.ListDatasets]. type ListDatasetsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -444,7 +450,8 @@ func (x *ListDatasetsResponse) GetNextPageToken() string { return "" } -// Request message for [DatasetService.DeleteDataset][google.cloud.aiplatform.v1.DatasetService.DeleteDataset]. +// Request message for +// [DatasetService.DeleteDataset][google.cloud.aiplatform.v1.DatasetService.DeleteDataset]. type DeleteDatasetRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -495,7 +502,8 @@ func (x *DeleteDatasetRequest) GetName() string { return "" } -// Request message for [DatasetService.ImportData][google.cloud.aiplatform.v1.DatasetService.ImportData]. +// Request message for +// [DatasetService.ImportData][google.cloud.aiplatform.v1.DatasetService.ImportData]. type ImportDataRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -505,8 +513,8 @@ type ImportDataRequest struct { // Format: // `projects/{project}/locations/{location}/datasets/{dataset}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Required. The desired input locations. The contents of all input locations will be - // imported in one batch. + // Required. The desired input locations. The contents of all input locations + // will be imported in one batch. ImportConfigs []*ImportDataConfig `protobuf:"bytes,2,rep,name=import_configs,json=importConfigs,proto3" json:"import_configs,omitempty"` } @@ -556,7 +564,8 @@ func (x *ImportDataRequest) GetImportConfigs() []*ImportDataConfig { return nil } -// Response message for [DatasetService.ImportData][google.cloud.aiplatform.v1.DatasetService.ImportData]. +// Response message for +// [DatasetService.ImportData][google.cloud.aiplatform.v1.DatasetService.ImportData]. type ImportDataResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -595,7 +604,8 @@ func (*ImportDataResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1_dataset_service_proto_rawDescGZIP(), []int{8} } -// Runtime operation information for [DatasetService.ImportData][google.cloud.aiplatform.v1.DatasetService.ImportData]. +// Runtime operation information for +// [DatasetService.ImportData][google.cloud.aiplatform.v1.DatasetService.ImportData]. type ImportDataOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -644,7 +654,8 @@ func (x *ImportDataOperationMetadata) GetGenericMetadata() *GenericOperationMeta return nil } -// Request message for [DatasetService.ExportData][google.cloud.aiplatform.v1.DatasetService.ExportData]. +// Request message for +// [DatasetService.ExportData][google.cloud.aiplatform.v1.DatasetService.ExportData]. type ExportDataRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -704,7 +715,8 @@ func (x *ExportDataRequest) GetExportConfig() *ExportDataConfig { return nil } -// Response message for [DatasetService.ExportData][google.cloud.aiplatform.v1.DatasetService.ExportData]. +// Response message for +// [DatasetService.ExportData][google.cloud.aiplatform.v1.DatasetService.ExportData]. type ExportDataResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -753,7 +765,8 @@ func (x *ExportDataResponse) GetExportedFiles() []string { return nil } -// Runtime operation information for [DatasetService.ExportData][google.cloud.aiplatform.v1.DatasetService.ExportData]. +// Runtime operation information for +// [DatasetService.ExportData][google.cloud.aiplatform.v1.DatasetService.ExportData]. type ExportDataOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -812,7 +825,8 @@ func (x *ExportDataOperationMetadata) GetGcsOutputDirectory() string { return "" } -// Request message for [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems]. +// Request message for +// [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems]. type ListDataItemsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -909,7 +923,8 @@ func (x *ListDataItemsRequest) GetOrderBy() string { return "" } -// Response message for [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems]. +// Response message for +// [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems]. type ListDataItemsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -967,7 +982,8 @@ func (x *ListDataItemsResponse) GetNextPageToken() string { return "" } -// Request message for [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems]. +// Request message for +// [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems]. type SearchDataItemsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1021,7 +1037,8 @@ type SearchDataItemsRequest struct { // Must specify `saved_query_id=` - saved query id that annotations should // belong to. AnnotationFilters []string `protobuf:"bytes,11,rep,name=annotation_filters,json=annotationFilters,proto3" json:"annotation_filters,omitempty"` - // Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1.DataItemView] to read. + // Mask specifying which fields of + // [DataItemView][google.cloud.aiplatform.v1.DataItemView] to read. FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,6,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` // If set, only up to this many of Annotations will be returned per // DataItemView. The maximum value is 1000. If not set, the maximum value will @@ -1037,8 +1054,10 @@ type SearchDataItemsRequest struct { OrderBy string `protobuf:"bytes,9,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` // A token identifying a page of results for the server to return // Typically obtained via - // [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1.SearchDataItemsResponse.next_page_token] of the previous - // [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems] call. + // [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1.SearchDataItemsResponse.next_page_token] + // of the previous + // [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems] + // call. PageToken string `protobuf:"bytes,10,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` } @@ -1194,7 +1213,8 @@ func (*SearchDataItemsRequest_OrderByDataItem) isSearchDataItemsRequest_Order() func (*SearchDataItemsRequest_OrderByAnnotation_) isSearchDataItemsRequest_Order() {} -// Response message for [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems]. +// Response message for +// [DatasetService.SearchDataItems][google.cloud.aiplatform.v1.DatasetService.SearchDataItems]. type SearchDataItemsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1203,7 +1223,9 @@ type SearchDataItemsResponse struct { // The DataItemViews read. DataItemViews []*DataItemView `protobuf:"bytes,1,rep,name=data_item_views,json=dataItemViews,proto3" json:"data_item_views,omitempty"` // A token to retrieve next page of results. - // Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1.SearchDataItemsRequest.page_token] to obtain that page. + // Pass to + // [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1.SearchDataItemsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -1327,7 +1349,8 @@ func (x *DataItemView) GetHasTruncatedAnnotations() bool { return false } -// Request message for [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1.DatasetService.ListSavedQueries]. +// Request message for +// [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1.DatasetService.ListSavedQueries]. type ListSavedQueriesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1424,7 +1447,8 @@ func (x *ListSavedQueriesRequest) GetOrderBy() string { return "" } -// Response message for [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1.DatasetService.ListSavedQueries]. +// Response message for +// [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1.DatasetService.ListSavedQueries]. type ListSavedQueriesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1482,7 +1506,8 @@ func (x *ListSavedQueriesResponse) GetNextPageToken() string { return "" } -// Request message for [DatasetService.GetAnnotationSpec][google.cloud.aiplatform.v1.DatasetService.GetAnnotationSpec]. +// Request message for +// [DatasetService.GetAnnotationSpec][google.cloud.aiplatform.v1.DatasetService.GetAnnotationSpec]. type GetAnnotationSpecRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1542,7 +1567,8 @@ func (x *GetAnnotationSpecRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Request message for [DatasetService.ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations]. +// Request message for +// [DatasetService.ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations]. type ListAnnotationsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1639,7 +1665,8 @@ func (x *ListAnnotationsRequest) GetOrderBy() string { return "" } -// Response message for [DatasetService.ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations]. +// Response message for +// [DatasetService.ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations]. type ListAnnotationsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1703,8 +1730,8 @@ type SearchDataItemsRequest_OrderByAnnotation struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. Saved query of the Annotation. Only Annotations belong to this saved - // query will be considered for ordering. + // Required. Saved query of the Annotation. Only Annotations belong to this + // saved query will be considered for ordering. SavedQuery string `protobuf:"bytes,1,opt,name=saved_query,json=savedQuery,proto3" json:"saved_query,omitempty"` // A comma-separated list of annotation fields to order by, sorted in // ascending order. Use "desc" after a field name for descending. Must also diff --git a/aiplatform/apiv1/aiplatformpb/encryption_spec.pb.go b/aiplatform/apiv1/aiplatformpb/encryption_spec.pb.go index 9d86c3c6660b..37430f4cd6e8 100644 --- a/aiplatform/apiv1/aiplatformpb/encryption_spec.pb.go +++ b/aiplatform/apiv1/aiplatformpb/encryption_spec.pb.go @@ -43,8 +43,8 @@ type EncryptionSpec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The Cloud KMS resource identifier of the customer managed encryption key - // used to protect a resource. Has the form: + // Required. The Cloud KMS resource identifier of the customer managed + // encryption key used to protect a resource. Has the form: // `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. // The key needs to be in the same region as where the compute resource is // created. diff --git a/aiplatform/apiv1/aiplatformpb/endpoint.pb.go b/aiplatform/apiv1/aiplatformpb/endpoint.pb.go index 11c452c3857a..95be2a3d144d 100644 --- a/aiplatform/apiv1/aiplatformpb/endpoint.pb.go +++ b/aiplatform/apiv1/aiplatformpb/endpoint.pb.go @@ -53,8 +53,11 @@ type Endpoint struct { // The description of the Endpoint. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Output only. The models deployed in this Endpoint. - // To add or remove DeployedModels use [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel] and - // [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel] respectively. + // To add or remove DeployedModels use + // [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel] + // and + // [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel] + // respectively. DeployedModels []*DeployedModel `protobuf:"bytes,4,rep,name=deployed_models,json=deployedModels,proto3" json:"deployed_models,omitempty"` // A map from a DeployedModel's ID to the percentage of this Endpoint's // traffic that should be forwarded to that DeployedModel. @@ -91,7 +94,8 @@ type Endpoint struct { // Private services access must already be configured for the network. If left // unspecified, the Endpoint is not peered with any network. // - // Only one of the fields, [network][google.cloud.aiplatform.v1.Endpoint.network] or + // Only one of the fields, + // [network][google.cloud.aiplatform.v1.Endpoint.network] or // [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect], // can be set. // @@ -102,15 +106,16 @@ type Endpoint struct { Network string `protobuf:"bytes,13,opt,name=network,proto3" json:"network,omitempty"` // Deprecated: If true, expose the Endpoint via private service connect. // - // Only one of the fields, [network][google.cloud.aiplatform.v1.Endpoint.network] or + // Only one of the fields, + // [network][google.cloud.aiplatform.v1.Endpoint.network] or // [enable_private_service_connect][google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect], // can be set. // // Deprecated: Do not use. EnablePrivateServiceConnect bool `protobuf:"varint,17,opt,name=enable_private_service_connect,json=enablePrivateServiceConnect,proto3" json:"enable_private_service_connect,omitempty"` - // Output only. Resource name of the Model Monitoring job associated with this Endpoint - // if monitoring is enabled by [CreateModelDeploymentMonitoringJob][]. - // Format: + // Output only. Resource name of the Model Monitoring job associated with this + // Endpoint if monitoring is enabled by + // [CreateModelDeploymentMonitoringJob][]. Format: // `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` ModelDeploymentMonitoringJob string `protobuf:"bytes,14,opt,name=model_deployment_monitoring_job,json=modelDeploymentMonitoringJob,proto3" json:"model_deployment_monitoring_job,omitempty"` // Configures the request-response logging for online prediction. @@ -265,13 +270,14 @@ type DeployedModel struct { // *DeployedModel_DedicatedResources // *DeployedModel_AutomaticResources PredictionResources isDeployedModel_PredictionResources `protobuf_oneof:"prediction_resources"` - // Immutable. The ID of the DeployedModel. If not provided upon deployment, Vertex AI - // will generate a value for this ID. + // Immutable. The ID of the DeployedModel. If not provided upon deployment, + // Vertex AI will generate a value for this ID. // // This value should be 1-10 characters, and valid characters are /[0-9]/. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Required. The resource name of the Model that this is the deployment of. Note that - // the Model may be in a different location than the DeployedModel's Endpoint. + // Required. The resource name of the Model that this is the deployment of. + // Note that the Model may be in a different location than the DeployedModel's + // Endpoint. // // The resource name may contain version id or version alias to specify the // version, if no version is specified, the default version will be deployed. @@ -285,13 +291,21 @@ type DeployedModel struct { CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Explanation configuration for this DeployedModel. // - // When deploying a Model using [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], this value - // overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. All fields of - // [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] are optional in the request. If a field of - // [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] is not populated, the value of the same field of - // [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] is inherited. If the corresponding - // [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] is not populated, all fields of the - // [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] will be used for the explanation configuration. + // When deploying a Model using + // [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel], + // this value overrides the value of + // [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec]. + // All fields of + // [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + // are optional in the request. If a field of + // [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + // is not populated, the value of the same field of + // [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + // is inherited. If the corresponding + // [Model.explanation_spec][google.cloud.aiplatform.v1.Model.explanation_spec] + // is not populated, all fields of the + // [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + // will be used for the explanation configuration. ExplanationSpec *ExplanationSpec `protobuf:"bytes,9,opt,name=explanation_spec,json=explanationSpec,proto3" json:"explanation_spec,omitempty"` // The service account that the DeployedModel's container runs as. Specify the // email address of the service account. If this service account is not @@ -316,9 +330,10 @@ type DeployedModel struct { // receives prediction requests at a high queries per second rate (QPS). // Estimate your costs before enabling this option. EnableAccessLogging bool `protobuf:"varint,13,opt,name=enable_access_logging,json=enableAccessLogging,proto3" json:"enable_access_logging,omitempty"` - // Output only. Provide paths for users to send predict/explain/health requests directly to - // the deployed model services running on Cloud via private services access. - // This field is populated if [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. + // Output only. Provide paths for users to send predict/explain/health + // requests directly to the deployed model services running on Cloud via + // private services access. This field is populated if + // [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. PrivateEndpoints *PrivateEndpoints `protobuf:"bytes,14,opt,name=private_endpoints,json=privateEndpoints,proto3" json:"private_endpoints,omitempty"` } @@ -481,8 +496,8 @@ type PrivateEndpoints struct { ExplainHttpUri string `protobuf:"bytes,2,opt,name=explain_http_uri,json=explainHttpUri,proto3" json:"explain_http_uri,omitempty"` // Output only. Http(s) path to send health check requests. HealthHttpUri string `protobuf:"bytes,3,opt,name=health_http_uri,json=healthHttpUri,proto3" json:"health_http_uri,omitempty"` - // Output only. The name of the service attachment resource. Populated if private service - // connect is enabled. + // Output only. The name of the service attachment resource. Populated if + // private service connect is enabled. ServiceAttachment string `protobuf:"bytes,4,opt,name=service_attachment,json=serviceAttachment,proto3" json:"service_attachment,omitempty"` } diff --git a/aiplatform/apiv1/aiplatformpb/endpoint_service.pb.go b/aiplatform/apiv1/aiplatformpb/endpoint_service.pb.go index 169c8e96b4fa..eb856ff50fc0 100644 --- a/aiplatform/apiv1/aiplatformpb/endpoint_service.pb.go +++ b/aiplatform/apiv1/aiplatformpb/endpoint_service.pb.go @@ -42,7 +42,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [EndpointService.CreateEndpoint][google.cloud.aiplatform.v1.EndpointService.CreateEndpoint]. +// Request message for +// [EndpointService.CreateEndpoint][google.cloud.aiplatform.v1.EndpointService.CreateEndpoint]. type CreateEndpointRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -117,7 +118,8 @@ func (x *CreateEndpointRequest) GetEndpointId() string { return "" } -// Runtime operation information for [EndpointService.CreateEndpoint][google.cloud.aiplatform.v1.EndpointService.CreateEndpoint]. +// Runtime operation information for +// [EndpointService.CreateEndpoint][google.cloud.aiplatform.v1.EndpointService.CreateEndpoint]. type CreateEndpointOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -166,7 +168,8 @@ func (x *CreateEndpointOperationMetadata) GetGenericMetadata() *GenericOperation return nil } -// Request message for [EndpointService.GetEndpoint][google.cloud.aiplatform.v1.EndpointService.GetEndpoint] +// Request message for +// [EndpointService.GetEndpoint][google.cloud.aiplatform.v1.EndpointService.GetEndpoint] type GetEndpointRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -217,20 +220,22 @@ func (x *GetEndpointRequest) GetName() string { return "" } -// Request message for [EndpointService.ListEndpoints][google.cloud.aiplatform.v1.EndpointService.ListEndpoints]. +// Request message for +// [EndpointService.ListEndpoints][google.cloud.aiplatform.v1.EndpointService.ListEndpoints]. type ListEndpointsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Location from which to list the Endpoints. - // Format: `projects/{project}/locations/{location}` + // Required. The resource name of the Location from which to list the + // Endpoints. Format: `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. An expression for filtering the results of the request. For field names - // both snake_case and camelCase are supported. + // Optional. An expression for filtering the results of the request. For field + // names both snake_case and camelCase are supported. // // - `endpoint` supports = and !=. `endpoint` represents the Endpoint ID, - // i.e. the last segment of the Endpoint's [resource name][google.cloud.aiplatform.v1.Endpoint.name]. + // i.e. the last segment of the Endpoint's [resource + // name][google.cloud.aiplatform.v1.Endpoint.name]. // - `display_name` supports = and, != // - `labels` supports general map functions that is: // - `labels.key=value` - key:value equality @@ -246,8 +251,10 @@ type ListEndpointsRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. The standard list page token. // Typically obtained via - // [ListEndpointsResponse.next_page_token][google.cloud.aiplatform.v1.ListEndpointsResponse.next_page_token] of the previous - // [EndpointService.ListEndpoints][google.cloud.aiplatform.v1.EndpointService.ListEndpoints] call. + // [ListEndpointsResponse.next_page_token][google.cloud.aiplatform.v1.ListEndpointsResponse.next_page_token] + // of the previous + // [EndpointService.ListEndpoints][google.cloud.aiplatform.v1.EndpointService.ListEndpoints] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Optional. Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -336,7 +343,8 @@ func (x *ListEndpointsRequest) GetOrderBy() string { return "" } -// Response message for [EndpointService.ListEndpoints][google.cloud.aiplatform.v1.EndpointService.ListEndpoints]. +// Response message for +// [EndpointService.ListEndpoints][google.cloud.aiplatform.v1.EndpointService.ListEndpoints]. type ListEndpointsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -345,7 +353,9 @@ type ListEndpointsResponse struct { // List of Endpoints in the requested page. Endpoints []*Endpoint `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // A token to retrieve the next page of results. - // Pass to [ListEndpointsRequest.page_token][google.cloud.aiplatform.v1.ListEndpointsRequest.page_token] to obtain that page. + // Pass to + // [ListEndpointsRequest.page_token][google.cloud.aiplatform.v1.ListEndpointsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -395,7 +405,8 @@ func (x *ListEndpointsResponse) GetNextPageToken() string { return "" } -// Request message for [EndpointService.UpdateEndpoint][google.cloud.aiplatform.v1.EndpointService.UpdateEndpoint]. +// Request message for +// [EndpointService.UpdateEndpoint][google.cloud.aiplatform.v1.EndpointService.UpdateEndpoint]. type UpdateEndpointRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -403,7 +414,8 @@ type UpdateEndpointRequest struct { // Required. The Endpoint which replaces the resource on the server. Endpoint *Endpoint `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - // Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask]. + // Required. The update mask applies to the resource. See + // [google.protobuf.FieldMask][google.protobuf.FieldMask]. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } @@ -453,7 +465,8 @@ func (x *UpdateEndpointRequest) GetUpdateMask() *fieldmaskpb.FieldMask { return nil } -// Request message for [EndpointService.DeleteEndpoint][google.cloud.aiplatform.v1.EndpointService.DeleteEndpoint]. +// Request message for +// [EndpointService.DeleteEndpoint][google.cloud.aiplatform.v1.EndpointService.DeleteEndpoint]. type DeleteEndpointRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -504,7 +517,8 @@ func (x *DeleteEndpointRequest) GetName() string { return "" } -// Request message for [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel]. +// Request message for +// [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel]. type DeployModelRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -515,21 +529,24 @@ type DeployModelRequest struct { // `projects/{project}/locations/{location}/endpoints/{endpoint}` Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // Required. The DeployedModel to be created within the Endpoint. Note that - // [Endpoint.traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] must be updated for the DeployedModel to start - // receiving traffic, either as part of this call, or via + // [Endpoint.traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] + // must be updated for the DeployedModel to start receiving traffic, either as + // part of this call, or via // [EndpointService.UpdateEndpoint][google.cloud.aiplatform.v1.EndpointService.UpdateEndpoint]. DeployedModel *DeployedModel `protobuf:"bytes,2,opt,name=deployed_model,json=deployedModel,proto3" json:"deployed_model,omitempty"` // A map from a DeployedModel's ID to the percentage of this Endpoint's // traffic that should be forwarded to that DeployedModel. // // If this field is non-empty, then the Endpoint's - // [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be overwritten with it. - // To refer to the ID of the just being deployed Model, a "0" should be used, - // and the actual ID of the new DeployedModel will be filled in its place by - // this method. The traffic percentage values must add up to 100. + // [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be + // overwritten with it. To refer to the ID of the just being deployed Model, a + // "0" should be used, and the actual ID of the new DeployedModel will be + // filled in its place by this method. The traffic percentage values must add + // up to 100. // // If this field is empty, then the Endpoint's - // [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] is not updated. + // [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] is not + // updated. TrafficSplit map[string]int32 `protobuf:"bytes,3,rep,name=traffic_split,json=trafficSplit,proto3" json:"traffic_split,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` } @@ -586,7 +603,8 @@ func (x *DeployModelRequest) GetTrafficSplit() map[string]int32 { return nil } -// Response message for [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel]. +// Response message for +// [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel]. type DeployModelResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -635,7 +653,8 @@ func (x *DeployModelResponse) GetDeployedModel() *DeployedModel { return nil } -// Runtime operation information for [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel]. +// Runtime operation information for +// [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel]. type DeployModelOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -684,7 +703,8 @@ func (x *DeployModelOperationMetadata) GetGenericMetadata() *GenericOperationMet return nil } -// Request message for [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel]. +// Request message for +// [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel]. type UndeployModelRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -697,12 +717,12 @@ type UndeployModelRequest struct { // Required. The ID of the DeployedModel to be undeployed from the Endpoint. DeployedModelId string `protobuf:"bytes,2,opt,name=deployed_model_id,json=deployedModelId,proto3" json:"deployed_model_id,omitempty"` // If this field is provided, then the Endpoint's - // [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be overwritten with it. If - // last DeployedModel is being undeployed from the Endpoint, the - // [Endpoint.traffic_split] will always end up empty when this call returns. - // A DeployedModel will be successfully undeployed only if it doesn't have - // any traffic assigned to it when this method executes, or if this field - // unassigns any traffic to it. + // [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be + // overwritten with it. If last DeployedModel is being undeployed from the + // Endpoint, the [Endpoint.traffic_split] will always end up empty when this + // call returns. A DeployedModel will be successfully undeployed only if it + // doesn't have any traffic assigned to it when this method executes, or if + // this field unassigns any traffic to it. TrafficSplit map[string]int32 `protobuf:"bytes,3,rep,name=traffic_split,json=trafficSplit,proto3" json:"traffic_split,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` } @@ -759,7 +779,8 @@ func (x *UndeployModelRequest) GetTrafficSplit() map[string]int32 { return nil } -// Response message for [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel]. +// Response message for +// [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel]. type UndeployModelResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -798,7 +819,8 @@ func (*UndeployModelResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1_endpoint_service_proto_rawDescGZIP(), []int{11} } -// Runtime operation information for [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel]. +// Runtime operation information for +// [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel]. type UndeployModelOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/aiplatform/apiv1/aiplatformpb/entity_type.pb.go b/aiplatform/apiv1/aiplatformpb/entity_type.pb.go index 09778dbbec15..40f1f0ac5e6a 100644 --- a/aiplatform/apiv1/aiplatformpb/entity_type.pb.go +++ b/aiplatform/apiv1/aiplatformpb/entity_type.pb.go @@ -60,7 +60,8 @@ type EntityType struct { CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when this EntityType was most recently updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // Optional. The labels with user-defined metadata to organize your EntityTypes. + // Optional. The labels with user-defined metadata to organize your + // EntityTypes. // // Label keys and values can be no longer than 64 characters // (Unicode codepoints), can only contain lowercase letters, numeric @@ -72,12 +73,13 @@ type EntityType struct { // System reserved label keys are prefixed with "aiplatform.googleapis.com/" // and are immutable. 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"` - // Optional. Used to perform a consistent read-modify-write updates. If not set, a blind - // "overwrite" update happens. + // Optional. Used to perform a consistent read-modify-write updates. If not + // set, a blind "overwrite" update happens. Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"` - // Optional. The default monitoring configuration for all Features with value type - // ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this - // EntityType. + // Optional. The default monitoring configuration for all Features with value + // type + // ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, + // STRING, DOUBLE or INT64 under this EntityType. // // If this is populated with // [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot diff --git a/aiplatform/apiv1/aiplatformpb/explanation.pb.go b/aiplatform/apiv1/aiplatformpb/explanation.pb.go index 05a03a354974..68def7b59cee 100644 --- a/aiplatform/apiv1/aiplatformpb/explanation.pb.go +++ b/aiplatform/apiv1/aiplatformpb/explanation.pb.go @@ -90,8 +90,10 @@ func (ExamplesOverride_DataFormat) EnumDescriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1_explanation_proto_rawDescGZIP(), []int{14, 0} } -// Explanation of a prediction (provided in [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions]) -// produced by the Model on a given [instance][google.cloud.aiplatform.v1.ExplainRequest.instances]. +// Explanation of a prediction (provided in +// [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions]) +// produced by the Model on a given +// [instance][google.cloud.aiplatform.v1.ExplainRequest.instances]. type Explanation struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -103,14 +105,19 @@ type Explanation struct { // predict only one score, there is only one attibution that explains the // predicted output. For Models that predict multiple outputs, such as // multiclass Models that predict multiple classes, each element explains one - // specific item. [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] can be used to identify which - // output this attribution is explaining. + // specific item. + // [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] + // can be used to identify which output this attribution is explaining. // - // If users set [ExplanationParameters.top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k], the attributions are sorted - // by [instance_output_value][Attributions.instance_output_value] in - // descending order. If [ExplanationParameters.output_indices][google.cloud.aiplatform.v1.ExplanationParameters.output_indices] is specified, - // the attributions are stored by [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] in the same - // order as they appear in the output_indices. + // If users set + // [ExplanationParameters.top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k], + // the attributions are sorted by + // [instance_output_value][Attributions.instance_output_value] in descending + // order. If + // [ExplanationParameters.output_indices][google.cloud.aiplatform.v1.ExplanationParameters.output_indices] + // is specified, the attributions are stored by + // [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] + // in the same order as they appear in the output_indices. Attributions []*Attribution `protobuf:"bytes,1,rep,name=attributions,proto3" json:"attributions,omitempty"` // Output only. List of the nearest neighbors for example-based explanations. // @@ -171,24 +178,28 @@ type ModelExplanation struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. Aggregated attributions explaining the Model's prediction outputs over the - // set of instances. The attributions are grouped by outputs. + // Output only. Aggregated attributions explaining the Model's prediction + // outputs over the set of instances. The attributions are grouped by outputs. // // For Models that predict only one output, such as regression Models that // predict only one score, there is only one attibution that explains the // predicted output. For Models that predict multiple outputs, such as // multiclass Models that predict multiple classes, each element explains one - // specific item. [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] can be used to identify which - // output this attribution is explaining. + // specific item. + // [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] + // can be used to identify which output this attribution is explaining. // - // The [baselineOutputValue][google.cloud.aiplatform.v1.Attribution.baseline_output_value], - // [instanceOutputValue][google.cloud.aiplatform.v1.Attribution.instance_output_value] and - // [featureAttributions][google.cloud.aiplatform.v1.Attribution.feature_attributions] fields are - // averaged over the test data. + // The + // [baselineOutputValue][google.cloud.aiplatform.v1.Attribution.baseline_output_value], + // [instanceOutputValue][google.cloud.aiplatform.v1.Attribution.instance_output_value] + // and + // [featureAttributions][google.cloud.aiplatform.v1.Attribution.feature_attributions] + // fields are averaged over the test data. // // NOTE: Currently AutoML tabular classification Models produce only one // attribution, which averages attributions over all the classes it predicts. - // [Attribution.approximation_error][google.cloud.aiplatform.v1.Attribution.approximation_error] is not populated. + // [Attribution.approximation_error][google.cloud.aiplatform.v1.Attribution.approximation_error] + // is not populated. MeanAttributions []*Attribution `protobuf:"bytes,1,rep,name=mean_attributions,json=meanAttributions,proto3" json:"mean_attributions,omitempty"` } @@ -237,30 +248,37 @@ type Attribution struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. Model predicted output if the input instance is constructed from the - // baselines of all the features defined in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + // Output only. Model predicted output if the input instance is constructed + // from the baselines of all the features defined in + // [ExplanationMetadata.inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. // The field name of the output is determined by the key in // [ExplanationMetadata.outputs][google.cloud.aiplatform.v1.ExplanationMetadata.outputs]. // // If the Model's predicted output has multiple dimensions (rank > 1), this is - // the value in the output located by [output_index][google.cloud.aiplatform.v1.Attribution.output_index]. + // the value in the output located by + // [output_index][google.cloud.aiplatform.v1.Attribution.output_index]. // // If there are multiple baselines, their output values are averaged. BaselineOutputValue float64 `protobuf:"fixed64,1,opt,name=baseline_output_value,json=baselineOutputValue,proto3" json:"baseline_output_value,omitempty"` // Output only. Model predicted output on the corresponding [explanation // instance][ExplainRequest.instances]. The field name of the output is - // determined by the key in [ExplanationMetadata.outputs][google.cloud.aiplatform.v1.ExplanationMetadata.outputs]. + // determined by the key in + // [ExplanationMetadata.outputs][google.cloud.aiplatform.v1.ExplanationMetadata.outputs]. // // If the Model predicted output has multiple dimensions, this is the value in - // the output located by [output_index][google.cloud.aiplatform.v1.Attribution.output_index]. + // the output located by + // [output_index][google.cloud.aiplatform.v1.Attribution.output_index]. InstanceOutputValue float64 `protobuf:"fixed64,2,opt,name=instance_output_value,json=instanceOutputValue,proto3" json:"instance_output_value,omitempty"` - // Output only. Attributions of each explained feature. Features are extracted from - // the [prediction instances][google.cloud.aiplatform.v1.ExplainRequest.instances] according to - // [explanation metadata for inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + // Output only. Attributions of each explained feature. Features are extracted + // from the [prediction + // instances][google.cloud.aiplatform.v1.ExplainRequest.instances] according + // to [explanation metadata for + // inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. // // The value is a struct, whose keys are the name of the feature. The values - // are how much the feature in the [instance][google.cloud.aiplatform.v1.ExplainRequest.instances] - // contributed to the predicted result. + // are how much the feature in the + // [instance][google.cloud.aiplatform.v1.ExplainRequest.instances] contributed + // to the predicted result. // // The format of the value is determined by the feature's input format: // @@ -276,10 +294,13 @@ type Attribution struct { // struct. The formats of the values in the attribution struct are // determined by the formats of the values in the feature struct. // - // The [ExplanationMetadata.feature_attributions_schema_uri][google.cloud.aiplatform.v1.ExplanationMetadata.feature_attributions_schema_uri] field, - // pointed to by the [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] field of the - // [Endpoint.deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] object, points to the schema file that - // describes the features and their attribution values (if it is populated). + // The + // [ExplanationMetadata.feature_attributions_schema_uri][google.cloud.aiplatform.v1.ExplanationMetadata.feature_attributions_schema_uri] + // field, pointed to by the + // [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] field of the + // [Endpoint.deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] + // object, points to the schema file that describes the features and their + // attribution values (if it is populated). FeatureAttributions *structpb.Value `protobuf:"bytes,3,opt,name=feature_attributions,json=featureAttributions,proto3" json:"feature_attributions,omitempty"` // Output only. The index that locates the explained prediction output. // @@ -289,28 +310,35 @@ type Attribution struct { // The i-th element in output_index is the element index of the i-th dimension // of the output vector. Indices start from 0. OutputIndex []int32 `protobuf:"varint,4,rep,packed,name=output_index,json=outputIndex,proto3" json:"output_index,omitempty"` - // Output only. The display name of the output identified by [output_index][google.cloud.aiplatform.v1.Attribution.output_index]. For example, - // the predicted class name by a multi-classification Model. + // Output only. The display name of the output identified by + // [output_index][google.cloud.aiplatform.v1.Attribution.output_index]. For + // example, the predicted class name by a multi-classification Model. // // This field is only populated iff the Model predicts display names as a // separate field along with the explained output. The predicted display name // must has the same shape of the explained output, and can be located using // output_index. OutputDisplayName string `protobuf:"bytes,5,opt,name=output_display_name,json=outputDisplayName,proto3" json:"output_display_name,omitempty"` - // Output only. Error of [feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions] caused by approximation used in the - // explanation method. Lower value means more precise attributions. + // Output only. Error of + // [feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions] + // caused by approximation used in the explanation method. Lower value means + // more precise attributions. // // * For Sampled Shapley // [attribution][google.cloud.aiplatform.v1.ExplanationParameters.sampled_shapley_attribution], - // increasing [path_count][google.cloud.aiplatform.v1.SampledShapleyAttribution.path_count] might reduce - // the error. + // increasing + // [path_count][google.cloud.aiplatform.v1.SampledShapleyAttribution.path_count] + // might reduce the error. // * For Integrated Gradients // [attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution], - // increasing [step_count][google.cloud.aiplatform.v1.IntegratedGradientsAttribution.step_count] might - // reduce the error. - // * For [XRAI attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution], // increasing - // [step_count][google.cloud.aiplatform.v1.XraiAttribution.step_count] might reduce the error. + // [step_count][google.cloud.aiplatform.v1.IntegratedGradientsAttribution.step_count] + // might reduce the error. + // * For [XRAI + // attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution], + // increasing + // [step_count][google.cloud.aiplatform.v1.XraiAttribution.step_count] might + // reduce the error. // // See [this introduction](/vertex-ai/docs/explainable-ai/overview) // for more information. @@ -535,13 +563,14 @@ type ExplanationParameters struct { // outputs. TopK int32 `protobuf:"varint,4,opt,name=top_k,json=topK,proto3" json:"top_k,omitempty"` // If populated, only returns attributions that have - // [output_index][google.cloud.aiplatform.v1.Attribution.output_index] contained in output_indices. It - // must be an ndarray of integers, with the same shape of the output it's - // explaining. + // [output_index][google.cloud.aiplatform.v1.Attribution.output_index] + // contained in output_indices. It must be an ndarray of integers, with the + // same shape of the output it's explaining. // - // If not populated, returns attributions for [top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k] indices of outputs. - // If neither top_k nor output_indices is populated, returns the argmax - // index of the outputs. + // If not populated, returns attributions for + // [top_k][google.cloud.aiplatform.v1.ExplanationParameters.top_k] indices of + // outputs. If neither top_k nor output_indices is populated, returns the + // argmax index of the outputs. // // Only applicable to Models that predict multiple outputs (e,g, multi-class // Models that predict multiple classes). @@ -668,8 +697,8 @@ type SampledShapleyAttribution struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The number of feature permutations to consider when approximating the - // Shapley values. + // Required. The number of feature permutations to consider when approximating + // the Shapley values. // // Valid range of its value is [1, 50], inclusively. PathCount int32 `protobuf:"varint,1,opt,name=path_count,json=pathCount,proto3" json:"path_count,omitempty"` @@ -986,18 +1015,20 @@ type SmoothGradConfig_NoiseSigma struct { // paper: https://arxiv.org/pdf/1706.03825.pdf. Defaults to 0.1. // // If the distribution is different per feature, set - // [feature_noise_sigma][google.cloud.aiplatform.v1.SmoothGradConfig.feature_noise_sigma] instead - // for each feature. + // [feature_noise_sigma][google.cloud.aiplatform.v1.SmoothGradConfig.feature_noise_sigma] + // instead for each feature. NoiseSigma float32 `protobuf:"fixed32,1,opt,name=noise_sigma,json=noiseSigma,proto3,oneof"` } type SmoothGradConfig_FeatureNoiseSigma struct { - // This is similar to [noise_sigma][google.cloud.aiplatform.v1.SmoothGradConfig.noise_sigma], but - // provides additional flexibility. A separate noise sigma can be provided - // for each feature, which is useful if their distributions are different. - // No noise is added to features that are not set. If this field is unset, - // [noise_sigma][google.cloud.aiplatform.v1.SmoothGradConfig.noise_sigma] will be used for all - // features. + // This is similar to + // [noise_sigma][google.cloud.aiplatform.v1.SmoothGradConfig.noise_sigma], + // but provides additional flexibility. A separate noise sigma can be + // provided for each feature, which is useful if their distributions are + // different. No noise is added to features that are not set. If this field + // is unset, + // [noise_sigma][google.cloud.aiplatform.v1.SmoothGradConfig.noise_sigma] + // will be used for all features. FeatureNoiseSigma *FeatureNoiseSigma `protobuf:"bytes,2,opt,name=feature_noise_sigma,json=featureNoiseSigma,proto3,oneof"` } @@ -1113,16 +1144,17 @@ func (x *BlurBaselineConfig) GetMaxBlurSigma() float32 { return 0 } -// The [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] entries that can be overridden at -// [online explanation][google.cloud.aiplatform.v1.PredictionService.Explain] time. +// The [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] entries +// that can be overridden at [online +// explanation][google.cloud.aiplatform.v1.PredictionService.Explain] time. type ExplanationSpecOverride struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The parameters to be overridden. Note that the - // [method][google.cloud.aiplatform.v1.ExplanationParameters.method] cannot be changed. If not specified, - // no parameter is overridden. + // [method][google.cloud.aiplatform.v1.ExplanationParameters.method] cannot be + // changed. If not specified, no parameter is overridden. Parameters *ExplanationParameters `protobuf:"bytes,1,opt,name=parameters,proto3" json:"parameters,omitempty"` // The metadata to be overridden. If not specified, no metadata is overridden. Metadata *ExplanationMetadataOverride `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` @@ -1183,18 +1215,20 @@ func (x *ExplanationSpecOverride) GetExamplesOverride() *ExamplesOverride { return nil } -// The [ExplanationMetadata][google.cloud.aiplatform.v1.ExplanationMetadata] entries that can be overridden at -// [online explanation][google.cloud.aiplatform.v1.PredictionService.Explain] time. +// The [ExplanationMetadata][google.cloud.aiplatform.v1.ExplanationMetadata] +// entries that can be overridden at [online +// explanation][google.cloud.aiplatform.v1.PredictionService.Explain] time. type ExplanationMetadataOverride struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. Overrides the [input metadata][google.cloud.aiplatform.v1.ExplanationMetadata.inputs] of the features. - // The key is the name of the feature to be overridden. The keys specified - // here must exist in the input metadata to be overridden. If a feature is - // not specified here, the corresponding feature's input metadata is not - // overridden. + // Required. Overrides the [input + // metadata][google.cloud.aiplatform.v1.ExplanationMetadata.inputs] of the + // features. The key is the name of the feature to be overridden. The keys + // specified here must exist in the input metadata to be overridden. If a + // feature is not specified here, the corresponding feature's input metadata + // is not overridden. Inputs map[string]*ExplanationMetadataOverride_InputMetadataOverride `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } @@ -1397,12 +1431,13 @@ type FeatureNoiseSigma_NoiseSigmaForFeature struct { // The name of the input feature for which noise sigma is provided. The // features are defined in - // [explanation metadata inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + // [explanation metadata + // inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // This represents the standard deviation of the Gaussian kernel that will // be used to add noise to the feature prior to computing gradients. Similar - // to [noise_sigma][google.cloud.aiplatform.v1.SmoothGradConfig.noise_sigma] but represents the - // noise added to the current feature. Defaults to 0.1. + // to [noise_sigma][google.cloud.aiplatform.v1.SmoothGradConfig.noise_sigma] + // but represents the noise added to the current feature. Defaults to 0.1. Sigma float32 `protobuf:"fixed32,2,opt,name=sigma,proto3" json:"sigma,omitempty"` } @@ -1452,8 +1487,9 @@ func (x *FeatureNoiseSigma_NoiseSigmaForFeature) GetSigma() float32 { return 0 } -// The [input metadata][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata] entries to be -// overridden. +// The [input +// metadata][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata] +// entries to be overridden. type ExplanationMetadataOverride_InputMetadataOverride struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/aiplatform/apiv1/aiplatformpb/explanation_metadata.pb.go b/aiplatform/apiv1/aiplatformpb/explanation_metadata.pb.go index b1d549d17f7a..6ff735af55ae 100644 --- a/aiplatform/apiv1/aiplatformpb/explanation_metadata.pb.go +++ b/aiplatform/apiv1/aiplatformpb/explanation_metadata.pb.go @@ -46,8 +46,9 @@ const ( // The tensor represents one feature. ExplanationMetadata_InputMetadata_IDENTITY ExplanationMetadata_InputMetadata_Encoding = 1 // The tensor represents a bag of features where each index maps to - // a feature. [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.index_feature_mapping] must be provided for - // this encoding. For example: + // a feature. + // [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.index_feature_mapping] + // must be provided for this encoding. For example: // ``` // input = [27, 6.0, 150] // index_feature_mapping = ["age", "height", "weight"] @@ -55,15 +56,17 @@ const ( ExplanationMetadata_InputMetadata_BAG_OF_FEATURES ExplanationMetadata_InputMetadata_Encoding = 2 // The tensor represents a bag of features where each index maps to a // feature. Zero values in the tensor indicates feature being - // non-existent. [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.index_feature_mapping] must be provided - // for this encoding. For example: + // non-existent. + // [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.index_feature_mapping] + // must be provided for this encoding. For example: // ``` // input = [2, 0, 5, 0, 1] // index_feature_mapping = ["a", "b", "c", "d", "e"] // ``` ExplanationMetadata_InputMetadata_BAG_OF_FEATURES_SPARSE ExplanationMetadata_InputMetadata_Encoding = 3 // The tensor is a list of binaries representing whether a feature exists - // or not (1 indicates existence). [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.index_feature_mapping] + // or not (1 indicates existence). + // [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.index_feature_mapping] // must be provided for this encoding. For example: // ``` // input = [1, 0, 1, 0, 1] @@ -71,8 +74,9 @@ const ( // ``` ExplanationMetadata_InputMetadata_INDICATOR ExplanationMetadata_InputMetadata_Encoding = 4 // The tensor is encoded into a 1-dimensional array represented by an - // encoded tensor. [InputMetadata.encoded_tensor_name][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.encoded_tensor_name] must be provided - // for this encoding. For example: + // encoded tensor. + // [InputMetadata.encoded_tensor_name][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.encoded_tensor_name] + // must be provided for this encoding. For example: // ``` // input = ["This", "is", "a", "test", "."] // encoded = [0.1, 0.2, 0.3, 0.4, 0.5] @@ -80,9 +84,9 @@ const ( ExplanationMetadata_InputMetadata_COMBINED_EMBEDDING ExplanationMetadata_InputMetadata_Encoding = 5 // Select this encoding when the input tensor is encoded into a // 2-dimensional array represented by an encoded tensor. - // [InputMetadata.encoded_tensor_name][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.encoded_tensor_name] must be provided for this - // encoding. The first dimension of the encoded tensor's shape is the same - // as the input tensor's shape. For example: + // [InputMetadata.encoded_tensor_name][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.encoded_tensor_name] + // must be provided for this encoding. The first dimension of the encoded + // tensor's shape is the same as the input tensor's shape. For example: // ``` // input = ["This", "is", "a", "test", "."] // encoded = [[0.1, 0.2, 0.3, 0.4, 0.5], @@ -146,7 +150,8 @@ func (ExplanationMetadata_InputMetadata_Encoding) EnumDescriptor() ([]byte, []in } // Type of the image visualization. Only applicable to -// [Integrated Gradients attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution]. +// [Integrated Gradients +// attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution]. type ExplanationMetadata_InputMetadata_Visualization_Type int32 const ( @@ -400,17 +405,18 @@ type ExplanationMetadata struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. Map from feature names to feature input metadata. Keys are the name of the - // features. Values are the specification of the feature. + // Required. Map from feature names to feature input metadata. Keys are the + // name of the features. Values are the specification of the feature. // // An empty InputMetadata is valid. It describes a text feature which has the - // name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. The baseline - // of the empty feature is chosen by Vertex AI. + // name specified as the key in + // [ExplanationMetadata.inputs][google.cloud.aiplatform.v1.ExplanationMetadata.inputs]. + // The baseline of the empty feature is chosen by Vertex AI. // // For Vertex AI-provided Tensorflow images, the key can be any friendly // name of the feature. Once specified, - // [featureAttributions][google.cloud.aiplatform.v1.Attribution.feature_attributions] are keyed by - // this key (if not grouped with another feature). + // [featureAttributions][google.cloud.aiplatform.v1.Attribution.feature_attributions] + // are keyed by this key (if not grouped with another feature). // // For custom images, the key must match with the key in // [instance][google.cloud.aiplatform.v1.ExplainRequest.instances]. @@ -426,7 +432,8 @@ type ExplanationMetadata struct { // Currently only one key is allowed. Outputs map[string]*ExplanationMetadata_OutputMetadata `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Points to a YAML file stored on Google Cloud Storage describing the format - // of the [feature attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions]. + // of the [feature + // attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions]. // The schema is defined as an OpenAPI 3.0.2 [Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). // AutoML tabular Models always have this field populated by Vertex AI. @@ -500,8 +507,10 @@ func (x *ExplanationMetadata) GetLatentSpaceSource() string { // Metadata of the input of a feature. // -// Fields other than [InputMetadata.input_baselines][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.input_baselines] are applicable only -// for Models that are using Vertex AI-provided images for Tensorflow. +// Fields other than +// [InputMetadata.input_baselines][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.input_baselines] +// are applicable only for Models that are using Vertex AI-provided images for +// Tensorflow. type ExplanationMetadata_InputMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -511,7 +520,8 @@ type ExplanationMetadata_InputMetadata struct { // // If no baseline is specified, Vertex AI chooses the baseline for this // feature. If multiple baselines are specified, Vertex AI returns the - // average attributions across them in [Attribution.feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions]. + // average attributions across them in + // [Attribution.feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions]. // // For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape // of each baseline must match the shape of the input tensor. If a scalar is @@ -519,9 +529,9 @@ type ExplanationMetadata_InputMetadata struct { // // For custom images, the element of the baselines must be in the same // format as the feature's input in the - // [instance][google.cloud.aiplatform.v1.ExplainRequest.instances][]. The schema of any single instance - // may be specified via Endpoint's DeployedModels' - // [Model's][google.cloud.aiplatform.v1.DeployedModel.model] + // [instance][google.cloud.aiplatform.v1.ExplainRequest.instances][]. The + // schema of any single instance may be specified via Endpoint's + // DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model] // [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] // [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. InputBaselines []*structpb.Value `protobuf:"bytes,1,rep,name=input_baselines,json=inputBaselines,proto3" json:"input_baselines,omitempty"` @@ -547,14 +557,17 @@ type ExplanationMetadata_InputMetadata struct { // https://www.tensorflow.org/api_docs/python/tf/sparse/SparseTensor. DenseShapeTensorName string `protobuf:"bytes,7,opt,name=dense_shape_tensor_name,json=denseShapeTensorName,proto3" json:"dense_shape_tensor_name,omitempty"` // A list of feature names for each index in the input tensor. - // Required when the input [InputMetadata.encoding][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.encoding] is BAG_OF_FEATURES, - // BAG_OF_FEATURES_SPARSE, INDICATOR. + // Required when the input + // [InputMetadata.encoding][google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.encoding] + // is BAG_OF_FEATURES, BAG_OF_FEATURES_SPARSE, INDICATOR. IndexFeatureMapping []string `protobuf:"bytes,8,rep,name=index_feature_mapping,json=indexFeatureMapping,proto3" json:"index_feature_mapping,omitempty"` // Encoded tensor is a transformation of the input tensor. Must be provided // if choosing - // [Integrated Gradients attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution] - // or [XRAI attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution] and the - // input tensor is not differentiable. + // [Integrated Gradients + // attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution] + // or [XRAI + // attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution] + // and the input tensor is not differentiable. // // An encoded tensor is generated if the input tensor is encoded by a lookup // table. @@ -571,7 +584,8 @@ type ExplanationMetadata_InputMetadata struct { // name will be treated as one feature when computing attributions. Features // grouped together can have different shapes in value. If provided, there // will be one single attribution generated in - // [Attribution.feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions], keyed by the group name. + // [Attribution.feature_attributions][google.cloud.aiplatform.v1.Attribution.feature_attributions], + // keyed by the group name. GroupName string `protobuf:"bytes,12,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` } @@ -697,11 +711,14 @@ type ExplanationMetadata_OutputMetadata struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Defines how to map [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] to + // Defines how to map + // [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] + // to // [Attribution.output_display_name][google.cloud.aiplatform.v1.Attribution.output_display_name]. // // If neither of the fields are specified, - // [Attribution.output_display_name][google.cloud.aiplatform.v1.Attribution.output_display_name] will not be populated. + // [Attribution.output_display_name][google.cloud.aiplatform.v1.Attribution.output_display_name] + // will not be populated. // // Types that are assignable to DisplayNameMapping: // @@ -788,8 +805,10 @@ type ExplanationMetadata_OutputMetadata_IndexDisplayNameMapping struct { // // The shape of the value must be an n-dimensional array of strings. The // number of dimensions must match that of the outputs to be explained. - // The [Attribution.output_display_name][google.cloud.aiplatform.v1.Attribution.output_display_name] is populated by locating in the - // mapping with [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index]. + // The + // [Attribution.output_display_name][google.cloud.aiplatform.v1.Attribution.output_display_name] + // is populated by locating in the mapping with + // [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index]. IndexDisplayNameMapping *structpb.Value `protobuf:"bytes,1,opt,name=index_display_name_mapping,json=indexDisplayNameMapping,proto3,oneof"` } @@ -799,8 +818,9 @@ type ExplanationMetadata_OutputMetadata_DisplayNameMappingKey struct { // Use this if the prediction contains the display names for the outputs. // // The display names in the prediction must have the same shape of the - // outputs, so that it can be located by [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] for - // a specific output. + // outputs, so that it can be located by + // [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] + // for a specific output. DisplayNameMappingKey string `protobuf:"bytes,2,opt,name=display_name_mapping_key,json=displayNameMappingKey,proto3,oneof"` } @@ -904,7 +924,8 @@ type ExplanationMetadata_InputMetadata_Visualization struct { unknownFields protoimpl.UnknownFields // Type of the image visualization. Only applicable to - // [Integrated Gradients attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution]. + // [Integrated Gradients + // attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution]. // OUTLINES shows regions of attribution, while PIXELS shows per-pixel // attribution. Defaults to OUTLINES. Type ExplanationMetadata_InputMetadata_Visualization_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.aiplatform.v1.ExplanationMetadata_InputMetadata_Visualization_Type" json:"type,omitempty"` @@ -914,12 +935,14 @@ type ExplanationMetadata_InputMetadata_Visualization struct { // The color scheme used for the highlighted areas. // // Defaults to PINK_GREEN for - // [Integrated Gradients attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution], + // [Integrated Gradients + // attribution][google.cloud.aiplatform.v1.ExplanationParameters.integrated_gradients_attribution], // which shows positive attributions in green and negative in pink. // // Defaults to VIRIDIS for - // [XRAI attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution], which - // highlights the most influential regions in yellow and the least + // [XRAI + // attribution][google.cloud.aiplatform.v1.ExplanationParameters.xrai_attribution], + // which highlights the most influential regions in yellow and the least // influential in blue. ColorMap ExplanationMetadata_InputMetadata_Visualization_ColorMap `protobuf:"varint,3,opt,name=color_map,json=colorMap,proto3,enum=google.cloud.aiplatform.v1.ExplanationMetadata_InputMetadata_Visualization_ColorMap" json:"color_map,omitempty"` // Excludes attributions above the specified percentile from the diff --git a/aiplatform/apiv1/aiplatformpb/feature.pb.go b/aiplatform/apiv1/aiplatformpb/feature.pb.go index d8e065451407..1af40ddd1c65 100644 --- a/aiplatform/apiv1/aiplatformpb/feature.pb.go +++ b/aiplatform/apiv1/aiplatformpb/feature.pb.go @@ -214,15 +214,16 @@ type Feature struct { // Used to perform a consistent read-modify-write updates. If not set, a blind // "overwrite" update happens. Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"` - // Optional. If not set, use the monitoring_config defined for the EntityType this - // Feature belongs to. - // Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, STRING, DOUBLE or - // INT64 can enable monitoring. + // Optional. If not set, use the monitoring_config defined for the EntityType + // this Feature belongs to. Only Features with type + // ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL, + // STRING, DOUBLE or INT64 can enable monitoring. // // If set to true, all types of data monitoring are disabled despite the // config on EntityType. DisableMonitoring bool `protobuf:"varint,12,opt,name=disable_monitoring,json=disableMonitoring,proto3" json:"disable_monitoring,omitempty"` - // Output only. The list of historical stats and anomalies with specified objectives. + // Output only. The list of historical stats and anomalies with specified + // objectives. MonitoringStatsAnomalies []*Feature_MonitoringStatsAnomaly `protobuf:"bytes,11,rep,name=monitoring_stats_anomalies,json=monitoringStatsAnomalies,proto3" json:"monitoring_stats_anomalies,omitempty"` } @@ -324,7 +325,9 @@ func (x *Feature) GetMonitoringStatsAnomalies() []*Feature_MonitoringStatsAnomal // A list of historical [Snapshot // Analysis][FeaturestoreMonitoringConfig.SnapshotAnalysis] or [Import Feature // Analysis] [FeaturestoreMonitoringConfig.ImportFeatureAnalysis] stats -// requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1.FeatureStatsAnomaly.start_time] descending. +// requested by user, sorted by +// [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1.FeatureStatsAnomaly.start_time] +// descending. type Feature_MonitoringStatsAnomaly struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/aiplatform/apiv1/aiplatformpb/feature_monitoring_stats.pb.go b/aiplatform/apiv1/aiplatformpb/feature_monitoring_stats.pb.go index cdff42b8d70a..b3e59ac96032 100644 --- a/aiplatform/apiv1/aiplatformpb/feature_monitoring_stats.pb.go +++ b/aiplatform/apiv1/aiplatformpb/feature_monitoring_stats.pb.go @@ -53,7 +53,8 @@ type FeatureStatsAnomaly struct { // Feature importance score, only populated when cross-feature monitoring is // enabled. For now only used to represent feature attribution score within // range [0, 1] for - // [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW][google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW] and + // [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW][google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW] + // and // [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT][google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT]. Score float64 `protobuf:"fixed64,1,opt,name=score,proto3" json:"score,omitempty"` // Path of the stats file for current feature values in Cloud Storage bucket. diff --git a/aiplatform/apiv1/aiplatformpb/featurestore.pb.go b/aiplatform/apiv1/aiplatformpb/featurestore.pb.go index 04a3b3368450..b84c36ebe54a 100644 --- a/aiplatform/apiv1/aiplatformpb/featurestore.pb.go +++ b/aiplatform/apiv1/aiplatformpb/featurestore.pb.go @@ -116,10 +116,11 @@ type Featurestore struct { CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when this Featurestore was last updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // Optional. Used to perform consistent read-modify-write updates. If not set, a blind - // "overwrite" update happens. + // Optional. Used to perform consistent read-modify-write updates. If not set, + // a blind "overwrite" update happens. Etag string `protobuf:"bytes,5,opt,name=etag,proto3" json:"etag,omitempty"` - // Optional. The labels with user-defined metadata to organize your Featurestore. + // Optional. The labels with user-defined metadata to organize your + // Featurestore. // // Label keys and values can be no longer than 64 characters // (Unicode codepoints), can only contain lowercase letters, numeric @@ -131,15 +132,15 @@ type Featurestore struct { // System reserved label keys are prefixed with "aiplatform.googleapis.com/" // and are immutable. 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"` - // Optional. Config for online storage resources. The field should not co-exist with the - // field of `OnlineStoreReplicationConfig`. If both of it and - // OnlineStoreReplicationConfig are unset, the feature store will not have an - // online store and cannot be used for online serving. + // Optional. Config for online storage resources. The field should not + // co-exist with the field of `OnlineStoreReplicationConfig`. If both of it + // and OnlineStoreReplicationConfig are unset, the feature store will not have + // an online store and cannot be used for online serving. OnlineServingConfig *Featurestore_OnlineServingConfig `protobuf:"bytes,7,opt,name=online_serving_config,json=onlineServingConfig,proto3" json:"online_serving_config,omitempty"` // Output only. State of the featurestore. State Featurestore_State `protobuf:"varint,8,opt,name=state,proto3,enum=google.cloud.aiplatform.v1.Featurestore_State" json:"state,omitempty"` - // Optional. Customer-managed encryption key spec for data storage. If set, both of the - // online and offline data storage will be secured by this key. + // Optional. Customer-managed encryption key spec for data storage. If set, + // both of the online and offline data storage will be secured by this key. EncryptionSpec *EncryptionSpec `protobuf:"bytes,10,opt,name=encryption_spec,json=encryptionSpec,proto3" json:"encryption_spec,omitempty"` } @@ -303,8 +304,8 @@ type Featurestore_OnlineServingConfig_Scaling struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The minimum number of nodes to scale down to. Must be greater than or - // equal to 1. + // Required. The minimum number of nodes to scale down to. Must be greater + // than or equal to 1. MinNodeCount int32 `protobuf:"varint,1,opt,name=min_node_count,json=minNodeCount,proto3" json:"min_node_count,omitempty"` // The maximum number of nodes to scale up to. Must be greater than // min_node_count, and less than or equal to 10 times of 'min_node_count'. diff --git a/aiplatform/apiv1/aiplatformpb/featurestore_monitoring.pb.go b/aiplatform/apiv1/aiplatformpb/featurestore_monitoring.pb.go index 3dce959a7a75..a44903e24541 100644 --- a/aiplatform/apiv1/aiplatformpb/featurestore_monitoring.pb.go +++ b/aiplatform/apiv1/aiplatformpb/featurestore_monitoring.pb.go @@ -175,11 +175,15 @@ type FeaturestoreMonitoringConfig struct { ImportFeaturesAnalysis *FeaturestoreMonitoringConfig_ImportFeaturesAnalysis `protobuf:"bytes,2,opt,name=import_features_analysis,json=importFeaturesAnalysis,proto3" json:"import_features_analysis,omitempty"` // Threshold for numerical features of anomaly detection. // This is shared by all objectives of Featurestore Monitoring for numerical - // features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE or INT64). + // features (i.e. Features with type + // ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) DOUBLE + // or INT64). NumericalThresholdConfig *FeaturestoreMonitoringConfig_ThresholdConfig `protobuf:"bytes,3,opt,name=numerical_threshold_config,json=numericalThresholdConfig,proto3" json:"numerical_threshold_config,omitempty"` // Threshold for categorical features of anomaly detection. // This is shared by all types of Featurestore Monitoring for categorical - // features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or STRING). + // features (i.e. Features with type + // ([Feature.ValueType][google.cloud.aiplatform.v1.Feature.ValueType]) BOOL or + // STRING). CategoricalThresholdConfig *FeaturestoreMonitoringConfig_ThresholdConfig `protobuf:"bytes,4,opt,name=categorical_threshold_config,json=categoricalThresholdConfig,proto3" json:"categorical_threshold_config,omitempty"` } diff --git a/aiplatform/apiv1/aiplatformpb/featurestore_online_service.pb.go b/aiplatform/apiv1/aiplatformpb/featurestore_online_service.pb.go index e5c6383f8ebd..bc4331fa0aaa 100644 --- a/aiplatform/apiv1/aiplatformpb/featurestore_online_service.pb.go +++ b/aiplatform/apiv1/aiplatformpb/featurestore_online_service.pb.go @@ -41,20 +41,22 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.WriteFeatureValues]. +// Request message for +// [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.WriteFeatureValues]. type WriteFeatureValuesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the EntityType for the entities being written. - // Value format: `projects/{project}/locations/{location}/featurestores/ + // Required. The resource name of the EntityType for the entities being + // written. Value format: + // `projects/{project}/locations/{location}/featurestores/ // {featurestore}/entityTypes/{entityType}`. For example, // for a machine learning model predicting user clicks on a website, an // EntityType ID could be `user`. EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - // Required. The entities to be written. Up to 100,000 feature values can be written - // across all `payloads`. + // Required. The entities to be written. Up to 100,000 feature values can be + // written across all `payloads`. Payloads []*WriteFeatureValuesPayload `protobuf:"bytes,2,rep,name=payloads,proto3" json:"payloads,omitempty"` } @@ -112,9 +114,9 @@ type WriteFeatureValuesPayload struct { // Required. The ID of the entity. EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` - // Required. Feature values to be written, mapping from Feature ID to value. Up to - // 100,000 `feature_values` entries may be written across all payloads. The - // feature generation time, aligned by days, must be no older than five + // Required. Feature values to be written, mapping from Feature ID to value. + // Up to 100,000 `feature_values` entries may be written across all payloads. + // The feature generation time, aligned by days, must be no older than five // years (1825 days) and no later than one year (366 days) in the future. FeatureValues map[string]*FeatureValue `protobuf:"bytes,2,rep,name=feature_values,json=featureValues,proto3" json:"feature_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } @@ -165,7 +167,8 @@ func (x *WriteFeatureValuesPayload) GetFeatureValues() map[string]*FeatureValue return nil } -// Response message for [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.WriteFeatureValues]. +// Response message for +// [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.WriteFeatureValues]. type WriteFeatureValuesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -204,7 +207,8 @@ func (*WriteFeatureValuesResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1_featurestore_online_service_proto_rawDescGZIP(), []int{2} } -// Request message for [FeaturestoreOnlineServingService.ReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.ReadFeatureValues]. +// Request message for +// [FeaturestoreOnlineServingService.ReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.ReadFeatureValues]. type ReadFeatureValuesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -277,7 +281,8 @@ func (x *ReadFeatureValuesRequest) GetFeatureSelector() *FeatureSelector { return nil } -// Response message for [FeaturestoreOnlineServingService.ReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.ReadFeatureValues]. +// Response message for +// [FeaturestoreOnlineServingService.ReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.ReadFeatureValues]. type ReadFeatureValuesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -352,12 +357,12 @@ type StreamingReadFeatureValuesRequest struct { // for a machine learning model predicting user clicks on a website, an // EntityType ID could be `user`. EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - // Required. IDs of entities to read Feature values of. The maximum number of IDs is - // 100. For example, for a machine learning model predicting user clicks on a - // website, an entity ID could be `user_123`. + // Required. IDs of entities to read Feature values of. The maximum number of + // IDs is 100. For example, for a machine learning model predicting user + // clicks on a website, an entity ID could be `user_123`. EntityIds []string `protobuf:"bytes,2,rep,name=entity_ids,json=entityIds,proto3" json:"entity_ids,omitempty"` - // Required. Selector choosing Features of the target EntityType. Feature IDs will be - // deduplicated. + // Required. Selector choosing Features of the target EntityType. Feature IDs + // will be deduplicated. FeatureSelector *FeatureSelector `protobuf:"bytes,3,opt,name=feature_selector,json=featureSelector,proto3" json:"feature_selector,omitempty"` } @@ -713,14 +718,16 @@ func (x *ReadFeatureValuesResponse_FeatureDescriptor) GetId() string { } // Response header with metadata for the requested -// [ReadFeatureValuesRequest.entity_type][google.cloud.aiplatform.v1.ReadFeatureValuesRequest.entity_type] and Features. +// [ReadFeatureValuesRequest.entity_type][google.cloud.aiplatform.v1.ReadFeatureValuesRequest.entity_type] +// and Features. type ReadFeatureValuesResponse_Header struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The resource name of the EntityType from the - // [ReadFeatureValuesRequest][google.cloud.aiplatform.v1.ReadFeatureValuesRequest]. Value format: + // [ReadFeatureValuesRequest][google.cloud.aiplatform.v1.ReadFeatureValuesRequest]. + // Value format: // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` // List of Feature metadata corresponding to each piece of @@ -786,7 +793,8 @@ type ReadFeatureValuesResponse_EntityView struct { // requested values for one requested Feature. If no values // for the requested Feature exist, the corresponding cell will be empty. // This has the same size and is in the same order as the features from the - // header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1.ReadFeatureValuesResponse.header]. + // header + // [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1.ReadFeatureValuesResponse.header]. Data []*ReadFeatureValuesResponse_EntityView_Data `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` } diff --git a/aiplatform/apiv1/aiplatformpb/featurestore_service.pb.go b/aiplatform/apiv1/aiplatformpb/featurestore_service.pb.go index 939fefe43c2c..16f78144a686 100644 --- a/aiplatform/apiv1/aiplatformpb/featurestore_service.pb.go +++ b/aiplatform/apiv1/aiplatformpb/featurestore_service.pb.go @@ -43,7 +43,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [FeaturestoreService.CreateFeaturestore][google.cloud.aiplatform.v1.FeaturestoreService.CreateFeaturestore]. +// Request message for +// [FeaturestoreService.CreateFeaturestore][google.cloud.aiplatform.v1.FeaturestoreService.CreateFeaturestore]. type CreateFeaturestoreRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -55,8 +56,8 @@ type CreateFeaturestoreRequest struct { Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The Featurestore to create. Featurestore *Featurestore `protobuf:"bytes,2,opt,name=featurestore,proto3" json:"featurestore,omitempty"` - // Required. The ID to use for this Featurestore, which will become the final component - // of the Featurestore's resource name. + // Required. The ID to use for this Featurestore, which will become the final + // component of the Featurestore's resource name. // // This value may be up to 60 characters, and valid characters are // `[a-z0-9_]`. The first character cannot be a number. @@ -118,7 +119,8 @@ func (x *CreateFeaturestoreRequest) GetFeaturestoreId() string { return "" } -// Request message for [FeaturestoreService.GetFeaturestore][google.cloud.aiplatform.v1.FeaturestoreService.GetFeaturestore]. +// Request message for +// [FeaturestoreService.GetFeaturestore][google.cloud.aiplatform.v1.FeaturestoreService.GetFeaturestore]. type GetFeaturestoreRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -167,7 +169,8 @@ func (x *GetFeaturestoreRequest) GetName() string { return "" } -// Request message for [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturestores]. +// Request message for +// [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturestores]. type ListFeaturestoresRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -207,12 +210,12 @@ type ListFeaturestoresRequest struct { // coerced to 100. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturestores] call. - // Provide this to retrieve the subsequent page. + // [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturestores] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturestores] must - // match the call that provided the page token. + // [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturestores] + // must match the call that provided the page token. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // A comma-separated list of fields to order by, sorted in ascending order. // Use "desc" after a field name for descending. @@ -300,7 +303,8 @@ func (x *ListFeaturestoresRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturestores]. +// Response message for +// [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturestores]. type ListFeaturestoresResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -308,9 +312,10 @@ type ListFeaturestoresResponse struct { // The Featurestores matching the request. Featurestores []*Featurestore `protobuf:"bytes,1,rep,name=featurestores,proto3" json:"featurestores,omitempty"` - // A token, which can be sent as [ListFeaturestoresRequest.page_token][google.cloud.aiplatform.v1.ListFeaturestoresRequest.page_token] to - // retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // A token, which can be sent as + // [ListFeaturestoresRequest.page_token][google.cloud.aiplatform.v1.ListFeaturestoresRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -360,15 +365,15 @@ func (x *ListFeaturestoresResponse) GetNextPageToken() string { return "" } -// Request message for [FeaturestoreService.UpdateFeaturestore][google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeaturestore]. +// Request message for +// [FeaturestoreService.UpdateFeaturestore][google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeaturestore]. type UpdateFeaturestoreRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The Featurestore's `name` field is used to identify the Featurestore to be - // updated. - // Format: + // Required. The Featurestore's `name` field is used to identify the + // Featurestore to be updated. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}` Featurestore *Featurestore `protobuf:"bytes,1,opt,name=featurestore,proto3" json:"featurestore,omitempty"` // Field mask is used to specify the fields to be overwritten in the @@ -384,6 +389,7 @@ type UpdateFeaturestoreRequest struct { // - `labels` // - `online_serving_config.fixed_node_count` // - `online_serving_config.scaling` + // - `online_storage_ttl_days` (available in Preview) UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } @@ -433,7 +439,8 @@ func (x *UpdateFeaturestoreRequest) GetUpdateMask() *fieldmaskpb.FieldMask { return nil } -// Request message for [FeaturestoreService.DeleteFeaturestore][google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeaturestore]. +// Request message for +// [FeaturestoreService.DeleteFeaturestore][google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeaturestore]. type DeleteFeaturestoreRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -495,7 +502,8 @@ func (x *DeleteFeaturestoreRequest) GetForce() bool { return false } -// Request message for [FeaturestoreService.ImportFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.ImportFeatureValues]. +// Request message for +// [FeaturestoreService.ImportFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.ImportFeatureValues]. type ImportFeatureValuesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -518,16 +526,16 @@ type ImportFeatureValuesRequest struct { // *ImportFeatureValuesRequest_FeatureTimeField // *ImportFeatureValuesRequest_FeatureTime FeatureTimeSource isImportFeatureValuesRequest_FeatureTimeSource `protobuf_oneof:"feature_time_source"` - // Required. The resource name of the EntityType grouping the Features for which values - // are being imported. Format: + // Required. The resource name of the EntityType grouping the Features for + // which values are being imported. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` // Source column that holds entity IDs. If not provided, entity IDs are // extracted from the column named `entity_id`. EntityIdField string `protobuf:"bytes,5,opt,name=entity_id_field,json=entityIdField,proto3" json:"entity_id_field,omitempty"` - // Required. Specifications defining which Feature values to import from the entity. The - // request fails if no feature_specs are provided, and having multiple - // feature_specs for one Feature is not allowed. + // Required. Specifications defining which Feature values to import from the + // entity. The request fails if no feature_specs are provided, and having + // multiple feature_specs for one Feature is not allowed. FeatureSpecs []*ImportFeatureValuesRequest_FeatureSpec `protobuf:"bytes,8,rep,name=feature_specs,json=featureSpecs,proto3" json:"feature_specs,omitempty"` // If set, data will not be imported for online serving. This // is typically used for backfilling, where Feature generation timestamps are @@ -710,7 +718,8 @@ func (*ImportFeatureValuesRequest_FeatureTimeField) isImportFeatureValuesRequest func (*ImportFeatureValuesRequest_FeatureTime) isImportFeatureValuesRequest_FeatureTimeSource() {} -// Response message for [FeaturestoreService.ImportFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.ImportFeatureValues]. +// Response message for +// [FeaturestoreService.ImportFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.ImportFeatureValues]. type ImportFeatureValuesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -791,7 +800,8 @@ func (x *ImportFeatureValuesResponse) GetTimestampOutsideRetentionRowsCount() in return 0 } -// Request message for [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.BatchReadFeatureValues]. +// Request message for +// [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.BatchReadFeatureValues]. type BatchReadFeatureValuesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -802,8 +812,8 @@ type BatchReadFeatureValuesRequest struct { // *BatchReadFeatureValuesRequest_CsvReadInstances // *BatchReadFeatureValuesRequest_BigqueryReadInstances ReadOption isBatchReadFeatureValuesRequest_ReadOption `protobuf_oneof:"read_option"` - // Required. The resource name of the Featurestore from which to query Feature values. - // Format: + // Required. The resource name of the Featurestore from which to query Feature + // values. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}` Featurestore string `protobuf:"bytes,1,opt,name=featurestore,proto3" json:"featurestore,omitempty"` // Required. Specifies output location and format. @@ -816,14 +826,14 @@ type BatchReadFeatureValuesRequest struct { // automatically inferred. For CSV source, the pass-through values will be // passed as opaque bytes. PassThroughFields []*BatchReadFeatureValuesRequest_PassThroughField `protobuf:"bytes,8,rep,name=pass_through_fields,json=passThroughFields,proto3" json:"pass_through_fields,omitempty"` - // Required. Specifies EntityType grouping Features to read values of and settings. - // Each EntityType referenced in + // Required. Specifies EntityType grouping Features to read values of and + // settings. Each EntityType referenced in // [BatchReadFeatureValuesRequest.entity_type_specs] must have a column // specifying entity IDs in the EntityType in // [BatchReadFeatureValuesRequest.request][] . EntityTypeSpecs []*BatchReadFeatureValuesRequest_EntityTypeSpec `protobuf:"bytes,7,rep,name=entity_type_specs,json=entityTypeSpecs,proto3" json:"entity_type_specs,omitempty"` - // Optional. Excludes Feature values with feature generation timestamp before this - // timestamp. If not set, retrieve oldest values kept in Feature Store. + // Optional. Excludes Feature values with feature generation timestamp before + // this timestamp. If not set, retrieve oldest values kept in Feature Store. // Timestamp, if present, must not have higher than millisecond precision. StartTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` } @@ -959,7 +969,8 @@ func (*BatchReadFeatureValuesRequest_CsvReadInstances) isBatchReadFeatureValuesR func (*BatchReadFeatureValuesRequest_BigqueryReadInstances) isBatchReadFeatureValuesRequest_ReadOption() { } -// Request message for [FeaturestoreService.ExportFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.ExportFeatureValues]. +// Request message for +// [FeaturestoreService.ExportFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.ExportFeatureValues]. type ExportFeatureValuesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -972,8 +983,8 @@ type ExportFeatureValuesRequest struct { // *ExportFeatureValuesRequest_SnapshotExport_ // *ExportFeatureValuesRequest_FullExport_ Mode isExportFeatureValuesRequest_Mode `protobuf_oneof:"mode"` - // Required. The resource name of the EntityType from which to export Feature values. - // Format: + // Required. The resource name of the EntityType from which to export Feature + // values. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` // Required. Specifies destination location and format. @@ -1223,8 +1234,10 @@ type isFeatureValueDestination_Destination interface { type FeatureValueDestination_BigqueryDestination struct { // Output in BigQuery format. - // [BigQueryDestination.output_uri][google.cloud.aiplatform.v1.BigQueryDestination.output_uri] in - // [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1.FeatureValueDestination.bigquery_destination] must refer to a table. + // [BigQueryDestination.output_uri][google.cloud.aiplatform.v1.BigQueryDestination.output_uri] + // in + // [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1.FeatureValueDestination.bigquery_destination] + // must refer to a table. BigqueryDestination *BigQueryDestination `protobuf:"bytes,1,opt,name=bigquery_destination,json=bigqueryDestination,proto3,oneof"` } @@ -1255,7 +1268,8 @@ func (*FeatureValueDestination_TfrecordDestination) isFeatureValueDestination_De func (*FeatureValueDestination_CsvDestination) isFeatureValueDestination_Destination() {} -// Response message for [FeaturestoreService.ExportFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.ExportFeatureValues]. +// Response message for +// [FeaturestoreService.ExportFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.ExportFeatureValues]. type ExportFeatureValuesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1294,7 +1308,8 @@ func (*ExportFeatureValuesResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1_featurestore_service_proto_rawDescGZIP(), []int{12} } -// Response message for [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.BatchReadFeatureValues]. +// Response message for +// [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1.FeaturestoreService.BatchReadFeatureValues]. type BatchReadFeatureValuesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1333,7 +1348,8 @@ func (*BatchReadFeatureValuesResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1_featurestore_service_proto_rawDescGZIP(), []int{13} } -// Request message for [FeaturestoreService.CreateEntityType][google.cloud.aiplatform.v1.FeaturestoreService.CreateEntityType]. +// Request message for +// [FeaturestoreService.CreateEntityType][google.cloud.aiplatform.v1.FeaturestoreService.CreateEntityType]. type CreateEntityTypeRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1345,8 +1361,8 @@ type CreateEntityTypeRequest struct { Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The EntityType to create. EntityType *EntityType `protobuf:"bytes,2,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - // Required. The ID to use for the EntityType, which will become the final component of - // the EntityType's resource name. + // Required. The ID to use for the EntityType, which will become the final + // component of the EntityType's resource name. // // This value may be up to 60 characters, and valid characters are // `[a-z0-9_]`. The first character cannot be a number. @@ -1408,7 +1424,8 @@ func (x *CreateEntityTypeRequest) GetEntityTypeId() string { return "" } -// Request message for [FeaturestoreService.GetEntityType][google.cloud.aiplatform.v1.FeaturestoreService.GetEntityType]. +// Request message for +// [FeaturestoreService.GetEntityType][google.cloud.aiplatform.v1.FeaturestoreService.GetEntityType]. type GetEntityTypeRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1459,7 +1476,8 @@ func (x *GetEntityTypeRequest) GetName() string { return "" } -// Request message for [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1.FeaturestoreService.ListEntityTypes]. +// Request message for +// [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1.FeaturestoreService.ListEntityTypes]. type ListEntityTypesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1494,12 +1512,12 @@ type ListEntityTypesRequest struct { // 1000. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1.FeaturestoreService.ListEntityTypes] call. - // Provide this to retrieve the subsequent page. + // [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1.FeaturestoreService.ListEntityTypes] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1.FeaturestoreService.ListEntityTypes] must - // match the call that provided the page token. + // [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1.FeaturestoreService.ListEntityTypes] + // must match the call that provided the page token. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // A comma-separated list of fields to order by, sorted in ascending order. // Use "desc" after a field name for descending. @@ -1588,7 +1606,8 @@ func (x *ListEntityTypesRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1.FeaturestoreService.ListEntityTypes]. +// Response message for +// [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1.FeaturestoreService.ListEntityTypes]. type ListEntityTypesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1596,9 +1615,10 @@ type ListEntityTypesResponse struct { // The EntityTypes matching the request. EntityTypes []*EntityType `protobuf:"bytes,1,rep,name=entity_types,json=entityTypes,proto3" json:"entity_types,omitempty"` - // A token, which can be sent as [ListEntityTypesRequest.page_token][google.cloud.aiplatform.v1.ListEntityTypesRequest.page_token] to - // retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // A token, which can be sent as + // [ListEntityTypesRequest.page_token][google.cloud.aiplatform.v1.ListEntityTypesRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -1648,15 +1668,15 @@ func (x *ListEntityTypesResponse) GetNextPageToken() string { return "" } -// Request message for [FeaturestoreService.UpdateEntityType][google.cloud.aiplatform.v1.FeaturestoreService.UpdateEntityType]. +// Request message for +// [FeaturestoreService.UpdateEntityType][google.cloud.aiplatform.v1.FeaturestoreService.UpdateEntityType]. type UpdateEntityTypeRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The EntityType's `name` field is used to identify the EntityType to be - // updated. - // Format: + // Required. The EntityType's `name` field is used to identify the EntityType + // to be updated. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` EntityType *EntityType `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` // Field mask is used to specify the fields to be overwritten in the @@ -1678,6 +1698,7 @@ type UpdateEntityTypeRequest struct { // - `monitoring_config.import_features_analysis.anomaly_detection_baseline` // - `monitoring_config.numerical_threshold_config.value` // - `monitoring_config.categorical_threshold_config.value` + // - `offline_storage_ttl_days` (available in Preview) UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } @@ -1788,7 +1809,8 @@ func (x *DeleteEntityTypeRequest) GetForce() bool { return false } -// Request message for [FeaturestoreService.CreateFeature][google.cloud.aiplatform.v1.FeaturestoreService.CreateFeature]. +// Request message for +// [FeaturestoreService.CreateFeature][google.cloud.aiplatform.v1.FeaturestoreService.CreateFeature]. type CreateFeatureRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1800,8 +1822,8 @@ type CreateFeatureRequest struct { Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The Feature to create. Feature *Feature `protobuf:"bytes,2,opt,name=feature,proto3" json:"feature,omitempty"` - // Required. The ID to use for the Feature, which will become the final component of - // the Feature's resource name. + // Required. The ID to use for the Feature, which will become the final + // component of the Feature's resource name. // // This value may be up to 128 characters, and valid characters are // `[a-z0-9_]`. The first character cannot be a number. @@ -1863,20 +1885,22 @@ func (x *CreateFeatureRequest) GetFeatureId() string { return "" } -// Request message for [FeaturestoreService.BatchCreateFeatures][google.cloud.aiplatform.v1.FeaturestoreService.BatchCreateFeatures]. +// Request message for +// [FeaturestoreService.BatchCreateFeatures][google.cloud.aiplatform.v1.FeaturestoreService.BatchCreateFeatures]. type BatchCreateFeaturesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the EntityType to create the batch of Features under. - // Format: + // Required. The resource name of the EntityType to create the batch of + // Features under. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The request message specifying the Features to create. All Features must be - // created under the same parent EntityType. The `parent` field in each child - // request message can be omitted. If `parent` is set in a child request, then - // the value must match the `parent` value in this request message. + // Required. The request message specifying the Features to create. All + // Features must be created under the same parent EntityType. The `parent` + // field in each child request message can be omitted. If `parent` is set in a + // child request, then the value must match the `parent` value in this request + // message. Requests []*CreateFeatureRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"` } @@ -1926,7 +1950,8 @@ func (x *BatchCreateFeaturesRequest) GetRequests() []*CreateFeatureRequest { return nil } -// Response message for [FeaturestoreService.BatchCreateFeatures][google.cloud.aiplatform.v1.FeaturestoreService.BatchCreateFeatures]. +// Response message for +// [FeaturestoreService.BatchCreateFeatures][google.cloud.aiplatform.v1.FeaturestoreService.BatchCreateFeatures]. type BatchCreateFeaturesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1975,7 +2000,8 @@ func (x *BatchCreateFeaturesResponse) GetFeatures() []*Feature { return nil } -// Request message for [FeaturestoreService.GetFeature][google.cloud.aiplatform.v1.FeaturestoreService.GetFeature]. +// Request message for +// [FeaturestoreService.GetFeature][google.cloud.aiplatform.v1.FeaturestoreService.GetFeature]. type GetFeatureRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2026,7 +2052,8 @@ func (x *GetFeatureRequest) GetName() string { return "" } -// Request message for [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures]. +// Request message for +// [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures]. type ListFeaturesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2063,12 +2090,12 @@ type ListFeaturesRequest struct { // 1000. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures] call. - // Provide this to retrieve the subsequent page. + // [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures] must - // match the call that provided the page token. + // [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures] + // must match the call that provided the page token. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // A comma-separated list of fields to order by, sorted in ascending order. // Use "desc" after a field name for descending. @@ -2081,10 +2108,12 @@ type ListFeaturesRequest struct { OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,6,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` - // If set, return the most recent [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1.ListFeaturesRequest.latest_stats_count] + // If set, return the most recent + // [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1.ListFeaturesRequest.latest_stats_count] // of stats for each Feature in response. Valid value is [0, 10]. If number of - // stats exists < [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1.ListFeaturesRequest.latest_stats_count], return all - // existing stats. + // stats exists < + // [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1.ListFeaturesRequest.latest_stats_count], + // return all existing stats. LatestStatsCount int32 `protobuf:"varint,7,opt,name=latest_stats_count,json=latestStatsCount,proto3" json:"latest_stats_count,omitempty"` } @@ -2169,7 +2198,8 @@ func (x *ListFeaturesRequest) GetLatestStatsCount() int32 { return 0 } -// Response message for [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures]. +// Response message for +// [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures]. type ListFeaturesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2177,9 +2207,10 @@ type ListFeaturesResponse struct { // The Features matching the request. Features []*Feature `protobuf:"bytes,1,rep,name=features,proto3" json:"features,omitempty"` - // A token, which can be sent as [ListFeaturesRequest.page_token][google.cloud.aiplatform.v1.ListFeaturesRequest.page_token] to - // retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // A token, which can be sent as + // [ListFeaturesRequest.page_token][google.cloud.aiplatform.v1.ListFeaturesRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -2229,7 +2260,8 @@ func (x *ListFeaturesResponse) GetNextPageToken() string { return "" } -// Request message for [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1.FeaturestoreService.SearchFeatures]. +// Request message for +// [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1.FeaturestoreService.SearchFeatures]. type SearchFeaturesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2304,12 +2336,12 @@ type SearchFeaturesRequest struct { // 100. PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1.FeaturestoreService.SearchFeatures] call. - // Provide this to retrieve the subsequent page. + // [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1.FeaturestoreService.SearchFeatures] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1.FeaturestoreService.SearchFeatures], except `page_size`, must - // match the call that provided the page token. + // [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1.FeaturestoreService.SearchFeatures], + // except `page_size`, must match the call that provided the page token. PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` } @@ -2373,7 +2405,8 @@ func (x *SearchFeaturesRequest) GetPageToken() string { return "" } -// Response message for [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1.FeaturestoreService.SearchFeatures]. +// Response message for +// [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1.FeaturestoreService.SearchFeatures]. type SearchFeaturesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2389,9 +2422,10 @@ type SearchFeaturesResponse struct { // - `create_time` // - `update_time` Features []*Feature `protobuf:"bytes,1,rep,name=features,proto3" json:"features,omitempty"` - // A token, which can be sent as [SearchFeaturesRequest.page_token][google.cloud.aiplatform.v1.SearchFeaturesRequest.page_token] to - // retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // A token, which can be sent as + // [SearchFeaturesRequest.page_token][google.cloud.aiplatform.v1.SearchFeaturesRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -2441,7 +2475,8 @@ func (x *SearchFeaturesResponse) GetNextPageToken() string { return "" } -// Request message for [FeaturestoreService.UpdateFeature][google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeature]. +// Request message for +// [FeaturestoreService.UpdateFeature][google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeature]. type UpdateFeatureRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2514,7 +2549,8 @@ func (x *UpdateFeatureRequest) GetUpdateMask() *fieldmaskpb.FieldMask { return nil } -// Request message for [FeaturestoreService.DeleteFeature][google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeature]. +// Request message for +// [FeaturestoreService.DeleteFeature][google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeature]. type DeleteFeatureRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3013,8 +3049,8 @@ type ImportFeatureValuesRequest_FeatureSpec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. ID of the Feature to import values of. This Feature must exist in the - // target EntityType, or the request will fail. + // Required. ID of the Feature to import values of. This Feature must exist + // in the target EntityType, or the request will fail. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Source column to get the Feature values from. If not set, uses the column // with the same name as the Feature ID. @@ -3073,8 +3109,9 @@ type BatchReadFeatureValuesRequest_PassThroughField struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The name of the field in the CSV header or the name of the column in - // BigQuery table. The naming restriction is the same as [Feature.name][google.cloud.aiplatform.v1.Feature.name]. + // Required. The name of the field in the CSV header or the name of the + // column in BigQuery table. The naming restriction is the same as + // [Feature.name][google.cloud.aiplatform.v1.Feature.name]. FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` } @@ -3124,11 +3161,13 @@ type BatchReadFeatureValuesRequest_EntityTypeSpec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. ID of the EntityType to select Features. The EntityType id is the - // [entity_type_id][google.cloud.aiplatform.v1.CreateEntityTypeRequest.entity_type_id] specified - // during EntityType creation. + // Required. ID of the EntityType to select Features. The EntityType id is + // the + // [entity_type_id][google.cloud.aiplatform.v1.CreateEntityTypeRequest.entity_type_id] + // specified during EntityType creation. EntityTypeId string `protobuf:"bytes,1,opt,name=entity_type_id,json=entityTypeId,proto3" json:"entity_type_id,omitempty"` - // Required. Selectors choosing which Feature values to read from the EntityType. + // Required. Selectors choosing which Feature values to read from the + // EntityType. FeatureSelector *FeatureSelector `protobuf:"bytes,2,opt,name=feature_selector,json=featureSelector,proto3" json:"feature_selector,omitempty"` // Per-Feature settings for the batch read. Settings []*DestinationFeatureSetting `protobuf:"bytes,3,rep,name=settings,proto3" json:"settings,omitempty"` diff --git a/aiplatform/apiv1/aiplatformpb/hyperparameter_tuning_job.pb.go b/aiplatform/apiv1/aiplatformpb/hyperparameter_tuning_job.pb.go index 3190607dca82..5d84c50fee86 100644 --- a/aiplatform/apiv1/aiplatformpb/hyperparameter_tuning_job.pb.go +++ b/aiplatform/apiv1/aiplatformpb/hyperparameter_tuning_job.pb.go @@ -64,8 +64,8 @@ type HyperparameterTuningJob struct { // If set to 0, Vertex AI decides how many Trials must fail // before the whole job fails. MaxFailedTrialCount int32 `protobuf:"varint,7,opt,name=max_failed_trial_count,json=maxFailedTrialCount,proto3" json:"max_failed_trial_count,omitempty"` - // Required. The spec of a trial job. The same spec applies to the CustomJobs created - // in all the trials. + // Required. The spec of a trial job. The same spec applies to the CustomJobs + // created in all the trials. TrialJobSpec *CustomJobSpec `protobuf:"bytes,8,opt,name=trial_job_spec,json=trialJobSpec,proto3" json:"trial_job_spec,omitempty"` // Output only. Trials of the HyperparameterTuningJob. Trials []*Trial `protobuf:"bytes,9,rep,name=trials,proto3" json:"trials,omitempty"` @@ -73,13 +73,15 @@ type HyperparameterTuningJob struct { State JobState `protobuf:"varint,10,opt,name=state,proto3,enum=google.cloud.aiplatform.v1.JobState" json:"state,omitempty"` // Output only. Time when the HyperparameterTuningJob was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. Time when the HyperparameterTuningJob for the first time entered the - // `JOB_STATE_RUNNING` state. + // Output only. Time when the HyperparameterTuningJob for the first time + // entered the `JOB_STATE_RUNNING` state. StartTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - // Output only. Time when the HyperparameterTuningJob entered any of the following states: - // `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + // Output only. Time when the HyperparameterTuningJob entered any of the + // following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, + // `JOB_STATE_CANCELLED`. EndTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - // Output only. Time when the HyperparameterTuningJob was most recently updated. + // Output only. Time when the HyperparameterTuningJob was most recently + // updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. Only populated when job's state is JOB_STATE_FAILED or // JOB_STATE_CANCELLED. diff --git a/aiplatform/apiv1/aiplatformpb/index.pb.go b/aiplatform/apiv1/aiplatformpb/index.pb.go index 01db3b24c346..b6d0b84f439f 100644 --- a/aiplatform/apiv1/aiplatformpb/index.pb.go +++ b/aiplatform/apiv1/aiplatformpb/index.pb.go @@ -109,17 +109,18 @@ type Index struct { DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // The description of the Index. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - // Immutable. Points to a YAML file stored on Google Cloud Storage describing additional - // information about the Index, that is specific to it. Unset if the Index - // does not have any additional information. - // The schema is defined as an OpenAPI 3.0.2 [Schema + // Immutable. Points to a YAML file stored on Google Cloud Storage describing + // additional information about the Index, that is specific to it. Unset if + // the Index does not have any additional information. The schema is defined + // as an OpenAPI 3.0.2 [Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). // Note: The URI given on output will be immutable and probably different, // including the URI scheme, than the one given on input. The output URI will // point to a location where the user only has a read access. MetadataSchemaUri string `protobuf:"bytes,4,opt,name=metadata_schema_uri,json=metadataSchemaUri,proto3" json:"metadata_schema_uri,omitempty"` // An additional information about the Index; the schema of the metadata can - // be found in [metadata_schema][google.cloud.aiplatform.v1.Index.metadata_schema_uri]. + // be found in + // [metadata_schema][google.cloud.aiplatform.v1.Index.metadata_schema_uri]. Metadata *structpb.Value `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` // Output only. The pointers to DeployedIndexes created from this Index. // An Index can be only deleted if all its DeployedIndexes had been undeployed @@ -142,15 +143,15 @@ type Index struct { // This also includes any update to the contents of the Index. // Note that Operations working on this Index may have their // [Operations.metadata.generic_metadata.update_time] - // [google.cloud.aiplatform.v1.GenericOperationMetadata.update_time] a little after the value of this - // timestamp, yet that does not mean their results are not already reflected - // in the Index. Result of any successfully completed Operation on the Index - // is reflected in it. + // [google.cloud.aiplatform.v1.GenericOperationMetadata.update_time] a little + // after the value of this timestamp, yet that does not mean their results are + // not already reflected in the Index. Result of any successfully completed + // Operation on the Index is reflected in it. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. Stats of the index resource. IndexStats *IndexStats `protobuf:"bytes,14,opt,name=index_stats,json=indexStats,proto3" json:"index_stats,omitempty"` - // Immutable. The update method to use with this Index. If not set, BATCH_UPDATE will be - // used by default. + // Immutable. The update method to use with this Index. If not set, + // BATCH_UPDATE will be used by default. IndexUpdateMethod Index_IndexUpdateMethod `protobuf:"varint,16,opt,name=index_update_method,json=indexUpdateMethod,proto3,enum=google.cloud.aiplatform.v1.Index_IndexUpdateMethod" json:"index_update_method,omitempty"` } @@ -281,13 +282,13 @@ type IndexDatapoint struct { // Required. Feature embedding vector. An array of numbers with the length of // [NearestNeighborSearchConfig.dimensions]. FeatureVector []float32 `protobuf:"fixed32,2,rep,packed,name=feature_vector,json=featureVector,proto3" json:"feature_vector,omitempty"` - // Optional. List of Restrict of the datapoint, used to perform "restricted searches" - // where boolean rule are used to filter the subset of the database eligible - // for matching. - // See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering + // Optional. List of Restrict of the datapoint, used to perform "restricted + // searches" where boolean rule are used to filter the subset of the database + // eligible for matching. See: + // https://cloud.google.com/vertex-ai/docs/matching-engine/filtering Restricts []*IndexDatapoint_Restriction `protobuf:"bytes,4,rep,name=restricts,proto3" json:"restricts,omitempty"` - // Optional. CrowdingTag of the datapoint, the number of neighbors to return in each - // crowding can be configured during query. + // Optional. CrowdingTag of the datapoint, the number of neighbors to return + // in each crowding can be configured during query. CrowdingTag *IndexDatapoint_CrowdingTag `protobuf:"bytes,5,opt,name=crowding_tag,json=crowdingTag,proto3" json:"crowding_tag,omitempty"` } diff --git a/aiplatform/apiv1/aiplatformpb/index_endpoint.pb.go b/aiplatform/apiv1/aiplatformpb/index_endpoint.pb.go index c71811d6bbf3..65b654aeb18b 100644 --- a/aiplatform/apiv1/aiplatformpb/index_endpoint.pb.go +++ b/aiplatform/apiv1/aiplatformpb/index_endpoint.pb.go @@ -88,9 +88,11 @@ type IndexEndpoint struct { // Where {project} is a project number, as in '12345', and {network} is // network name. Network string `protobuf:"bytes,9,opt,name=network,proto3" json:"network,omitempty"` - // Optional. Deprecated: If true, expose the IndexEndpoint via private service connect. + // Optional. Deprecated: If true, expose the IndexEndpoint via private service + // connect. // - // Only one of the fields, [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or + // Only one of the fields, + // [network][google.cloud.aiplatform.v1.IndexEndpoint.network] or // [enable_private_service_connect][google.cloud.aiplatform.v1.IndexEndpoint.enable_private_service_connect], // can be set. // @@ -220,15 +222,17 @@ type DeployedIndex struct { DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Output only. Timestamp when the DeployedIndex was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. Provides paths for users to send requests directly to the deployed index - // services running on Cloud via private services access. This field is - // populated if [network][google.cloud.aiplatform.v1.IndexEndpoint.network] is configured. + // Output only. Provides paths for users to send requests directly to the + // deployed index services running on Cloud via private services access. This + // field is populated if + // [network][google.cloud.aiplatform.v1.IndexEndpoint.network] is configured. PrivateEndpoints *IndexPrivateEndpoints `protobuf:"bytes,5,opt,name=private_endpoints,json=privateEndpoints,proto3" json:"private_endpoints,omitempty"` - // Output only. The DeployedIndex may depend on various data on its original Index. - // Additionally when certain changes to the original Index are being done - // (e.g. when what the Index contains is being changed) the DeployedIndex may - // be asynchronously updated in the background to reflect this changes. - // If this timestamp's value is at least the [Index.update_time][google.cloud.aiplatform.v1.Index.update_time] of the + // Output only. The DeployedIndex may depend on various data on its original + // Index. Additionally when certain changes to the original Index are being + // done (e.g. when what the Index contains is being changed) the DeployedIndex + // may be asynchronously updated in the background to reflect this changes. If + // this timestamp's value is at least the + // [Index.update_time][google.cloud.aiplatform.v1.Index.update_time] of the // original Index, it means that this DeployedIndex and the original Index are // in sync. If this timestamp is older, then to see which updates this // DeployedIndex already contains (and which not), one must @@ -239,26 +243,34 @@ type DeployedIndex struct { // [google.cloud.aiplatform.v1.GenericOperationMetadata.update_time] // equal or before this sync time are contained in this DeployedIndex. IndexSyncTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=index_sync_time,json=indexSyncTime,proto3" json:"index_sync_time,omitempty"` - // Optional. A description of resources that the DeployedIndex uses, which to large - // degree are decided by Vertex AI, and optionally allows only a modest + // Optional. A description of resources that the DeployedIndex uses, which to + // large degree are decided by Vertex AI, and optionally allows only a modest // additional configuration. // If min_replica_count is not set, the default value is 2 (we don't provide // SLA when min_replica_count=1). If max_replica_count is not set, the // default value is min_replica_count. The max allowed replica count is // 1000. AutomaticResources *AutomaticResources `protobuf:"bytes,7,opt,name=automatic_resources,json=automaticResources,proto3" json:"automatic_resources,omitempty"` - // Optional. A description of resources that are dedicated to the DeployedIndex, and - // that need a higher degree of manual configuration. - // If min_replica_count is not set, the default value is 2 (we don't provide - // SLA when min_replica_count=1). If max_replica_count is not set, the - // default value is min_replica_count. The max allowed replica count is - // 1000. + // Optional. A description of resources that are dedicated to the + // DeployedIndex, and that need a higher degree of manual configuration. If + // min_replica_count is not set, the default value is 2 (we don't provide SLA + // when min_replica_count=1). If max_replica_count is not set, the default + // value is min_replica_count. The max allowed replica count is 1000. + // + // Available machine types for SMALL shard: + // e2-standard-2 and all machine types available for MEDIUM and LARGE shard. + // + // Available machine types for MEDIUM shard: + // e2-standard-16 and all machine types available for LARGE shard. + // + // Available machine types for LARGE shard: + // e2-standard-32, e2-highmem-16, n2d-standard-32. // - // Available machine types: - // n1-standard-16 - // n1-standard-32 + // n1-standard-16 and n1-standard-32 are still available, but we recommend + // e2-standard-16 and e2-standard-32 for cost efficiency. DedicatedResources *DedicatedResources `protobuf:"bytes,16,opt,name=dedicated_resources,json=dedicatedResources,proto3" json:"dedicated_resources,omitempty"` - // Optional. If true, private endpoint's access logs are sent to StackDriver Logging. + // Optional. If true, private endpoint's access logs are sent to StackDriver + // Logging. // // These logs are like standard server access logs, containing // information like timestamp and latency for each MatchRequest. @@ -472,8 +484,8 @@ type IndexPrivateEndpoints struct { // Output only. The ip address used to send match gRPC requests. MatchGrpcAddress string `protobuf:"bytes,1,opt,name=match_grpc_address,json=matchGrpcAddress,proto3" json:"match_grpc_address,omitempty"` - // Output only. The name of the service attachment resource. Populated if private service - // connect is enabled. + // Output only. The name of the service attachment resource. Populated if + // private service connect is enabled. ServiceAttachment string `protobuf:"bytes,2,opt,name=service_attachment,json=serviceAttachment,proto3" json:"service_attachment,omitempty"` } diff --git a/aiplatform/apiv1/aiplatformpb/index_endpoint_service.pb.go b/aiplatform/apiv1/aiplatformpb/index_endpoint_service.pb.go index 97225668c12c..7f030abff4c1 100644 --- a/aiplatform/apiv1/aiplatformpb/index_endpoint_service.pb.go +++ b/aiplatform/apiv1/aiplatformpb/index_endpoint_service.pb.go @@ -42,7 +42,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [IndexEndpointService.CreateIndexEndpoint][google.cloud.aiplatform.v1.IndexEndpointService.CreateIndexEndpoint]. +// Request message for +// [IndexEndpointService.CreateIndexEndpoint][google.cloud.aiplatform.v1.IndexEndpointService.CreateIndexEndpoint]. type CreateIndexEndpointRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -151,7 +152,8 @@ func (x *CreateIndexEndpointOperationMetadata) GetGenericMetadata() *GenericOper return nil } -// Request message for [IndexEndpointService.GetIndexEndpoint][google.cloud.aiplatform.v1.IndexEndpointService.GetIndexEndpoint] +// Request message for +// [IndexEndpointService.GetIndexEndpoint][google.cloud.aiplatform.v1.IndexEndpointService.GetIndexEndpoint] type GetIndexEndpointRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -202,17 +204,18 @@ func (x *GetIndexEndpointRequest) GetName() string { return "" } -// Request message for [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1.IndexEndpointService.ListIndexEndpoints]. +// Request message for +// [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1.IndexEndpointService.ListIndexEndpoints]. type ListIndexEndpointsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Location from which to list the IndexEndpoints. - // Format: `projects/{project}/locations/{location}` + // Required. The resource name of the Location from which to list the + // IndexEndpoints. Format: `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. An expression for filtering the results of the request. For field names - // both snake_case and camelCase are supported. + // Optional. An expression for filtering the results of the request. For field + // names both snake_case and camelCase are supported. // // - `index_endpoint` supports = and !=. `index_endpoint` represents the // IndexEndpoint ID, ie. the last segment of the IndexEndpoint's @@ -234,8 +237,10 @@ type ListIndexEndpointsRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. The standard list page token. // Typically obtained via - // [ListIndexEndpointsResponse.next_page_token][google.cloud.aiplatform.v1.ListIndexEndpointsResponse.next_page_token] of the previous - // [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1.IndexEndpointService.ListIndexEndpoints] call. + // [ListIndexEndpointsResponse.next_page_token][google.cloud.aiplatform.v1.ListIndexEndpointsResponse.next_page_token] + // of the previous + // [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1.IndexEndpointService.ListIndexEndpoints] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Optional. Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -308,7 +313,8 @@ func (x *ListIndexEndpointsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1.IndexEndpointService.ListIndexEndpoints]. +// Response message for +// [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1.IndexEndpointService.ListIndexEndpoints]. type ListIndexEndpointsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -317,7 +323,9 @@ type ListIndexEndpointsResponse struct { // List of IndexEndpoints in the requested page. IndexEndpoints []*IndexEndpoint `protobuf:"bytes,1,rep,name=index_endpoints,json=indexEndpoints,proto3" json:"index_endpoints,omitempty"` // A token to retrieve next page of results. - // Pass to [ListIndexEndpointsRequest.page_token][google.cloud.aiplatform.v1.ListIndexEndpointsRequest.page_token] to obtain that page. + // Pass to + // [ListIndexEndpointsRequest.page_token][google.cloud.aiplatform.v1.ListIndexEndpointsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -367,7 +375,8 @@ func (x *ListIndexEndpointsResponse) GetNextPageToken() string { return "" } -// Request message for [IndexEndpointService.UpdateIndexEndpoint][google.cloud.aiplatform.v1.IndexEndpointService.UpdateIndexEndpoint]. +// Request message for +// [IndexEndpointService.UpdateIndexEndpoint][google.cloud.aiplatform.v1.IndexEndpointService.UpdateIndexEndpoint]. type UpdateIndexEndpointRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -375,7 +384,8 @@ type UpdateIndexEndpointRequest struct { // Required. The IndexEndpoint which replaces the resource on the server. IndexEndpoint *IndexEndpoint `protobuf:"bytes,1,opt,name=index_endpoint,json=indexEndpoint,proto3" json:"index_endpoint,omitempty"` - // Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask]. + // Required. The update mask applies to the resource. See + // [google.protobuf.FieldMask][google.protobuf.FieldMask]. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } @@ -425,7 +435,8 @@ func (x *UpdateIndexEndpointRequest) GetUpdateMask() *fieldmaskpb.FieldMask { return nil } -// Request message for [IndexEndpointService.DeleteIndexEndpoint][google.cloud.aiplatform.v1.IndexEndpointService.DeleteIndexEndpoint]. +// Request message for +// [IndexEndpointService.DeleteIndexEndpoint][google.cloud.aiplatform.v1.IndexEndpointService.DeleteIndexEndpoint]. type DeleteIndexEndpointRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -476,14 +487,15 @@ func (x *DeleteIndexEndpointRequest) GetName() string { return "" } -// Request message for [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.DeployIndex]. +// Request message for +// [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.DeployIndex]. type DeployIndexRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The name of the IndexEndpoint resource into which to deploy an Index. - // Format: + // Required. The name of the IndexEndpoint resource into which to deploy an + // Index. Format: // `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` IndexEndpoint string `protobuf:"bytes,1,opt,name=index_endpoint,json=indexEndpoint,proto3" json:"index_endpoint,omitempty"` // Required. The DeployedIndex to be created within the IndexEndpoint. @@ -536,7 +548,8 @@ func (x *DeployIndexRequest) GetDeployedIndex() *DeployedIndex { return nil } -// Response message for [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.DeployIndex]. +// Response message for +// [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.DeployIndex]. type DeployIndexResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -585,7 +598,8 @@ func (x *DeployIndexResponse) GetDeployedIndex() *DeployedIndex { return nil } -// Runtime operation information for [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.DeployIndex]. +// Runtime operation information for +// [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.DeployIndex]. type DeployIndexOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -643,17 +657,19 @@ func (x *DeployIndexOperationMetadata) GetDeployedIndexId() string { return "" } -// Request message for [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.UndeployIndex]. +// Request message for +// [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.UndeployIndex]. type UndeployIndexRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The name of the IndexEndpoint resource from which to undeploy an Index. - // Format: + // Required. The name of the IndexEndpoint resource from which to undeploy an + // Index. Format: // `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` IndexEndpoint string `protobuf:"bytes,1,opt,name=index_endpoint,json=indexEndpoint,proto3" json:"index_endpoint,omitempty"` - // Required. The ID of the DeployedIndex to be undeployed from the IndexEndpoint. + // Required. The ID of the DeployedIndex to be undeployed from the + // IndexEndpoint. DeployedIndexId string `protobuf:"bytes,2,opt,name=deployed_index_id,json=deployedIndexId,proto3" json:"deployed_index_id,omitempty"` } @@ -703,7 +719,8 @@ func (x *UndeployIndexRequest) GetDeployedIndexId() string { return "" } -// Response message for [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.UndeployIndex]. +// Response message for +// [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.UndeployIndex]. type UndeployIndexResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -742,7 +759,8 @@ func (*UndeployIndexResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1_index_endpoint_service_proto_rawDescGZIP(), []int{11} } -// Runtime operation information for [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.UndeployIndex]. +// Runtime operation information for +// [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1.IndexEndpointService.UndeployIndex]. type UndeployIndexOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -791,14 +809,15 @@ func (x *UndeployIndexOperationMetadata) GetGenericMetadata() *GenericOperationM return nil } -// Request message for [IndexEndpointService.MutateDeployedIndex][google.cloud.aiplatform.v1.IndexEndpointService.MutateDeployedIndex]. +// Request message for +// [IndexEndpointService.MutateDeployedIndex][google.cloud.aiplatform.v1.IndexEndpointService.MutateDeployedIndex]. type MutateDeployedIndexRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The name of the IndexEndpoint resource into which to deploy an Index. - // Format: + // Required. The name of the IndexEndpoint resource into which to deploy an + // Index. Format: // `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` IndexEndpoint string `protobuf:"bytes,1,opt,name=index_endpoint,json=indexEndpoint,proto3" json:"index_endpoint,omitempty"` // Required. The DeployedIndex to be updated within the IndexEndpoint. @@ -853,7 +872,8 @@ func (x *MutateDeployedIndexRequest) GetDeployedIndex() *DeployedIndex { return nil } -// Response message for [IndexEndpointService.MutateDeployedIndex][google.cloud.aiplatform.v1.IndexEndpointService.MutateDeployedIndex]. +// Response message for +// [IndexEndpointService.MutateDeployedIndex][google.cloud.aiplatform.v1.IndexEndpointService.MutateDeployedIndex]. type MutateDeployedIndexResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/aiplatform/apiv1/aiplatformpb/index_service.pb.go b/aiplatform/apiv1/aiplatformpb/index_service.pb.go index b6c546a1d5a1..5fe743babb9b 100644 --- a/aiplatform/apiv1/aiplatformpb/index_service.pb.go +++ b/aiplatform/apiv1/aiplatformpb/index_service.pb.go @@ -115,7 +115,8 @@ func (NearestNeighborSearchOperationMetadata_RecordError_RecordErrorType) EnumDe return file_google_cloud_aiplatform_v1_index_service_proto_rawDescGZIP(), []int{12, 0, 0} } -// Request message for [IndexService.CreateIndex][google.cloud.aiplatform.v1.IndexService.CreateIndex]. +// Request message for +// [IndexService.CreateIndex][google.cloud.aiplatform.v1.IndexService.CreateIndex]. type CreateIndexRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -174,7 +175,8 @@ func (x *CreateIndexRequest) GetIndex() *Index { return nil } -// Runtime operation information for [IndexService.CreateIndex][google.cloud.aiplatform.v1.IndexService.CreateIndex]. +// Runtime operation information for +// [IndexService.CreateIndex][google.cloud.aiplatform.v1.IndexService.CreateIndex]. type CreateIndexOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -232,7 +234,8 @@ func (x *CreateIndexOperationMetadata) GetNearestNeighborSearchOperationMetadata return nil } -// Request message for [IndexService.GetIndex][google.cloud.aiplatform.v1.IndexService.GetIndex] +// Request message for +// [IndexService.GetIndex][google.cloud.aiplatform.v1.IndexService.GetIndex] type GetIndexRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -283,7 +286,8 @@ func (x *GetIndexRequest) GetName() string { return "" } -// Request message for [IndexService.ListIndexes][google.cloud.aiplatform.v1.IndexService.ListIndexes]. +// Request message for +// [IndexService.ListIndexes][google.cloud.aiplatform.v1.IndexService.ListIndexes]. type ListIndexesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -298,8 +302,10 @@ type ListIndexesRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListIndexesResponse.next_page_token][google.cloud.aiplatform.v1.ListIndexesResponse.next_page_token] of the previous - // [IndexService.ListIndexes][google.cloud.aiplatform.v1.IndexService.ListIndexes] call. + // [ListIndexesResponse.next_page_token][google.cloud.aiplatform.v1.ListIndexesResponse.next_page_token] + // of the previous + // [IndexService.ListIndexes][google.cloud.aiplatform.v1.IndexService.ListIndexes] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -372,7 +378,8 @@ func (x *ListIndexesRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [IndexService.ListIndexes][google.cloud.aiplatform.v1.IndexService.ListIndexes]. +// Response message for +// [IndexService.ListIndexes][google.cloud.aiplatform.v1.IndexService.ListIndexes]. type ListIndexesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -381,7 +388,9 @@ type ListIndexesResponse struct { // List of indexes in the requested page. Indexes []*Index `protobuf:"bytes,1,rep,name=indexes,proto3" json:"indexes,omitempty"` // A token to retrieve next page of results. - // Pass to [ListIndexesRequest.page_token][google.cloud.aiplatform.v1.ListIndexesRequest.page_token] to obtain that page. + // Pass to + // [ListIndexesRequest.page_token][google.cloud.aiplatform.v1.ListIndexesRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -431,7 +440,8 @@ func (x *ListIndexesResponse) GetNextPageToken() string { return "" } -// Request message for [IndexService.UpdateIndex][google.cloud.aiplatform.v1.IndexService.UpdateIndex]. +// Request message for +// [IndexService.UpdateIndex][google.cloud.aiplatform.v1.IndexService.UpdateIndex]. type UpdateIndexRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -440,7 +450,8 @@ type UpdateIndexRequest struct { // Required. The Index which updates the resource on the server. Index *Index `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` // The update mask applies to the resource. - // For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. + // For the `FieldMask` definition, see + // [google.protobuf.FieldMask][google.protobuf.FieldMask]. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } @@ -490,7 +501,8 @@ func (x *UpdateIndexRequest) GetUpdateMask() *fieldmaskpb.FieldMask { return nil } -// Runtime operation information for [IndexService.UpdateIndex][google.cloud.aiplatform.v1.IndexService.UpdateIndex]. +// Runtime operation information for +// [IndexService.UpdateIndex][google.cloud.aiplatform.v1.IndexService.UpdateIndex]. type UpdateIndexOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -548,7 +560,8 @@ func (x *UpdateIndexOperationMetadata) GetNearestNeighborSearchOperationMetadata return nil } -// Request message for [IndexService.DeleteIndex][google.cloud.aiplatform.v1.IndexService.DeleteIndex]. +// Request message for +// [IndexService.DeleteIndex][google.cloud.aiplatform.v1.IndexService.DeleteIndex]. type DeleteIndexRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -599,7 +612,8 @@ func (x *DeleteIndexRequest) GetName() string { return "" } -// Request message for [IndexService.UpsertDatapoints][google.cloud.aiplatform.v1.IndexService.UpsertDatapoints] +// Request message for +// [IndexService.UpsertDatapoints][google.cloud.aiplatform.v1.IndexService.UpsertDatapoints] type UpsertDatapointsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -659,7 +673,8 @@ func (x *UpsertDatapointsRequest) GetDatapoints() []*IndexDatapoint { return nil } -// Response message for [IndexService.UpsertDatapoints][google.cloud.aiplatform.v1.IndexService.UpsertDatapoints] +// Response message for +// [IndexService.UpsertDatapoints][google.cloud.aiplatform.v1.IndexService.UpsertDatapoints] type UpsertDatapointsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -698,7 +713,8 @@ func (*UpsertDatapointsResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1_index_service_proto_rawDescGZIP(), []int{9} } -// Request message for [IndexService.RemoveDatapoints][google.cloud.aiplatform.v1.IndexService.RemoveDatapoints] +// Request message for +// [IndexService.RemoveDatapoints][google.cloud.aiplatform.v1.IndexService.RemoveDatapoints] type RemoveDatapointsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -758,7 +774,8 @@ func (x *RemoveDatapointsRequest) GetDatapointIds() []string { return nil } -// Response message for [IndexService.RemoveDatapoints][google.cloud.aiplatform.v1.IndexService.RemoveDatapoints] +// Response message for +// [IndexService.RemoveDatapoints][google.cloud.aiplatform.v1.IndexService.RemoveDatapoints] type RemoveDatapointsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -805,7 +822,8 @@ type NearestNeighborSearchOperationMetadata struct { // The validation stats of the content (per file) to be inserted or // updated on the Matching Engine Index resource. Populated if - // contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1.Index.metadata]. Please note + // contentsDeltaUri is provided as part of + // [Index.metadata][google.cloud.aiplatform.v1.Index.metadata]. Please note // that, currently for those files that are broken or has unsupported file // format, we will not have the stats for those files. ContentValidationStats []*NearestNeighborSearchOperationMetadata_ContentValidationStats `protobuf:"bytes,1,rep,name=content_validation_stats,json=contentValidationStats,proto3" json:"content_validation_stats,omitempty"` @@ -1631,7 +1649,8 @@ type IndexServiceClient interface { UpdateIndex(ctx context.Context, in *UpdateIndexRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Deletes an Index. // An Index can only be deleted when all its - // [DeployedIndexes][google.cloud.aiplatform.v1.Index.deployed_indexes] had been undeployed. + // [DeployedIndexes][google.cloud.aiplatform.v1.Index.deployed_indexes] had + // been undeployed. DeleteIndex(ctx context.Context, in *DeleteIndexRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Add/update Datapoints into an Index. UpsertDatapoints(ctx context.Context, in *UpsertDatapointsRequest, opts ...grpc.CallOption) (*UpsertDatapointsResponse, error) @@ -1722,7 +1741,8 @@ type IndexServiceServer interface { UpdateIndex(context.Context, *UpdateIndexRequest) (*longrunning.Operation, error) // Deletes an Index. // An Index can only be deleted when all its - // [DeployedIndexes][google.cloud.aiplatform.v1.Index.deployed_indexes] had been undeployed. + // [DeployedIndexes][google.cloud.aiplatform.v1.Index.deployed_indexes] had + // been undeployed. DeleteIndex(context.Context, *DeleteIndexRequest) (*longrunning.Operation, error) // Add/update Datapoints into an Index. UpsertDatapoints(context.Context, *UpsertDatapointsRequest) (*UpsertDatapointsResponse, error) diff --git a/aiplatform/apiv1/aiplatformpb/io.pb.go b/aiplatform/apiv1/aiplatformpb/io.pb.go index 3f5f0f812fad..020bbae5b987 100644 --- a/aiplatform/apiv1/aiplatformpb/io.pb.go +++ b/aiplatform/apiv1/aiplatformpb/io.pb.go @@ -191,7 +191,8 @@ type GcsDestination struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. Google Cloud Storage URI to output directory. If the uri doesn't end with + // Required. Google Cloud Storage URI to output directory. If the uri doesn't + // end with // '/', a '/' will be automatically appended. The directory is created if it // doesn't exist. OutputUriPrefix string `protobuf:"bytes,1,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"` diff --git a/aiplatform/apiv1/aiplatformpb/job_service.pb.go b/aiplatform/apiv1/aiplatformpb/job_service.pb.go index 57b56dc8d208..9401065fa1e7 100644 --- a/aiplatform/apiv1/aiplatformpb/job_service.pb.go +++ b/aiplatform/apiv1/aiplatformpb/job_service.pb.go @@ -44,7 +44,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [JobService.CreateCustomJob][google.cloud.aiplatform.v1.JobService.CreateCustomJob]. +// Request message for +// [JobService.CreateCustomJob][google.cloud.aiplatform.v1.JobService.CreateCustomJob]. type CreateCustomJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -103,7 +104,8 @@ func (x *CreateCustomJobRequest) GetCustomJob() *CustomJob { return nil } -// Request message for [JobService.GetCustomJob][google.cloud.aiplatform.v1.JobService.GetCustomJob]. +// Request message for +// [JobService.GetCustomJob][google.cloud.aiplatform.v1.JobService.GetCustomJob]. type GetCustomJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -154,7 +156,8 @@ func (x *GetCustomJobRequest) GetName() string { return "" } -// Request message for [JobService.ListCustomJobs][google.cloud.aiplatform.v1.JobService.ListCustomJobs]. +// Request message for +// [JobService.ListCustomJobs][google.cloud.aiplatform.v1.JobService.ListCustomJobs]. type ListCustomJobsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -188,8 +191,10 @@ type ListCustomJobsRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListCustomJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListCustomJobsResponse.next_page_token] of the previous - // [JobService.ListCustomJobs][google.cloud.aiplatform.v1.JobService.ListCustomJobs] call. + // [ListCustomJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListCustomJobsResponse.next_page_token] + // of the previous + // [JobService.ListCustomJobs][google.cloud.aiplatform.v1.JobService.ListCustomJobs] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -262,7 +267,8 @@ func (x *ListCustomJobsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [JobService.ListCustomJobs][google.cloud.aiplatform.v1.JobService.ListCustomJobs] +// Response message for +// [JobService.ListCustomJobs][google.cloud.aiplatform.v1.JobService.ListCustomJobs] type ListCustomJobsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -271,7 +277,9 @@ type ListCustomJobsResponse struct { // List of CustomJobs in the requested page. CustomJobs []*CustomJob `protobuf:"bytes,1,rep,name=custom_jobs,json=customJobs,proto3" json:"custom_jobs,omitempty"` // A token to retrieve the next page of results. - // Pass to [ListCustomJobsRequest.page_token][google.cloud.aiplatform.v1.ListCustomJobsRequest.page_token] to obtain that page. + // Pass to + // [ListCustomJobsRequest.page_token][google.cloud.aiplatform.v1.ListCustomJobsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -321,7 +329,8 @@ func (x *ListCustomJobsResponse) GetNextPageToken() string { return "" } -// Request message for [JobService.DeleteCustomJob][google.cloud.aiplatform.v1.JobService.DeleteCustomJob]. +// Request message for +// [JobService.DeleteCustomJob][google.cloud.aiplatform.v1.JobService.DeleteCustomJob]. type DeleteCustomJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -372,7 +381,8 @@ func (x *DeleteCustomJobRequest) GetName() string { return "" } -// Request message for [JobService.CancelCustomJob][google.cloud.aiplatform.v1.JobService.CancelCustomJob]. +// Request message for +// [JobService.CancelCustomJob][google.cloud.aiplatform.v1.JobService.CancelCustomJob]. type CancelCustomJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -423,7 +433,8 @@ func (x *CancelCustomJobRequest) GetName() string { return "" } -// Request message for [JobService.CreateDataLabelingJob][google.cloud.aiplatform.v1.JobService.CreateDataLabelingJob]. +// Request message for +// [JobService.CreateDataLabelingJob][google.cloud.aiplatform.v1.JobService.CreateDataLabelingJob]. type CreateDataLabelingJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -482,7 +493,8 @@ func (x *CreateDataLabelingJobRequest) GetDataLabelingJob() *DataLabelingJob { return nil } -// Request message for [JobService.GetDataLabelingJob][google.cloud.aiplatform.v1.JobService.GetDataLabelingJob]. +// Request message for +// [JobService.GetDataLabelingJob][google.cloud.aiplatform.v1.JobService.GetDataLabelingJob]. type GetDataLabelingJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -533,7 +545,8 @@ func (x *GetDataLabelingJobRequest) GetName() string { return "" } -// Request message for [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1.JobService.ListDataLabelingJobs]. +// Request message for +// [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1.JobService.ListDataLabelingJobs]. type ListDataLabelingJobsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -652,7 +665,8 @@ func (x *ListDataLabelingJobsRequest) GetOrderBy() string { return "" } -// Response message for [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1.JobService.ListDataLabelingJobs]. +// Response message for +// [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1.JobService.ListDataLabelingJobs]. type ListDataLabelingJobsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -711,7 +725,8 @@ func (x *ListDataLabelingJobsResponse) GetNextPageToken() string { return "" } -// Request message for [JobService.DeleteDataLabelingJob][google.cloud.aiplatform.v1.JobService.DeleteDataLabelingJob]. +// Request message for +// [JobService.DeleteDataLabelingJob][google.cloud.aiplatform.v1.JobService.DeleteDataLabelingJob]. type DeleteDataLabelingJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -762,7 +777,8 @@ func (x *DeleteDataLabelingJobRequest) GetName() string { return "" } -// Request message for [JobService.CancelDataLabelingJob][google.cloud.aiplatform.v1.JobService.CancelDataLabelingJob]. +// Request message for +// [JobService.CancelDataLabelingJob][google.cloud.aiplatform.v1.JobService.CancelDataLabelingJob]. type CancelDataLabelingJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -813,14 +829,16 @@ func (x *CancelDataLabelingJobRequest) GetName() string { return "" } -// Request message for [JobService.CreateHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.CreateHyperparameterTuningJob]. +// Request message for +// [JobService.CreateHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.CreateHyperparameterTuningJob]. type CreateHyperparameterTuningJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Location to create the HyperparameterTuningJob in. - // Format: `projects/{project}/locations/{location}` + // Required. The resource name of the Location to create the + // HyperparameterTuningJob in. Format: + // `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The HyperparameterTuningJob to create. HyperparameterTuningJob *HyperparameterTuningJob `protobuf:"bytes,2,opt,name=hyperparameter_tuning_job,json=hyperparameterTuningJob,proto3" json:"hyperparameter_tuning_job,omitempty"` @@ -872,7 +890,8 @@ func (x *CreateHyperparameterTuningJobRequest) GetHyperparameterTuningJob() *Hyp return nil } -// Request message for [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJob]. +// Request message for +// [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJob]. type GetHyperparameterTuningJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -923,14 +942,16 @@ func (x *GetHyperparameterTuningJobRequest) GetName() string { return "" } -// Request message for [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs]. +// Request message for +// [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs]. type ListHyperparameterTuningJobsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Location to list the HyperparameterTuningJobs - // from. Format: `projects/{project}/locations/{location}` + // Required. The resource name of the Location to list the + // HyperparameterTuningJobs from. Format: + // `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The standard list filter. // @@ -957,8 +978,10 @@ type ListHyperparameterTuningJobsRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListHyperparameterTuningJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.next_page_token] of the previous - // [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs] call. + // [ListHyperparameterTuningJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.next_page_token] + // of the previous + // [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -1031,18 +1054,21 @@ func (x *ListHyperparameterTuningJobsRequest) GetReadMask() *fieldmaskpb.FieldMa return nil } -// Response message for [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs] +// Response message for +// [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs] type ListHyperparameterTuningJobsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // List of HyperparameterTuningJobs in the requested page. - // [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials] of the jobs will be not be returned. + // [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials] + // of the jobs will be not be returned. HyperparameterTuningJobs []*HyperparameterTuningJob `protobuf:"bytes,1,rep,name=hyperparameter_tuning_jobs,json=hyperparameterTuningJobs,proto3" json:"hyperparameter_tuning_jobs,omitempty"` // A token to retrieve the next page of results. - // Pass to [ListHyperparameterTuningJobsRequest.page_token][google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest.page_token] to obtain that - // page. + // Pass to + // [ListHyperparameterTuningJobsRequest.page_token][google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -1092,7 +1118,8 @@ func (x *ListHyperparameterTuningJobsResponse) GetNextPageToken() string { return "" } -// Request message for [JobService.DeleteHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.DeleteHyperparameterTuningJob]. +// Request message for +// [JobService.DeleteHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.DeleteHyperparameterTuningJob]. type DeleteHyperparameterTuningJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1143,7 +1170,8 @@ func (x *DeleteHyperparameterTuningJobRequest) GetName() string { return "" } -// Request message for [JobService.CancelHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.CancelHyperparameterTuningJob]. +// Request message for +// [JobService.CancelHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.CancelHyperparameterTuningJob]. type CancelHyperparameterTuningJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1194,14 +1222,15 @@ func (x *CancelHyperparameterTuningJobRequest) GetName() string { return "" } -// Request message for [JobService.CreateBatchPredictionJob][google.cloud.aiplatform.v1.JobService.CreateBatchPredictionJob]. +// Request message for +// [JobService.CreateBatchPredictionJob][google.cloud.aiplatform.v1.JobService.CreateBatchPredictionJob]. type CreateBatchPredictionJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Location to create the BatchPredictionJob in. - // Format: `projects/{project}/locations/{location}` + // Required. The resource name of the Location to create the + // BatchPredictionJob in. Format: `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The BatchPredictionJob to create. BatchPredictionJob *BatchPredictionJob `protobuf:"bytes,2,opt,name=batch_prediction_job,json=batchPredictionJob,proto3" json:"batch_prediction_job,omitempty"` @@ -1253,7 +1282,8 @@ func (x *CreateBatchPredictionJobRequest) GetBatchPredictionJob() *BatchPredicti return nil } -// Request message for [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob]. +// Request message for +// [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob]. type GetBatchPredictionJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1304,7 +1334,8 @@ func (x *GetBatchPredictionJobRequest) GetName() string { return "" } -// Request message for [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobs]. +// Request message for +// [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobs]. type ListBatchPredictionJobsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1339,8 +1370,10 @@ type ListBatchPredictionJobsRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListBatchPredictionJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.next_page_token] of the previous - // [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobs] call. + // [ListBatchPredictionJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.next_page_token] + // of the previous + // [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobs] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -1413,7 +1446,8 @@ func (x *ListBatchPredictionJobsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobs] +// Response message for +// [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobs] type ListBatchPredictionJobsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1422,8 +1456,9 @@ type ListBatchPredictionJobsResponse struct { // List of BatchPredictionJobs in the requested page. BatchPredictionJobs []*BatchPredictionJob `protobuf:"bytes,1,rep,name=batch_prediction_jobs,json=batchPredictionJobs,proto3" json:"batch_prediction_jobs,omitempty"` // A token to retrieve the next page of results. - // Pass to [ListBatchPredictionJobsRequest.page_token][google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.page_token] to obtain that - // page. + // Pass to + // [ListBatchPredictionJobsRequest.page_token][google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -1473,7 +1508,8 @@ func (x *ListBatchPredictionJobsResponse) GetNextPageToken() string { return "" } -// Request message for [JobService.DeleteBatchPredictionJob][google.cloud.aiplatform.v1.JobService.DeleteBatchPredictionJob]. +// Request message for +// [JobService.DeleteBatchPredictionJob][google.cloud.aiplatform.v1.JobService.DeleteBatchPredictionJob]. type DeleteBatchPredictionJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1524,7 +1560,8 @@ func (x *DeleteBatchPredictionJobRequest) GetName() string { return "" } -// Request message for [JobService.CancelBatchPredictionJob][google.cloud.aiplatform.v1.JobService.CancelBatchPredictionJob]. +// Request message for +// [JobService.CancelBatchPredictionJob][google.cloud.aiplatform.v1.JobService.CancelBatchPredictionJob]. type CancelBatchPredictionJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2047,17 +2084,16 @@ type UpdateModelDeploymentMonitoringJobRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The model monitoring configuration which replaces the resource on the - // server. + // Required. The model monitoring configuration which replaces the resource on + // the server. ModelDeploymentMonitoringJob *ModelDeploymentMonitoringJob `protobuf:"bytes,1,opt,name=model_deployment_monitoring_job,json=modelDeploymentMonitoringJob,proto3" json:"model_deployment_monitoring_job,omitempty"` - // Required. The update mask is used to specify the fields to be overwritten in the - // ModelDeploymentMonitoringJob resource by the update. - // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then only the non-empty fields present in the - // request will be overwritten. Set the update_mask to `*` to override all - // fields. - // For the objective config, the user can either provide the update mask for + // Required. The update mask is used to specify the fields to be overwritten + // in the ModelDeploymentMonitoringJob resource by the update. The fields + // specified in the update_mask are relative to the resource, not the full + // request. A field will be overwritten if it is in the mask. If the user does + // not provide a mask then only the non-empty fields present in the request + // will be overwritten. Set the update_mask to `*` to override all fields. For + // the objective config, the user can either provide the update mask for // model_deployment_monitoring_objective_configs or any combination of its // nested fields, such as: // model_deployment_monitoring_objective_configs.objective_config.training_dataset. @@ -2342,11 +2378,12 @@ type SearchModelDeploymentMonitoringStatsAnomaliesRequest_StatsAnomaliesObjectiv Type ModelDeploymentMonitoringObjectiveType `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType" json:"type,omitempty"` // If set, all attribution scores between - // [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and - // [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are - // fetched, and page token doesn't take effect in this case. - // Only used to retrieve attribution score for the top Features which has - // the highest attribution score in the latest monitoring run. + // [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] + // and + // [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] + // are fetched, and page token doesn't take effect in this case. Only used + // to retrieve attribution score for the top Features which has the highest + // attribution score in the latest monitoring run. TopFeatureCount int32 `protobuf:"varint,4,opt,name=top_feature_count,json=topFeatureCount,proto3" json:"top_feature_count,omitempty"` } @@ -3916,12 +3953,15 @@ type JobServiceClient interface { // Cancels a CustomJob. // Starts asynchronous cancellation on the CustomJob. The server // makes a best effort to cancel the job, but success is not - // guaranteed. Clients can use [JobService.GetCustomJob][google.cloud.aiplatform.v1.JobService.GetCustomJob] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [JobService.GetCustomJob][google.cloud.aiplatform.v1.JobService.GetCustomJob] + // or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On successful cancellation, // the CustomJob is not deleted; instead it becomes a job with - // a [CustomJob.error][google.cloud.aiplatform.v1.CustomJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`, and [CustomJob.state][google.cloud.aiplatform.v1.CustomJob.state] is set to + // a [CustomJob.error][google.cloud.aiplatform.v1.CustomJob.error] value with + // a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`, and + // [CustomJob.state][google.cloud.aiplatform.v1.CustomJob.state] is set to // `CANCELLED`. CancelCustomJob(ctx context.Context, in *CancelCustomJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Creates a DataLabelingJob. @@ -3945,13 +3985,17 @@ type JobServiceClient interface { // Cancels a HyperparameterTuningJob. // Starts asynchronous cancellation on the HyperparameterTuningJob. The server // makes a best effort to cancel the job, but success is not - // guaranteed. Clients can use [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJob] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJob] + // or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On successful cancellation, // the HyperparameterTuningJob is not deleted; instead it becomes a job with - // a [HyperparameterTuningJob.error][google.cloud.aiplatform.v1.HyperparameterTuningJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] - // of 1, corresponding to `Code.CANCELLED`, and - // [HyperparameterTuningJob.state][google.cloud.aiplatform.v1.HyperparameterTuningJob.state] is set to `CANCELLED`. + // a + // [HyperparameterTuningJob.error][google.cloud.aiplatform.v1.HyperparameterTuningJob.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`, and + // [HyperparameterTuningJob.state][google.cloud.aiplatform.v1.HyperparameterTuningJob.state] + // is set to `CANCELLED`. CancelHyperparameterTuningJob(ctx context.Context, in *CancelHyperparameterTuningJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Creates a BatchPredictionJob. A BatchPredictionJob once created will // right away be attempted to start. @@ -3967,12 +4011,14 @@ type JobServiceClient interface { // // Starts asynchronous cancellation on the BatchPredictionJob. The server // makes the best effort to cancel the job, but success is not - // guaranteed. Clients can use [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob] + // or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On a successful cancellation, // the BatchPredictionJob is not deleted;instead its - // [BatchPredictionJob.state][google.cloud.aiplatform.v1.BatchPredictionJob.state] is set to `CANCELLED`. Any files already - // outputted by the job are not deleted. + // [BatchPredictionJob.state][google.cloud.aiplatform.v1.BatchPredictionJob.state] + // is set to `CANCELLED`. Any files already outputted by the job are not + // deleted. CancelBatchPredictionJob(ctx context.Context, in *CancelBatchPredictionJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Creates a ModelDeploymentMonitoringJob. It will run periodically on a // configured interval. @@ -3989,7 +4035,8 @@ type JobServiceClient interface { DeleteModelDeploymentMonitoringJob(ctx context.Context, in *DeleteModelDeploymentMonitoringJobRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Pauses a ModelDeploymentMonitoringJob. If the job is running, the server // makes a best effort to cancel the job. Will mark - // [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.state] to 'PAUSED'. + // [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.state] + // to 'PAUSED'. PauseModelDeploymentMonitoringJob(ctx context.Context, in *PauseModelDeploymentMonitoringJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Resumes a paused ModelDeploymentMonitoringJob. It will start to run from // next scheduled time. A deleted ModelDeploymentMonitoringJob can't be @@ -4271,12 +4318,15 @@ type JobServiceServer interface { // Cancels a CustomJob. // Starts asynchronous cancellation on the CustomJob. The server // makes a best effort to cancel the job, but success is not - // guaranteed. Clients can use [JobService.GetCustomJob][google.cloud.aiplatform.v1.JobService.GetCustomJob] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [JobService.GetCustomJob][google.cloud.aiplatform.v1.JobService.GetCustomJob] + // or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On successful cancellation, // the CustomJob is not deleted; instead it becomes a job with - // a [CustomJob.error][google.cloud.aiplatform.v1.CustomJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`, and [CustomJob.state][google.cloud.aiplatform.v1.CustomJob.state] is set to + // a [CustomJob.error][google.cloud.aiplatform.v1.CustomJob.error] value with + // a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`, and + // [CustomJob.state][google.cloud.aiplatform.v1.CustomJob.state] is set to // `CANCELLED`. CancelCustomJob(context.Context, *CancelCustomJobRequest) (*emptypb.Empty, error) // Creates a DataLabelingJob. @@ -4300,13 +4350,17 @@ type JobServiceServer interface { // Cancels a HyperparameterTuningJob. // Starts asynchronous cancellation on the HyperparameterTuningJob. The server // makes a best effort to cancel the job, but success is not - // guaranteed. Clients can use [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJob] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJob] + // or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On successful cancellation, // the HyperparameterTuningJob is not deleted; instead it becomes a job with - // a [HyperparameterTuningJob.error][google.cloud.aiplatform.v1.HyperparameterTuningJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] - // of 1, corresponding to `Code.CANCELLED`, and - // [HyperparameterTuningJob.state][google.cloud.aiplatform.v1.HyperparameterTuningJob.state] is set to `CANCELLED`. + // a + // [HyperparameterTuningJob.error][google.cloud.aiplatform.v1.HyperparameterTuningJob.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`, and + // [HyperparameterTuningJob.state][google.cloud.aiplatform.v1.HyperparameterTuningJob.state] + // is set to `CANCELLED`. CancelHyperparameterTuningJob(context.Context, *CancelHyperparameterTuningJobRequest) (*emptypb.Empty, error) // Creates a BatchPredictionJob. A BatchPredictionJob once created will // right away be attempted to start. @@ -4322,12 +4376,14 @@ type JobServiceServer interface { // // Starts asynchronous cancellation on the BatchPredictionJob. The server // makes the best effort to cancel the job, but success is not - // guaranteed. Clients can use [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob] + // or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On a successful cancellation, // the BatchPredictionJob is not deleted;instead its - // [BatchPredictionJob.state][google.cloud.aiplatform.v1.BatchPredictionJob.state] is set to `CANCELLED`. Any files already - // outputted by the job are not deleted. + // [BatchPredictionJob.state][google.cloud.aiplatform.v1.BatchPredictionJob.state] + // is set to `CANCELLED`. Any files already outputted by the job are not + // deleted. CancelBatchPredictionJob(context.Context, *CancelBatchPredictionJobRequest) (*emptypb.Empty, error) // Creates a ModelDeploymentMonitoringJob. It will run periodically on a // configured interval. @@ -4344,7 +4400,8 @@ type JobServiceServer interface { DeleteModelDeploymentMonitoringJob(context.Context, *DeleteModelDeploymentMonitoringJobRequest) (*longrunning.Operation, error) // Pauses a ModelDeploymentMonitoringJob. If the job is running, the server // makes a best effort to cancel the job. Will mark - // [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.state] to 'PAUSED'. + // [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.state] + // to 'PAUSED'. PauseModelDeploymentMonitoringJob(context.Context, *PauseModelDeploymentMonitoringJobRequest) (*emptypb.Empty, error) // Resumes a paused ModelDeploymentMonitoringJob. It will start to run from // next scheduled time. A deleted ModelDeploymentMonitoringJob can't be diff --git a/aiplatform/apiv1/aiplatformpb/machine_resources.pb.go b/aiplatform/apiv1/aiplatformpb/machine_resources.pb.go index 186dda766bc2..e56adf291f1b 100644 --- a/aiplatform/apiv1/aiplatformpb/machine_resources.pb.go +++ b/aiplatform/apiv1/aiplatformpb/machine_resources.pb.go @@ -50,11 +50,14 @@ type MachineSpec struct { // See the [list of machine types supported for custom // training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types). // - // For [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] this field is optional, and the default - // value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob] or as part of - // [WorkerPoolSpec][google.cloud.aiplatform.v1.WorkerPoolSpec] this field is required. + // For [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] this field is + // optional, and the default value is `n1-standard-2`. For + // [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob] or as + // part of [WorkerPoolSpec][google.cloud.aiplatform.v1.WorkerPoolSpec] this + // field is required. MachineType string `protobuf:"bytes,1,opt,name=machine_type,json=machineType,proto3" json:"machine_type,omitempty"` - // Immutable. The type of accelerator(s) that may be attached to the machine as per + // Immutable. The type of accelerator(s) that may be attached to the machine + // as per // [accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count]. AcceleratorType AcceleratorType `protobuf:"varint,2,opt,name=accelerator_type,json=acceleratorType,proto3,enum=google.cloud.aiplatform.v1.AcceleratorType" json:"accelerator_type,omitempty"` // The number of accelerators to attach to the machine. @@ -121,23 +124,26 @@ type DedicatedResources struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. Immutable. The specification of a single machine used by the prediction. + // Required. Immutable. The specification of a single machine used by the + // prediction. MachineSpec *MachineSpec `protobuf:"bytes,1,opt,name=machine_spec,json=machineSpec,proto3" json:"machine_spec,omitempty"` - // Required. Immutable. The minimum number of machine replicas this DeployedModel will be always - // deployed on. This value must be greater than or equal to 1. + // Required. Immutable. The minimum number of machine replicas this + // DeployedModel will be always deployed on. This value must be greater than + // or equal to 1. // // If traffic against the DeployedModel increases, it may dynamically be // deployed onto more replicas, and as traffic decreases, some of these extra // replicas may be freed. MinReplicaCount int32 `protobuf:"varint,2,opt,name=min_replica_count,json=minReplicaCount,proto3" json:"min_replica_count,omitempty"` - // Immutable. The maximum number of replicas this DeployedModel may be deployed on when - // the traffic against it increases. If the requested value is too large, - // the deployment will error, but if deployment succeeds then the ability - // to scale the model to that many replicas is guaranteed (barring service - // outages). If traffic against the DeployedModel increases beyond what its - // replicas at maximum may handle, a portion of the traffic will be dropped. - // If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count] as the - // default value. + // Immutable. The maximum number of replicas this DeployedModel may be + // deployed on when the traffic against it increases. If the requested value + // is too large, the deployment will error, but if deployment succeeds then + // the ability to scale the model to that many replicas is guaranteed (barring + // service outages). If traffic against the DeployedModel increases beyond + // what its replicas at maximum may handle, a portion of the traffic will be + // dropped. If this value is not provided, will use + // [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count] + // as the default value. // // The value of this field impacts the charge against Vertex CPU and GPU // quotas. Specifically, you will be charged for (max_replica_count * @@ -149,21 +155,24 @@ type DedicatedResources struct { // target value (default to 60 if not set). At most one entry is allowed per // metric. // - // If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is - // above 0, the autoscaling will be based on both CPU utilization and + // If + // [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] + // is above 0, the autoscaling will be based on both CPU utilization and // accelerator's duty cycle metrics and scale up when either metrics exceeds // its target value while scale down if both metrics are under their target // value. The default target value is 60 for both metrics. // - // If [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is - // 0, the autoscaling will be based on CPU utilization metric only with + // If + // [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] + // is 0, the autoscaling will be based on CPU utilization metric only with // default target value 60 if not explicitly set. // // For example, in the case of Online Prediction, if you want to override // target CPU utilization to 80, you should set // [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1.AutoscalingMetricSpec.metric_name] // to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and - // [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] to `80`. + // [autoscaling_metric_specs.target][google.cloud.aiplatform.v1.AutoscalingMetricSpec.target] + // to `80`. AutoscalingMetricSpecs []*AutoscalingMetricSpec `protobuf:"bytes,4,rep,name=autoscaling_metric_specs,json=autoscalingMetricSpecs,proto3" json:"autoscaling_metric_specs,omitempty"` } @@ -235,21 +244,22 @@ type AutomaticResources struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Immutable. The minimum number of replicas this DeployedModel will be always deployed - // on. If traffic against it increases, it may dynamically be deployed onto - // more replicas up to [max_replica_count][google.cloud.aiplatform.v1.AutomaticResources.max_replica_count], and as traffic decreases, some - // of these extra replicas may be freed. - // If the requested value is too large, the deployment will error. + // Immutable. The minimum number of replicas this DeployedModel will be always + // deployed on. If traffic against it increases, it may dynamically be + // deployed onto more replicas up to + // [max_replica_count][google.cloud.aiplatform.v1.AutomaticResources.max_replica_count], + // and as traffic decreases, some of these extra replicas may be freed. If the + // requested value is too large, the deployment will error. MinReplicaCount int32 `protobuf:"varint,1,opt,name=min_replica_count,json=minReplicaCount,proto3" json:"min_replica_count,omitempty"` - // Immutable. The maximum number of replicas this DeployedModel may be deployed on when - // the traffic against it increases. If the requested value is too large, - // the deployment will error, but if deployment succeeds then the ability - // to scale the model to that many replicas is guaranteed (barring service - // outages). If traffic against the DeployedModel increases beyond what its - // replicas at maximum may handle, a portion of the traffic will be dropped. - // If this value is not provided, a no upper bound for scaling under heavy - // traffic will be assume, though Vertex AI may be unable to scale beyond - // certain replica number. + // Immutable. The maximum number of replicas this DeployedModel may be + // deployed on when the traffic against it increases. If the requested value + // is too large, the deployment will error, but if deployment succeeds then + // the ability to scale the model to that many replicas is guaranteed (barring + // service outages). If traffic against the DeployedModel increases beyond + // what its replicas at maximum may handle, a portion of the traffic will be + // dropped. If this value is not provided, a no upper bound for scaling under + // heavy traffic will be assume, though Vertex AI may be unable to scale + // beyond certain replica number. MaxReplicaCount int32 `protobuf:"varint,2,opt,name=max_replica_count,json=maxReplicaCount,proto3" json:"max_replica_count,omitempty"` } @@ -308,12 +318,12 @@ type BatchDedicatedResources struct { // Required. Immutable. The specification of a single machine. MachineSpec *MachineSpec `protobuf:"bytes,1,opt,name=machine_spec,json=machineSpec,proto3" json:"machine_spec,omitempty"` - // Immutable. The number of machine replicas used at the start of the batch operation. - // If not set, Vertex AI decides starting number, not greater than + // Immutable. The number of machine replicas used at the start of the batch + // operation. If not set, Vertex AI decides starting number, not greater than // [max_replica_count][google.cloud.aiplatform.v1.BatchDedicatedResources.max_replica_count] StartingReplicaCount int32 `protobuf:"varint,2,opt,name=starting_replica_count,json=startingReplicaCount,proto3" json:"starting_replica_count,omitempty"` - // Immutable. The maximum number of machine replicas the batch operation may be scaled - // to. The default value is 10. + // Immutable. The maximum number of machine replicas the batch operation may + // be scaled to. The default value is 10. MaxReplicaCount int32 `protobuf:"varint,3,opt,name=max_replica_count,json=maxReplicaCount,proto3" json:"max_replica_count,omitempty"` } @@ -376,9 +386,9 @@ type ResourcesConsumed struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. The number of replica hours used. Note that many replicas may run in - // parallel, and additionally any given work may be queued for some time. - // Therefore this value is not strictly related to wall time. + // Output only. The number of replica hours used. Note that many replicas may + // run in parallel, and additionally any given work may be queued for some + // time. Therefore this value is not strictly related to wall time. ReplicaHours float64 `protobuf:"fixed64,1,opt,name=replica_hours,json=replicaHours,proto3" json:"replica_hours,omitempty"` } @@ -493,8 +503,8 @@ type NfsMount struct { // Has to start with '/', and combined with the ip address, it indicates // the source mount path in the form of `server:path` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - // Required. Destination mount path. The NFS will be mounted for the user under - // /mnt/nfs/ + // Required. Destination mount path. The NFS will be mounted for the user + // under /mnt/nfs/ MountPoint string `protobuf:"bytes,3,opt,name=mount_point,json=mountPoint,proto3" json:"mount_point,omitempty"` } diff --git a/aiplatform/apiv1/aiplatformpb/manual_batch_tuning_parameters.pb.go b/aiplatform/apiv1/aiplatformpb/manual_batch_tuning_parameters.pb.go index 036e83026009..e17f07784a3d 100644 --- a/aiplatform/apiv1/aiplatformpb/manual_batch_tuning_parameters.pb.go +++ b/aiplatform/apiv1/aiplatformpb/manual_batch_tuning_parameters.pb.go @@ -42,11 +42,11 @@ type ManualBatchTuningParameters struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Immutable. The number of the records (e.g. instances) of the operation given in - // each batch to a machine replica. Machine type, and size of a single - // record should be considered when setting this parameter, higher value - // speeds up the batch operation's execution, but too high value will result - // in a whole batch not fitting in a machine's memory, and the whole + // Immutable. The number of the records (e.g. instances) of the operation + // given in each batch to a machine replica. Machine type, and size of a + // single record should be considered when setting this parameter, higher + // value speeds up the batch operation's execution, but too high value will + // result in a whole batch not fitting in a machine's memory, and the whole // operation will fail. // The default value is 64. BatchSize int32 `protobuf:"varint,1,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"` diff --git a/aiplatform/apiv1/aiplatformpb/metadata_schema.pb.go b/aiplatform/apiv1/aiplatformpb/metadata_schema.pb.go index 2806d4a7036c..dc251f5232f4 100644 --- a/aiplatform/apiv1/aiplatformpb/metadata_schema.pb.go +++ b/aiplatform/apiv1/aiplatformpb/metadata_schema.pb.go @@ -106,9 +106,9 @@ type MetadataSchema struct { // the following regular expression: `^[0-9]+[.][0-9]+[.][0-9]+$`, which would // allow to order/compare different versions. Example: 1.0.0, 1.0.1, etc. SchemaVersion string `protobuf:"bytes,2,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"` - // Required. The raw YAML string representation of the MetadataSchema. The combination - // of [MetadataSchema.version] and the schema name given by `title` in - // [MetadataSchema.schema] must be unique within a MetadataStore. + // Required. The raw YAML string representation of the MetadataSchema. The + // combination of [MetadataSchema.version] and the schema name given by + // `title` in [MetadataSchema.schema] must be unique within a MetadataStore. // // The schema is defined as an OpenAPI 3.0.2 // [MetadataSchema diff --git a/aiplatform/apiv1/aiplatformpb/metadata_service.pb.go b/aiplatform/apiv1/aiplatformpb/metadata_service.pb.go index 493fbba0f487..8705da3d2a6b 100644 --- a/aiplatform/apiv1/aiplatformpb/metadata_service.pb.go +++ b/aiplatform/apiv1/aiplatformpb/metadata_service.pb.go @@ -42,7 +42,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [MetadataService.CreateMetadataStore][google.cloud.aiplatform.v1.MetadataService.CreateMetadataStore]. +// Request message for +// [MetadataService.CreateMetadataStore][google.cloud.aiplatform.v1.MetadataService.CreateMetadataStore]. type CreateMetadataStoreRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -118,7 +119,8 @@ func (x *CreateMetadataStoreRequest) GetMetadataStoreId() string { return "" } -// Details of operations that perform [MetadataService.CreateMetadataStore][google.cloud.aiplatform.v1.MetadataService.CreateMetadataStore]. +// Details of operations that perform +// [MetadataService.CreateMetadataStore][google.cloud.aiplatform.v1.MetadataService.CreateMetadataStore]. type CreateMetadataStoreOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -167,7 +169,8 @@ func (x *CreateMetadataStoreOperationMetadata) GetGenericMetadata() *GenericOper return nil } -// Request message for [MetadataService.GetMetadataStore][google.cloud.aiplatform.v1.MetadataService.GetMetadataStore]. +// Request message for +// [MetadataService.GetMetadataStore][google.cloud.aiplatform.v1.MetadataService.GetMetadataStore]. type GetMetadataStoreRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -218,7 +221,8 @@ func (x *GetMetadataStoreRequest) GetName() string { return "" } -// Request message for [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1.MetadataService.ListMetadataStores]. +// Request message for +// [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1.MetadataService.ListMetadataStores]. type ListMetadataStoresRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -233,8 +237,8 @@ type ListMetadataStoresRequest struct { // Must be in range 1-1000, inclusive. Defaults to 100. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1.MetadataService.ListMetadataStores] call. Provide this to retrieve the - // subsequent page. + // [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1.MetadataService.ListMetadataStores] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other provided parameters must match the call that // provided the page token. (Otherwise the request will fail with @@ -295,7 +299,8 @@ func (x *ListMetadataStoresRequest) GetPageToken() string { return "" } -// Response message for [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1.MetadataService.ListMetadataStores]. +// Response message for +// [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1.MetadataService.ListMetadataStores]. type ListMetadataStoresResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -304,8 +309,9 @@ type ListMetadataStoresResponse struct { // The MetadataStores found for the Location. MetadataStores []*MetadataStore `protobuf:"bytes,1,rep,name=metadata_stores,json=metadataStores,proto3" json:"metadata_stores,omitempty"` // A token, which can be sent as - // [ListMetadataStoresRequest.page_token][google.cloud.aiplatform.v1.ListMetadataStoresRequest.page_token] to retrieve the next - // page. If this field is not populated, there are no subsequent pages. + // [ListMetadataStoresRequest.page_token][google.cloud.aiplatform.v1.ListMetadataStoresRequest.page_token] + // to retrieve the next page. If this field is not populated, there are no + // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -355,7 +361,8 @@ func (x *ListMetadataStoresResponse) GetNextPageToken() string { return "" } -// Request message for [MetadataService.DeleteMetadataStore][google.cloud.aiplatform.v1.MetadataService.DeleteMetadataStore]. +// Request message for +// [MetadataService.DeleteMetadataStore][google.cloud.aiplatform.v1.MetadataService.DeleteMetadataStore]. type DeleteMetadataStoreRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -418,7 +425,8 @@ func (x *DeleteMetadataStoreRequest) GetForce() bool { return false } -// Details of operations that perform [MetadataService.DeleteMetadataStore][google.cloud.aiplatform.v1.MetadataService.DeleteMetadataStore]. +// Details of operations that perform +// [MetadataService.DeleteMetadataStore][google.cloud.aiplatform.v1.MetadataService.DeleteMetadataStore]. type DeleteMetadataStoreOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -467,7 +475,8 @@ func (x *DeleteMetadataStoreOperationMetadata) GetGenericMetadata() *GenericOper return nil } -// Request message for [MetadataService.CreateArtifact][google.cloud.aiplatform.v1.MetadataService.CreateArtifact]. +// Request message for +// [MetadataService.CreateArtifact][google.cloud.aiplatform.v1.MetadataService.CreateArtifact]. type CreateArtifactRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -543,7 +552,8 @@ func (x *CreateArtifactRequest) GetArtifactId() string { return "" } -// Request message for [MetadataService.GetArtifact][google.cloud.aiplatform.v1.MetadataService.GetArtifact]. +// Request message for +// [MetadataService.GetArtifact][google.cloud.aiplatform.v1.MetadataService.GetArtifact]. type GetArtifactRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -594,7 +604,8 @@ func (x *GetArtifactRequest) GetName() string { return "" } -// Request message for [MetadataService.ListArtifacts][google.cloud.aiplatform.v1.MetadataService.ListArtifacts]. +// Request message for +// [MetadataService.ListArtifacts][google.cloud.aiplatform.v1.MetadataService.ListArtifacts]. type ListArtifactsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -607,7 +618,8 @@ type ListArtifactsRequest struct { // The maximum number of Artifacts to return. The service may return fewer. // Must be in range 1-1000, inclusive. Defaults to 100. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // A page token, received from a previous [MetadataService.ListArtifacts][google.cloud.aiplatform.v1.MetadataService.ListArtifacts] + // A page token, received from a previous + // [MetadataService.ListArtifacts][google.cloud.aiplatform.v1.MetadataService.ListArtifacts] // call. Provide this to retrieve the subsequent page. // // When paginating, all other provided parameters must match the call that @@ -719,7 +731,8 @@ func (x *ListArtifactsRequest) GetOrderBy() string { return "" } -// Response message for [MetadataService.ListArtifacts][google.cloud.aiplatform.v1.MetadataService.ListArtifacts]. +// Response message for +// [MetadataService.ListArtifacts][google.cloud.aiplatform.v1.MetadataService.ListArtifacts]. type ListArtifactsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -727,7 +740,8 @@ type ListArtifactsResponse struct { // The Artifacts retrieved from the MetadataStore. Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"` - // A token, which can be sent as [ListArtifactsRequest.page_token][google.cloud.aiplatform.v1.ListArtifactsRequest.page_token] + // A token, which can be sent as + // [ListArtifactsRequest.page_token][google.cloud.aiplatform.v1.ListArtifactsRequest.page_token] // to retrieve the next page. // If this field is not populated, there are no subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -779,22 +793,23 @@ func (x *ListArtifactsResponse) GetNextPageToken() string { return "" } -// Request message for [MetadataService.UpdateArtifact][google.cloud.aiplatform.v1.MetadataService.UpdateArtifact]. +// Request message for +// [MetadataService.UpdateArtifact][google.cloud.aiplatform.v1.MetadataService.UpdateArtifact]. type UpdateArtifactRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The Artifact containing updates. - // The Artifact's [Artifact.name][google.cloud.aiplatform.v1.Artifact.name] field is used to identify the Artifact to - // be updated. - // Format: + // The Artifact's [Artifact.name][google.cloud.aiplatform.v1.Artifact.name] + // field is used to identify the Artifact to be updated. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` // Optional. A FieldMask indicating which fields should be updated. // Functionality of this field is not yet supported. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - // If set to true, and the [Artifact][google.cloud.aiplatform.v1.Artifact] is not found, a new [Artifact][google.cloud.aiplatform.v1.Artifact] is + // If set to true, and the [Artifact][google.cloud.aiplatform.v1.Artifact] is + // not found, a new [Artifact][google.cloud.aiplatform.v1.Artifact] is // created. AllowMissing bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"` } @@ -852,7 +867,8 @@ func (x *UpdateArtifactRequest) GetAllowMissing() bool { return false } -// Request message for [MetadataService.DeleteArtifact][google.cloud.aiplatform.v1.MetadataService.DeleteArtifact]. +// Request message for +// [MetadataService.DeleteArtifact][google.cloud.aiplatform.v1.MetadataService.DeleteArtifact]. type DeleteArtifactRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -914,7 +930,8 @@ func (x *DeleteArtifactRequest) GetEtag() string { return "" } -// Request message for [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1.MetadataService.PurgeArtifacts]. +// Request message for +// [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1.MetadataService.PurgeArtifacts]. type PurgeArtifactsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -986,7 +1003,8 @@ func (x *PurgeArtifactsRequest) GetForce() bool { return false } -// Response message for [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1.MetadataService.PurgeArtifacts]. +// Response message for +// [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1.MetadataService.PurgeArtifacts]. type PurgeArtifactsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1047,7 +1065,8 @@ func (x *PurgeArtifactsResponse) GetPurgeSample() []string { return nil } -// Details of operations that perform [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1.MetadataService.PurgeArtifacts]. +// Details of operations that perform +// [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1.MetadataService.PurgeArtifacts]. type PurgeArtifactsMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1096,15 +1115,15 @@ func (x *PurgeArtifactsMetadata) GetGenericMetadata() *GenericOperationMetadata return nil } -// Request message for [MetadataService.CreateContext][google.cloud.aiplatform.v1.MetadataService.CreateContext]. +// Request message for +// [MetadataService.CreateContext][google.cloud.aiplatform.v1.MetadataService.CreateContext]. type CreateContextRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the MetadataStore where the Context should be - // created. - // Format: + // Required. The resource name of the MetadataStore where the Context should + // be created. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatastore}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The Context to create. @@ -1172,7 +1191,8 @@ func (x *CreateContextRequest) GetContextId() string { return "" } -// Request message for [MetadataService.GetContext][google.cloud.aiplatform.v1.MetadataService.GetContext]. +// Request message for +// [MetadataService.GetContext][google.cloud.aiplatform.v1.MetadataService.GetContext]. type GetContextRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1223,7 +1243,8 @@ func (x *GetContextRequest) GetName() string { return "" } -// Request message for [MetadataService.ListContexts][google.cloud.aiplatform.v1.MetadataService.ListContexts] +// Request message for +// [MetadataService.ListContexts][google.cloud.aiplatform.v1.MetadataService.ListContexts] type ListContextsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1236,7 +1257,8 @@ type ListContextsRequest struct { // The maximum number of Contexts to return. The service may return fewer. // Must be in range 1-1000, inclusive. Defaults to 100. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // A page token, received from a previous [MetadataService.ListContexts][google.cloud.aiplatform.v1.MetadataService.ListContexts] + // A page token, received from a previous + // [MetadataService.ListContexts][google.cloud.aiplatform.v1.MetadataService.ListContexts] // call. Provide this to retrieve the subsequent page. // // When paginating, all other provided parameters must match the call that @@ -1354,7 +1376,8 @@ func (x *ListContextsRequest) GetOrderBy() string { return "" } -// Response message for [MetadataService.ListContexts][google.cloud.aiplatform.v1.MetadataService.ListContexts]. +// Response message for +// [MetadataService.ListContexts][google.cloud.aiplatform.v1.MetadataService.ListContexts]. type ListContextsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1362,7 +1385,8 @@ type ListContextsResponse struct { // The Contexts retrieved from the MetadataStore. Contexts []*Context `protobuf:"bytes,1,rep,name=contexts,proto3" json:"contexts,omitempty"` - // A token, which can be sent as [ListContextsRequest.page_token][google.cloud.aiplatform.v1.ListContextsRequest.page_token] + // A token, which can be sent as + // [ListContextsRequest.page_token][google.cloud.aiplatform.v1.ListContextsRequest.page_token] // to retrieve the next page. // If this field is not populated, there are no subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -1414,23 +1438,23 @@ func (x *ListContextsResponse) GetNextPageToken() string { return "" } -// Request message for [MetadataService.UpdateContext][google.cloud.aiplatform.v1.MetadataService.UpdateContext]. +// Request message for +// [MetadataService.UpdateContext][google.cloud.aiplatform.v1.MetadataService.UpdateContext]. type UpdateContextRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The Context containing updates. - // The Context's [Context.name][google.cloud.aiplatform.v1.Context.name] field is used to identify the Context to be - // updated. - // Format: + // The Context's [Context.name][google.cloud.aiplatform.v1.Context.name] field + // is used to identify the Context to be updated. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // Optional. A FieldMask indicating which fields should be updated. // Functionality of this field is not yet supported. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - // If set to true, and the [Context][google.cloud.aiplatform.v1.Context] is not found, a new [Context][google.cloud.aiplatform.v1.Context] is - // created. + // If set to true, and the [Context][google.cloud.aiplatform.v1.Context] is + // not found, a new [Context][google.cloud.aiplatform.v1.Context] is created. AllowMissing bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"` } @@ -1487,7 +1511,8 @@ func (x *UpdateContextRequest) GetAllowMissing() bool { return false } -// Request message for [MetadataService.DeleteContext][google.cloud.aiplatform.v1.MetadataService.DeleteContext]. +// Request message for +// [MetadataService.DeleteContext][google.cloud.aiplatform.v1.MetadataService.DeleteContext]. type DeleteContextRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1559,7 +1584,8 @@ func (x *DeleteContextRequest) GetEtag() string { return "" } -// Request message for [MetadataService.PurgeContexts][google.cloud.aiplatform.v1.MetadataService.PurgeContexts]. +// Request message for +// [MetadataService.PurgeContexts][google.cloud.aiplatform.v1.MetadataService.PurgeContexts]. type PurgeContextsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1631,7 +1657,8 @@ func (x *PurgeContextsRequest) GetForce() bool { return false } -// Response message for [MetadataService.PurgeContexts][google.cloud.aiplatform.v1.MetadataService.PurgeContexts]. +// Response message for +// [MetadataService.PurgeContexts][google.cloud.aiplatform.v1.MetadataService.PurgeContexts]. type PurgeContextsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1692,7 +1719,8 @@ func (x *PurgeContextsResponse) GetPurgeSample() []string { return nil } -// Details of operations that perform [MetadataService.PurgeContexts][google.cloud.aiplatform.v1.MetadataService.PurgeContexts]. +// Details of operations that perform +// [MetadataService.PurgeContexts][google.cloud.aiplatform.v1.MetadataService.PurgeContexts]. type PurgeContextsMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1741,15 +1769,15 @@ func (x *PurgeContextsMetadata) GetGenericMetadata() *GenericOperationMetadata { return nil } -// Request message for [MetadataService.AddContextArtifactsAndExecutions][google.cloud.aiplatform.v1.MetadataService.AddContextArtifactsAndExecutions]. +// Request message for +// [MetadataService.AddContextArtifactsAndExecutions][google.cloud.aiplatform.v1.MetadataService.AddContextArtifactsAndExecutions]. type AddContextArtifactsAndExecutionsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Context that the Artifacts and Executions - // belong to. - // Format: + // Required. The resource name of the Context that the Artifacts and + // Executions belong to. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` Context string `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // The resource names of the Artifacts to attribute to the Context. @@ -1818,7 +1846,8 @@ func (x *AddContextArtifactsAndExecutionsRequest) GetExecutions() []string { return nil } -// Response message for [MetadataService.AddContextArtifactsAndExecutions][google.cloud.aiplatform.v1.MetadataService.AddContextArtifactsAndExecutions]. +// Response message for +// [MetadataService.AddContextArtifactsAndExecutions][google.cloud.aiplatform.v1.MetadataService.AddContextArtifactsAndExecutions]. type AddContextArtifactsAndExecutionsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1857,7 +1886,8 @@ func (*AddContextArtifactsAndExecutionsResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1_metadata_service_proto_rawDescGZIP(), []int{26} } -// Request message for [MetadataService.AddContextChildren][google.cloud.aiplatform.v1.MetadataService.AddContextChildren]. +// Request message for +// [MetadataService.AddContextChildren][google.cloud.aiplatform.v1.MetadataService.AddContextChildren]. type AddContextChildrenRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1918,7 +1948,8 @@ func (x *AddContextChildrenRequest) GetChildContexts() []string { return nil } -// Response message for [MetadataService.AddContextChildren][google.cloud.aiplatform.v1.MetadataService.AddContextChildren]. +// Response message for +// [MetadataService.AddContextChildren][google.cloud.aiplatform.v1.MetadataService.AddContextChildren]. type AddContextChildrenResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2019,7 +2050,8 @@ func (x *RemoveContextChildrenRequest) GetChildContexts() []string { return nil } -// Response message for [MetadataService.RemoveContextChildren][google.cloud.aiplatform.v1.MetadataService.RemoveContextChildren]. +// Response message for +// [MetadataService.RemoveContextChildren][google.cloud.aiplatform.v1.MetadataService.RemoveContextChildren]. type RemoveContextChildrenResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2058,7 +2090,8 @@ func (*RemoveContextChildrenResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1_metadata_service_proto_rawDescGZIP(), []int{30} } -// Request message for [MetadataService.QueryContextLineageSubgraph][google.cloud.aiplatform.v1.MetadataService.QueryContextLineageSubgraph]. +// Request message for +// [MetadataService.QueryContextLineageSubgraph][google.cloud.aiplatform.v1.MetadataService.QueryContextLineageSubgraph]. type QueryContextLineageSubgraphRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2114,7 +2147,8 @@ func (x *QueryContextLineageSubgraphRequest) GetContext() string { return "" } -// Request message for [MetadataService.CreateExecution][google.cloud.aiplatform.v1.MetadataService.CreateExecution]. +// Request message for +// [MetadataService.CreateExecution][google.cloud.aiplatform.v1.MetadataService.CreateExecution]. type CreateExecutionRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2191,7 +2225,8 @@ func (x *CreateExecutionRequest) GetExecutionId() string { return "" } -// Request message for [MetadataService.GetExecution][google.cloud.aiplatform.v1.MetadataService.GetExecution]. +// Request message for +// [MetadataService.GetExecution][google.cloud.aiplatform.v1.MetadataService.GetExecution]. type GetExecutionRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2242,7 +2277,8 @@ func (x *GetExecutionRequest) GetName() string { return "" } -// Request message for [MetadataService.ListExecutions][google.cloud.aiplatform.v1.MetadataService.ListExecutions]. +// Request message for +// [MetadataService.ListExecutions][google.cloud.aiplatform.v1.MetadataService.ListExecutions]. type ListExecutionsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2255,7 +2291,8 @@ type ListExecutionsRequest struct { // The maximum number of Executions to return. The service may return fewer. // Must be in range 1-1000, inclusive. Defaults to 100. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // A page token, received from a previous [MetadataService.ListExecutions][google.cloud.aiplatform.v1.MetadataService.ListExecutions] + // A page token, received from a previous + // [MetadataService.ListExecutions][google.cloud.aiplatform.v1.MetadataService.ListExecutions] // call. Provide this to retrieve the subsequent page. // // When paginating, all other provided parameters must match the call that @@ -2367,7 +2404,8 @@ func (x *ListExecutionsRequest) GetOrderBy() string { return "" } -// Response message for [MetadataService.ListExecutions][google.cloud.aiplatform.v1.MetadataService.ListExecutions]. +// Response message for +// [MetadataService.ListExecutions][google.cloud.aiplatform.v1.MetadataService.ListExecutions]. type ListExecutionsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2375,7 +2413,8 @@ type ListExecutionsResponse struct { // The Executions retrieved from the MetadataStore. Executions []*Execution `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` - // A token, which can be sent as [ListExecutionsRequest.page_token][google.cloud.aiplatform.v1.ListExecutionsRequest.page_token] + // A token, which can be sent as + // [ListExecutionsRequest.page_token][google.cloud.aiplatform.v1.ListExecutionsRequest.page_token] // to retrieve the next page. // If this field is not populated, there are no subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -2427,23 +2466,24 @@ func (x *ListExecutionsResponse) GetNextPageToken() string { return "" } -// Request message for [MetadataService.UpdateExecution][google.cloud.aiplatform.v1.MetadataService.UpdateExecution]. +// Request message for +// [MetadataService.UpdateExecution][google.cloud.aiplatform.v1.MetadataService.UpdateExecution]. type UpdateExecutionRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The Execution containing updates. - // The Execution's [Execution.name][google.cloud.aiplatform.v1.Execution.name] field is used to identify the Execution - // to be updated. - // Format: + // The Execution's [Execution.name][google.cloud.aiplatform.v1.Execution.name] + // field is used to identify the Execution to be updated. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` Execution *Execution `protobuf:"bytes,1,opt,name=execution,proto3" json:"execution,omitempty"` // Optional. A FieldMask indicating which fields should be updated. // Functionality of this field is not yet supported. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - // If set to true, and the [Execution][google.cloud.aiplatform.v1.Execution] is not found, a new [Execution][google.cloud.aiplatform.v1.Execution] - // is created. + // If set to true, and the [Execution][google.cloud.aiplatform.v1.Execution] + // is not found, a new [Execution][google.cloud.aiplatform.v1.Execution] is + // created. AllowMissing bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"` } @@ -2500,7 +2540,8 @@ func (x *UpdateExecutionRequest) GetAllowMissing() bool { return false } -// Request message for [MetadataService.DeleteExecution][google.cloud.aiplatform.v1.MetadataService.DeleteExecution]. +// Request message for +// [MetadataService.DeleteExecution][google.cloud.aiplatform.v1.MetadataService.DeleteExecution]. type DeleteExecutionRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2562,7 +2603,8 @@ func (x *DeleteExecutionRequest) GetEtag() string { return "" } -// Request message for [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1.MetadataService.PurgeExecutions]. +// Request message for +// [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1.MetadataService.PurgeExecutions]. type PurgeExecutionsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2634,7 +2676,8 @@ func (x *PurgeExecutionsRequest) GetForce() bool { return false } -// Response message for [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1.MetadataService.PurgeExecutions]. +// Response message for +// [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1.MetadataService.PurgeExecutions]. type PurgeExecutionsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2696,7 +2739,8 @@ func (x *PurgeExecutionsResponse) GetPurgeSample() []string { return nil } -// Details of operations that perform [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1.MetadataService.PurgeExecutions]. +// Details of operations that perform +// [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1.MetadataService.PurgeExecutions]. type PurgeExecutionsMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2745,7 +2789,8 @@ func (x *PurgeExecutionsMetadata) GetGenericMetadata() *GenericOperationMetadata return nil } -// Request message for [MetadataService.AddExecutionEvents][google.cloud.aiplatform.v1.MetadataService.AddExecutionEvents]. +// Request message for +// [MetadataService.AddExecutionEvents][google.cloud.aiplatform.v1.MetadataService.AddExecutionEvents]. type AddExecutionEventsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2806,7 +2851,8 @@ func (x *AddExecutionEventsRequest) GetEvents() []*Event { return nil } -// Response message for [MetadataService.AddExecutionEvents][google.cloud.aiplatform.v1.MetadataService.AddExecutionEvents]. +// Response message for +// [MetadataService.AddExecutionEvents][google.cloud.aiplatform.v1.MetadataService.AddExecutionEvents]. type AddExecutionEventsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2845,15 +2891,15 @@ func (*AddExecutionEventsResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1_metadata_service_proto_rawDescGZIP(), []int{42} } -// Request message for [MetadataService.QueryExecutionInputsAndOutputs][google.cloud.aiplatform.v1.MetadataService.QueryExecutionInputsAndOutputs]. +// Request message for +// [MetadataService.QueryExecutionInputsAndOutputs][google.cloud.aiplatform.v1.MetadataService.QueryExecutionInputsAndOutputs]. type QueryExecutionInputsAndOutputsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Execution whose input and output Artifacts should - // be retrieved as a LineageSubgraph. - // Format: + // Required. The resource name of the Execution whose input and output + // Artifacts should be retrieved as a LineageSubgraph. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` Execution string `protobuf:"bytes,1,opt,name=execution,proto3" json:"execution,omitempty"` } @@ -2897,15 +2943,15 @@ func (x *QueryExecutionInputsAndOutputsRequest) GetExecution() string { return "" } -// Request message for [MetadataService.CreateMetadataSchema][google.cloud.aiplatform.v1.MetadataService.CreateMetadataSchema]. +// Request message for +// [MetadataService.CreateMetadataSchema][google.cloud.aiplatform.v1.MetadataService.CreateMetadataSchema]. type CreateMetadataSchemaRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the MetadataStore where the MetadataSchema should - // be created. - // Format: + // Required. The resource name of the MetadataStore where the MetadataSchema + // should be created. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatastore}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The MetadataSchema to create. @@ -2974,7 +3020,8 @@ func (x *CreateMetadataSchemaRequest) GetMetadataSchemaId() string { return "" } -// Request message for [MetadataService.GetMetadataSchema][google.cloud.aiplatform.v1.MetadataService.GetMetadataSchema]. +// Request message for +// [MetadataService.GetMetadataSchema][google.cloud.aiplatform.v1.MetadataService.GetMetadataSchema]. type GetMetadataSchemaRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3025,7 +3072,8 @@ func (x *GetMetadataSchemaRequest) GetName() string { return "" } -// Request message for [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemas]. +// Request message for +// [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemas]. type ListMetadataSchemasRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3040,8 +3088,8 @@ type ListMetadataSchemasRequest struct { // Must be in range 1-1000, inclusive. Defaults to 100. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemas] call. Provide this to retrieve the - // next page. + // [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemas] + // call. Provide this to retrieve the next page. // // When paginating, all other provided parameters must match the call that // provided the page token. (Otherwise the request will fail with @@ -3111,7 +3159,8 @@ func (x *ListMetadataSchemasRequest) GetFilter() string { return "" } -// Response message for [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemas]. +// Response message for +// [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemas]. type ListMetadataSchemasResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3120,8 +3169,9 @@ type ListMetadataSchemasResponse struct { // The MetadataSchemas found for the MetadataStore. MetadataSchemas []*MetadataSchema `protobuf:"bytes,1,rep,name=metadata_schemas,json=metadataSchemas,proto3" json:"metadata_schemas,omitempty"` // A token, which can be sent as - // [ListMetadataSchemasRequest.page_token][google.cloud.aiplatform.v1.ListMetadataSchemasRequest.page_token] to retrieve the next - // page. If this field is not populated, there are no subsequent pages. + // [ListMetadataSchemasRequest.page_token][google.cloud.aiplatform.v1.ListMetadataSchemasRequest.page_token] + // to retrieve the next page. If this field is not populated, there are no + // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -3171,15 +3221,15 @@ func (x *ListMetadataSchemasResponse) GetNextPageToken() string { return "" } -// Request message for [MetadataService.QueryArtifactLineageSubgraph][google.cloud.aiplatform.v1.MetadataService.QueryArtifactLineageSubgraph]. +// Request message for +// [MetadataService.QueryArtifactLineageSubgraph][google.cloud.aiplatform.v1.MetadataService.QueryArtifactLineageSubgraph]. type QueryArtifactLineageSubgraphRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Artifact whose Lineage needs to be retrieved as a - // LineageSubgraph. - // Format: + // Required. The resource name of the Artifact whose Lineage needs to be + // retrieved as a LineageSubgraph. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` // // The request may error with FAILED_PRECONDITION if the number of Artifacts, diff --git a/aiplatform/apiv1/aiplatformpb/migratable_resource.pb.go b/aiplatform/apiv1/aiplatformpb/migratable_resource.pb.go index e8b24f078469..1e1f349c4220 100644 --- a/aiplatform/apiv1/aiplatformpb/migratable_resource.pb.go +++ b/aiplatform/apiv1/aiplatformpb/migratable_resource.pb.go @@ -51,9 +51,9 @@ type MigratableResource struct { // *MigratableResource_AutomlDataset_ // *MigratableResource_DataLabelingDataset_ Resource isMigratableResource_Resource `protobuf_oneof:"resource"` - // Output only. Timestamp when the last migration attempt on this MigratableResource - // started. Will not be set if there's no migration attempt on this - // MigratableResource. + // Output only. Timestamp when the last migration attempt on this + // MigratableResource started. Will not be set if there's no migration attempt + // on this MigratableResource. LastMigrateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_migrate_time,json=lastMigrateTime,proto3" json:"last_migrate_time,omitempty"` // Output only. Timestamp when this MigratableResource was last updated. LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"` diff --git a/aiplatform/apiv1/aiplatformpb/migration_service.pb.go b/aiplatform/apiv1/aiplatformpb/migration_service.pb.go index fa6ded41ad02..c2629ab45f21 100644 --- a/aiplatform/apiv1/aiplatformpb/migration_service.pb.go +++ b/aiplatform/apiv1/aiplatformpb/migration_service.pb.go @@ -42,16 +42,16 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [MigrationService.SearchMigratableResources][google.cloud.aiplatform.v1.MigrationService.SearchMigratableResources]. +// Request message for +// [MigrationService.SearchMigratableResources][google.cloud.aiplatform.v1.MigrationService.SearchMigratableResources]. type SearchMigratableResourcesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The location that the migratable resources should be searched from. - // It's the Vertex AI location that the resources can be migrated to, not - // the resources' original location. - // Format: + // Required. The location that the migratable resources should be searched + // from. It's the Vertex AI location that the resources can be migrated to, + // not the resources' original location. Format: // `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The standard page size. @@ -134,7 +134,8 @@ func (x *SearchMigratableResourcesRequest) GetFilter() string { return "" } -// Response message for [MigrationService.SearchMigratableResources][google.cloud.aiplatform.v1.MigrationService.SearchMigratableResources]. +// Response message for +// [MigrationService.SearchMigratableResources][google.cloud.aiplatform.v1.MigrationService.SearchMigratableResources]. type SearchMigratableResourcesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -195,7 +196,8 @@ func (x *SearchMigratableResourcesResponse) GetNextPageToken() string { return "" } -// Request message for [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1.MigrationService.BatchMigrateResources]. +// Request message for +// [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1.MigrationService.BatchMigrateResources]. type BatchMigrateResourcesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -375,7 +377,8 @@ func (*MigrateResourceRequest_MigrateAutomlDatasetConfig_) isMigrateResourceRequ func (*MigrateResourceRequest_MigrateDataLabelingDatasetConfig_) isMigrateResourceRequest_Request() {} -// Response message for [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1.MigrationService.BatchMigrateResources]. +// Response message for +// [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1.MigrationService.BatchMigrateResources]. type BatchMigrateResourcesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -520,7 +523,8 @@ func (*MigrateResourceResponse_Dataset) isMigrateResourceResponse_MigratedResour func (*MigrateResourceResponse_Model) isMigrateResourceResponse_MigratedResource() {} -// Runtime operation information for [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1.MigrationService.BatchMigrateResources]. +// Runtime operation information for +// [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1.MigrationService.BatchMigrateResources]. type BatchMigrateResourcesOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -584,9 +588,8 @@ type MigrateResourceRequest_MigrateMlEngineModelVersionConfig struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The ml.googleapis.com endpoint that this model version should be migrated - // from. - // Example values: + // Required. The ml.googleapis.com endpoint that this model version should + // be migrated from. Example values: // // * ml.googleapis.com // @@ -794,9 +797,9 @@ type MigrateResourceRequest_MigrateDataLabelingDatasetConfig struct { // Optional. Display name of the Dataset in Vertex AI. // System will pick a display name if unspecified. DatasetDisplayName string `protobuf:"bytes,2,opt,name=dataset_display_name,json=datasetDisplayName,proto3" json:"dataset_display_name,omitempty"` - // Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to - // Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong - // to the datalabeling Dataset. + // Optional. Configs for migrating AnnotatedDataset in + // datalabeling.googleapis.com to Vertex AI's SavedQuery. The specified + // AnnotatedDatasets have to belong to the datalabeling Dataset. MigrateDataLabelingAnnotatedDatasetConfigs []*MigrateResourceRequest_MigrateDataLabelingDatasetConfig_MigrateDataLabelingAnnotatedDatasetConfig `protobuf:"bytes,3,rep,name=migrate_data_labeling_annotated_dataset_configs,json=migrateDataLabelingAnnotatedDatasetConfigs,proto3" json:"migrate_data_labeling_annotated_dataset_configs,omitempty"` } diff --git a/aiplatform/apiv1/aiplatformpb/model.pb.go b/aiplatform/apiv1/aiplatformpb/model.pb.go index d6a3e982ee16..5310087960ea 100644 --- a/aiplatform/apiv1/aiplatformpb/model.pb.go +++ b/aiplatform/apiv1/aiplatformpb/model.pb.go @@ -44,14 +44,16 @@ type Model_DeploymentResourcesType int32 const ( // Should not be used. Model_DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED Model_DeploymentResourcesType = 0 - // Resources that are dedicated to the [DeployedModel][google.cloud.aiplatform.v1.DeployedModel], and that need a - // higher degree of manual configuration. + // Resources that are dedicated to the + // [DeployedModel][google.cloud.aiplatform.v1.DeployedModel], and that need + // a higher degree of manual configuration. Model_DEDICATED_RESOURCES Model_DeploymentResourcesType = 1 // Resources that to large degree are decided by Vertex AI, and require // only a modest additional configuration. Model_AUTOMATIC_RESOURCES Model_DeploymentResourcesType = 2 - // Resources that can be shared by multiple [DeployedModels][google.cloud.aiplatform.v1.DeployedModel]. - // A pre-configured [DeploymentResourcePool][] is required. + // Resources that can be shared by multiple + // [DeployedModels][google.cloud.aiplatform.v1.DeployedModel]. A + // pre-configured [DeploymentResourcePool][] is required. Model_SHARED_RESOURCES Model_DeploymentResourcesType = 3 ) @@ -106,11 +108,14 @@ const ( Model_ExportFormat_EXPORTABLE_CONTENT_UNSPECIFIED Model_ExportFormat_ExportableContent = 0 // Model artifact and any of its supported files. Will be exported to the // location specified by the `artifactDestination` field of the - // [ExportModelRequest.output_config][google.cloud.aiplatform.v1.ExportModelRequest.output_config] object. + // [ExportModelRequest.output_config][google.cloud.aiplatform.v1.ExportModelRequest.output_config] + // object. Model_ExportFormat_ARTIFACT Model_ExportFormat_ExportableContent = 1 // The container image that is to be used when deploying this Model. Will // be exported to the location specified by the `imageDestination` field - // of the [ExportModelRequest.output_config][google.cloud.aiplatform.v1.ExportModelRequest.output_config] object. + // of the + // [ExportModelRequest.output_config][google.cloud.aiplatform.v1.ExportModelRequest.output_config] + // object. Model_ExportFormat_IMAGE Model_ExportFormat_ExportableContent = 2 ) @@ -249,12 +254,14 @@ type Model struct { VersionDescription string `protobuf:"bytes,30,opt,name=version_description,json=versionDescription,proto3" json:"version_description,omitempty"` // The schemata that describe formats of the Model's predictions and // explanations as given and returned via - // [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict] and [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain]. + // [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict] + // and + // [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain]. PredictSchemata *PredictSchemata `protobuf:"bytes,4,opt,name=predict_schemata,json=predictSchemata,proto3" json:"predict_schemata,omitempty"` - // Immutable. Points to a YAML file stored on Google Cloud Storage describing additional - // information about the Model, that is specific to it. Unset if the Model - // does not have any additional information. - // The schema is defined as an OpenAPI 3.0.2 [Schema + // Immutable. Points to a YAML file stored on Google Cloud Storage describing + // additional information about the Model, that is specific to it. Unset if + // the Model does not have any additional information. The schema is defined + // as an OpenAPI 3.0.2 [Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). // AutoML Models always have this field populated by Vertex AI, if no // additional metadata is needed, this field is set to an empty string. @@ -262,42 +269,49 @@ type Model struct { // including the URI scheme, than the one given on input. The output URI will // point to a location where the user only has a read access. MetadataSchemaUri string `protobuf:"bytes,5,opt,name=metadata_schema_uri,json=metadataSchemaUri,proto3" json:"metadata_schema_uri,omitempty"` - // Immutable. An additional information about the Model; the schema of the metadata can - // be found in [metadata_schema][google.cloud.aiplatform.v1.Model.metadata_schema_uri]. + // Immutable. An additional information about the Model; the schema of the + // metadata can be found in + // [metadata_schema][google.cloud.aiplatform.v1.Model.metadata_schema_uri]. // Unset if the Model does not have any additional information. Metadata *structpb.Value `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` - // Output only. The formats in which this Model may be exported. If empty, this Model is - // not available for export. + // Output only. The formats in which this Model may be exported. If empty, + // this Model is not available for export. SupportedExportFormats []*Model_ExportFormat `protobuf:"bytes,20,rep,name=supported_export_formats,json=supportedExportFormats,proto3" json:"supported_export_formats,omitempty"` - // Output only. The resource name of the TrainingPipeline that uploaded this Model, if - // any. + // Output only. The resource name of the TrainingPipeline that uploaded this + // Model, if any. TrainingPipeline string `protobuf:"bytes,7,opt,name=training_pipeline,json=trainingPipeline,proto3" json:"training_pipeline,omitempty"` - // Input only. The specification of the container that is to be used when deploying - // this Model. The specification is ingested upon - // [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], and all binaries it contains are copied - // and stored internally by Vertex AI. + // Input only. The specification of the container that is to be used when + // deploying this Model. The specification is ingested upon + // [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], + // and all binaries it contains are copied and stored internally by Vertex AI. // Not present for AutoML Models. ContainerSpec *ModelContainerSpec `protobuf:"bytes,9,opt,name=container_spec,json=containerSpec,proto3" json:"container_spec,omitempty"` - // Immutable. The path to the directory containing the Model artifact and any of its - // supporting files. - // Not present for AutoML Models. + // Immutable. The path to the directory containing the Model artifact and any + // of its supporting files. Not present for AutoML Models. ArtifactUri string `protobuf:"bytes,26,opt,name=artifact_uri,json=artifactUri,proto3" json:"artifact_uri,omitempty"` - // Output only. When this Model is deployed, its prediction resources are described by the - // `prediction_resources` field of the [Endpoint.deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] object. - // Because not all Models support all resource configuration types, the - // configuration types this Model supports are listed here. If no + // Output only. When this Model is deployed, its prediction resources are + // described by the `prediction_resources` field of the + // [Endpoint.deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] + // object. Because not all Models support all resource configuration types, + // the configuration types this Model supports are listed here. If no // configuration types are listed, the Model cannot be deployed to an // [Endpoint][google.cloud.aiplatform.v1.Endpoint] and does not support - // online predictions ([PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict] or - // [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain]). Such a Model can serve predictions by - // using a [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob], if it has at least one entry each in - // [supported_input_storage_formats][google.cloud.aiplatform.v1.Model.supported_input_storage_formats] and + // online predictions + // ([PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict] + // or + // [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain]). + // Such a Model can serve predictions by using a + // [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob], if it + // has at least one entry each in + // [supported_input_storage_formats][google.cloud.aiplatform.v1.Model.supported_input_storage_formats] + // and // [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats]. SupportedDeploymentResourcesTypes []Model_DeploymentResourcesType `protobuf:"varint,10,rep,packed,name=supported_deployment_resources_types,json=supportedDeploymentResourcesTypes,proto3,enum=google.cloud.aiplatform.v1.Model_DeploymentResourcesType" json:"supported_deployment_resources_types,omitempty"` // Output only. The formats this Model supports in - // [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. If - // [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] exists, the instances - // should be given as per that schema. + // [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. + // If + // [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] + // exists, the instances should be given as per that schema. // // The possible formats are: // @@ -308,11 +322,13 @@ type Model struct { // * `csv` // The CSV format, where each instance is a single comma-separated line. // The first line in the file is the header, containing comma-separated field - // names. Uses [GcsSource][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.gcs_source]. + // names. Uses + // [GcsSource][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.gcs_source]. // // * `tf-record` // The TFRecord format, where each instance is a single record in tfrecord - // syntax. Uses [GcsSource][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.gcs_source]. + // syntax. Uses + // [GcsSource][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.gcs_source]. // // * `tf-record-gzip` // Similar to `tf-record`, but the file is gzipped. Uses @@ -325,21 +341,28 @@ type Model struct { // * `file-list` // Each line of the file is the location of an instance to process, uses // `gcs_source` field of the - // [InputConfig][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig] object. + // [InputConfig][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig] + // object. // // If this Model doesn't support any of these formats it means it cannot be - // used with a [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. However, if it has - // [supported_deployment_resources_types][google.cloud.aiplatform.v1.Model.supported_deployment_resources_types], it could serve online - // predictions by using [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict] or + // used with a + // [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. + // However, if it has + // [supported_deployment_resources_types][google.cloud.aiplatform.v1.Model.supported_deployment_resources_types], + // it could serve online predictions by using + // [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict] + // or // [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain]. SupportedInputStorageFormats []string `protobuf:"bytes,11,rep,name=supported_input_storage_formats,json=supportedInputStorageFormats,proto3" json:"supported_input_storage_formats,omitempty"` // Output only. The formats this Model supports in - // [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. If both - // [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] and - // [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.prediction_schema_uri] exist, the predictions - // are returned together with their instances. In other words, the - // prediction has the original instance data first, followed - // by the actual prediction content (as per the schema). + // [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. + // If both + // [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] + // and + // [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.prediction_schema_uri] + // exist, the predictions are returned together with their instances. In other + // words, the prediction has the original instance data first, followed by the + // actual prediction content (as per the schema). // // The possible formats are: // @@ -359,40 +382,48 @@ type Model struct { // . // // If this Model doesn't support any of these formats it means it cannot be - // used with a [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. However, if it has - // [supported_deployment_resources_types][google.cloud.aiplatform.v1.Model.supported_deployment_resources_types], it could serve online - // predictions by using [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict] or + // used with a + // [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. + // However, if it has + // [supported_deployment_resources_types][google.cloud.aiplatform.v1.Model.supported_deployment_resources_types], + // it could serve online predictions by using + // [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict] + // or // [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain]. SupportedOutputStorageFormats []string `protobuf:"bytes,12,rep,name=supported_output_storage_formats,json=supportedOutputStorageFormats,proto3" json:"supported_output_storage_formats,omitempty"` // Output only. Timestamp when this Model was uploaded into Vertex AI. CreateTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when this Model was most recently updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // Output only. The pointers to DeployedModels created from this Model. Note that - // Model could have been deployed to Endpoints in different Locations. + // Output only. The pointers to DeployedModels created from this Model. Note + // that Model could have been deployed to Endpoints in different Locations. DeployedModels []*DeployedModelRef `protobuf:"bytes,15,rep,name=deployed_models,json=deployedModels,proto3" json:"deployed_models,omitempty"` // The default explanation specification for this Model. // // The Model can be used for [requesting // explanation][PredictionService.Explain] after being - // [deployed][google.cloud.aiplatform.v1.EndpointService.DeployModel] if it is populated. - // The Model can be used for [batch + // [deployed][google.cloud.aiplatform.v1.EndpointService.DeployModel] if it is + // populated. The Model can be used for [batch // explanation][BatchPredictionJob.generate_explanation] if it is populated. // // All fields of the explanation_spec can be overridden by - // [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] of - // [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1.DeployModelRequest.deployed_model], or - // [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] of - // [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. + // [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + // of + // [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1.DeployModelRequest.deployed_model], + // or + // [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] + // of [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. // // If the default explanation specification is not set for this Model, this // Model can still be used for [requesting // explanation][PredictionService.Explain] by setting - // [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] of - // [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1.DeployModelRequest.deployed_model] and for [batch - // explanation][BatchPredictionJob.generate_explanation] by setting - // [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] of - // [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. + // [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + // of + // [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1.DeployModelRequest.deployed_model] + // and for [batch explanation][BatchPredictionJob.generate_explanation] by + // setting + // [explanation_spec][google.cloud.aiplatform.v1.BatchPredictionJob.explanation_spec] + // of [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. ExplanationSpec *ExplanationSpec `protobuf:"bytes,23,opt,name=explanation_spec,json=explanationSpec,proto3" json:"explanation_spec,omitempty"` // Used to perform consistent read-modify-write updates. If not set, a blind // "overwrite" update happens. @@ -408,11 +439,12 @@ type Model struct { // Customer-managed encryption key spec for a Model. If set, this // Model and all sub-resources of this Model will be secured by this key. EncryptionSpec *EncryptionSpec `protobuf:"bytes,24,opt,name=encryption_spec,json=encryptionSpec,proto3" json:"encryption_spec,omitempty"` - // Output only. Source of a model. It can either be automl training pipeline, custom - // training pipeline, BigQuery ML, or existing Vertex AI Model. + // Output only. Source of a model. It can either be automl training pipeline, + // custom training pipeline, BigQuery ML, or existing Vertex AI Model. ModelSourceInfo *ModelSourceInfo `protobuf:"bytes,38,opt,name=model_source_info,json=modelSourceInfo,proto3" json:"model_source_info,omitempty"` - // Output only. The resource name of the Artifact that was created in MetadataStore when - // creating the Model. The Artifact resource name pattern is + // Output only. The resource name of the Artifact that was created in + // MetadataStore when creating the Model. The Artifact resource name pattern + // is // `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. MetadataArtifact string `protobuf:"bytes,44,opt,name=metadata_artifact,json=metadataArtifact,proto3" json:"metadata_artifact,omitempty"` } @@ -639,16 +671,19 @@ func (x *Model) GetMetadataArtifact() string { } // Contains the schemata used in Model's predictions and explanations via -// [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict], [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain] and -// [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. +// [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict], +// [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain] +// and [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. type PredictSchemata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Immutable. Points to a YAML file stored on Google Cloud Storage describing the format - // of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], - // [ExplainRequest.instances][google.cloud.aiplatform.v1.ExplainRequest.instances] and + // Immutable. Points to a YAML file stored on Google Cloud Storage describing + // the format of a single instance, which are used in + // [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], + // [ExplainRequest.instances][google.cloud.aiplatform.v1.ExplainRequest.instances] + // and // [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. // The schema is defined as an OpenAPI 3.0.2 [Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). @@ -657,9 +692,11 @@ type PredictSchemata struct { // including the URI scheme, than the one given on input. The output URI will // point to a location where the user only has a read access. InstanceSchemaUri string `protobuf:"bytes,1,opt,name=instance_schema_uri,json=instanceSchemaUri,proto3" json:"instance_schema_uri,omitempty"` - // Immutable. Points to a YAML file stored on Google Cloud Storage describing the - // parameters of prediction and explanation via - // [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], [ExplainRequest.parameters][google.cloud.aiplatform.v1.ExplainRequest.parameters] and + // Immutable. Points to a YAML file stored on Google Cloud Storage describing + // the parameters of prediction and explanation via + // [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], + // [ExplainRequest.parameters][google.cloud.aiplatform.v1.ExplainRequest.parameters] + // and // [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. // The schema is defined as an OpenAPI 3.0.2 [Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). @@ -669,9 +706,12 @@ type PredictSchemata struct { // including the URI scheme, than the one given on input. The output URI will // point to a location where the user only has a read access. ParametersSchemaUri string `protobuf:"bytes,2,opt,name=parameters_schema_uri,json=parametersSchemaUri,proto3" json:"parameters_schema_uri,omitempty"` - // Immutable. Points to a YAML file stored on Google Cloud Storage describing the format - // of a single prediction produced by this Model, which are returned via - // [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], [ExplainResponse.explanations][google.cloud.aiplatform.v1.ExplainResponse.explanations], and + // Immutable. Points to a YAML file stored on Google Cloud Storage describing + // the format of a single prediction produced by this Model, which are + // returned via + // [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], + // [ExplainResponse.explanations][google.cloud.aiplatform.v1.ExplainResponse.explanations], + // and // [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. // The schema is defined as an OpenAPI 3.0.2 [Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). @@ -743,14 +783,16 @@ type ModelContainerSpec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. Immutable. URI of the Docker image to be used as the custom container for serving - // predictions. This URI must identify an image in Artifact Registry or - // Container Registry. Learn more about the [container publishing + // Required. Immutable. URI of the Docker image to be used as the custom + // container for serving predictions. This URI must identify an image in + // Artifact Registry or Container Registry. Learn more about the [container + // publishing // requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing), // including permissions requirements for the Vertex AI Service Agent. // - // The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], stored - // internally, and this original path is afterwards not used. + // The container image is ingested upon + // [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], + // stored internally, and this original path is afterwards not used. // // To learn about the requirements for the Docker image itself, see // [Custom container @@ -760,14 +802,15 @@ type ModelContainerSpec struct { // prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers) // in this field. ImageUri string `protobuf:"bytes,1,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"` - // Immutable. Specifies the command that runs when the container starts. This overrides - // the container's + // Immutable. Specifies the command that runs when the container starts. This + // overrides the container's // [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint). // Specify this field as an array of executable and arguments, similar to a // Docker `ENTRYPOINT`'s "exec" form, not its "shell" form. // // If you do not specify this field, then the container's `ENTRYPOINT` runs, - // in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the + // in conjunction with the + // [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the // container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), // if either exists. If this field is not specified and the container does not // have an `ENTRYPOINT`, then refer to the Docker documentation about [how @@ -783,31 +826,29 @@ type ModelContainerSpec struct { // // In this field, you can reference [environment variables set by Vertex // AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) - // and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. - // You cannot reference environment variables set in the Docker image. In - // order for environment variables to be expanded, reference them by using the - // following syntax: - // $(VARIABLE_NAME) - // Note that this differs from Bash variable expansion, which does not use - // parentheses. If a variable cannot be resolved, the reference in the input - // string is used unchanged. To avoid variable expansion, you can escape this - // syntax with `$$`; for example: - // $$(VARIABLE_NAME) - // This field corresponds to the `command` field of the Kubernetes Containers - // [v1 core + // and environment variables set in the + // [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. You cannot + // reference environment variables set in the Docker image. In order for + // environment variables to be expanded, reference them by using the following + // syntax: $(VARIABLE_NAME) Note that this differs + // from Bash variable expansion, which does not use parentheses. If a variable + // cannot be resolved, the reference in the input string is used unchanged. To + // avoid variable expansion, you can escape this syntax with `$$`; for + // example: $$(VARIABLE_NAME) This field corresponds + // to the `command` field of the Kubernetes Containers [v1 core // API](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#container-v1-core). Command []string `protobuf:"bytes,2,rep,name=command,proto3" json:"command,omitempty"` - // Immutable. Specifies arguments for the command that runs when the container starts. - // This overrides the container's + // Immutable. Specifies arguments for the command that runs when the container + // starts. This overrides the container's // [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd). Specify // this field as an array of executable and arguments, similar to a Docker // `CMD`'s "default parameters" form. // // If you don't specify this field but do specify the - // [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the - // `command` field runs without any additional arguments. See the - // [Kubernetes documentation about how the - // `command` and `args` fields interact with a container's `ENTRYPOINT` and + // [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, + // then the command from the `command` field runs without any additional + // arguments. See the [Kubernetes documentation about how the `command` and + // `args` fields interact with a container's `ENTRYPOINT` and // `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). // // If you don't specify this field and don't specify the `command` field, @@ -820,28 +861,28 @@ type ModelContainerSpec struct { // In this field, you can reference [environment variables // set by Vertex // AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) - // and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. - // You cannot reference environment variables set in the Docker image. In - // order for environment variables to be expanded, reference them by using the - // following syntax: - // $(VARIABLE_NAME) - // Note that this differs from Bash variable expansion, which does not use - // parentheses. If a variable cannot be resolved, the reference in the input - // string is used unchanged. To avoid variable expansion, you can escape this - // syntax with `$$`; for example: - // $$(VARIABLE_NAME) - // This field corresponds to the `args` field of the Kubernetes Containers - // [v1 core + // and environment variables set in the + // [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. You cannot + // reference environment variables set in the Docker image. In order for + // environment variables to be expanded, reference them by using the following + // syntax: $(VARIABLE_NAME) Note that this differs + // from Bash variable expansion, which does not use parentheses. If a variable + // cannot be resolved, the reference in the input string is used unchanged. To + // avoid variable expansion, you can escape this syntax with `$$`; for + // example: $$(VARIABLE_NAME) This field corresponds + // to the `args` field of the Kubernetes Containers [v1 core // API](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#container-v1-core). Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` - // Immutable. List of environment variables to set in the container. After the container - // starts running, code running in the container can read these environment - // variables. + // Immutable. List of environment variables to set in the container. After the + // container starts running, code running in the container can read these + // environment variables. // - // Additionally, the [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] and - // [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] fields can reference these variables. Later - // entries in this list can also reference earlier entries. For example, the - // following example sets the variable `VAR_2` to have the value `foo bar`: + // Additionally, the + // [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] and + // [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] fields can + // reference these variables. Later entries in this list can also reference + // earlier entries. For example, the following example sets the variable + // `VAR_2` to have the value `foo bar`: // // ```json // [ @@ -889,11 +930,11 @@ type ModelContainerSpec struct { // [v1 core // API](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#container-v1-core). Ports []*Port `protobuf:"bytes,5,rep,name=ports,proto3" json:"ports,omitempty"` - // Immutable. HTTP path on the container to send prediction requests to. Vertex AI - // forwards requests sent using - // [projects.locations.endpoints.predict][google.cloud.aiplatform.v1.PredictionService.Predict] to this - // path on the container's IP address and port. Vertex AI then returns the - // container's response in the API response. + // Immutable. HTTP path on the container to send prediction requests to. + // Vertex AI forwards requests sent using + // [projects.locations.endpoints.predict][google.cloud.aiplatform.v1.PredictionService.Predict] + // to this path on the container's IP address and port. Vertex AI then returns + // the container's response in the API response. // // For example, if you set this field to `/foo`, then when Vertex AI // receives a prediction request, it forwards the request body in a POST @@ -902,7 +943,8 @@ type ModelContainerSpec struct { // [ports][google.cloud.aiplatform.v1.ModelContainerSpec.ports] field. // // If you don't specify this field, it defaults to the following value when - // you [deploy this Model to an Endpoint][google.cloud.aiplatform.v1.EndpointService.DeployModel]: + // you [deploy this Model to an + // Endpoint][google.cloud.aiplatform.v1.EndpointService.DeployModel]: // /v1/endpoints/ENDPOINT/deployedModels/DEPLOYED_MODEL:predict // The placeholders in this value are replaced as follows: // @@ -912,10 +954,13 @@ type ModelContainerSpec struct { // as the [`AIP_ENDPOINT_ID` environment // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) // - // - DEPLOYED_MODEL: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`. - // (Vertex AI makes this value available to your container code - // as the [`AIP_DEPLOYED_MODEL_ID` environment - // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) + // * DEPLOYED_MODEL: + // [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the + // `DeployedModel`. + // + // (Vertex AI makes this value available to your container code + // as the [`AIP_DEPLOYED_MODEL_ID` environment + // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) PredictRoute string `protobuf:"bytes,6,opt,name=predict_route,json=predictRoute,proto3" json:"predict_route,omitempty"` // Immutable. HTTP path on the container to send health checks to. Vertex AI // intermittently sends GET requests to this path on the container's IP @@ -929,7 +974,8 @@ type ModelContainerSpec struct { // [ports][google.cloud.aiplatform.v1.ModelContainerSpec.ports] field. // // If you don't specify this field, it defaults to the following value when - // you [deploy this Model to an Endpoint][google.cloud.aiplatform.v1.EndpointService.DeployModel]: + // you [deploy this Model to an + // Endpoint][google.cloud.aiplatform.v1.EndpointService.DeployModel]: // /v1/endpoints/ENDPOINT/deployedModels/DEPLOYED_MODEL:predict // The placeholders in this value are replaced as follows: // @@ -939,10 +985,13 @@ type ModelContainerSpec struct { // as the [`AIP_ENDPOINT_ID` environment // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) // - // - DEPLOYED_MODEL: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`. - // (Vertex AI makes this value available to your container code as the - // [`AIP_DEPLOYED_MODEL_ID` environment - // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) + // * DEPLOYED_MODEL: + // [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the + // `DeployedModel`. + // + // (Vertex AI makes this value available to your container code as the + // [`AIP_DEPLOYED_MODEL_ID` environment + // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) HealthRoute string `protobuf:"bytes,7,opt,name=health_route,json=healthRoute,proto3" json:"health_route,omitempty"` } diff --git a/aiplatform/apiv1/aiplatformpb/model_deployment_monitoring_job.pb.go b/aiplatform/apiv1/aiplatformpb/model_deployment_monitoring_job.pb.go index 2e7bf044816f..379315800b8e 100644 --- a/aiplatform/apiv1/aiplatformpb/model_deployment_monitoring_job.pb.go +++ b/aiplatform/apiv1/aiplatformpb/model_deployment_monitoring_job.pb.go @@ -296,8 +296,8 @@ type ModelDeploymentMonitoringJob struct { ScheduleState ModelDeploymentMonitoringJob_MonitoringScheduleState `protobuf:"varint,5,opt,name=schedule_state,json=scheduleState,proto3,enum=google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob_MonitoringScheduleState" json:"schedule_state,omitempty"` // Output only. Latest triggered monitoring pipeline metadata. LatestMonitoringPipelineMetadata *ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata `protobuf:"bytes,25,opt,name=latest_monitoring_pipeline_metadata,json=latestMonitoringPipelineMetadata,proto3" json:"latest_monitoring_pipeline_metadata,omitempty"` - // Required. The config for monitoring objectives. This is a per DeployedModel config. - // Each DeployedModel needs to be configured separately. + // Required. The config for monitoring objectives. This is a per DeployedModel + // config. Each DeployedModel needs to be configured separately. ModelDeploymentMonitoringObjectiveConfigs []*ModelDeploymentMonitoringObjectiveConfig `protobuf:"bytes,6,rep,name=model_deployment_monitoring_objective_configs,json=modelDeploymentMonitoringObjectiveConfigs,proto3" json:"model_deployment_monitoring_objective_configs,omitempty"` // Required. Schedule config for running the monitoring job. ModelDeploymentMonitoringScheduleConfig *ModelDeploymentMonitoringScheduleConfig `protobuf:"bytes,7,opt,name=model_deployment_monitoring_schedule_config,json=modelDeploymentMonitoringScheduleConfig,proto3" json:"model_deployment_monitoring_schedule_config,omitempty"` @@ -310,10 +310,12 @@ type ModelDeploymentMonitoringJob struct { // If not set, we will generate predict schema from collected predict // requests. PredictInstanceSchemaUri string `protobuf:"bytes,9,opt,name=predict_instance_schema_uri,json=predictInstanceSchemaUri,proto3" json:"predict_instance_schema_uri,omitempty"` - // Sample Predict instance, same format as [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], + // Sample Predict instance, same format as + // [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], // this can be set as a replacement of - // [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. If not set, - // we will generate predict schema from collected predict requests. + // [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. + // If not set, we will generate predict schema from collected predict + // requests. SamplePredictInstance *structpb.Value `protobuf:"bytes,19,opt,name=sample_predict_instance,json=samplePredictInstance,proto3" json:"sample_predict_instance,omitempty"` // YAML schema file uri describing the format of a single instance that you // want Tensorflow Data Validation (TFDV) to analyze. @@ -327,9 +329,9 @@ type ModelDeploymentMonitoringJob struct { // For models trained with Vertex AI, this field must be set as all the // fields in predict instance formatted as string. AnalysisInstanceSchemaUri string `protobuf:"bytes,16,opt,name=analysis_instance_schema_uri,json=analysisInstanceSchemaUri,proto3" json:"analysis_instance_schema_uri,omitempty"` - // Output only. The created bigquery tables for the job under customer project. Customer - // could do their own query & analysis. There could be 4 log tables in - // maximum: + // Output only. The created bigquery tables for the job under customer + // project. Customer could do their own query & analysis. There could be 4 log + // tables in maximum: // 1. Training data logging predict request/response // 2. Serving data logging predict request/response BigqueryTables []*ModelDeploymentMonitoringBigQueryTable `protobuf:"bytes,10,rep,name=bigquery_tables,json=bigqueryTables,proto3" json:"bigquery_tables,omitempty"` @@ -348,10 +350,11 @@ type ModelDeploymentMonitoringJob struct { Labels map[string]string `protobuf:"bytes,11,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Output only. Timestamp when this ModelDeploymentMonitoringJob was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. Timestamp when this ModelDeploymentMonitoringJob was updated most recently. + // Output only. Timestamp when this ModelDeploymentMonitoringJob was updated + // most recently. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // Output only. Timestamp when this monitoring pipeline will be scheduled to run for the - // next round. + // Output only. Timestamp when this monitoring pipeline will be scheduled to + // run for the next round. NextScheduleTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=next_schedule_time,json=nextScheduleTime,proto3" json:"next_schedule_time,omitempty"` // Stats anomalies base folder path. StatsAnomaliesBaseDirectory *GcsDestination `protobuf:"bytes,20,opt,name=stats_anomalies_base_directory,json=statsAnomaliesBaseDirectory,proto3" json:"stats_anomalies_base_directory,omitempty"` @@ -697,16 +700,17 @@ type ModelDeploymentMonitoringScheduleConfig struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The model monitoring job scheduling interval. It will be rounded up to next - // full hour. This defines how often the monitoring jobs are triggered. + // Required. The model monitoring job scheduling interval. It will be rounded + // up to next full hour. This defines how often the monitoring jobs are + // triggered. MonitorInterval *durationpb.Duration `protobuf:"bytes,1,opt,name=monitor_interval,json=monitorInterval,proto3" json:"monitor_interval,omitempty"` // The time window of the prediction data being included in each prediction // dataset. This window specifies how long the data should be collected from // historical model results for each run. If not set, - // [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used. - // e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the - // monitor_window is set to be 3600, then data from 2022-01-08 13:30:00 - // to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the + // [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] + // will be used. e.g. If currently the cutoff time is 2022-01-08 14:30:00 and + // the monitor_window is set to be 3600, then data from 2022-01-08 13:30:00 to + // 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the // monitoring statistics. MonitorWindow *durationpb.Duration `protobuf:"bytes,2,opt,name=monitor_window,json=monitorWindow,proto3" json:"monitor_window,omitempty"` } diff --git a/aiplatform/apiv1/aiplatformpb/model_evaluation.pb.go b/aiplatform/apiv1/aiplatformpb/model_evaluation.pb.go index 4730e3438f67..b03ec7c20adc 100644 --- a/aiplatform/apiv1/aiplatformpb/model_evaluation.pb.go +++ b/aiplatform/apiv1/aiplatformpb/model_evaluation.pb.go @@ -50,8 +50,8 @@ type ModelEvaluation struct { // The display name of the ModelEvaluation. DisplayName string `protobuf:"bytes,10,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Points to a YAML file stored on Google Cloud Storage describing the - // [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is - // defined as an OpenAPI 3.0.2 [Schema + // [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this + // ModelEvaluation. The schema is defined as an OpenAPI 3.0.2 [Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). MetricsSchemaUri string `protobuf:"bytes,2,opt,name=metrics_schema_uri,json=metricsSchemaUri,proto3" json:"metrics_schema_uri,omitempty"` // Evaluation metrics of the Model. The schema of the metrics is stored in @@ -61,8 +61,8 @@ type ModelEvaluation struct { CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // All possible [dimensions][ModelEvaluationSlice.slice.dimension] of // ModelEvaluationSlices. The dimensions can be used as the filter of the - // [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] request, in the form of - // `slice.dimension = `. + // [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] + // request, in the form of `slice.dimension = `. SliceDimensions []string `protobuf:"bytes,5,rep,name=slice_dimensions,json=sliceDimensions,proto3" json:"slice_dimensions,omitempty"` // Points to a YAML file stored on Google Cloud Storage describing // [EvaluatedDataItemView.data_item_payload][] and @@ -88,8 +88,9 @@ type ModelEvaluation struct { // data this ModelEvaluation uses. This field is populated only if the Model // is evaluated with explanations, and only for AutoML tabular Models. ModelExplanation *ModelExplanation `protobuf:"bytes,8,opt,name=model_explanation,json=modelExplanation,proto3" json:"model_explanation,omitempty"` - // Describes the values of [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used for explaining - // the predicted values on the evaluated data. + // Describes the values of + // [ExplanationSpec][google.cloud.aiplatform.v1.ExplanationSpec] that are used + // for explaining the predicted values on the evaluated data. ExplanationSpecs []*ModelEvaluation_ModelEvaluationExplanationSpec `protobuf:"bytes,9,rep,name=explanation_specs,json=explanationSpecs,proto3" json:"explanation_specs,omitempty"` // The metadata of the ModelEvaluation. // For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a diff --git a/aiplatform/apiv1/aiplatformpb/model_evaluation_slice.pb.go b/aiplatform/apiv1/aiplatformpb/model_evaluation_slice.pb.go index 463e61b47394..732655752314 100644 --- a/aiplatform/apiv1/aiplatformpb/model_evaluation_slice.pb.go +++ b/aiplatform/apiv1/aiplatformpb/model_evaluation_slice.pb.go @@ -49,13 +49,15 @@ type ModelEvaluationSlice struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The slice of the test data that is used to evaluate the Model. Slice *ModelEvaluationSlice_Slice `protobuf:"bytes,2,opt,name=slice,proto3" json:"slice,omitempty"` - // Output only. Points to a YAML file stored on Google Cloud Storage describing the - // [metrics][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The - // schema is defined as an OpenAPI 3.0.2 [Schema + // Output only. Points to a YAML file stored on Google Cloud Storage + // describing the + // [metrics][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics] of this + // ModelEvaluationSlice. The schema is defined as an OpenAPI 3.0.2 [Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). MetricsSchemaUri string `protobuf:"bytes,3,opt,name=metrics_schema_uri,json=metricsSchemaUri,proto3" json:"metrics_schema_uri,omitempty"` - // Output only. Sliced evaluation metrics of the Model. The schema of the metrics is stored - // in [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics_schema_uri] + // Output only. Sliced evaluation metrics of the Model. The schema of the + // metrics is stored in + // [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics_schema_uri] Metrics *structpb.Value `protobuf:"bytes,4,opt,name=metrics,proto3" json:"metrics,omitempty"` // Output only. Timestamp when this ModelEvaluationSlice was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` @@ -137,8 +139,10 @@ type ModelEvaluationSlice_Slice struct { // Output only. The dimension of the slice. // Well-known dimensions are: // - `annotationSpec`: This slice is on the test data that has either - // ground truth or prediction with [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name] - // equals to [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value]. + // ground truth or prediction with + // [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name] + // equals to + // [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value]. Dimension string `protobuf:"bytes,1,opt,name=dimension,proto3" json:"dimension,omitempty"` // Output only. The value of the dimension in this slice. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` diff --git a/aiplatform/apiv1/aiplatformpb/model_monitoring.pb.go b/aiplatform/apiv1/aiplatformpb/model_monitoring.pb.go index 3b3719339b4e..7d1867ba16cc 100644 --- a/aiplatform/apiv1/aiplatformpb/model_monitoring.pb.go +++ b/aiplatform/apiv1/aiplatformpb/model_monitoring.pb.go @@ -728,8 +728,10 @@ func (x *ModelMonitoringObjectiveConfig_ExplanationConfig) GetExplanationBaselin return nil } -// Output from [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob] for Model Monitoring baseline dataset, -// which can be used to generate baseline attribution scores. +// Output from +// [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob] for +// Model Monitoring baseline dataset, which can be used to generate baseline +// attribution scores. type ModelMonitoringObjectiveConfig_ExplanationConfig_ExplanationBaseline struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/aiplatform/apiv1/aiplatformpb/model_service.pb.go b/aiplatform/apiv1/aiplatformpb/model_service.pb.go index 99c0d82dfdb0..63650927eee7 100644 --- a/aiplatform/apiv1/aiplatformpb/model_service.pb.go +++ b/aiplatform/apiv1/aiplatformpb/model_service.pb.go @@ -42,7 +42,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel]. +// Request message for +// [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel]. type UploadModelRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -51,8 +52,8 @@ type UploadModelRequest struct { // Required. The resource name of the Location into which to upload the Model. // Format: `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The resource name of the model into which to upload the version. Only - // specify this field when uploading a new version. + // Optional. The resource name of the model into which to upload the version. + // Only specify this field when uploading a new version. ParentModel string `protobuf:"bytes,4,opt,name=parent_model,json=parentModel,proto3" json:"parent_model,omitempty"` // Optional. The ID to use for the uploaded Model, which will become the final // component of the model resource name. @@ -139,7 +140,9 @@ func (x *UploadModelRequest) GetServiceAccount() string { return "" } -// Details of [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel] operation. +// Details of +// [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel] +// operation. type UploadModelOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -188,7 +191,9 @@ func (x *UploadModelOperationMetadata) GetGenericMetadata() *GenericOperationMet return nil } -// Response message of [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel] operation. +// Response message of +// [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel] +// operation. type UploadModelResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -247,7 +252,8 @@ func (x *UploadModelResponse) GetModelVersionId() string { return "" } -// Request message for [ModelService.GetModel][google.cloud.aiplatform.v1.ModelService.GetModel]. +// Request message for +// [ModelService.GetModel][google.cloud.aiplatform.v1.ModelService.GetModel]. type GetModelRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -309,7 +315,8 @@ func (x *GetModelRequest) GetName() string { return "" } -// Request message for [ModelService.ListModels][google.cloud.aiplatform.v1.ModelService.ListModels]. +// Request message for +// [ModelService.ListModels][google.cloud.aiplatform.v1.ModelService.ListModels]. type ListModelsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -322,7 +329,8 @@ type ListModelsRequest struct { // both snake_case and camelCase are supported. // // - `model` supports = and !=. `model` represents the Model ID, - // i.e. the last segment of the Model's [resource name][google.cloud.aiplatform.v1.Model.name]. + // i.e. the last segment of the Model's [resource + // name][google.cloud.aiplatform.v1.Model.name]. // - `display_name` supports = and != // - `labels` supports general map functions that is: // - `labels.key=value` - key:value equality @@ -339,8 +347,10 @@ type ListModelsRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListModelsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelsResponse.next_page_token] of the previous - // [ModelService.ListModels][google.cloud.aiplatform.v1.ModelService.ListModels] call. + // [ListModelsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelsResponse.next_page_token] + // of the previous + // [ModelService.ListModels][google.cloud.aiplatform.v1.ModelService.ListModels] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -430,7 +440,8 @@ func (x *ListModelsRequest) GetOrderBy() string { return "" } -// Response message for [ModelService.ListModels][google.cloud.aiplatform.v1.ModelService.ListModels] +// Response message for +// [ModelService.ListModels][google.cloud.aiplatform.v1.ModelService.ListModels] type ListModelsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -439,7 +450,9 @@ type ListModelsResponse struct { // List of Models in the requested page. Models []*Model `protobuf:"bytes,1,rep,name=models,proto3" json:"models,omitempty"` // A token to retrieve next page of results. - // Pass to [ListModelsRequest.page_token][google.cloud.aiplatform.v1.ListModelsRequest.page_token] to obtain that page. + // Pass to + // [ListModelsRequest.page_token][google.cloud.aiplatform.v1.ListModelsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -489,7 +502,8 @@ func (x *ListModelsResponse) GetNextPageToken() string { return "" } -// Request message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1.ModelService.ListModelVersions]. +// Request message for +// [ModelService.ListModelVersions][google.cloud.aiplatform.v1.ModelService.ListModelVersions]. type ListModelVersionsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -501,8 +515,8 @@ type ListModelVersionsRequest struct { PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelVersionsResponse.next_page_token] of the previous - // [ModelService.ListModelversions][] call. + // [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelVersionsResponse.next_page_token] + // of the previous [ModelService.ListModelversions][] call. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // An expression for filtering the results of the request. For field names // both snake_case and camelCase are supported. @@ -518,6 +532,15 @@ type ListModelVersionsRequest struct { Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` + // A comma-separated list of fields to order by, sorted in ascending order. + // Use "desc" after a field name for descending. + // Supported fields: + // + // - `create_time` + // - `update_time` + // + // Example: `update_time asc, create_time desc`. + OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` } func (x *ListModelVersionsRequest) Reset() { @@ -587,7 +610,15 @@ func (x *ListModelVersionsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1.ModelService.ListModelVersions] +func (x *ListModelVersionsRequest) GetOrderBy() string { + if x != nil { + return x.OrderBy + } + return "" +} + +// Response message for +// [ModelService.ListModelVersions][google.cloud.aiplatform.v1.ModelService.ListModelVersions] type ListModelVersionsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -598,7 +629,9 @@ type ListModelVersionsResponse struct { // be included. Models []*Model `protobuf:"bytes,1,rep,name=models,proto3" json:"models,omitempty"` // A token to retrieve the next page of results. - // Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionsRequest.page_token] to obtain that page. + // Pass to + // [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -648,7 +681,8 @@ func (x *ListModelVersionsResponse) GetNextPageToken() string { return "" } -// Request message for [ModelService.UpdateModel][google.cloud.aiplatform.v1.ModelService.UpdateModel]. +// Request message for +// [ModelService.UpdateModel][google.cloud.aiplatform.v1.ModelService.UpdateModel]. type UpdateModelRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -674,7 +708,8 @@ type UpdateModelRequest struct { // must update them separately. Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` // Required. The update mask applies to the resource. - // For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. + // For the `FieldMask` definition, see + // [google.protobuf.FieldMask][google.protobuf.FieldMask]. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } @@ -724,7 +759,8 @@ func (x *UpdateModelRequest) GetUpdateMask() *fieldmaskpb.FieldMask { return nil } -// Request message for [ModelService.DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel]. +// Request message for +// [ModelService.DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel]. type DeleteModelRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -774,14 +810,15 @@ func (x *DeleteModelRequest) GetName() string { return "" } -// Request message for [ModelService.DeleteModelVersion][google.cloud.aiplatform.v1.ModelService.DeleteModelVersion]. +// Request message for +// [ModelService.DeleteModelVersion][google.cloud.aiplatform.v1.ModelService.DeleteModelVersion]. type DeleteModelVersionRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The name of the model version to be deleted, with a version ID explicitly - // included. + // Required. The name of the model version to be deleted, with a version ID + // explicitly included. // // Example: `projects/{project}/locations/{location}/models/{model}@1234` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` @@ -826,7 +863,8 @@ func (x *DeleteModelVersionRequest) GetName() string { return "" } -// Request message for [ModelService.MergeVersionAliases][google.cloud.aiplatform.v1.ModelService.MergeVersionAliases]. +// Request message for +// [ModelService.MergeVersionAliases][google.cloud.aiplatform.v1.ModelService.MergeVersionAliases]. type MergeVersionAliasesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -898,7 +936,8 @@ func (x *MergeVersionAliasesRequest) GetVersionAliases() []string { return nil } -// Request message for [ModelService.ExportModel][google.cloud.aiplatform.v1.ModelService.ExportModel]. +// Request message for +// [ModelService.ExportModel][google.cloud.aiplatform.v1.ModelService.ExportModel]. type ExportModelRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -958,7 +997,9 @@ func (x *ExportModelRequest) GetOutputConfig() *ExportModelRequest_OutputConfig return nil } -// Details of [ModelService.ExportModel][google.cloud.aiplatform.v1.ModelService.ExportModel] operation. +// Details of +// [ModelService.ExportModel][google.cloud.aiplatform.v1.ModelService.ExportModel] +// operation. type ExportModelOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -966,7 +1007,8 @@ type ExportModelOperationMetadata struct { // The common part of the operation metadata. GenericMetadata *GenericOperationMetadata `protobuf:"bytes,1,opt,name=generic_metadata,json=genericMetadata,proto3" json:"generic_metadata,omitempty"` - // Output only. Information further describing the output of this Model export. + // Output only. Information further describing the output of this Model + // export. OutputInfo *ExportModelOperationMetadata_OutputInfo `protobuf:"bytes,2,opt,name=output_info,json=outputInfo,proto3" json:"output_info,omitempty"` } @@ -1016,7 +1058,9 @@ func (x *ExportModelOperationMetadata) GetOutputInfo() *ExportModelOperationMeta return nil } -// Response message of [ModelService.ExportModel][google.cloud.aiplatform.v1.ModelService.ExportModel] operation. +// Response message of +// [ModelService.ExportModel][google.cloud.aiplatform.v1.ModelService.ExportModel] +// operation. type ExportModelResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1055,7 +1099,8 @@ func (*ExportModelResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1_model_service_proto_rawDescGZIP(), []int{14} } -// Request message for [ModelService.ImportModelEvaluation][google.cloud.aiplatform.v1.ModelService.ImportModelEvaluation] +// Request message for +// [ModelService.ImportModelEvaluation][google.cloud.aiplatform.v1.ModelService.ImportModelEvaluation] type ImportModelEvaluationRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1114,7 +1159,8 @@ func (x *ImportModelEvaluationRequest) GetModelEvaluation() *ModelEvaluation { return nil } -// Request message for [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlices] +// Request message for +// [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlices] type BatchImportModelEvaluationSlicesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1174,13 +1220,15 @@ func (x *BatchImportModelEvaluationSlicesRequest) GetModelEvaluationSlices() []* return nil } -// Response message for [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlices] +// Response message for +// [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlices] type BatchImportModelEvaluationSlicesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. List of imported [ModelEvaluationSlice.name][google.cloud.aiplatform.v1.ModelEvaluationSlice.name]. + // Output only. List of imported + // [ModelEvaluationSlice.name][google.cloud.aiplatform.v1.ModelEvaluationSlice.name]. ImportedModelEvaluationSlices []string `protobuf:"bytes,1,rep,name=imported_model_evaluation_slices,json=importedModelEvaluationSlices,proto3" json:"imported_model_evaluation_slices,omitempty"` } @@ -1223,7 +1271,8 @@ func (x *BatchImportModelEvaluationSlicesResponse) GetImportedModelEvaluationSli return nil } -// Request message for [ModelService.GetModelEvaluation][google.cloud.aiplatform.v1.ModelService.GetModelEvaluation]. +// Request message for +// [ModelService.GetModelEvaluation][google.cloud.aiplatform.v1.ModelService.GetModelEvaluation]. type GetModelEvaluationRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1274,7 +1323,8 @@ func (x *GetModelEvaluationRequest) GetName() string { return "" } -// Request message for [ModelService.ListModelEvaluations][google.cloud.aiplatform.v1.ModelService.ListModelEvaluations]. +// Request message for +// [ModelService.ListModelEvaluations][google.cloud.aiplatform.v1.ModelService.ListModelEvaluations]. type ListModelEvaluationsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1289,8 +1339,10 @@ type ListModelEvaluationsRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListModelEvaluationsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelEvaluationsResponse.next_page_token] of the previous - // [ModelService.ListModelEvaluations][google.cloud.aiplatform.v1.ModelService.ListModelEvaluations] call. + // [ListModelEvaluationsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelEvaluationsResponse.next_page_token] + // of the previous + // [ModelService.ListModelEvaluations][google.cloud.aiplatform.v1.ModelService.ListModelEvaluations] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -1363,7 +1415,8 @@ func (x *ListModelEvaluationsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [ModelService.ListModelEvaluations][google.cloud.aiplatform.v1.ModelService.ListModelEvaluations]. +// Response message for +// [ModelService.ListModelEvaluations][google.cloud.aiplatform.v1.ModelService.ListModelEvaluations]. type ListModelEvaluationsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1372,7 +1425,9 @@ type ListModelEvaluationsResponse struct { // List of ModelEvaluations in the requested page. ModelEvaluations []*ModelEvaluation `protobuf:"bytes,1,rep,name=model_evaluations,json=modelEvaluations,proto3" json:"model_evaluations,omitempty"` // A token to retrieve next page of results. - // Pass to [ListModelEvaluationsRequest.page_token][google.cloud.aiplatform.v1.ListModelEvaluationsRequest.page_token] to obtain that page. + // Pass to + // [ListModelEvaluationsRequest.page_token][google.cloud.aiplatform.v1.ListModelEvaluationsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -1422,7 +1477,8 @@ func (x *ListModelEvaluationsResponse) GetNextPageToken() string { return "" } -// Request message for [ModelService.GetModelEvaluationSlice][google.cloud.aiplatform.v1.ModelService.GetModelEvaluationSlice]. +// Request message for +// [ModelService.GetModelEvaluationSlice][google.cloud.aiplatform.v1.ModelService.GetModelEvaluationSlice]. type GetModelEvaluationSliceRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1473,14 +1529,15 @@ func (x *GetModelEvaluationSliceRequest) GetName() string { return "" } -// Request message for [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices]. +// Request message for +// [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices]. type ListModelEvaluationSlicesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the ModelEvaluation to list the ModelEvaluationSlices - // from. Format: + // Required. The resource name of the ModelEvaluation to list the + // ModelEvaluationSlices from. Format: // `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The standard list filter. @@ -1491,8 +1548,10 @@ type ListModelEvaluationSlicesRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListModelEvaluationSlicesResponse.next_page_token][google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.next_page_token] of the previous - // [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] call. + // [ListModelEvaluationSlicesResponse.next_page_token][google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.next_page_token] + // of the previous + // [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -1565,7 +1624,8 @@ func (x *ListModelEvaluationSlicesRequest) GetReadMask() *fieldmaskpb.FieldMask return nil } -// Response message for [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices]. +// Response message for +// [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices]. type ListModelEvaluationSlicesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1574,8 +1634,9 @@ type ListModelEvaluationSlicesResponse struct { // List of ModelEvaluations in the requested page. ModelEvaluationSlices []*ModelEvaluationSlice `protobuf:"bytes,1,rep,name=model_evaluation_slices,json=modelEvaluationSlices,proto3" json:"model_evaluation_slices,omitempty"` // A token to retrieve next page of results. - // Pass to [ListModelEvaluationSlicesRequest.page_token][google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.page_token] to obtain that - // page. + // Pass to + // [ListModelEvaluationSlicesRequest.page_token][google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -1632,8 +1693,9 @@ type ExportModelRequest_OutputConfig struct { unknownFields protoimpl.UnknownFields // The ID of the format in which the Model must be exported. Each Model - // lists the [export formats it supports][google.cloud.aiplatform.v1.Model.supported_export_formats]. - // If no value is provided here, then the first from the list of the Model's + // lists the [export formats it + // supports][google.cloud.aiplatform.v1.Model.supported_export_formats]. If + // no value is provided here, then the first from the list of the Model's // supported formats is used by default. ExportFormatId string `protobuf:"bytes,1,opt,name=export_format_id,json=exportFormatId,proto3" json:"export_format_id,omitempty"` // The Cloud Storage location where the Model artifact is to be @@ -1712,12 +1774,12 @@ type ExportModelOperationMetadata_OutputInfo struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. If the Model artifact is being exported to Google Cloud Storage this is - // the full path of the directory created, into which the Model files are - // being written to. + // Output only. If the Model artifact is being exported to Google Cloud + // Storage this is the full path of the directory created, into which the + // Model files are being written to. ArtifactOutputUri string `protobuf:"bytes,2,opt,name=artifact_output_uri,json=artifactOutputUri,proto3" json:"artifact_output_uri,omitempty"` - // Output only. If the Model image is being exported to Google Container Registry or - // Artifact Registry this is the full path of the image created. + // Output only. If the Model image is being exported to Google Container + // Registry or Artifact Registry this is the full path of the image created. ImageOutputUri string `protobuf:"bytes,3,opt,name=image_output_uri,json=imageOutputUri,proto3" json:"image_output_uri,omitempty"` } @@ -1862,7 +1924,7 @@ var file_google_cloud_aiplatform_v1_model_service_proto_rawDesc = []byte{ 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, - 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xe4, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, + 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xff, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, @@ -1876,416 +1938,418 @@ var file_google_cloud_aiplatform_v1_model_service_proto_rawDesc = []byte{ 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x7e, - 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x6d, - 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, + 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x19, + 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0x7e, 0x0a, 0x19, 0x4c, 0x69, 0x73, + 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x65, 0x6c, + 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, + 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x94, 0x01, 0x0a, 0x12, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x3c, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, + 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, + 0x65, 0x6c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x40, + 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, + 0x22, 0x51, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x22, 0x58, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, + 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, + 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x87, 0x01, + 0x0a, 0x1a, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x6c, + 0x69, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, + 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x0f, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x22, 0xb9, 0x03, 0x0a, 0x12, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, + 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x65, 0x0a, 0x0d, 0x6f, + 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, + 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x1a, 0xfe, 0x01, 0x0a, 0x0c, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x49, 0x64, 0x12, 0x5d, 0x0a, + 0x14, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x06, - 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, - 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x94, - 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x6d, 0x6f, - 0x64, 0x65, 0x6c, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, - 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x51, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, - 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, - 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, - 0x65, 0x6c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x58, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x22, 0x87, 0x01, 0x0a, 0x1a, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2c, - 0x0a, 0x0f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x22, 0xb9, 0x03, 0x0a, - 0x12, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x65, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x44, 0x65, 0x73, 0x74, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, + 0x74, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x65, 0x0a, 0x11, + 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xfe, 0x01, 0x0a, 0x0c, 0x4f, 0x75, 0x74, 0x70, - 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, - 0x49, 0x64, 0x12, 0x5d, 0x0a, 0x14, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x64, - 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x63, - 0x73, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x61, 0x72, - 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x65, 0x0a, 0x11, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, - 0x6e, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x44, 0x65, 0x73, 0x74, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x44, 0x65, 0x73, - 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xdc, 0x02, 0x0a, 0x1c, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x5f, 0x0a, 0x10, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x69, 0x0a, 0x0b, 0x6f, 0x75, - 0x74, 0x70, 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, - 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x70, 0x0a, 0x0a, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x49, - 0x6e, 0x66, 0x6f, 0x12, 0x33, 0x0a, 0x13, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, - 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x11, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x4f, - 0x75, 0x74, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x12, 0x2d, 0x0a, 0x10, 0x69, 0x6d, 0x61, 0x67, - 0x65, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x4f, 0x75, - 0x74, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x22, 0x15, 0x0a, 0x13, 0x45, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xbc, - 0x01, 0x0a, 0x1c, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, - 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x3f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x12, 0x5b, 0x0a, 0x10, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, + 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x10, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0xdc, 0x02, 0x0a, 0x1c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x5f, 0x0a, 0x10, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x69, 0x63, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x69, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, + 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, - 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x6d, 0x6f, - 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xe3, 0x01, - 0x0a, 0x27, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, - 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x06, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xe0, 0x41, 0x02, 0xfa, 0x41, - 0x2b, 0x0a, 0x29, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, - 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x12, 0x6d, 0x0a, 0x17, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, - 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, + 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x6f, + 0x1a, 0x70, 0x0a, 0x0a, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x33, + 0x0a, 0x13, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, + 0x52, 0x11, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, + 0x55, 0x72, 0x69, 0x12, 0x2d, 0x0a, 0x10, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, + 0x41, 0x03, 0x52, 0x0e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x55, + 0x72, 0x69, 0x22, 0x15, 0x0a, 0x13, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xbc, 0x01, 0x0a, 0x1c, 0x49, 0x6d, + 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x06, 0x70, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, + 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x5b, 0x0a, 0x10, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x15, 0x6d, 0x6f, + 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, + 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xe3, 0x01, 0x0a, 0x27, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, + 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2b, 0x0a, 0x29, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, + 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, + 0x6d, 0x0a, 0x17, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, - 0x63, 0x65, 0x73, 0x22, 0x78, 0x0a, 0x28, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x70, 0x6f, - 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x4c, 0x0a, 0x20, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x6f, 0x64, 0x65, - 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x6c, 0x69, - 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x1d, - 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, - 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x22, 0x62, 0x0a, - 0x19, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2b, - 0x0a, 0x29, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, - 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x22, 0xeb, 0x01, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, - 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x3f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, - 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, - 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, - 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, - 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, - 0xa0, 0x01, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, - 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x58, 0x0a, 0x11, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, - 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x45, - 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, - 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x22, 0x6c, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, - 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x36, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x30, 0x0a, 0x2e, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x22, 0xfa, 0x01, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, - 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2b, 0x0a, 0x29, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, - 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, - 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, - 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, 0x73, - 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, - 0x61, 0x73, 0x6b, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xb5, 0x01, - 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x17, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, + 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x15, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, + 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x22, 0x78, + 0x0a, 0x28, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, + 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x20, 0x69, 0x6d, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x52, 0x15, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, - 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x12, 0x26, 0x0a, - 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xf2, 0x19, 0x0a, 0x0c, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xe0, 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x6c, 0x6f, 0x61, - 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x81, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x22, 0x31, - 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x2a, 0x7d, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x3a, 0x75, 0x70, 0x6c, 0x6f, 0x61, - 0x64, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x0c, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x6d, 0x6f, - 0x64, 0x65, 0x6c, 0xca, 0x41, 0x33, 0x0a, 0x13, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, - 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x55, 0x70, 0x6c, - 0x6f, 0x61, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x95, 0x01, 0x0a, 0x08, 0x47, 0x65, - 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x1d, 0x69, 0x6d, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x22, 0x62, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x4d, + 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x31, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2b, 0x0a, 0x29, 0x61, 0x69, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, + 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xeb, 0x01, 0x0a, + 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x06, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, + 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, + 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, + 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, + 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, + 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xa0, 0x01, 0x0a, 0x1c, 0x4c, + 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x11, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6c, 0x0a, + 0x1e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x4a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xe0, + 0x41, 0x02, 0xfa, 0x41, 0x30, 0x0a, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x53, 0x6c, 0x69, 0x63, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xfa, 0x01, 0x0a, 0x20, + 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x49, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x31, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2b, 0x0a, 0x29, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, + 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x08, + 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xb5, 0x01, 0x0a, 0x21, 0x4c, 0x69, 0x73, + 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, + 0x0a, 0x17, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, + 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, + 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, + 0x65, 0x52, 0x15, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, + 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x32, 0xf2, 0x19, 0x0a, 0x0c, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0xe0, 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, + 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x81, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x22, 0x31, 0x2f, 0x76, 0x31, 0x2f, 0x7b, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x3a, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x3a, 0x01, 0x2a, 0xda, + 0x41, 0x0c, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0xca, 0x41, + 0x33, 0x0a, 0x13, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x95, 0x01, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x12, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, + 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, + 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xa8, 0x01, 0x0a, + 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x12, 0x2d, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, + 0x65, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0xda, 0x41, + 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xc8, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x34, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, + 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, - 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, - 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0xa8, 0x01, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, - 0x12, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6d, 0x6f, 0x64, - 0x65, 0x6c, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xc8, 0x01, 0x0a, - 0x11, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x46, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x39, 0x12, 0x37, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x6c, + 0x69, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0xda, 0x41, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0xb5, 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, + 0x65, 0x6c, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x46, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x12, 0x37, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, - 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, - 0x2f, 0x2a, 0x7d, 0x3a, 0x6c, 0x69, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xb5, 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0x53, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x39, 0x32, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x6e, - 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, - 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0xda, 0x41, 0x11, 0x6d, 0x6f, - 0x64, 0x65, 0x6c, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x12, - 0xca, 0x01, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, - 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, - 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6c, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x2a, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, - 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, - 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x30, 0x0a, 0x15, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xe6, 0x01, 0x0a, - 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, - 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0x53, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x32, 0x30, 0x2f, + 0x76, 0x31, 0x2f, 0x7b, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, + 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0xda, 0x41, 0x11, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2c, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x12, 0xca, 0x01, 0x0a, 0x0b, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x7a, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x3a, 0x2a, 0x38, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6c, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x2c, 0x2a, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0xda, 0x41, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0xca, 0x41, 0x30, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xd2, 0x01, 0x0a, 0x13, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x36, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x72, 0x67, 0x65, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x30, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xe6, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x35, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, + 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x7a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x2a, 0x38, 0x2f, 0x76, + 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x30, + 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x12, 0xd2, 0x01, 0x0a, 0x13, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x22, 0x60, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x22, 0x3e, 0x2f, 0x76, 0x31, + 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, + 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x3a, 0x01, 0x2a, 0xda, 0x41, + 0x14, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x6c, + 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0xe6, 0x01, 0x0a, 0x0b, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0x60, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, - 0x22, 0x3e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x6d, 0x65, 0x72, - 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, - 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x14, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0xe6, 0x01, 0x0a, 0x0b, 0x45, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, + 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, + 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x87, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x22, 0x31, 0x2f, + 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, + 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x12, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x6f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0xca, 0x41, 0x33, 0x0a, 0x13, 0x45, 0x78, 0x70, + 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x1c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x4f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xe4, + 0x01, 0x0a, 0x15, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, + 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x64, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x22, 0x3f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, + 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x3a, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x17, 0x70, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0xa8, 0x02, 0x0a, 0x20, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, + 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x12, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, - 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x87, 0x01, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x36, 0x22, 0x31, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x65, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x12, 0x6e, 0x61, 0x6d, 0x65, 0x2c, - 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0xca, 0x41, 0x33, - 0x0a, 0x13, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, - 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x12, 0xe4, 0x01, 0x0a, 0x15, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, - 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, - 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x64, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x22, 0x3f, 0x2f, 0x76, - 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, - 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x75, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x3a, 0x01, 0x2a, - 0xda, 0x41, 0x17, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, - 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0xa8, 0x02, 0x0a, 0x20, 0x42, - 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, - 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x12, - 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x70, + 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x44, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, - 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x44, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, - 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, - 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, - 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x79, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x52, 0x22, 0x4d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x2f, - 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, - 0x6c, 0x69, 0x63, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x70, 0x6f, 0x72, - 0x74, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x1e, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x6d, 0x6f, - 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, - 0x6c, 0x69, 0x63, 0x65, 0x73, 0x12, 0xc1, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, - 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, - 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x79, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x52, 0x22, 0x4d, 0x2f, + 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, + 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x75, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, + 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x3a, 0x01, 0x2a, 0xda, + 0x41, 0x1e, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, + 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, + 0x12, 0xc1, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, + 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, + 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x47, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x3a, 0x12, 0x38, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x2f, 0x65, + 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xd4, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, + 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x37, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, + 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, + 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x49, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x12, 0x38, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, + 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, + 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xd9, 0x01, 0x0a, 0x17, + 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, + 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x22, 0x47, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x12, 0x38, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, - 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, - 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xd4, 0x01, 0x0a, 0x14, 0x4c, 0x69, - 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x67, 0x6f, + 0x53, 0x6c, 0x69, 0x63, 0x65, 0x22, 0x50, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x12, 0x41, 0x2f, + 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, + 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, + 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xec, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x6c, 0x69, 0x63, 0x65, 0x73, 0x12, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, + 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x52, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x12, 0x41, 0x2f, 0x76, 0x31, 0x2f, + 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0xda, 0x41, 0x06, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x1a, 0x4d, 0xca, 0x41, 0x19, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, + 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xd5, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, - 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x49, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x12, 0x38, 0x2f, - 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x65, 0x76, 0x61, 0x6c, - 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x12, 0xd9, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, - 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x12, 0x3a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, - 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x22, 0x50, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x43, 0x12, 0x41, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x76, - 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6c, 0x69, 0x63, - 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xec, 0x01, 0x0a, - 0x19, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x12, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, - 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, - 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x12, - 0x41, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x76, 0x61, - 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6c, 0x69, 0x63, - 0x65, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x1a, 0x4d, 0xca, 0x41, 0x19, - 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, - 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xd5, 0x01, 0x0a, 0x1e, 0x63, - 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x42, 0x11, 0x4d, - 0x6f, 0x64, 0x65, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x44, 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, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, - 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, - 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, - 0x56, 0x31, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, - 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x42, 0x11, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 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, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, + 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, + 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1d, + 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, + 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2762,21 +2826,26 @@ type ModelServiceClient interface { UpdateModel(ctx context.Context, in *UpdateModelRequest, opts ...grpc.CallOption) (*Model, error) // Deletes a Model. // - // A model cannot be deleted if any [Endpoint][google.cloud.aiplatform.v1.Endpoint] resource has a - // [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] based on the model in its - // [deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] field. + // A model cannot be deleted if any + // [Endpoint][google.cloud.aiplatform.v1.Endpoint] resource has a + // [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] based on the + // model in its + // [deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] + // field. DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Deletes a Model version. // // Model version can only be deleted if there are no [DeployedModels][] // created from it. Deleting the only version in the Model is not allowed. Use - // [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for deleting the Model instead. + // [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for + // deleting the Model instead. DeleteModelVersion(ctx context.Context, in *DeleteModelVersionRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Merges a set of aliases for a Model version. MergeVersionAliases(ctx context.Context, in *MergeVersionAliasesRequest, opts ...grpc.CallOption) (*Model, error) // Exports a trained, exportable Model to a location specified by the // user. A Model is considered to be exportable if it has at least one - // [supported export format][google.cloud.aiplatform.v1.Model.supported_export_formats]. + // [supported export + // format][google.cloud.aiplatform.v1.Model.supported_export_formats]. ExportModel(ctx context.Context, in *ExportModelRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Imports an externally generated ModelEvaluation. ImportModelEvaluation(ctx context.Context, in *ImportModelEvaluationRequest, opts ...grpc.CallOption) (*ModelEvaluation, error) @@ -2949,21 +3018,26 @@ type ModelServiceServer interface { UpdateModel(context.Context, *UpdateModelRequest) (*Model, error) // Deletes a Model. // - // A model cannot be deleted if any [Endpoint][google.cloud.aiplatform.v1.Endpoint] resource has a - // [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] based on the model in its - // [deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] field. + // A model cannot be deleted if any + // [Endpoint][google.cloud.aiplatform.v1.Endpoint] resource has a + // [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] based on the + // model in its + // [deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] + // field. DeleteModel(context.Context, *DeleteModelRequest) (*longrunning.Operation, error) // Deletes a Model version. // // Model version can only be deleted if there are no [DeployedModels][] // created from it. Deleting the only version in the Model is not allowed. Use - // [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for deleting the Model instead. + // [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for + // deleting the Model instead. DeleteModelVersion(context.Context, *DeleteModelVersionRequest) (*longrunning.Operation, error) // Merges a set of aliases for a Model version. MergeVersionAliases(context.Context, *MergeVersionAliasesRequest) (*Model, error) // Exports a trained, exportable Model to a location specified by the // user. A Model is considered to be exportable if it has at least one - // [supported export format][google.cloud.aiplatform.v1.Model.supported_export_formats]. + // [supported export + // format][google.cloud.aiplatform.v1.Model.supported_export_formats]. ExportModel(context.Context, *ExportModelRequest) (*longrunning.Operation, error) // Imports an externally generated ModelEvaluation. ImportModelEvaluation(context.Context, *ImportModelEvaluationRequest) (*ModelEvaluation, error) diff --git a/aiplatform/apiv1/aiplatformpb/pipeline_job.pb.go b/aiplatform/apiv1/aiplatformpb/pipeline_job.pb.go index f83ce0c62a0c..5c01eb6a9072 100644 --- a/aiplatform/apiv1/aiplatformpb/pipeline_job.pb.go +++ b/aiplatform/apiv1/aiplatformpb/pipeline_job.pb.go @@ -63,7 +63,8 @@ const ( PipelineTaskDetail_SKIPPED PipelineTaskDetail_State = 8 // Specifies that the task was not triggered because the task's trigger // policy is not satisfied. The trigger policy is specified in the - // `condition` field of [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec]. + // `condition` field of + // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec]. PipelineTaskDetail_NOT_TRIGGERED PipelineTaskDetail_State = 9 ) @@ -188,11 +189,13 @@ type PipelineJob struct { // Training or Dataflow job. If left unspecified, the workload is not peered // with any network. Network string `protobuf:"bytes,18,opt,name=network,proto3" json:"network,omitempty"` - // A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec], if empty, will - // be downloaded. + // A template uri from where the + // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec], + // if empty, will be downloaded. TemplateUri string `protobuf:"bytes,19,opt,name=template_uri,json=templateUri,proto3" json:"template_uri,omitempty"` // Output only. Pipeline template metadata. Will fill up fields if - // [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported template registry. + // [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] + // is from supported template registry. TemplateMetadata *PipelineTemplateMetadata `protobuf:"bytes,20,opt,name=template_metadata,json=templateMetadata,proto3" json:"template_metadata,omitempty"` } @@ -347,9 +350,10 @@ func (x *PipelineJob) GetTemplateMetadata() *PipelineTemplateMetadata { return nil } -// Pipeline template metadata if [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is from supported -// template registry. Currently, the only supported registry is Artifact -// Registry. +// Pipeline template metadata if +// [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] +// is from supported template registry. Currently, the only supported registry +// is Artifact Registry. type PipelineTemplateMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -357,8 +361,9 @@ type PipelineTemplateMetadata struct { // The version_name in artifact registry. // - // Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] is - // from supported template registry. + // Will always be presented in output if the + // [PipelineJob.template_uri][google.cloud.aiplatform.v1.PipelineJob.template_uri] + // is from supported template registry. // // Format is "sha256:abcdef123456...". Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` @@ -478,8 +483,8 @@ type PipelineTaskDetail struct { // Output only. The system generated ID of the task. TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - // Output only. The id of the parent task if the task is within a component scope. - // Empty if the task is at the root level. + // Output only. The id of the parent task if the task is within a component + // scope. Empty if the task is at the root level. ParentTaskId int64 `protobuf:"varint,12,opt,name=parent_task_id,json=parentTaskId,proto3" json:"parent_task_id,omitempty"` // Output only. The user specified name of the task that is defined in // [PipelineJob.spec][]. @@ -499,8 +504,8 @@ type PipelineTaskDetail struct { // Output only. The error that occurred during task execution. // Only populated when the task's state is FAILED or CANCELLED. Error *status.Status `protobuf:"bytes,9,opt,name=error,proto3" json:"error,omitempty"` - // Output only. A list of task status. This field keeps a record of task status evolving - // over time. + // Output only. A list of task status. This field keeps a record of task + // status evolving over time. PipelineTaskStatus []*PipelineTaskDetail_PipelineTaskStatus `protobuf:"bytes,13,rep,name=pipeline_task_status,json=pipelineTaskStatus,proto3" json:"pipeline_task_status,omitempty"` // Output only. The runtime input artifacts of the task. Inputs map[string]*PipelineTaskDetail_ArtifactList `protobuf:"bytes,10,rep,name=inputs,proto3" json:"inputs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` @@ -724,17 +729,19 @@ type PipelineJob_RuntimeConfig struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Deprecated. Use [RuntimeConfig.parameter_values][google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameter_values] instead. The runtime - // parameters of the PipelineJob. The parameters will be passed into - // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders at runtime. - // This field is used by pipelines built using - // `PipelineJob.pipeline_spec.schema_version` 2.0.0 or lower, such as - // pipelines built using Kubeflow Pipelines SDK 1.8 or lower. + // Deprecated. Use + // [RuntimeConfig.parameter_values][google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameter_values] + // instead. The runtime parameters of the PipelineJob. The parameters will + // be passed into + // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] + // to replace the placeholders at runtime. This field is used by pipelines + // built using `PipelineJob.pipeline_spec.schema_version` 2.0.0 or lower, + // such as pipelines built using Kubeflow Pipelines SDK 1.8 or lower. // // Deprecated: Do not use. Parameters map[string]*Value `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Required. A path in a Cloud Storage bucket, which will be treated as the root - // output directory of the pipeline. It is used by the system to + // Required. A path in a Cloud Storage bucket, which will be treated as the + // root output directory of the pipeline. It is used by the system to // generate the paths of output artifacts. The artifact paths are generated // with a sub-path pattern `{job_id}/{task_id}/{output_key}` under the // specified output directory. The service account specified in this @@ -742,10 +749,12 @@ type PipelineJob_RuntimeConfig struct { // permissions for this bucket. GcsOutputDirectory string `protobuf:"bytes,2,opt,name=gcs_output_directory,json=gcsOutputDirectory,proto3" json:"gcs_output_directory,omitempty"` // The runtime parameters of the PipelineJob. The parameters will be - // passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] to replace the placeholders - // at runtime. This field is used by pipelines built using - // `PipelineJob.pipeline_spec.schema_version` 2.1.0, such as pipelines built - // using Kubeflow Pipelines SDK 1.9 or higher and the v2 DSL. + // passed into + // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] + // to replace the placeholders at runtime. This field is used by pipelines + // built using `PipelineJob.pipeline_spec.schema_version` 2.1.0, such as + // pipelines built using Kubeflow Pipelines SDK 1.9 or higher and the v2 + // DSL. ParameterValues map[string]*structpb.Value `protobuf:"bytes,3,rep,name=parameter_values,json=parameterValues,proto3" json:"parameter_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Represents the failure policy of a pipeline. Currently, the default of a // pipeline is that the pipeline will continue to run until no more tasks @@ -911,12 +920,11 @@ type PipelineTaskDetail_PipelineTaskStatus struct { UpdateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The state of the task. State PipelineTaskDetail_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.aiplatform.v1.PipelineTaskDetail_State" json:"state,omitempty"` - // Output only. The error that occurred during the state. May be set when the state is - // any of the non-final state (PENDING/RUNNING/CANCELLING) or FAILED state. - // If the state is FAILED, the error here is final and not going to be - // retried. - // If the state is a non-final state, the error indicates a system-error - // being retried. + // Output only. The error that occurred during the state. May be set when + // the state is any of the non-final state (PENDING/RUNNING/CANCELLING) or + // FAILED state. If the state is FAILED, the error here is final and not + // going to be retried. If the state is a non-final state, the error + // indicates a system-error being retried. Error *status.Status `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` } @@ -1029,21 +1037,26 @@ type PipelineTaskExecutorDetail_ContainerDetail struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the main container execution. + // Output only. The name of the + // [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the main container + // execution. MainJob string `protobuf:"bytes,1,opt,name=main_job,json=mainJob,proto3" json:"main_job,omitempty"` - // Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the pre-caching-check container - // execution. This job will be available if the - // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] specifies the `pre_caching_check` hook in - // the lifecycle events. + // Output only. The name of the + // [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the + // pre-caching-check container execution. This job will be available if the + // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] + // specifies the `pre_caching_check` hook in the lifecycle events. PreCachingCheckJob string `protobuf:"bytes,2,opt,name=pre_caching_check_job,json=preCachingCheckJob,proto3" json:"pre_caching_check_job,omitempty"` - // Output only. The names of the previously failed [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the main container + // Output only. The names of the previously failed + // [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the main container // executions. The list includes the all attempts in chronological order. FailedMainJobs []string `protobuf:"bytes,3,rep,name=failed_main_jobs,json=failedMainJobs,proto3" json:"failed_main_jobs,omitempty"` - // Output only. The names of the previously failed [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the + // Output only. The names of the previously failed + // [CustomJob][google.cloud.aiplatform.v1.CustomJob] for the // pre-caching-check container executions. This job will be available if the - // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] specifies the `pre_caching_check` hook in - // the lifecycle events. - // The list includes the all attempts in chronological order. + // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec] + // specifies the `pre_caching_check` hook in the lifecycle events. The list + // includes the all attempts in chronological order. FailedPreCachingCheckJobs []string `protobuf:"bytes,4,rep,name=failed_pre_caching_check_jobs,json=failedPreCachingCheckJobs,proto3" json:"failed_pre_caching_check_jobs,omitempty"` } @@ -1115,7 +1128,8 @@ type PipelineTaskExecutorDetail_CustomJobDetail struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. The name of the [CustomJob][google.cloud.aiplatform.v1.CustomJob]. + // Output only. The name of the + // [CustomJob][google.cloud.aiplatform.v1.CustomJob]. Job string `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` } diff --git a/aiplatform/apiv1/aiplatformpb/pipeline_service.pb.go b/aiplatform/apiv1/aiplatformpb/pipeline_service.pb.go index 28ed56b7eb24..dc39a67e33e0 100644 --- a/aiplatform/apiv1/aiplatformpb/pipeline_service.pb.go +++ b/aiplatform/apiv1/aiplatformpb/pipeline_service.pb.go @@ -43,14 +43,15 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [PipelineService.CreateTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipeline]. +// Request message for +// [PipelineService.CreateTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipeline]. type CreateTrainingPipelineRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Location to create the TrainingPipeline in. - // Format: `projects/{project}/locations/{location}` + // Required. The resource name of the Location to create the TrainingPipeline + // in. Format: `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The TrainingPipeline to create. TrainingPipeline *TrainingPipeline `protobuf:"bytes,2,opt,name=training_pipeline,json=trainingPipeline,proto3" json:"training_pipeline,omitempty"` @@ -102,7 +103,8 @@ func (x *CreateTrainingPipelineRequest) GetTrainingPipeline() *TrainingPipeline return nil } -// Request message for [PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.GetTrainingPipeline]. +// Request message for +// [PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.GetTrainingPipeline]. type GetTrainingPipelineRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -153,14 +155,15 @@ func (x *GetTrainingPipelineRequest) GetName() string { return "" } -// Request message for [PipelineService.ListTrainingPipelines][google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines]. +// Request message for +// [PipelineService.ListTrainingPipelines][google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines]. type ListTrainingPipelinesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Location to list the TrainingPipelines from. - // Format: `projects/{project}/locations/{location}` + // Required. The resource name of the Location to list the TrainingPipelines + // from. Format: `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The standard list filter. // @@ -187,8 +190,10 @@ type ListTrainingPipelinesRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListTrainingPipelinesResponse.next_page_token][google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.next_page_token] of the previous - // [PipelineService.ListTrainingPipelines][google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines] call. + // [ListTrainingPipelinesResponse.next_page_token][google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.next_page_token] + // of the previous + // [PipelineService.ListTrainingPipelines][google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -261,7 +266,8 @@ func (x *ListTrainingPipelinesRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [PipelineService.ListTrainingPipelines][google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines] +// Response message for +// [PipelineService.ListTrainingPipelines][google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines] type ListTrainingPipelinesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -270,7 +276,9 @@ type ListTrainingPipelinesResponse struct { // List of TrainingPipelines in the requested page. TrainingPipelines []*TrainingPipeline `protobuf:"bytes,1,rep,name=training_pipelines,json=trainingPipelines,proto3" json:"training_pipelines,omitempty"` // A token to retrieve the next page of results. - // Pass to [ListTrainingPipelinesRequest.page_token][google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.page_token] to obtain that page. + // Pass to + // [ListTrainingPipelinesRequest.page_token][google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -320,7 +328,8 @@ func (x *ListTrainingPipelinesResponse) GetNextPageToken() string { return "" } -// Request message for [PipelineService.DeleteTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipeline]. +// Request message for +// [PipelineService.DeleteTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipeline]. type DeleteTrainingPipelineRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -371,7 +380,8 @@ func (x *DeleteTrainingPipelineRequest) GetName() string { return "" } -// Request message for [PipelineService.CancelTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipeline]. +// Request message for +// [PipelineService.CancelTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipeline]. type CancelTrainingPipelineRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -422,7 +432,8 @@ func (x *CancelTrainingPipelineRequest) GetName() string { return "" } -// Request message for [PipelineService.CreatePipelineJob][google.cloud.aiplatform.v1.PipelineService.CreatePipelineJob]. +// Request message for +// [PipelineService.CreatePipelineJob][google.cloud.aiplatform.v1.PipelineService.CreatePipelineJob]. type CreatePipelineJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -495,7 +506,8 @@ func (x *CreatePipelineJobRequest) GetPipelineJobId() string { return "" } -// Request message for [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob]. +// Request message for +// [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob]. type GetPipelineJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -546,7 +558,8 @@ func (x *GetPipelineJobRequest) GetName() string { return "" } -// Request message for [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs]. +// Request message for +// [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs]. type ListPipelineJobsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -594,8 +607,10 @@ type ListPipelineJobsRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListPipelineJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListPipelineJobsResponse.next_page_token] of the previous - // [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs] call. + // [ListPipelineJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListPipelineJobsResponse.next_page_token] + // of the previous + // [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // A comma-separated list of fields to order by. The default sort order is in // ascending order. Use "desc" after a field name for descending. You can have @@ -689,7 +704,8 @@ func (x *ListPipelineJobsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs] +// Response message for +// [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs] type ListPipelineJobsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -698,7 +714,9 @@ type ListPipelineJobsResponse struct { // List of PipelineJobs in the requested page. PipelineJobs []*PipelineJob `protobuf:"bytes,1,rep,name=pipeline_jobs,json=pipelineJobs,proto3" json:"pipeline_jobs,omitempty"` // A token to retrieve the next page of results. - // Pass to [ListPipelineJobsRequest.page_token][google.cloud.aiplatform.v1.ListPipelineJobsRequest.page_token] to obtain that page. + // Pass to + // [ListPipelineJobsRequest.page_token][google.cloud.aiplatform.v1.ListPipelineJobsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -748,7 +766,8 @@ func (x *ListPipelineJobsResponse) GetNextPageToken() string { return "" } -// Request message for [PipelineService.DeletePipelineJob][google.cloud.aiplatform.v1.PipelineService.DeletePipelineJob]. +// Request message for +// [PipelineService.DeletePipelineJob][google.cloud.aiplatform.v1.PipelineService.DeletePipelineJob]. type DeletePipelineJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -799,7 +818,8 @@ func (x *DeletePipelineJobRequest) GetName() string { return "" } -// Request message for [PipelineService.CancelPipelineJob][google.cloud.aiplatform.v1.PipelineService.CancelPipelineJob]. +// Request message for +// [PipelineService.CancelPipelineJob][google.cloud.aiplatform.v1.PipelineService.CancelPipelineJob]. type CancelPipelineJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1407,13 +1427,17 @@ type PipelineServiceClient interface { // Cancels a TrainingPipeline. // Starts asynchronous cancellation on the TrainingPipeline. The server // makes a best effort to cancel the pipeline, but success is not - // guaranteed. Clients can use [PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.GetTrainingPipeline] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.GetTrainingPipeline] + // or other methods to check whether the cancellation succeeded or whether the // pipeline completed despite cancellation. On successful cancellation, // the TrainingPipeline is not deleted; instead it becomes a pipeline with - // a [TrainingPipeline.error][google.cloud.aiplatform.v1.TrainingPipeline.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`, and [TrainingPipeline.state][google.cloud.aiplatform.v1.TrainingPipeline.state] is set to - // `CANCELLED`. + // a + // [TrainingPipeline.error][google.cloud.aiplatform.v1.TrainingPipeline.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`, and + // [TrainingPipeline.state][google.cloud.aiplatform.v1.TrainingPipeline.state] + // is set to `CANCELLED`. CancelTrainingPipeline(ctx context.Context, in *CancelTrainingPipelineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Creates a PipelineJob. A PipelineJob will run immediately when created. CreatePipelineJob(ctx context.Context, in *CreatePipelineJobRequest, opts ...grpc.CallOption) (*PipelineJob, error) @@ -1426,12 +1450,15 @@ type PipelineServiceClient interface { // Cancels a PipelineJob. // Starts asynchronous cancellation on the PipelineJob. The server // makes a best effort to cancel the pipeline, but success is not - // guaranteed. Clients can use [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob] + // or other methods to check whether the cancellation succeeded or whether the // pipeline completed despite cancellation. On successful cancellation, // the PipelineJob is not deleted; instead it becomes a pipeline with - // a [PipelineJob.error][google.cloud.aiplatform.v1.PipelineJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`, and [PipelineJob.state][google.cloud.aiplatform.v1.PipelineJob.state] is set to + // a [PipelineJob.error][google.cloud.aiplatform.v1.PipelineJob.error] value + // with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding + // to `Code.CANCELLED`, and + // [PipelineJob.state][google.cloud.aiplatform.v1.PipelineJob.state] is set to // `CANCELLED`. CancelPipelineJob(ctx context.Context, in *CancelPipelineJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) } @@ -1548,13 +1575,17 @@ type PipelineServiceServer interface { // Cancels a TrainingPipeline. // Starts asynchronous cancellation on the TrainingPipeline. The server // makes a best effort to cancel the pipeline, but success is not - // guaranteed. Clients can use [PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.GetTrainingPipeline] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.GetTrainingPipeline] + // or other methods to check whether the cancellation succeeded or whether the // pipeline completed despite cancellation. On successful cancellation, // the TrainingPipeline is not deleted; instead it becomes a pipeline with - // a [TrainingPipeline.error][google.cloud.aiplatform.v1.TrainingPipeline.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`, and [TrainingPipeline.state][google.cloud.aiplatform.v1.TrainingPipeline.state] is set to - // `CANCELLED`. + // a + // [TrainingPipeline.error][google.cloud.aiplatform.v1.TrainingPipeline.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`, and + // [TrainingPipeline.state][google.cloud.aiplatform.v1.TrainingPipeline.state] + // is set to `CANCELLED`. CancelTrainingPipeline(context.Context, *CancelTrainingPipelineRequest) (*emptypb.Empty, error) // Creates a PipelineJob. A PipelineJob will run immediately when created. CreatePipelineJob(context.Context, *CreatePipelineJobRequest) (*PipelineJob, error) @@ -1567,12 +1598,15 @@ type PipelineServiceServer interface { // Cancels a PipelineJob. // Starts asynchronous cancellation on the PipelineJob. The server // makes a best effort to cancel the pipeline, but success is not - // guaranteed. Clients can use [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob] + // or other methods to check whether the cancellation succeeded or whether the // pipeline completed despite cancellation. On successful cancellation, // the PipelineJob is not deleted; instead it becomes a pipeline with - // a [PipelineJob.error][google.cloud.aiplatform.v1.PipelineJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`, and [PipelineJob.state][google.cloud.aiplatform.v1.PipelineJob.state] is set to + // a [PipelineJob.error][google.cloud.aiplatform.v1.PipelineJob.error] value + // with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding + // to `Code.CANCELLED`, and + // [PipelineJob.state][google.cloud.aiplatform.v1.PipelineJob.state] is set to // `CANCELLED`. CancelPipelineJob(context.Context, *CancelPipelineJobRequest) (*emptypb.Empty, error) } diff --git a/aiplatform/apiv1/aiplatformpb/prediction_service.pb.go b/aiplatform/apiv1/aiplatformpb/prediction_service.pb.go index 2a25cc25fa77..09336a182496 100644 --- a/aiplatform/apiv1/aiplatformpb/prediction_service.pb.go +++ b/aiplatform/apiv1/aiplatformpb/prediction_service.pb.go @@ -42,7 +42,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict]. +// Request message for +// [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict]. type PredictRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -63,7 +64,8 @@ type PredictRequest struct { // [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. Instances []*structpb.Value `protobuf:"bytes,2,rep,name=instances,proto3" json:"instances,omitempty"` // The parameters that govern the prediction. The schema of the parameters may - // be specified via Endpoint's DeployedModels' [Model's ][google.cloud.aiplatform.v1.DeployedModel.model] + // be specified via Endpoint's DeployedModels' [Model's + // ][google.cloud.aiplatform.v1.DeployedModel.model] // [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] // [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri]. Parameters *structpb.Value `protobuf:"bytes,3,opt,name=parameters,proto3" json:"parameters,omitempty"` @@ -122,7 +124,8 @@ func (x *PredictRequest) GetParameters() *structpb.Value { return nil } -// Response message for [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict]. +// Response message for +// [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict]. type PredictResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -136,14 +139,15 @@ type PredictResponse struct { Predictions []*structpb.Value `protobuf:"bytes,1,rep,name=predictions,proto3" json:"predictions,omitempty"` // ID of the Endpoint's DeployedModel that served this prediction. DeployedModelId string `protobuf:"bytes,2,opt,name=deployed_model_id,json=deployedModelId,proto3" json:"deployed_model_id,omitempty"` - // Output only. The resource name of the Model which is deployed as the DeployedModel that - // this prediction hits. + // Output only. The resource name of the Model which is deployed as the + // DeployedModel that this prediction hits. Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"` - // Output only. The version ID of the Model which is deployed as the DeployedModel that - // this prediction hits. + // Output only. The version ID of the Model which is deployed as the + // DeployedModel that this prediction hits. ModelVersionId string `protobuf:"bytes,5,opt,name=model_version_id,json=modelVersionId,proto3" json:"model_version_id,omitempty"` - // Output only. The [display name][google.cloud.aiplatform.v1.Model.display_name] of the Model which is deployed as - // the DeployedModel that this prediction hits. + // Output only. The [display + // name][google.cloud.aiplatform.v1.Model.display_name] of the Model which is + // deployed as the DeployedModel that this prediction hits. ModelDisplayName string `protobuf:"bytes,4,opt,name=model_display_name,json=modelDisplayName,proto3" json:"model_display_name,omitempty"` } @@ -214,7 +218,8 @@ func (x *PredictResponse) GetModelDisplayName() string { return "" } -// Request message for [PredictionService.RawPredict][google.cloud.aiplatform.v1.PredictionService.RawPredict]. +// Request message for +// [PredictionService.RawPredict][google.cloud.aiplatform.v1.PredictionService.RawPredict]. type RawPredictRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -226,16 +231,18 @@ type RawPredictRequest struct { Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // The prediction input. Supports HTTP headers and arbitrary data payload. // - // A [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] may have an upper limit on the number of instances it - // supports per request. When this limit it is exceeded for an AutoML model, - // the [RawPredict][google.cloud.aiplatform.v1.PredictionService.RawPredict] method returns an error. - // When this limit is exceeded for a custom-trained model, the behavior varies - // depending on the model. + // A [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] may have an + // upper limit on the number of instances it supports per request. When this + // limit it is exceeded for an AutoML model, the + // [RawPredict][google.cloud.aiplatform.v1.PredictionService.RawPredict] + // method returns an error. When this limit is exceeded for a custom-trained + // model, the behavior varies depending on the model. // // You can specify the schema for each instance in the // [predict_schemata.instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] - // field when you create a [Model][google.cloud.aiplatform.v1.Model]. This schema applies when you deploy the - // `Model` as a `DeployedModel` to an [Endpoint][google.cloud.aiplatform.v1.Endpoint] and use the `RawPredict` + // field when you create a [Model][google.cloud.aiplatform.v1.Model]. This + // schema applies when you deploy the `Model` as a `DeployedModel` to an + // [Endpoint][google.cloud.aiplatform.v1.Endpoint] and use the `RawPredict` // method. HttpBody *httpbody.HttpBody `protobuf:"bytes,2,opt,name=http_body,json=httpBody,proto3" json:"http_body,omitempty"` } @@ -286,7 +293,8 @@ func (x *RawPredictRequest) GetHttpBody() *httpbody.HttpBody { return nil } -// Request message for [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain]. +// Request message for +// [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain]. type ExplainRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -307,21 +315,23 @@ type ExplainRequest struct { // [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. Instances []*structpb.Value `protobuf:"bytes,2,rep,name=instances,proto3" json:"instances,omitempty"` // The parameters that govern the prediction. The schema of the parameters may - // be specified via Endpoint's DeployedModels' [Model's ][google.cloud.aiplatform.v1.DeployedModel.model] + // be specified via Endpoint's DeployedModels' [Model's + // ][google.cloud.aiplatform.v1.DeployedModel.model] // [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] // [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri]. Parameters *structpb.Value `protobuf:"bytes,4,opt,name=parameters,proto3" json:"parameters,omitempty"` // If specified, overrides the - // [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] of the DeployedModel. - // Can be used for explaining prediction results with different - // configurations, such as: + // [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] + // of the DeployedModel. Can be used for explaining prediction results with + // different configurations, such as: // - Explaining top-5 predictions results as opposed to top-1; // - Increasing path count or step count of the attribution methods to reduce // approximate errors; // - Using different baselines for explaining the prediction results. ExplanationSpecOverride *ExplanationSpecOverride `protobuf:"bytes,5,opt,name=explanation_spec_override,json=explanationSpecOverride,proto3" json:"explanation_spec_override,omitempty"` // If specified, this ExplainRequest will be served by the chosen - // DeployedModel, overriding [Endpoint.traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split]. + // DeployedModel, overriding + // [Endpoint.traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split]. DeployedModelId string `protobuf:"bytes,3,opt,name=deployed_model_id,json=deployedModelId,proto3" json:"deployed_model_id,omitempty"` } @@ -392,21 +402,25 @@ func (x *ExplainRequest) GetDeployedModelId() string { return "" } -// Response message for [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain]. +// Response message for +// [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain]. type ExplainResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The explanations of the Model's [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions]. + // The explanations of the Model's + // [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions]. // - // It has the same number of elements as [instances][google.cloud.aiplatform.v1.ExplainRequest.instances] - // to be explained. + // It has the same number of elements as + // [instances][google.cloud.aiplatform.v1.ExplainRequest.instances] to be + // explained. Explanations []*Explanation `protobuf:"bytes,1,rep,name=explanations,proto3" json:"explanations,omitempty"` // ID of the Endpoint's DeployedModel that served this explanation. DeployedModelId string `protobuf:"bytes,2,opt,name=deployed_model_id,json=deployedModelId,proto3" json:"deployed_model_id,omitempty"` // The predictions that are the output of the predictions call. - // Same as [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions]. + // Same as + // [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions]. Predictions []*structpb.Value `protobuf:"bytes,3,rep,name=predictions,proto3" json:"predictions,omitempty"` } @@ -773,18 +787,22 @@ type PredictionServiceClient interface { // // The response includes the following HTTP headers: // - // * `X-Vertex-AI-Endpoint-Id`: ID of the [Endpoint][google.cloud.aiplatform.v1.Endpoint] that served this + // * `X-Vertex-AI-Endpoint-Id`: ID of the + // [Endpoint][google.cloud.aiplatform.v1.Endpoint] that served this // prediction. // - // * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] - // that served this prediction. + // * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's + // [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] that served this + // prediction. RawPredict(ctx context.Context, in *RawPredictRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error) // Perform an online explanation. // - // If [deployed_model_id][google.cloud.aiplatform.v1.ExplainRequest.deployed_model_id] is specified, - // the corresponding DeployModel must have + // If + // [deployed_model_id][google.cloud.aiplatform.v1.ExplainRequest.deployed_model_id] + // is specified, the corresponding DeployModel must have // [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - // populated. If [deployed_model_id][google.cloud.aiplatform.v1.ExplainRequest.deployed_model_id] + // populated. If + // [deployed_model_id][google.cloud.aiplatform.v1.ExplainRequest.deployed_model_id] // is not specified, all DeployedModels must have // [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] // populated. Only deployed AutoML tabular Models have @@ -835,18 +853,22 @@ type PredictionServiceServer interface { // // The response includes the following HTTP headers: // - // * `X-Vertex-AI-Endpoint-Id`: ID of the [Endpoint][google.cloud.aiplatform.v1.Endpoint] that served this + // * `X-Vertex-AI-Endpoint-Id`: ID of the + // [Endpoint][google.cloud.aiplatform.v1.Endpoint] that served this // prediction. // - // * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] - // that served this prediction. + // * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's + // [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] that served this + // prediction. RawPredict(context.Context, *RawPredictRequest) (*httpbody.HttpBody, error) // Perform an online explanation. // - // If [deployed_model_id][google.cloud.aiplatform.v1.ExplainRequest.deployed_model_id] is specified, - // the corresponding DeployModel must have + // If + // [deployed_model_id][google.cloud.aiplatform.v1.ExplainRequest.deployed_model_id] + // is specified, the corresponding DeployModel must have // [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] - // populated. If [deployed_model_id][google.cloud.aiplatform.v1.ExplainRequest.deployed_model_id] + // populated. If + // [deployed_model_id][google.cloud.aiplatform.v1.ExplainRequest.deployed_model_id] // is not specified, all DeployedModels must have // [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] // populated. Only deployed AutoML tabular Models have diff --git a/aiplatform/apiv1/aiplatformpb/saved_query.pb.go b/aiplatform/apiv1/aiplatformpb/saved_query.pb.go index 227ddf3e76d6..3084a4931216 100644 --- a/aiplatform/apiv1/aiplatformpb/saved_query.pb.go +++ b/aiplatform/apiv1/aiplatformpb/saved_query.pb.go @@ -78,8 +78,8 @@ type SavedQuery struct { // Used to perform a consistent read-modify-write update. If not set, a blind // "overwrite" update happens. Etag string `protobuf:"bytes,8,opt,name=etag,proto3" json:"etag,omitempty"` - // Output only. If the Annotations belonging to the SavedQuery can be used for AutoML - // training. + // Output only. If the Annotations belonging to the SavedQuery can be used for + // AutoML training. SupportAutomlTraining bool `protobuf:"varint,9,opt,name=support_automl_training,json=supportAutomlTraining,proto3" json:"support_automl_training,omitempty"` } diff --git a/aiplatform/apiv1/aiplatformpb/specialist_pool_service.pb.go b/aiplatform/apiv1/aiplatformpb/specialist_pool_service.pb.go index 1fc3c70ad5c1..98ab6c0cc253 100644 --- a/aiplatform/apiv1/aiplatformpb/specialist_pool_service.pb.go +++ b/aiplatform/apiv1/aiplatformpb/specialist_pool_service.pb.go @@ -42,7 +42,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [SpecialistPoolService.CreateSpecialistPool][google.cloud.aiplatform.v1.SpecialistPoolService.CreateSpecialistPool]. +// Request message for +// [SpecialistPoolService.CreateSpecialistPool][google.cloud.aiplatform.v1.SpecialistPoolService.CreateSpecialistPool]. type CreateSpecialistPoolRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -151,7 +152,8 @@ func (x *CreateSpecialistPoolOperationMetadata) GetGenericMetadata() *GenericOpe return nil } -// Request message for [SpecialistPoolService.GetSpecialistPool][google.cloud.aiplatform.v1.SpecialistPoolService.GetSpecialistPool]. +// Request message for +// [SpecialistPoolService.GetSpecialistPool][google.cloud.aiplatform.v1.SpecialistPoolService.GetSpecialistPool]. type GetSpecialistPoolRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -202,7 +204,8 @@ func (x *GetSpecialistPoolRequest) GetName() string { return "" } -// Request message for [SpecialistPoolService.ListSpecialistPools][google.cloud.aiplatform.v1.SpecialistPoolService.ListSpecialistPools]. +// Request message for +// [SpecialistPoolService.ListSpecialistPools][google.cloud.aiplatform.v1.SpecialistPoolService.ListSpecialistPools]. type ListSpecialistPoolsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -214,9 +217,11 @@ type ListSpecialistPoolsRequest struct { // The standard list page size. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. - // Typically obtained by [ListSpecialistPoolsResponse.next_page_token][google.cloud.aiplatform.v1.ListSpecialistPoolsResponse.next_page_token] of - // the previous [SpecialistPoolService.ListSpecialistPools][google.cloud.aiplatform.v1.SpecialistPoolService.ListSpecialistPools] call. Return - // first page if empty. + // Typically obtained by + // [ListSpecialistPoolsResponse.next_page_token][google.cloud.aiplatform.v1.ListSpecialistPoolsResponse.next_page_token] + // of the previous + // [SpecialistPoolService.ListSpecialistPools][google.cloud.aiplatform.v1.SpecialistPoolService.ListSpecialistPools] + // call. Return first page if empty. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Mask specifying which fields to read. FieldMask represents a set of ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -282,7 +287,8 @@ func (x *ListSpecialistPoolsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [SpecialistPoolService.ListSpecialistPools][google.cloud.aiplatform.v1.SpecialistPoolService.ListSpecialistPools]. +// Response message for +// [SpecialistPoolService.ListSpecialistPools][google.cloud.aiplatform.v1.SpecialistPoolService.ListSpecialistPools]. type ListSpecialistPoolsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -340,7 +346,8 @@ func (x *ListSpecialistPoolsResponse) GetNextPageToken() string { return "" } -// Request message for [SpecialistPoolService.DeleteSpecialistPool][google.cloud.aiplatform.v1.SpecialistPoolService.DeleteSpecialistPool]. +// Request message for +// [SpecialistPoolService.DeleteSpecialistPool][google.cloud.aiplatform.v1.SpecialistPoolService.DeleteSpecialistPool]. type DeleteSpecialistPoolRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -401,7 +408,8 @@ func (x *DeleteSpecialistPoolRequest) GetForce() bool { return false } -// Request message for [SpecialistPoolService.UpdateSpecialistPool][google.cloud.aiplatform.v1.SpecialistPoolService.UpdateSpecialistPool]. +// Request message for +// [SpecialistPoolService.UpdateSpecialistPool][google.cloud.aiplatform.v1.SpecialistPoolService.UpdateSpecialistPool]. type UpdateSpecialistPoolRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -466,8 +474,8 @@ type UpdateSpecialistPoolOperationMetadata struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. The name of the SpecialistPool to which the specialists are being added. - // Format: + // Output only. The name of the SpecialistPool to which the specialists are + // being added. Format: // `projects/{project_id}/locations/{location_id}/specialistPools/{specialist_pool}` SpecialistPool string `protobuf:"bytes,1,opt,name=specialist_pool,json=specialistPool,proto3" json:"specialist_pool,omitempty"` // The operation generic information. diff --git a/aiplatform/apiv1/aiplatformpb/study.pb.go b/aiplatform/apiv1/aiplatformpb/study.pb.go index 2d4682dc5eb2..cbfb4fbfc556 100644 --- a/aiplatform/apiv1/aiplatformpb/study.pb.go +++ b/aiplatform/apiv1/aiplatformpb/study.pb.go @@ -580,11 +580,12 @@ type Trial struct { Measurements []*Measurement `protobuf:"bytes,6,rep,name=measurements,proto3" json:"measurements,omitempty"` // Output only. Time when the Trial was started. StartTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - // Output only. Time when the Trial's status changed to `SUCCEEDED` or `INFEASIBLE`. + // Output only. Time when the Trial's status changed to `SUCCEEDED` or + // `INFEASIBLE`. EndTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - // Output only. The identifier of the client that originally requested this Trial. - // Each client is identified by a unique client_id. When a client - // asks for a suggestion, Vertex AI Vizier will assign it a Trial. The client + // Output only. The identifier of the client that originally requested this + // Trial. Each client is identified by a unique client_id. When a client asks + // for a suggestion, Vertex AI Vizier will assign it a Trial. The client // should evaluate the Trial, complete it, and report back to Vertex AI // Vizier. If suggestion is asked again by same client_id before the Trial is // completed, the same Trial will be returned. Multiple clients with @@ -600,9 +601,11 @@ type Trial struct { // Output only. URIs for accessing [interactive // shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) // (one URI for each training node). Only available if this trial is part of - // a [HyperparameterTuningJob][google.cloud.aiplatform.v1.HyperparameterTuningJob] and the job's - // [trial_job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] field - // is `true`. + // a + // [HyperparameterTuningJob][google.cloud.aiplatform.v1.HyperparameterTuningJob] + // and the job's + // [trial_job_spec.enable_web_access][google.cloud.aiplatform.v1.CustomJobSpec.enable_web_access] + // field is `true`. // // The keys are names of each node used for the trial; for example, // `workerpool0-0` for the primary node, `workerpool1-0` for the first node in @@ -883,13 +886,14 @@ type Measurement struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. Time that the Trial has been running at the point of this Measurement. + // Output only. Time that the Trial has been running at the point of this + // Measurement. ElapsedDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=elapsed_duration,json=elapsedDuration,proto3" json:"elapsed_duration,omitempty"` - // Output only. The number of steps the machine learning model has been trained for. - // Must be non-negative. + // Output only. The number of steps the machine learning model has been + // trained for. Must be non-negative. StepCount int64 `protobuf:"varint,2,opt,name=step_count,json=stepCount,proto3" json:"step_count,omitempty"` - // Output only. A list of metrics got by evaluating the objective functions using suggested - // Parameter values. + // Output only. A list of metrics got by evaluating the objective functions + // using suggested Parameter values. Metrics []*Measurement_Metric `protobuf:"bytes,3,rep,name=metrics,proto3" json:"metrics,omitempty"` } @@ -953,7 +957,8 @@ type Trial_Parameter struct { unknownFields protoimpl.UnknownFields // Output only. The ID of the parameter. The parameter should be defined in - // [StudySpec's Parameters][google.cloud.aiplatform.v1.StudySpec.parameters]. + // [StudySpec's + // Parameters][google.cloud.aiplatform.v1.StudySpec.parameters]. ParameterId string `protobuf:"bytes,1,opt,name=parameter_id,json=parameterId,proto3" json:"parameter_id,omitempty"` // Output only. The value of the parameter. // `number_value` will be set if a parameter defined in StudySpec is @@ -1015,8 +1020,8 @@ type StudySpec_MetricSpec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The ID of the metric. Must not contain whitespaces and must be unique - // amongst all MetricSpecs. + // Required. The ID of the metric. Must not contain whitespaces and must be + // unique amongst all MetricSpecs. MetricId string `protobuf:"bytes,1,opt,name=metric_id,json=metricId,proto3" json:"metric_id,omitempty"` // Required. The optimization goal of the metric. Goal StudySpec_MetricSpec_GoalType `protobuf:"varint,2,opt,name=goal,proto3,enum=google.cloud.aiplatform.v1.StudySpec_MetricSpec_GoalType" json:"goal,omitempty"` @@ -1081,8 +1086,8 @@ type StudySpec_ParameterSpec struct { // *StudySpec_ParameterSpec_CategoricalValueSpec_ // *StudySpec_ParameterSpec_DiscreteValueSpec_ ParameterValueSpec isStudySpec_ParameterSpec_ParameterValueSpec `protobuf_oneof:"parameter_value_spec"` - // Required. The ID of the parameter. Must not contain whitespaces and must be unique - // amongst all ParameterSpecs. + // Required. The ID of the parameter. Must not contain whitespaces and must + // be unique amongst all ParameterSpecs. ParameterId string `protobuf:"bytes,1,opt,name=parameter_id,json=parameterId,proto3" json:"parameter_id,omitempty"` // How the parameter should be scaled. // Leave unset for `CATEGORICAL` parameters. @@ -1226,9 +1231,11 @@ type StudySpec_DecayCurveAutomatedStoppingSpec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // True if [Measurement.elapsed_duration][google.cloud.aiplatform.v1.Measurement.elapsed_duration] is used as the x-axis of each - // Trials Decay Curve. Otherwise, [Measurement.step_count][google.cloud.aiplatform.v1.Measurement.step_count] will be used - // as the x-axis. + // True if + // [Measurement.elapsed_duration][google.cloud.aiplatform.v1.Measurement.elapsed_duration] + // is used as the x-axis of each Trials Decay Curve. Otherwise, + // [Measurement.step_count][google.cloud.aiplatform.v1.Measurement.step_count] + // will be used as the x-axis. UseElapsedDuration bool `protobuf:"varint,1,opt,name=use_elapsed_duration,json=useElapsedDuration,proto3" json:"use_elapsed_duration,omitempty"` } @@ -1282,9 +1289,10 @@ type StudySpec_MedianAutomatedStoppingSpec struct { unknownFields protoimpl.UnknownFields // True if median automated stopping rule applies on - // [Measurement.elapsed_duration][google.cloud.aiplatform.v1.Measurement.elapsed_duration]. It means that elapsed_duration - // field of latest measurement of current Trial is used to compute median - // objective value for each completed Trials. + // [Measurement.elapsed_duration][google.cloud.aiplatform.v1.Measurement.elapsed_duration]. + // It means that elapsed_duration field of latest measurement of current + // Trial is used to compute median objective value for each completed + // Trials. UseElapsedDuration bool `protobuf:"varint,1,opt,name=use_elapsed_duration,json=useElapsedDuration,proto3" json:"use_elapsed_duration,omitempty"` } @@ -1373,6 +1381,14 @@ type StudySpec_ConvexAutomatedStoppingSpec struct { // min_num_steps are overloaded to contain max_elapsed_seconds and // min_elapsed_seconds. UseElapsedDuration bool `protobuf:"varint,5,opt,name=use_elapsed_duration,json=useElapsedDuration,proto3" json:"use_elapsed_duration,omitempty"` + // ConvexAutomatedStoppingSpec by default only updates the trials that needs + // to be early stopped using a newly trained auto-regressive model. When + // this flag is set to True, all stopped trials from the beginning are + // potentially updated in terms of their `final_measurement`. Also, note + // that the training logic of autoregressive models is different in this + // case. Enabling this option has shown better results and this may be the + // default option in the future. + UpdateAllStoppedTrials *bool `protobuf:"varint,6,opt,name=update_all_stopped_trials,json=updateAllStoppedTrials,proto3,oneof" json:"update_all_stopped_trials,omitempty"` } func (x *StudySpec_ConvexAutomatedStoppingSpec) Reset() { @@ -1442,6 +1458,13 @@ func (x *StudySpec_ConvexAutomatedStoppingSpec) GetUseElapsedDuration() bool { return false } +func (x *StudySpec_ConvexAutomatedStoppingSpec) GetUpdateAllStoppedTrials() bool { + if x != nil && x.UpdateAllStoppedTrials != nil { + return *x.UpdateAllStoppedTrials + } + return false +} + // Value specification for a parameter in `DOUBLE` type. type StudySpec_ParameterSpec_DoubleValueSpec struct { state protoimpl.MessageState @@ -1941,8 +1964,8 @@ type StudySpec_ParameterSpec_ConditionalParameterSpec_CategoricalValueCondition sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. Matches values of the parent parameter of 'CATEGORICAL' type. - // All values must exist in `categorical_value_spec` of parent + // Required. Matches values of the parent parameter of 'CATEGORICAL' + // type. All values must exist in `categorical_value_spec` of parent // parameter. Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` } @@ -2164,7 +2187,7 @@ var file_google_cloud_aiplatform_v1_study_proto_rawDesc = []byte{ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x73, 0x74, 0x75, 0x64, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x74, 0x75, 0x64, 0x79, 0x7d, 0x2f, 0x74, 0x72, 0x69, - 0x61, 0x6c, 0x73, 0x2f, 0x7b, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x7d, 0x22, 0xd4, 0x1f, 0x0a, 0x09, + 0x61, 0x6c, 0x73, 0x2f, 0x7b, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x7d, 0x22, 0xb2, 0x20, 0x0a, 0x09, 0x53, 0x74, 0x75, 0x64, 0x79, 0x53, 0x70, 0x65, 0x63, 0x12, 0x82, 0x01, 0x0a, 0x19, 0x64, 0x65, 0x63, 0x61, 0x79, 0x5f, 0x63, 0x75, 0x72, 0x76, 0x65, 0x5f, 0x73, 0x74, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, @@ -2382,7 +2405,7 @@ var file_google_cloud_aiplatform_v1_study_proto_rawDesc = []byte{ 0x70, 0x69, 0x6e, 0x67, 0x53, 0x70, 0x65, 0x63, 0x12, 0x30, 0x0a, 0x14, 0x75, 0x73, 0x65, 0x5f, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x75, 0x73, 0x65, 0x45, 0x6c, 0x61, 0x70, 0x73, - 0x65, 0x64, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x90, 0x02, 0x0a, 0x1b, 0x43, + 0x65, 0x64, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xee, 0x02, 0x0a, 0x1b, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x78, 0x41, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x53, 0x70, 0x65, 0x63, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, @@ -2399,56 +2422,62 @@ var file_google_cloud_aiplatform_v1_study_proto_rawDesc = []byte{ 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x75, 0x73, 0x65, 0x5f, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x75, 0x73, 0x65, 0x45, 0x6c, - 0x61, 0x70, 0x73, 0x65, 0x64, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4a, 0x0a, - 0x09, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x4c, - 0x47, 0x4f, 0x52, 0x49, 0x54, 0x48, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, - 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x47, 0x52, 0x49, 0x44, 0x5f, 0x53, 0x45, - 0x41, 0x52, 0x43, 0x48, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x41, 0x4e, 0x44, 0x4f, 0x4d, - 0x5f, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x10, 0x03, 0x22, 0x48, 0x0a, 0x10, 0x4f, 0x62, 0x73, - 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x6f, 0x69, 0x73, 0x65, 0x12, 0x21, 0x0a, - 0x1d, 0x4f, 0x42, 0x53, 0x45, 0x52, 0x56, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x49, - 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x4f, 0x57, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x49, 0x47, - 0x48, 0x10, 0x02, 0x22, 0x72, 0x0a, 0x18, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x2a, 0x0a, 0x26, 0x4d, 0x45, 0x41, 0x53, 0x55, 0x52, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x53, - 0x45, 0x4c, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x4c, - 0x41, 0x53, 0x54, 0x5f, 0x4d, 0x45, 0x41, 0x53, 0x55, 0x52, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, - 0x01, 0x12, 0x14, 0x0a, 0x10, 0x42, 0x45, 0x53, 0x54, 0x5f, 0x4d, 0x45, 0x41, 0x53, 0x55, 0x52, - 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x42, 0x19, 0x0a, 0x17, 0x61, 0x75, 0x74, 0x6f, 0x6d, - 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x70, - 0x65, 0x63, 0x22, 0x92, 0x02, 0x0a, 0x0b, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x12, 0x49, 0x0a, 0x10, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x5f, 0x64, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x65, 0x6c, - 0x61, 0x70, 0x73, 0x65, 0x64, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, - 0x0a, 0x73, 0x74, 0x65, 0x70, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x03, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x73, 0x74, 0x65, 0x70, 0x43, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x4d, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x72, - 0x69, 0x63, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, - 0x1a, 0x45, 0x0a, 0x06, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x20, 0x0a, 0x09, 0x6d, 0x65, - 0x74, 0x72, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, - 0x41, 0x03, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x42, 0x03, 0xe0, 0x41, 0x03, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0xce, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x53, 0x74, 0x75, 0x64, - 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 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, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0xaa, 0x02, - 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, - 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x47, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x70, 0x73, 0x65, 0x64, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, + 0x19, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x70, + 0x70, 0x65, 0x64, 0x5f, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, + 0x48, 0x00, 0x52, 0x16, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x6c, 0x6c, 0x53, 0x74, 0x6f, + 0x70, 0x70, 0x65, 0x64, 0x54, 0x72, 0x69, 0x61, 0x6c, 0x73, 0x88, 0x01, 0x01, 0x42, 0x1c, 0x0a, + 0x1a, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x73, 0x74, 0x6f, + 0x70, 0x70, 0x65, 0x64, 0x5f, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x73, 0x22, 0x4a, 0x0a, 0x09, 0x41, + 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x4c, 0x47, 0x4f, + 0x52, 0x49, 0x54, 0x48, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, + 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x47, 0x52, 0x49, 0x44, 0x5f, 0x53, 0x45, 0x41, 0x52, + 0x43, 0x48, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x41, 0x4e, 0x44, 0x4f, 0x4d, 0x5f, 0x53, + 0x45, 0x41, 0x52, 0x43, 0x48, 0x10, 0x03, 0x22, 0x48, 0x0a, 0x10, 0x4f, 0x62, 0x73, 0x65, 0x72, + 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x6f, 0x69, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x4f, + 0x42, 0x53, 0x45, 0x52, 0x56, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x49, 0x53, 0x45, + 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, + 0x0a, 0x03, 0x4c, 0x4f, 0x57, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x49, 0x47, 0x48, 0x10, + 0x02, 0x22, 0x72, 0x0a, 0x18, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, + 0x26, 0x4d, 0x45, 0x41, 0x53, 0x55, 0x52, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x45, 0x4c, + 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x4c, 0x41, 0x53, + 0x54, 0x5f, 0x4d, 0x45, 0x41, 0x53, 0x55, 0x52, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x01, 0x12, + 0x14, 0x0a, 0x10, 0x42, 0x45, 0x53, 0x54, 0x5f, 0x4d, 0x45, 0x41, 0x53, 0x55, 0x52, 0x45, 0x4d, + 0x45, 0x4e, 0x54, 0x10, 0x02, 0x42, 0x19, 0x0a, 0x17, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x73, 0x74, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x70, 0x65, 0x63, + 0x22, 0x92, 0x02, 0x0a, 0x0b, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x12, 0x49, 0x0a, 0x10, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x5f, 0x64, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 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, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x65, 0x6c, 0x61, 0x70, + 0x73, 0x65, 0x64, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0a, 0x73, + 0x74, 0x65, 0x70, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x42, + 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x73, 0x74, 0x65, 0x70, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x4d, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, + 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, + 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x1a, 0x45, + 0x0a, 0x06, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x20, 0x0a, 0x09, 0x6d, 0x65, 0x74, 0x72, + 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, + 0x52, 0x08, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0xce, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x53, 0x74, 0x75, 0x64, 0x79, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 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, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, + 0x31, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0xaa, 0x02, 0x1a, 0x47, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, + 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2783,6 +2812,7 @@ func file_google_cloud_aiplatform_v1_study_proto_init() { (*StudySpec_ParameterSpec_CategoricalValueSpec_)(nil), (*StudySpec_ParameterSpec_DiscreteValueSpec_)(nil), } + file_google_cloud_aiplatform_v1_study_proto_msgTypes[10].OneofWrappers = []interface{}{} file_google_cloud_aiplatform_v1_study_proto_msgTypes[11].OneofWrappers = []interface{}{} file_google_cloud_aiplatform_v1_study_proto_msgTypes[12].OneofWrappers = []interface{}{} file_google_cloud_aiplatform_v1_study_proto_msgTypes[13].OneofWrappers = []interface{}{} diff --git a/aiplatform/apiv1/aiplatformpb/tensorboard.pb.go b/aiplatform/apiv1/aiplatformpb/tensorboard.pb.go index 37b5961bdb1e..aa74d8dd74fb 100644 --- a/aiplatform/apiv1/aiplatformpb/tensorboard.pb.go +++ b/aiplatform/apiv1/aiplatformpb/tensorboard.pb.go @@ -57,8 +57,8 @@ type Tensorboard struct { // Tensorboard and all sub-resources of this Tensorboard will be secured by // this key. EncryptionSpec *EncryptionSpec `protobuf:"bytes,11,opt,name=encryption_spec,json=encryptionSpec,proto3" json:"encryption_spec,omitempty"` - // Output only. Consumer project Cloud Storage path prefix used to store blob data, which - // can either be a bucket or directory. Does not end with a '/'. + // Output only. Consumer project Cloud Storage path prefix used to store blob + // data, which can either be a bucket or directory. Does not end with a '/'. BlobStoragePathPrefix string `protobuf:"bytes,10,opt,name=blob_storage_path_prefix,json=blobStoragePathPrefix,proto3" json:"blob_storage_path_prefix,omitempty"` // Output only. The number of Runs stored in this Tensorboard. RunCount int32 `protobuf:"varint,5,opt,name=run_count,json=runCount,proto3" json:"run_count,omitempty"` diff --git a/aiplatform/apiv1/aiplatformpb/tensorboard_data.pb.go b/aiplatform/apiv1/aiplatformpb/tensorboard_data.pb.go index 1f874ddbfc0a..1c2f3455d6f4 100644 --- a/aiplatform/apiv1/aiplatformpb/tensorboard_data.pb.go +++ b/aiplatform/apiv1/aiplatformpb/tensorboard_data.pb.go @@ -43,11 +43,11 @@ type TimeSeriesData struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The ID of the TensorboardTimeSeries, which will become the final component - // of the TensorboardTimeSeries' resource name + // Required. The ID of the TensorboardTimeSeries, which will become the final + // component of the TensorboardTimeSeries' resource name TensorboardTimeSeriesId string `protobuf:"bytes,1,opt,name=tensorboard_time_series_id,json=tensorboardTimeSeriesId,proto3" json:"tensorboard_time_series_id,omitempty"` - // Required. Immutable. The value type of this time series. All the values in this time series data - // must match this value type. + // Required. Immutable. The value type of this time series. All the values in + // this time series data must match this value type. ValueType TensorboardTimeSeries_ValueType `protobuf:"varint,2,opt,name=value_type,json=valueType,proto3,enum=google.cloud.aiplatform.v1.TensorboardTimeSeries_ValueType" json:"value_type,omitempty"` // Required. Data points in this time series. Values []*TimeSeriesDataPoint `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` @@ -283,7 +283,8 @@ type TensorboardTensor struct { // Required. Serialized form of // https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/tensor.proto Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - // Optional. Version number of TensorProto used to serialize [value][google.cloud.aiplatform.v1.TensorboardTensor.value]. + // Optional. Version number of TensorProto used to serialize + // [value][google.cloud.aiplatform.v1.TensorboardTensor.value]. VersionNumber int32 `protobuf:"varint,2,opt,name=version_number,json=versionNumber,proto3" json:"version_number,omitempty"` } @@ -389,8 +390,8 @@ type TensorboardBlob struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. A URI safe key uniquely identifying a blob. Can be used to locate the blob - // stored in the Cloud Storage bucket of the consumer project. + // Output only. A URI safe key uniquely identifying a blob. Can be used to + // locate the blob stored in the Cloud Storage bucket of the consumer project. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Optional. The bytes of the blob is not present unless it's returned by the // ReadTensorboardBlobData endpoint. diff --git a/aiplatform/apiv1/aiplatformpb/tensorboard_experiment.pb.go b/aiplatform/apiv1/aiplatformpb/tensorboard_experiment.pb.go index 07672e44bc18..b8ef8e304911 100644 --- a/aiplatform/apiv1/aiplatformpb/tensorboard_experiment.pb.go +++ b/aiplatform/apiv1/aiplatformpb/tensorboard_experiment.pb.go @@ -74,7 +74,8 @@ type TensorboardExperiment struct { // Used to perform consistent read-modify-write updates. If not set, a blind // "overwrite" update happens. Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"` - // Immutable. Source of the TensorboardExperiment. Example: a custom training job. + // Immutable. Source of the TensorboardExperiment. Example: a custom training + // job. Source string `protobuf:"bytes,8,opt,name=source,proto3" json:"source,omitempty"` } diff --git a/aiplatform/apiv1/aiplatformpb/tensorboard_service.pb.go b/aiplatform/apiv1/aiplatformpb/tensorboard_service.pb.go index 7ce448bb60b0..77497a303f4c 100644 --- a/aiplatform/apiv1/aiplatformpb/tensorboard_service.pb.go +++ b/aiplatform/apiv1/aiplatformpb/tensorboard_service.pb.go @@ -42,7 +42,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [TensorboardService.CreateTensorboard][google.cloud.aiplatform.v1.TensorboardService.CreateTensorboard]. +// Request message for +// [TensorboardService.CreateTensorboard][google.cloud.aiplatform.v1.TensorboardService.CreateTensorboard]. type CreateTensorboardRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -101,7 +102,8 @@ func (x *CreateTensorboardRequest) GetTensorboard() *Tensorboard { return nil } -// Request message for [TensorboardService.GetTensorboard][google.cloud.aiplatform.v1.TensorboardService.GetTensorboard]. +// Request message for +// [TensorboardService.GetTensorboard][google.cloud.aiplatform.v1.TensorboardService.GetTensorboard]. type GetTensorboardRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -152,7 +154,108 @@ func (x *GetTensorboardRequest) GetName() string { return "" } -// Request message for [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1.TensorboardService.ListTensorboards]. +// Request message for [TensorboardService.GetTensorboardUsage][]. +type ReadTensorboardUsageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The name of the Tensorboard resource. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + Tensorboard string `protobuf:"bytes,1,opt,name=tensorboard,proto3" json:"tensorboard,omitempty"` +} + +func (x *ReadTensorboardUsageRequest) Reset() { + *x = ReadTensorboardUsageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReadTensorboardUsageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReadTensorboardUsageRequest) ProtoMessage() {} + +func (x *ReadTensorboardUsageRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ReadTensorboardUsageRequest.ProtoReflect.Descriptor instead. +func (*ReadTensorboardUsageRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{2} +} + +func (x *ReadTensorboardUsageRequest) GetTensorboard() string { + if x != nil { + return x.Tensorboard + } + return "" +} + +// Response message for [TensorboardService.GetTensorboardUsage][]. +type ReadTensorboardUsageResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Maps year-month (YYYYMM) string to per month usage data. + MonthlyUsageData map[string]*ReadTensorboardUsageResponse_PerMonthUsageData `protobuf:"bytes,1,rep,name=monthly_usage_data,json=monthlyUsageData,proto3" json:"monthly_usage_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *ReadTensorboardUsageResponse) Reset() { + *x = ReadTensorboardUsageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReadTensorboardUsageResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReadTensorboardUsageResponse) ProtoMessage() {} + +func (x *ReadTensorboardUsageResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ReadTensorboardUsageResponse.ProtoReflect.Descriptor instead. +func (*ReadTensorboardUsageResponse) Descriptor() ([]byte, []int) { + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{3} +} + +func (x *ReadTensorboardUsageResponse) GetMonthlyUsageData() map[string]*ReadTensorboardUsageResponse_PerMonthUsageData { + if x != nil { + return x.MonthlyUsageData + } + return nil +} + +// Request message for +// [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1.TensorboardService.ListTensorboards]. type ListTensorboardsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -165,17 +268,17 @@ type ListTensorboardsRequest struct { // Lists the Tensorboards that match the filter expression. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // The maximum number of Tensorboards to return. The service may return - // fewer than this value. If unspecified, at most 100 Tensorboards will be - // returned. The maximum value is 100; values above 100 will be coerced to + // fewer than this value. If unspecified, at most 100 Tensorboards are + // returned. The maximum value is 100; values above 100 are coerced to // 100. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1.TensorboardService.ListTensorboards] call. - // Provide this to retrieve the subsequent page. + // [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1.TensorboardService.ListTensorboards] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1.TensorboardService.ListTensorboards] must - // match the call that provided the page token. + // [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1.TensorboardService.ListTensorboards] + // must match the call that provided the page token. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Field to use to sort the list. OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` @@ -186,7 +289,7 @@ type ListTensorboardsRequest struct { func (x *ListTensorboardsRequest) Reset() { *x = ListTensorboardsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[2] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -199,7 +302,7 @@ func (x *ListTensorboardsRequest) String() string { func (*ListTensorboardsRequest) ProtoMessage() {} func (x *ListTensorboardsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[2] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -212,7 +315,7 @@ func (x *ListTensorboardsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListTensorboardsRequest.ProtoReflect.Descriptor instead. func (*ListTensorboardsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{2} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{4} } func (x *ListTensorboardsRequest) GetParent() string { @@ -257,7 +360,8 @@ func (x *ListTensorboardsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1.TensorboardService.ListTensorboards]. +// Response message for +// [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1.TensorboardService.ListTensorboards]. type ListTensorboardsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -265,7 +369,8 @@ type ListTensorboardsResponse struct { // The Tensorboards mathching the request. Tensorboards []*Tensorboard `protobuf:"bytes,1,rep,name=tensorboards,proto3" json:"tensorboards,omitempty"` - // A token, which can be sent as [ListTensorboardsRequest.page_token][google.cloud.aiplatform.v1.ListTensorboardsRequest.page_token] + // A token, which can be sent as + // [ListTensorboardsRequest.page_token][google.cloud.aiplatform.v1.ListTensorboardsRequest.page_token] // to retrieve the next page. If this field is omitted, there are no // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -274,7 +379,7 @@ type ListTensorboardsResponse struct { func (x *ListTensorboardsResponse) Reset() { *x = ListTensorboardsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[3] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -287,7 +392,7 @@ func (x *ListTensorboardsResponse) String() string { func (*ListTensorboardsResponse) ProtoMessage() {} func (x *ListTensorboardsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[3] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -300,7 +405,7 @@ func (x *ListTensorboardsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListTensorboardsResponse.ProtoReflect.Descriptor instead. func (*ListTensorboardsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{3} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{5} } func (x *ListTensorboardsResponse) GetTensorboards() []*Tensorboard { @@ -317,7 +422,8 @@ func (x *ListTensorboardsResponse) GetNextPageToken() string { return "" } -// Request message for [TensorboardService.UpdateTensorboard][google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboard]. +// Request message for +// [TensorboardService.UpdateTensorboard][google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboard]. type UpdateTensorboardRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -326,8 +432,8 @@ type UpdateTensorboardRequest struct { // Required. Field mask is used to specify the fields to be overwritten in the // Tensorboard resource by the update. // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then all fields will be overwritten if new + // the full request. A field is overwritten if it's in the mask. If the + // user does not provide a mask then all fields are overwritten if new // values are specified. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The Tensorboard's `name` field is used to identify the @@ -339,7 +445,7 @@ type UpdateTensorboardRequest struct { func (x *UpdateTensorboardRequest) Reset() { *x = UpdateTensorboardRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[4] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -352,7 +458,7 @@ func (x *UpdateTensorboardRequest) String() string { func (*UpdateTensorboardRequest) ProtoMessage() {} func (x *UpdateTensorboardRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[4] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -365,7 +471,7 @@ func (x *UpdateTensorboardRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateTensorboardRequest.ProtoReflect.Descriptor instead. func (*UpdateTensorboardRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{4} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{6} } func (x *UpdateTensorboardRequest) GetUpdateMask() *fieldmaskpb.FieldMask { @@ -382,7 +488,8 @@ func (x *UpdateTensorboardRequest) GetTensorboard() *Tensorboard { return nil } -// Request message for [TensorboardService.DeleteTensorboard][google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboard]. +// Request message for +// [TensorboardService.DeleteTensorboard][google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboard]. type DeleteTensorboardRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -397,7 +504,7 @@ type DeleteTensorboardRequest struct { func (x *DeleteTensorboardRequest) Reset() { *x = DeleteTensorboardRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[5] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -410,7 +517,7 @@ func (x *DeleteTensorboardRequest) String() string { func (*DeleteTensorboardRequest) ProtoMessage() {} func (x *DeleteTensorboardRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[5] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -423,7 +530,7 @@ func (x *DeleteTensorboardRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteTensorboardRequest.ProtoReflect.Descriptor instead. func (*DeleteTensorboardRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{5} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{7} } func (x *DeleteTensorboardRequest) GetName() string { @@ -433,20 +540,21 @@ func (x *DeleteTensorboardRequest) GetName() string { return "" } -// Request message for [TensorboardService.CreateTensorboardExperiment][google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardExperiment]. +// Request message for +// [TensorboardService.CreateTensorboardExperiment][google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardExperiment]. type CreateTensorboardExperimentRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Tensorboard to create the TensorboardExperiment - // in. Format: + // Required. The resource name of the Tensorboard to create the + // TensorboardExperiment in. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The TensorboardExperiment to create. TensorboardExperiment *TensorboardExperiment `protobuf:"bytes,2,opt,name=tensorboard_experiment,json=tensorboardExperiment,proto3" json:"tensorboard_experiment,omitempty"` - // Required. The ID to use for the Tensorboard experiment, which will become the final - // component of the Tensorboard experiment's resource name. + // Required. The ID to use for the Tensorboard experiment, which becomes the + // final component of the Tensorboard experiment's resource name. // // This value should be 1-128 characters, and valid characters // are /[a-z][0-9]-/. @@ -456,7 +564,7 @@ type CreateTensorboardExperimentRequest struct { func (x *CreateTensorboardExperimentRequest) Reset() { *x = CreateTensorboardExperimentRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[6] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -469,7 +577,7 @@ func (x *CreateTensorboardExperimentRequest) String() string { func (*CreateTensorboardExperimentRequest) ProtoMessage() {} func (x *CreateTensorboardExperimentRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[6] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -482,7 +590,7 @@ func (x *CreateTensorboardExperimentRequest) ProtoReflect() protoreflect.Message // Deprecated: Use CreateTensorboardExperimentRequest.ProtoReflect.Descriptor instead. func (*CreateTensorboardExperimentRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{6} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{8} } func (x *CreateTensorboardExperimentRequest) GetParent() string { @@ -506,7 +614,8 @@ func (x *CreateTensorboardExperimentRequest) GetTensorboardExperimentId() string return "" } -// Request message for [TensorboardService.GetTensorboardExperiment][google.cloud.aiplatform.v1.TensorboardService.GetTensorboardExperiment]. +// Request message for +// [TensorboardService.GetTensorboardExperiment][google.cloud.aiplatform.v1.TensorboardService.GetTensorboardExperiment]. type GetTensorboardExperimentRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -521,7 +630,7 @@ type GetTensorboardExperimentRequest struct { func (x *GetTensorboardExperimentRequest) Reset() { *x = GetTensorboardExperimentRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[7] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -534,7 +643,7 @@ func (x *GetTensorboardExperimentRequest) String() string { func (*GetTensorboardExperimentRequest) ProtoMessage() {} func (x *GetTensorboardExperimentRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[7] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -547,7 +656,7 @@ func (x *GetTensorboardExperimentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTensorboardExperimentRequest.ProtoReflect.Descriptor instead. func (*GetTensorboardExperimentRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{7} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{9} } func (x *GetTensorboardExperimentRequest) GetName() string { @@ -557,30 +666,31 @@ func (x *GetTensorboardExperimentRequest) GetName() string { return "" } -// Request message for [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardExperiments]. +// Request message for +// [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardExperiments]. type ListTensorboardExperimentsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Tensorboard to list TensorboardExperiments. - // Format: + // Required. The resource name of the Tensorboard to list + // TensorboardExperiments. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Lists the TensorboardExperiments that match the filter expression. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // The maximum number of TensorboardExperiments to return. The service may // return fewer than this value. If unspecified, at most 50 - // TensorboardExperiments will be returned. The maximum value is 1000; values - // above 1000 will be coerced to 1000. + // TensorboardExperiments are returned. The maximum value is 1000; values + // above 1000 are coerced to 1000. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardExperiments] call. - // Provide this to retrieve the subsequent page. + // [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardExperiments] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardExperiments] must - // match the call that provided the page token. + // [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardExperiments] + // must match the call that provided the page token. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Field to use to sort the list. OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` @@ -591,7 +701,7 @@ type ListTensorboardExperimentsRequest struct { func (x *ListTensorboardExperimentsRequest) Reset() { *x = ListTensorboardExperimentsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[8] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -604,7 +714,7 @@ func (x *ListTensorboardExperimentsRequest) String() string { func (*ListTensorboardExperimentsRequest) ProtoMessage() {} func (x *ListTensorboardExperimentsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[8] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -617,7 +727,7 @@ func (x *ListTensorboardExperimentsRequest) ProtoReflect() protoreflect.Message // Deprecated: Use ListTensorboardExperimentsRequest.ProtoReflect.Descriptor instead. func (*ListTensorboardExperimentsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{8} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{10} } func (x *ListTensorboardExperimentsRequest) GetParent() string { @@ -662,7 +772,8 @@ func (x *ListTensorboardExperimentsRequest) GetReadMask() *fieldmaskpb.FieldMask return nil } -// Response message for [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardExperiments]. +// Response message for +// [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardExperiments]. type ListTensorboardExperimentsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -671,15 +782,16 @@ type ListTensorboardExperimentsResponse struct { // The TensorboardExperiments mathching the request. TensorboardExperiments []*TensorboardExperiment `protobuf:"bytes,1,rep,name=tensorboard_experiments,json=tensorboardExperiments,proto3" json:"tensorboard_experiments,omitempty"` // A token, which can be sent as - // [ListTensorboardExperimentsRequest.page_token][google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest.page_token] to retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // [ListTensorboardExperimentsRequest.page_token][google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } func (x *ListTensorboardExperimentsResponse) Reset() { *x = ListTensorboardExperimentsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[9] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -692,7 +804,7 @@ func (x *ListTensorboardExperimentsResponse) String() string { func (*ListTensorboardExperimentsResponse) ProtoMessage() {} func (x *ListTensorboardExperimentsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[9] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -705,7 +817,7 @@ func (x *ListTensorboardExperimentsResponse) ProtoReflect() protoreflect.Message // Deprecated: Use ListTensorboardExperimentsResponse.ProtoReflect.Descriptor instead. func (*ListTensorboardExperimentsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{9} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{11} } func (x *ListTensorboardExperimentsResponse) GetTensorboardExperiments() []*TensorboardExperiment { @@ -722,7 +834,8 @@ func (x *ListTensorboardExperimentsResponse) GetNextPageToken() string { return "" } -// Request message for [TensorboardService.UpdateTensorboardExperiment][google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardExperiment]. +// Request message for +// [TensorboardService.UpdateTensorboardExperiment][google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardExperiment]. type UpdateTensorboardExperimentRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -731,8 +844,8 @@ type UpdateTensorboardExperimentRequest struct { // Required. Field mask is used to specify the fields to be overwritten in the // TensorboardExperiment resource by the update. // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then all fields will be overwritten if new + // the full request. A field is overwritten if it's in the mask. If the + // user does not provide a mask then all fields are overwritten if new // values are specified. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The TensorboardExperiment's `name` field is used to identify the @@ -744,7 +857,7 @@ type UpdateTensorboardExperimentRequest struct { func (x *UpdateTensorboardExperimentRequest) Reset() { *x = UpdateTensorboardExperimentRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[10] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -757,7 +870,7 @@ func (x *UpdateTensorboardExperimentRequest) String() string { func (*UpdateTensorboardExperimentRequest) ProtoMessage() {} func (x *UpdateTensorboardExperimentRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[10] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -770,7 +883,7 @@ func (x *UpdateTensorboardExperimentRequest) ProtoReflect() protoreflect.Message // Deprecated: Use UpdateTensorboardExperimentRequest.ProtoReflect.Descriptor instead. func (*UpdateTensorboardExperimentRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{10} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{12} } func (x *UpdateTensorboardExperimentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { @@ -787,7 +900,8 @@ func (x *UpdateTensorboardExperimentRequest) GetTensorboardExperiment() *Tensorb return nil } -// Request message for [TensorboardService.DeleteTensorboardExperiment][google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardExperiment]. +// Request message for +// [TensorboardService.DeleteTensorboardExperiment][google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardExperiment]. type DeleteTensorboardExperimentRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -802,7 +916,7 @@ type DeleteTensorboardExperimentRequest struct { func (x *DeleteTensorboardExperimentRequest) Reset() { *x = DeleteTensorboardExperimentRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[11] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -815,7 +929,7 @@ func (x *DeleteTensorboardExperimentRequest) String() string { func (*DeleteTensorboardExperimentRequest) ProtoMessage() {} func (x *DeleteTensorboardExperimentRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[11] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -828,7 +942,7 @@ func (x *DeleteTensorboardExperimentRequest) ProtoReflect() protoreflect.Message // Deprecated: Use DeleteTensorboardExperimentRequest.ProtoReflect.Descriptor instead. func (*DeleteTensorboardExperimentRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{11} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{13} } func (x *DeleteTensorboardExperimentRequest) GetName() string { @@ -838,7 +952,8 @@ func (x *DeleteTensorboardExperimentRequest) GetName() string { return "" } -// Request message for [TensorboardService.BatchCreateTensorboardRuns][google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardRuns]. +// Request message for +// [TensorboardService.BatchCreateTensorboardRuns][google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardRuns]. type BatchCreateTensorboardRunsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -858,7 +973,7 @@ type BatchCreateTensorboardRunsRequest struct { func (x *BatchCreateTensorboardRunsRequest) Reset() { *x = BatchCreateTensorboardRunsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[12] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -871,7 +986,7 @@ func (x *BatchCreateTensorboardRunsRequest) String() string { func (*BatchCreateTensorboardRunsRequest) ProtoMessage() {} func (x *BatchCreateTensorboardRunsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[12] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -884,7 +999,7 @@ func (x *BatchCreateTensorboardRunsRequest) ProtoReflect() protoreflect.Message // Deprecated: Use BatchCreateTensorboardRunsRequest.ProtoReflect.Descriptor instead. func (*BatchCreateTensorboardRunsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{12} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{14} } func (x *BatchCreateTensorboardRunsRequest) GetParent() string { @@ -901,7 +1016,8 @@ func (x *BatchCreateTensorboardRunsRequest) GetRequests() []*CreateTensorboardRu return nil } -// Response message for [TensorboardService.BatchCreateTensorboardRuns][google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardRuns]. +// Response message for +// [TensorboardService.BatchCreateTensorboardRuns][google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardRuns]. type BatchCreateTensorboardRunsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -914,7 +1030,7 @@ type BatchCreateTensorboardRunsResponse struct { func (x *BatchCreateTensorboardRunsResponse) Reset() { *x = BatchCreateTensorboardRunsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[13] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -927,7 +1043,7 @@ func (x *BatchCreateTensorboardRunsResponse) String() string { func (*BatchCreateTensorboardRunsResponse) ProtoMessage() {} func (x *BatchCreateTensorboardRunsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[13] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -940,7 +1056,7 @@ func (x *BatchCreateTensorboardRunsResponse) ProtoReflect() protoreflect.Message // Deprecated: Use BatchCreateTensorboardRunsResponse.ProtoReflect.Descriptor instead. func (*BatchCreateTensorboardRunsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{13} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{15} } func (x *BatchCreateTensorboardRunsResponse) GetTensorboardRuns() []*TensorboardRun { @@ -950,19 +1066,20 @@ func (x *BatchCreateTensorboardRunsResponse) GetTensorboardRuns() []*Tensorboard return nil } -// Request message for [TensorboardService.CreateTensorboardRun][google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardRun]. +// Request message for +// [TensorboardService.CreateTensorboardRun][google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardRun]. type CreateTensorboardRunRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the TensorboardExperiment to create the TensorboardRun - // in. Format: + // Required. The resource name of the TensorboardExperiment to create the + // TensorboardRun in. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The TensorboardRun to create. TensorboardRun *TensorboardRun `protobuf:"bytes,2,opt,name=tensorboard_run,json=tensorboardRun,proto3" json:"tensorboard_run,omitempty"` - // Required. The ID to use for the Tensorboard run, which will become the final + // Required. The ID to use for the Tensorboard run, which becomes the final // component of the Tensorboard run's resource name. // // This value should be 1-128 characters, and valid characters @@ -973,7 +1090,7 @@ type CreateTensorboardRunRequest struct { func (x *CreateTensorboardRunRequest) Reset() { *x = CreateTensorboardRunRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[14] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -986,7 +1103,7 @@ func (x *CreateTensorboardRunRequest) String() string { func (*CreateTensorboardRunRequest) ProtoMessage() {} func (x *CreateTensorboardRunRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[14] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -999,7 +1116,7 @@ func (x *CreateTensorboardRunRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateTensorboardRunRequest.ProtoReflect.Descriptor instead. func (*CreateTensorboardRunRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{14} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{16} } func (x *CreateTensorboardRunRequest) GetParent() string { @@ -1023,7 +1140,8 @@ func (x *CreateTensorboardRunRequest) GetTensorboardRunId() string { return "" } -// Request message for [TensorboardService.GetTensorboardRun][google.cloud.aiplatform.v1.TensorboardService.GetTensorboardRun]. +// Request message for +// [TensorboardService.GetTensorboardRun][google.cloud.aiplatform.v1.TensorboardService.GetTensorboardRun]. type GetTensorboardRunRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1038,7 +1156,7 @@ type GetTensorboardRunRequest struct { func (x *GetTensorboardRunRequest) Reset() { *x = GetTensorboardRunRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[15] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1051,7 +1169,7 @@ func (x *GetTensorboardRunRequest) String() string { func (*GetTensorboardRunRequest) ProtoMessage() {} func (x *GetTensorboardRunRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[15] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1064,7 +1182,7 @@ func (x *GetTensorboardRunRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTensorboardRunRequest.ProtoReflect.Descriptor instead. func (*GetTensorboardRunRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{15} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{17} } func (x *GetTensorboardRunRequest) GetName() string { @@ -1074,7 +1192,8 @@ func (x *GetTensorboardRunRequest) GetName() string { return "" } -// Request message for [TensorboardService.ReadTensorboardBlobData][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardBlobData]. +// Request message for +// [TensorboardService.ReadTensorboardBlobData][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardBlobData]. type ReadTensorboardBlobDataRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1091,7 +1210,7 @@ type ReadTensorboardBlobDataRequest struct { func (x *ReadTensorboardBlobDataRequest) Reset() { *x = ReadTensorboardBlobDataRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[16] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1104,7 +1223,7 @@ func (x *ReadTensorboardBlobDataRequest) String() string { func (*ReadTensorboardBlobDataRequest) ProtoMessage() {} func (x *ReadTensorboardBlobDataRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[16] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1117,7 +1236,7 @@ func (x *ReadTensorboardBlobDataRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ReadTensorboardBlobDataRequest.ProtoReflect.Descriptor instead. func (*ReadTensorboardBlobDataRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{16} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{18} } func (x *ReadTensorboardBlobDataRequest) GetTimeSeries() string { @@ -1134,7 +1253,8 @@ func (x *ReadTensorboardBlobDataRequest) GetBlobIds() []string { return nil } -// Response message for [TensorboardService.ReadTensorboardBlobData][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardBlobData]. +// Response message for +// [TensorboardService.ReadTensorboardBlobData][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardBlobData]. type ReadTensorboardBlobDataResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1147,7 +1267,7 @@ type ReadTensorboardBlobDataResponse struct { func (x *ReadTensorboardBlobDataResponse) Reset() { *x = ReadTensorboardBlobDataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[17] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1160,7 +1280,7 @@ func (x *ReadTensorboardBlobDataResponse) String() string { func (*ReadTensorboardBlobDataResponse) ProtoMessage() {} func (x *ReadTensorboardBlobDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[17] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1173,7 +1293,7 @@ func (x *ReadTensorboardBlobDataResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ReadTensorboardBlobDataResponse.ProtoReflect.Descriptor instead. func (*ReadTensorboardBlobDataResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{17} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{19} } func (x *ReadTensorboardBlobDataResponse) GetBlobs() []*TensorboardBlob { @@ -1183,30 +1303,31 @@ func (x *ReadTensorboardBlobDataResponse) GetBlobs() []*TensorboardBlob { return nil } -// Request message for [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardRuns]. +// Request message for +// [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardRuns]. type ListTensorboardRunsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the TensorboardExperiment to list TensorboardRuns. - // Format: + // Required. The resource name of the TensorboardExperiment to list + // TensorboardRuns. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Lists the TensorboardRuns that match the filter expression. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // The maximum number of TensorboardRuns to return. The service may return - // fewer than this value. If unspecified, at most 50 TensorboardRuns will be - // returned. The maximum value is 1000; values above 1000 will be coerced to + // fewer than this value. If unspecified, at most 50 TensorboardRuns are + // returned. The maximum value is 1000; values above 1000 are coerced to // 1000. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardRuns] call. - // Provide this to retrieve the subsequent page. + // [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardRuns] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardRuns] must - // match the call that provided the page token. + // [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardRuns] + // must match the call that provided the page token. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Field to use to sort the list. OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` @@ -1217,7 +1338,7 @@ type ListTensorboardRunsRequest struct { func (x *ListTensorboardRunsRequest) Reset() { *x = ListTensorboardRunsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[18] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1230,7 +1351,7 @@ func (x *ListTensorboardRunsRequest) String() string { func (*ListTensorboardRunsRequest) ProtoMessage() {} func (x *ListTensorboardRunsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[18] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1243,7 +1364,7 @@ func (x *ListTensorboardRunsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListTensorboardRunsRequest.ProtoReflect.Descriptor instead. func (*ListTensorboardRunsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{18} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{20} } func (x *ListTensorboardRunsRequest) GetParent() string { @@ -1288,7 +1409,8 @@ func (x *ListTensorboardRunsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardRuns]. +// Response message for +// [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardRuns]. type ListTensorboardRunsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1296,16 +1418,17 @@ type ListTensorboardRunsResponse struct { // The TensorboardRuns mathching the request. TensorboardRuns []*TensorboardRun `protobuf:"bytes,1,rep,name=tensorboard_runs,json=tensorboardRuns,proto3" json:"tensorboard_runs,omitempty"` - // A token, which can be sent as [ListTensorboardRunsRequest.page_token][google.cloud.aiplatform.v1.ListTensorboardRunsRequest.page_token] to - // retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // A token, which can be sent as + // [ListTensorboardRunsRequest.page_token][google.cloud.aiplatform.v1.ListTensorboardRunsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } func (x *ListTensorboardRunsResponse) Reset() { *x = ListTensorboardRunsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[19] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1318,7 +1441,7 @@ func (x *ListTensorboardRunsResponse) String() string { func (*ListTensorboardRunsResponse) ProtoMessage() {} func (x *ListTensorboardRunsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[19] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1331,7 +1454,7 @@ func (x *ListTensorboardRunsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListTensorboardRunsResponse.ProtoReflect.Descriptor instead. func (*ListTensorboardRunsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{19} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{21} } func (x *ListTensorboardRunsResponse) GetTensorboardRuns() []*TensorboardRun { @@ -1348,7 +1471,8 @@ func (x *ListTensorboardRunsResponse) GetNextPageToken() string { return "" } -// Request message for [TensorboardService.UpdateTensorboardRun][google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardRun]. +// Request message for +// [TensorboardService.UpdateTensorboardRun][google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardRun]. type UpdateTensorboardRunRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1357,12 +1481,12 @@ type UpdateTensorboardRunRequest struct { // Required. Field mask is used to specify the fields to be overwritten in the // TensorboardRun resource by the update. // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then all fields will be overwritten if new + // the full request. A field is overwritten if it's in the mask. If the + // user does not provide a mask then all fields are overwritten if new // values are specified. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - // Required. The TensorboardRun's `name` field is used to identify the TensorboardRun to - // be updated. Format: + // Required. The TensorboardRun's `name` field is used to identify the + // TensorboardRun to be updated. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` TensorboardRun *TensorboardRun `protobuf:"bytes,2,opt,name=tensorboard_run,json=tensorboardRun,proto3" json:"tensorboard_run,omitempty"` } @@ -1370,7 +1494,7 @@ type UpdateTensorboardRunRequest struct { func (x *UpdateTensorboardRunRequest) Reset() { *x = UpdateTensorboardRunRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[20] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1383,7 +1507,7 @@ func (x *UpdateTensorboardRunRequest) String() string { func (*UpdateTensorboardRunRequest) ProtoMessage() {} func (x *UpdateTensorboardRunRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[20] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1396,7 +1520,7 @@ func (x *UpdateTensorboardRunRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateTensorboardRunRequest.ProtoReflect.Descriptor instead. func (*UpdateTensorboardRunRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{20} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{22} } func (x *UpdateTensorboardRunRequest) GetUpdateMask() *fieldmaskpb.FieldMask { @@ -1413,7 +1537,8 @@ func (x *UpdateTensorboardRunRequest) GetTensorboardRun() *TensorboardRun { return nil } -// Request message for [TensorboardService.DeleteTensorboardRun][google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardRun]. +// Request message for +// [TensorboardService.DeleteTensorboardRun][google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardRun]. type DeleteTensorboardRunRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1428,7 +1553,7 @@ type DeleteTensorboardRunRequest struct { func (x *DeleteTensorboardRunRequest) Reset() { *x = DeleteTensorboardRunRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[21] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1441,7 +1566,7 @@ func (x *DeleteTensorboardRunRequest) String() string { func (*DeleteTensorboardRunRequest) ProtoMessage() {} func (x *DeleteTensorboardRunRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[21] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1454,7 +1579,7 @@ func (x *DeleteTensorboardRunRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteTensorboardRunRequest.ProtoReflect.Descriptor instead. func (*DeleteTensorboardRunRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{21} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{23} } func (x *DeleteTensorboardRunRequest) GetName() string { @@ -1464,7 +1589,8 @@ func (x *DeleteTensorboardRunRequest) GetName() string { return "" } -// Request message for [TensorboardService.BatchCreateTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardTimeSeries]. +// Request message for +// [TensorboardService.BatchCreateTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardTimeSeries]. type BatchCreateTensorboardTimeSeriesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1478,15 +1604,15 @@ type BatchCreateTensorboardTimeSeriesRequest struct { // CreateTensorboardTimeSeriesRequest messages must be sub resources of this // TensorboardExperiment. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The request message specifying the TensorboardTimeSeries to create. - // A maximum of 1000 TensorboardTimeSeries can be created in a batch. + // Required. The request message specifying the TensorboardTimeSeries to + // create. A maximum of 1000 TensorboardTimeSeries can be created in a batch. Requests []*CreateTensorboardTimeSeriesRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"` } func (x *BatchCreateTensorboardTimeSeriesRequest) Reset() { *x = BatchCreateTensorboardTimeSeriesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[22] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1499,7 +1625,7 @@ func (x *BatchCreateTensorboardTimeSeriesRequest) String() string { func (*BatchCreateTensorboardTimeSeriesRequest) ProtoMessage() {} func (x *BatchCreateTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[22] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1512,7 +1638,7 @@ func (x *BatchCreateTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Me // Deprecated: Use BatchCreateTensorboardTimeSeriesRequest.ProtoReflect.Descriptor instead. func (*BatchCreateTensorboardTimeSeriesRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{22} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{24} } func (x *BatchCreateTensorboardTimeSeriesRequest) GetParent() string { @@ -1529,7 +1655,8 @@ func (x *BatchCreateTensorboardTimeSeriesRequest) GetRequests() []*CreateTensorb return nil } -// Response message for [TensorboardService.BatchCreateTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardTimeSeries]. +// Response message for +// [TensorboardService.BatchCreateTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardTimeSeries]. type BatchCreateTensorboardTimeSeriesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1542,7 +1669,7 @@ type BatchCreateTensorboardTimeSeriesResponse struct { func (x *BatchCreateTensorboardTimeSeriesResponse) Reset() { *x = BatchCreateTensorboardTimeSeriesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[23] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1555,7 +1682,7 @@ func (x *BatchCreateTensorboardTimeSeriesResponse) String() string { func (*BatchCreateTensorboardTimeSeriesResponse) ProtoMessage() {} func (x *BatchCreateTensorboardTimeSeriesResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[23] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1568,7 +1695,7 @@ func (x *BatchCreateTensorboardTimeSeriesResponse) ProtoReflect() protoreflect.M // Deprecated: Use BatchCreateTensorboardTimeSeriesResponse.ProtoReflect.Descriptor instead. func (*BatchCreateTensorboardTimeSeriesResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{23} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{25} } func (x *BatchCreateTensorboardTimeSeriesResponse) GetTensorboardTimeSeries() []*TensorboardTimeSeries { @@ -1578,7 +1705,8 @@ func (x *BatchCreateTensorboardTimeSeriesResponse) GetTensorboardTimeSeries() [] return nil } -// Request message for [TensorboardService.CreateTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardTimeSeries]. +// Request message for +// [TensorboardService.CreateTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardTimeSeries]. type CreateTensorboardTimeSeriesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1589,10 +1717,10 @@ type CreateTensorboardTimeSeriesRequest struct { // Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The user specified unique ID to use for the TensorboardTimeSeries, which - // will become the final component of the TensorboardTimeSeries's resource - // name. - // This value should match "[a-z0-9][a-z0-9-]{0, 127}" + // Optional. The user specified unique ID to use for the + // TensorboardTimeSeries, which becomes the final component of the + // TensorboardTimeSeries's resource name. This value should match + // "[a-z0-9][a-z0-9-]{0, 127}" TensorboardTimeSeriesId string `protobuf:"bytes,3,opt,name=tensorboard_time_series_id,json=tensorboardTimeSeriesId,proto3" json:"tensorboard_time_series_id,omitempty"` // Required. The TensorboardTimeSeries to create. TensorboardTimeSeries *TensorboardTimeSeries `protobuf:"bytes,2,opt,name=tensorboard_time_series,json=tensorboardTimeSeries,proto3" json:"tensorboard_time_series,omitempty"` @@ -1601,7 +1729,7 @@ type CreateTensorboardTimeSeriesRequest struct { func (x *CreateTensorboardTimeSeriesRequest) Reset() { *x = CreateTensorboardTimeSeriesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[24] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1614,7 +1742,7 @@ func (x *CreateTensorboardTimeSeriesRequest) String() string { func (*CreateTensorboardTimeSeriesRequest) ProtoMessage() {} func (x *CreateTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[24] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1627,7 +1755,7 @@ func (x *CreateTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message // Deprecated: Use CreateTensorboardTimeSeriesRequest.ProtoReflect.Descriptor instead. func (*CreateTensorboardTimeSeriesRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{24} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{26} } func (x *CreateTensorboardTimeSeriesRequest) GetParent() string { @@ -1651,7 +1779,8 @@ func (x *CreateTensorboardTimeSeriesRequest) GetTensorboardTimeSeries() *Tensorb return nil } -// Request message for [TensorboardService.GetTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.GetTensorboardTimeSeries]. +// Request message for +// [TensorboardService.GetTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.GetTensorboardTimeSeries]. type GetTensorboardTimeSeriesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1666,7 +1795,7 @@ type GetTensorboardTimeSeriesRequest struct { func (x *GetTensorboardTimeSeriesRequest) Reset() { *x = GetTensorboardTimeSeriesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[25] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1679,7 +1808,7 @@ func (x *GetTensorboardTimeSeriesRequest) String() string { func (*GetTensorboardTimeSeriesRequest) ProtoMessage() {} func (x *GetTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[25] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1692,7 +1821,7 @@ func (x *GetTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTensorboardTimeSeriesRequest.ProtoReflect.Descriptor instead. func (*GetTensorboardTimeSeriesRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{25} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{27} } func (x *GetTensorboardTimeSeriesRequest) GetName() string { @@ -1702,30 +1831,31 @@ func (x *GetTensorboardTimeSeriesRequest) GetName() string { return "" } -// Request message for [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardTimeSeries]. +// Request message for +// [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardTimeSeries]. type ListTensorboardTimeSeriesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the TensorboardRun to list TensorboardTimeSeries. - // Format: + // Required. The resource name of the TensorboardRun to list + // TensorboardTimeSeries. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Lists the TensorboardTimeSeries that match the filter expression. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // The maximum number of TensorboardTimeSeries to return. The service may // return fewer than this value. If unspecified, at most 50 - // TensorboardTimeSeries will be returned. The maximum value is 1000; values - // above 1000 will be coerced to 1000. + // TensorboardTimeSeries are returned. The maximum value is 1000; values + // above 1000 are coerced to 1000. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardTimeSeries] call. - // Provide this to retrieve the subsequent page. + // [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardTimeSeries] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardTimeSeries] must - // match the call that provided the page token. + // [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardTimeSeries] + // must match the call that provided the page token. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Field to use to sort the list. OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` @@ -1736,7 +1866,7 @@ type ListTensorboardTimeSeriesRequest struct { func (x *ListTensorboardTimeSeriesRequest) Reset() { *x = ListTensorboardTimeSeriesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[26] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1749,7 +1879,7 @@ func (x *ListTensorboardTimeSeriesRequest) String() string { func (*ListTensorboardTimeSeriesRequest) ProtoMessage() {} func (x *ListTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[26] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1762,7 +1892,7 @@ func (x *ListTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListTensorboardTimeSeriesRequest.ProtoReflect.Descriptor instead. func (*ListTensorboardTimeSeriesRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{26} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{28} } func (x *ListTensorboardTimeSeriesRequest) GetParent() string { @@ -1807,7 +1937,8 @@ func (x *ListTensorboardTimeSeriesRequest) GetReadMask() *fieldmaskpb.FieldMask return nil } -// Response message for [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardTimeSeries]. +// Response message for +// [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.ListTensorboardTimeSeries]. type ListTensorboardTimeSeriesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1816,15 +1947,16 @@ type ListTensorboardTimeSeriesResponse struct { // The TensorboardTimeSeries mathching the request. TensorboardTimeSeries []*TensorboardTimeSeries `protobuf:"bytes,1,rep,name=tensorboard_time_series,json=tensorboardTimeSeries,proto3" json:"tensorboard_time_series,omitempty"` // A token, which can be sent as - // [ListTensorboardTimeSeriesRequest.page_token][google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest.page_token] to retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // [ListTensorboardTimeSeriesRequest.page_token][google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } func (x *ListTensorboardTimeSeriesResponse) Reset() { *x = ListTensorboardTimeSeriesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[27] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1837,7 +1969,7 @@ func (x *ListTensorboardTimeSeriesResponse) String() string { func (*ListTensorboardTimeSeriesResponse) ProtoMessage() {} func (x *ListTensorboardTimeSeriesResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[27] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1850,7 +1982,7 @@ func (x *ListTensorboardTimeSeriesResponse) ProtoReflect() protoreflect.Message // Deprecated: Use ListTensorboardTimeSeriesResponse.ProtoReflect.Descriptor instead. func (*ListTensorboardTimeSeriesResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{27} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{29} } func (x *ListTensorboardTimeSeriesResponse) GetTensorboardTimeSeries() []*TensorboardTimeSeries { @@ -1867,7 +1999,8 @@ func (x *ListTensorboardTimeSeriesResponse) GetNextPageToken() string { return "" } -// Request message for [TensorboardService.UpdateTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardTimeSeries]. +// Request message for +// [TensorboardService.UpdateTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardTimeSeries]. type UpdateTensorboardTimeSeriesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1876,8 +2009,8 @@ type UpdateTensorboardTimeSeriesRequest struct { // Required. Field mask is used to specify the fields to be overwritten in the // TensorboardTimeSeries resource by the update. // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then all fields will be overwritten if new + // the full request. A field is overwritten if it's in the mask. If the + // user does not provide a mask then all fields are overwritten if new // values are specified. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The TensorboardTimeSeries' `name` field is used to identify the @@ -1890,7 +2023,7 @@ type UpdateTensorboardTimeSeriesRequest struct { func (x *UpdateTensorboardTimeSeriesRequest) Reset() { *x = UpdateTensorboardTimeSeriesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[28] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1903,7 +2036,7 @@ func (x *UpdateTensorboardTimeSeriesRequest) String() string { func (*UpdateTensorboardTimeSeriesRequest) ProtoMessage() {} func (x *UpdateTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[28] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1916,7 +2049,7 @@ func (x *UpdateTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message // Deprecated: Use UpdateTensorboardTimeSeriesRequest.ProtoReflect.Descriptor instead. func (*UpdateTensorboardTimeSeriesRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{28} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{30} } func (x *UpdateTensorboardTimeSeriesRequest) GetUpdateMask() *fieldmaskpb.FieldMask { @@ -1933,7 +2066,8 @@ func (x *UpdateTensorboardTimeSeriesRequest) GetTensorboardTimeSeries() *Tensorb return nil } -// Request message for [TensorboardService.DeleteTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardTimeSeries]. +// Request message for +// [TensorboardService.DeleteTensorboardTimeSeries][google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardTimeSeries]. type DeleteTensorboardTimeSeriesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1948,7 +2082,7 @@ type DeleteTensorboardTimeSeriesRequest struct { func (x *DeleteTensorboardTimeSeriesRequest) Reset() { *x = DeleteTensorboardTimeSeriesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[29] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1961,7 +2095,7 @@ func (x *DeleteTensorboardTimeSeriesRequest) String() string { func (*DeleteTensorboardTimeSeriesRequest) ProtoMessage() {} func (x *DeleteTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[29] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1974,7 +2108,7 @@ func (x *DeleteTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message // Deprecated: Use DeleteTensorboardTimeSeriesRequest.ProtoReflect.Descriptor instead. func (*DeleteTensorboardTimeSeriesRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{29} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{31} } func (x *DeleteTensorboardTimeSeriesRequest) GetName() string { @@ -1991,13 +2125,15 @@ type BatchReadTensorboardTimeSeriesDataRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Tensorboard containing TensorboardTimeSeries to - // read data from. Format: + // Required. The resource name of the Tensorboard containing + // TensorboardTimeSeries to read data from. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. - // The TensorboardTimeSeries referenced by [time_series][google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest.time_series] must be sub - // resources of this Tensorboard. + // The TensorboardTimeSeries referenced by + // [time_series][google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest.time_series] + // must be sub resources of this Tensorboard. Tensorboard string `protobuf:"bytes,1,opt,name=tensorboard,proto3" json:"tensorboard,omitempty"` - // Required. The resource names of the TensorboardTimeSeries to read data from. Format: + // Required. The resource names of the TensorboardTimeSeries to read data + // from. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` TimeSeries []string `protobuf:"bytes,2,rep,name=time_series,json=timeSeries,proto3" json:"time_series,omitempty"` } @@ -2005,7 +2141,7 @@ type BatchReadTensorboardTimeSeriesDataRequest struct { func (x *BatchReadTensorboardTimeSeriesDataRequest) Reset() { *x = BatchReadTensorboardTimeSeriesDataRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[30] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2018,7 +2154,7 @@ func (x *BatchReadTensorboardTimeSeriesDataRequest) String() string { func (*BatchReadTensorboardTimeSeriesDataRequest) ProtoMessage() {} func (x *BatchReadTensorboardTimeSeriesDataRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[30] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2031,7 +2167,7 @@ func (x *BatchReadTensorboardTimeSeriesDataRequest) ProtoReflect() protoreflect. // Deprecated: Use BatchReadTensorboardTimeSeriesDataRequest.ProtoReflect.Descriptor instead. func (*BatchReadTensorboardTimeSeriesDataRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{30} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{32} } func (x *BatchReadTensorboardTimeSeriesDataRequest) GetTensorboard() string { @@ -2062,7 +2198,7 @@ type BatchReadTensorboardTimeSeriesDataResponse struct { func (x *BatchReadTensorboardTimeSeriesDataResponse) Reset() { *x = BatchReadTensorboardTimeSeriesDataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[31] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2075,7 +2211,7 @@ func (x *BatchReadTensorboardTimeSeriesDataResponse) String() string { func (*BatchReadTensorboardTimeSeriesDataResponse) ProtoMessage() {} func (x *BatchReadTensorboardTimeSeriesDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[31] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2088,7 +2224,7 @@ func (x *BatchReadTensorboardTimeSeriesDataResponse) ProtoReflect() protoreflect // Deprecated: Use BatchReadTensorboardTimeSeriesDataResponse.ProtoReflect.Descriptor instead. func (*BatchReadTensorboardTimeSeriesDataResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{31} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{33} } func (x *BatchReadTensorboardTimeSeriesDataResponse) GetTimeSeriesData() []*TimeSeriesData { @@ -2098,7 +2234,8 @@ func (x *BatchReadTensorboardTimeSeriesDataResponse) GetTimeSeriesData() []*Time return nil } -// Request message for [TensorboardService.ReadTensorboardTimeSeriesData][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardTimeSeriesData]. +// Request message for +// [TensorboardService.ReadTensorboardTimeSeriesData][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardTimeSeriesData]. type ReadTensorboardTimeSeriesDataRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2120,7 +2257,7 @@ type ReadTensorboardTimeSeriesDataRequest struct { func (x *ReadTensorboardTimeSeriesDataRequest) Reset() { *x = ReadTensorboardTimeSeriesDataRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[32] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2133,7 +2270,7 @@ func (x *ReadTensorboardTimeSeriesDataRequest) String() string { func (*ReadTensorboardTimeSeriesDataRequest) ProtoMessage() {} func (x *ReadTensorboardTimeSeriesDataRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[32] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2146,7 +2283,7 @@ func (x *ReadTensorboardTimeSeriesDataRequest) ProtoReflect() protoreflect.Messa // Deprecated: Use ReadTensorboardTimeSeriesDataRequest.ProtoReflect.Descriptor instead. func (*ReadTensorboardTimeSeriesDataRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{32} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{34} } func (x *ReadTensorboardTimeSeriesDataRequest) GetTensorboardTimeSeries() string { @@ -2170,7 +2307,8 @@ func (x *ReadTensorboardTimeSeriesDataRequest) GetFilter() string { return "" } -// Response message for [TensorboardService.ReadTensorboardTimeSeriesData][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardTimeSeriesData]. +// Response message for +// [TensorboardService.ReadTensorboardTimeSeriesData][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardTimeSeriesData]. type ReadTensorboardTimeSeriesDataResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2183,7 +2321,7 @@ type ReadTensorboardTimeSeriesDataResponse struct { func (x *ReadTensorboardTimeSeriesDataResponse) Reset() { *x = ReadTensorboardTimeSeriesDataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[33] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2196,7 +2334,7 @@ func (x *ReadTensorboardTimeSeriesDataResponse) String() string { func (*ReadTensorboardTimeSeriesDataResponse) ProtoMessage() {} func (x *ReadTensorboardTimeSeriesDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[33] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2209,7 +2347,7 @@ func (x *ReadTensorboardTimeSeriesDataResponse) ProtoReflect() protoreflect.Mess // Deprecated: Use ReadTensorboardTimeSeriesDataResponse.ProtoReflect.Descriptor instead. func (*ReadTensorboardTimeSeriesDataResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{33} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{35} } func (x *ReadTensorboardTimeSeriesDataResponse) GetTimeSeriesData() *TimeSeriesData { @@ -2219,7 +2357,8 @@ func (x *ReadTensorboardTimeSeriesDataResponse) GetTimeSeriesData() *TimeSeriesD return nil } -// Request message for [TensorboardService.WriteTensorboardExperimentData][google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardExperimentData]. +// Request message for +// [TensorboardService.WriteTensorboardExperimentData][google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardExperimentData]. type WriteTensorboardExperimentDataRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2236,7 +2375,7 @@ type WriteTensorboardExperimentDataRequest struct { func (x *WriteTensorboardExperimentDataRequest) Reset() { *x = WriteTensorboardExperimentDataRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[34] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2249,7 +2388,7 @@ func (x *WriteTensorboardExperimentDataRequest) String() string { func (*WriteTensorboardExperimentDataRequest) ProtoMessage() {} func (x *WriteTensorboardExperimentDataRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[34] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2262,7 +2401,7 @@ func (x *WriteTensorboardExperimentDataRequest) ProtoReflect() protoreflect.Mess // Deprecated: Use WriteTensorboardExperimentDataRequest.ProtoReflect.Descriptor instead. func (*WriteTensorboardExperimentDataRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{34} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{36} } func (x *WriteTensorboardExperimentDataRequest) GetTensorboardExperiment() string { @@ -2279,7 +2418,8 @@ func (x *WriteTensorboardExperimentDataRequest) GetWriteRunDataRequests() []*Wri return nil } -// Response message for [TensorboardService.WriteTensorboardExperimentData][google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardExperimentData]. +// Response message for +// [TensorboardService.WriteTensorboardExperimentData][google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardExperimentData]. type WriteTensorboardExperimentDataResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2289,7 +2429,7 @@ type WriteTensorboardExperimentDataResponse struct { func (x *WriteTensorboardExperimentDataResponse) Reset() { *x = WriteTensorboardExperimentDataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[35] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2302,7 +2442,7 @@ func (x *WriteTensorboardExperimentDataResponse) String() string { func (*WriteTensorboardExperimentDataResponse) ProtoMessage() {} func (x *WriteTensorboardExperimentDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[35] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2315,10 +2455,11 @@ func (x *WriteTensorboardExperimentDataResponse) ProtoReflect() protoreflect.Mes // Deprecated: Use WriteTensorboardExperimentDataResponse.ProtoReflect.Descriptor instead. func (*WriteTensorboardExperimentDataResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{35} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{37} } -// Request message for [TensorboardService.WriteTensorboardRunData][google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardRunData]. +// Request message for +// [TensorboardService.WriteTensorboardRunData][google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardRunData]. type WriteTensorboardRunDataRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2339,7 +2480,7 @@ type WriteTensorboardRunDataRequest struct { func (x *WriteTensorboardRunDataRequest) Reset() { *x = WriteTensorboardRunDataRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[36] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2352,7 +2493,7 @@ func (x *WriteTensorboardRunDataRequest) String() string { func (*WriteTensorboardRunDataRequest) ProtoMessage() {} func (x *WriteTensorboardRunDataRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[36] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2365,7 +2506,7 @@ func (x *WriteTensorboardRunDataRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WriteTensorboardRunDataRequest.ProtoReflect.Descriptor instead. func (*WriteTensorboardRunDataRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{36} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{38} } func (x *WriteTensorboardRunDataRequest) GetTensorboardRun() string { @@ -2382,7 +2523,8 @@ func (x *WriteTensorboardRunDataRequest) GetTimeSeriesData() []*TimeSeriesData { return nil } -// Response message for [TensorboardService.WriteTensorboardRunData][google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardRunData]. +// Response message for +// [TensorboardService.WriteTensorboardRunData][google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardRunData]. type WriteTensorboardRunDataResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2392,7 +2534,7 @@ type WriteTensorboardRunDataResponse struct { func (x *WriteTensorboardRunDataResponse) Reset() { *x = WriteTensorboardRunDataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[37] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2405,7 +2547,7 @@ func (x *WriteTensorboardRunDataResponse) String() string { func (*WriteTensorboardRunDataResponse) ProtoMessage() {} func (x *WriteTensorboardRunDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[37] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2418,24 +2560,25 @@ func (x *WriteTensorboardRunDataResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WriteTensorboardRunDataResponse.ProtoReflect.Descriptor instead. func (*WriteTensorboardRunDataResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{37} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{39} } -// Request message for [TensorboardService.ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesData]. +// Request message for +// [TensorboardService.ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesData]. type ExportTensorboardTimeSeriesDataRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the TensorboardTimeSeries to export data from. - // Format: + // Required. The resource name of the TensorboardTimeSeries to export data + // from. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` TensorboardTimeSeries string `protobuf:"bytes,1,opt,name=tensorboard_time_series,json=tensorboardTimeSeries,proto3" json:"tensorboard_time_series,omitempty"` // Exports the TensorboardTimeSeries' data that match the filter expression. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // The maximum number of data points to return per page. - // The default page_size will be 1000. Values must be between 1 and 10000. - // Values above 10000 will be coerced to 10000. + // The default page_size is 1000. Values must be between 1 and 10000. + // Values above 10000 are coerced to 10000. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous // [TensorboardService.ExportTensorboardTimeSeries][] call. @@ -2446,7 +2589,7 @@ type ExportTensorboardTimeSeriesDataRequest struct { // match the call that provided the page token. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Field to use to sort the TensorboardTimeSeries' data. - // By default, TensorboardTimeSeries' data will be returned in a pseudo random + // By default, TensorboardTimeSeries' data is returned in a pseudo random // order. OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` } @@ -2454,7 +2597,7 @@ type ExportTensorboardTimeSeriesDataRequest struct { func (x *ExportTensorboardTimeSeriesDataRequest) Reset() { *x = ExportTensorboardTimeSeriesDataRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[38] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2467,7 +2610,7 @@ func (x *ExportTensorboardTimeSeriesDataRequest) String() string { func (*ExportTensorboardTimeSeriesDataRequest) ProtoMessage() {} func (x *ExportTensorboardTimeSeriesDataRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[38] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2480,7 +2623,7 @@ func (x *ExportTensorboardTimeSeriesDataRequest) ProtoReflect() protoreflect.Mes // Deprecated: Use ExportTensorboardTimeSeriesDataRequest.ProtoReflect.Descriptor instead. func (*ExportTensorboardTimeSeriesDataRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{38} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{40} } func (x *ExportTensorboardTimeSeriesDataRequest) GetTensorboardTimeSeries() string { @@ -2518,7 +2661,8 @@ func (x *ExportTensorboardTimeSeriesDataRequest) GetOrderBy() string { return "" } -// Response message for [TensorboardService.ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesData]. +// Response message for +// [TensorboardService.ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesData]. type ExportTensorboardTimeSeriesDataResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2535,7 +2679,7 @@ type ExportTensorboardTimeSeriesDataResponse struct { func (x *ExportTensorboardTimeSeriesDataResponse) Reset() { *x = ExportTensorboardTimeSeriesDataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[39] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2548,7 +2692,7 @@ func (x *ExportTensorboardTimeSeriesDataResponse) String() string { func (*ExportTensorboardTimeSeriesDataResponse) ProtoMessage() {} func (x *ExportTensorboardTimeSeriesDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[39] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2561,7 +2705,7 @@ func (x *ExportTensorboardTimeSeriesDataResponse) ProtoReflect() protoreflect.Me // Deprecated: Use ExportTensorboardTimeSeriesDataResponse.ProtoReflect.Descriptor instead. func (*ExportTensorboardTimeSeriesDataResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{39} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{41} } func (x *ExportTensorboardTimeSeriesDataResponse) GetTimeSeriesDataPoints() []*TimeSeriesDataPoint { @@ -2591,7 +2735,7 @@ type CreateTensorboardOperationMetadata struct { func (x *CreateTensorboardOperationMetadata) Reset() { *x = CreateTensorboardOperationMetadata{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[40] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2604,7 +2748,7 @@ func (x *CreateTensorboardOperationMetadata) String() string { func (*CreateTensorboardOperationMetadata) ProtoMessage() {} func (x *CreateTensorboardOperationMetadata) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[40] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2617,7 +2761,7 @@ func (x *CreateTensorboardOperationMetadata) ProtoReflect() protoreflect.Message // Deprecated: Use CreateTensorboardOperationMetadata.ProtoReflect.Descriptor instead. func (*CreateTensorboardOperationMetadata) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{40} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{42} } func (x *CreateTensorboardOperationMetadata) GetGenericMetadata() *GenericOperationMetadata { @@ -2640,7 +2784,7 @@ type UpdateTensorboardOperationMetadata struct { func (x *UpdateTensorboardOperationMetadata) Reset() { *x = UpdateTensorboardOperationMetadata{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[41] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2653,7 +2797,7 @@ func (x *UpdateTensorboardOperationMetadata) String() string { func (*UpdateTensorboardOperationMetadata) ProtoMessage() {} func (x *UpdateTensorboardOperationMetadata) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[41] + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2666,7 +2810,7 @@ func (x *UpdateTensorboardOperationMetadata) ProtoReflect() protoreflect.Message // Deprecated: Use UpdateTensorboardOperationMetadata.ProtoReflect.Descriptor instead. func (*UpdateTensorboardOperationMetadata) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{41} + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{43} } func (x *UpdateTensorboardOperationMetadata) GetGenericMetadata() *GenericOperationMetadata { @@ -2676,6 +2820,113 @@ func (x *UpdateTensorboardOperationMetadata) GetGenericMetadata() *GenericOperat return nil } +// Per user usage data. +type ReadTensorboardUsageResponse_PerUserUsageData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // User's username + Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` + // Number of times the user has read data within the Tensorboard. + ViewCount int64 `protobuf:"varint,2,opt,name=view_count,json=viewCount,proto3" json:"view_count,omitempty"` +} + +func (x *ReadTensorboardUsageResponse_PerUserUsageData) Reset() { + *x = ReadTensorboardUsageResponse_PerUserUsageData{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReadTensorboardUsageResponse_PerUserUsageData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReadTensorboardUsageResponse_PerUserUsageData) ProtoMessage() {} + +func (x *ReadTensorboardUsageResponse_PerUserUsageData) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[44] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ReadTensorboardUsageResponse_PerUserUsageData.ProtoReflect.Descriptor instead. +func (*ReadTensorboardUsageResponse_PerUserUsageData) Descriptor() ([]byte, []int) { + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{3, 0} +} + +func (x *ReadTensorboardUsageResponse_PerUserUsageData) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *ReadTensorboardUsageResponse_PerUserUsageData) GetViewCount() int64 { + if x != nil { + return x.ViewCount + } + return 0 +} + +// Per month usage data +type ReadTensorboardUsageResponse_PerMonthUsageData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Usage data for each user in the given month. + UserUsageData []*ReadTensorboardUsageResponse_PerUserUsageData `protobuf:"bytes,1,rep,name=user_usage_data,json=userUsageData,proto3" json:"user_usage_data,omitempty"` +} + +func (x *ReadTensorboardUsageResponse_PerMonthUsageData) Reset() { + *x = ReadTensorboardUsageResponse_PerMonthUsageData{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReadTensorboardUsageResponse_PerMonthUsageData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReadTensorboardUsageResponse_PerMonthUsageData) ProtoMessage() {} + +func (x *ReadTensorboardUsageResponse_PerMonthUsageData) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[45] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ReadTensorboardUsageResponse_PerMonthUsageData.ProtoReflect.Descriptor instead. +func (*ReadTensorboardUsageResponse_PerMonthUsageData) Descriptor() ([]byte, []int) { + return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{3, 1} +} + +func (x *ReadTensorboardUsageResponse_PerMonthUsageData) GetUserUsageData() []*ReadTensorboardUsageResponse_PerUserUsageData { + if x != nil { + return x.UserUsageData + } + return nil +} + var File_google_cloud_aiplatform_v1_tensorboard_service_proto protoreflect.FileDescriptor var file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDesc = []byte{ @@ -2731,296 +2982,283 @@ var file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDesc = []byte{ 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x88, - 0x02, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x06, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, - 0x41, 0x27, 0x12, 0x25, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, - 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, - 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, - 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, - 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, - 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x8f, 0x01, 0x0a, 0x18, 0x4c, 0x69, - 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x0c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, - 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, - 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xac, 0x01, 0x0a, 0x18, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x4e, 0x0a, 0x0b, 0x74, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x74, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x22, 0x5d, 0x0a, 0x18, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xa0, 0x02, 0x0a, 0x22, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, - 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x4f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, - 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x12, 0x68, 0x0a, 0x16, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, - 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3f, 0x0a, 0x19, 0x74, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, - 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, - 0xe0, 0x41, 0x02, 0x52, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x6e, 0x0a, 0x1f, - 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, - 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x4b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, - 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x9c, 0x02, 0x0a, - 0x21, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x12, 0x2f, 0x61, 0x69, 0x70, 0x6c, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x6e, + 0x0a, 0x1b, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, + 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, - 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, - 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, - 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, - 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, - 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, - 0x42, 0x79, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, - 0x6b, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xb8, 0x01, 0x0a, 0x22, - 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, - 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, - 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x16, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x26, - 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, - 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xd5, 0x01, 0x0a, 0x22, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, - 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, - 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, - 0x6d, 0x0a, 0x16, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, - 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, + 0x64, 0x52, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x22, 0x86, + 0x04, 0x0a, 0x1c, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x7c, 0x0a, 0x12, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x5f, 0x75, 0x73, 0x61, 0x67, 0x65, + 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4e, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x55, 0x73, 0x61, + 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10, 0x6d, 0x6f, 0x6e, + 0x74, 0x68, 0x6c, 0x79, 0x55, 0x73, 0x61, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x4d, 0x0a, + 0x10, 0x50, 0x65, 0x72, 0x55, 0x73, 0x65, 0x72, 0x55, 0x73, 0x61, 0x67, 0x65, 0x44, 0x61, 0x74, + 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x09, 0x76, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0x86, 0x01, 0x0a, + 0x11, 0x50, 0x65, 0x72, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x55, 0x73, 0x61, 0x67, 0x65, 0x44, 0x61, + 0x74, 0x61, 0x12, 0x71, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x75, 0x73, 0x61, 0x67, 0x65, + 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x49, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x65, 0x72, 0x55, 0x73, 0x65, 0x72, 0x55, 0x73, 0x61, + 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x55, 0x73, 0x61, 0x67, + 0x65, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x8f, 0x01, 0x0a, 0x15, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, + 0x79, 0x55, 0x73, 0x61, 0x67, 0x65, 0x44, 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, 0x60, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x4a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x55, 0x73, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x65, 0x72, 0x4d, 0x6f, + 0x6e, 0x74, 0x68, 0x55, 0x73, 0x61, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x88, 0x02, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x12, 0x25, 0x61, 0x69, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, + 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, + 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, + 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, + 0x73, 0x6b, 0x22, 0x8f, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x4b, 0x0a, 0x0c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x0c, + 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x12, 0x26, 0x0a, 0x0f, + 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xac, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, + 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, + 0x61, 0x73, 0x6b, 0x12, 0x4e, 0x0a, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x22, 0x5d, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x41, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, + 0x41, 0x02, 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x22, 0xa0, 0x02, 0x0a, 0x22, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, - 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x71, - 0x0a, 0x22, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x22, 0xce, 0x01, 0x0a, 0x21, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, - 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x58, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, + 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x06, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, + 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, + 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x68, 0x0a, 0x16, 0x74, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, + 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x73, 0x22, 0x7b, 0x0a, 0x22, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x10, 0x74, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x0f, - 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x22, - 0xf4, 0x01, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x48, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, - 0x6e, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x58, 0x0a, 0x0f, 0x74, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x42, 0x03, - 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x52, 0x75, 0x6e, 0x12, 0x31, 0x0a, 0x12, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x22, 0x60, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x44, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, - 0x75, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x95, 0x01, 0x0a, 0x1e, 0x52, 0x65, 0x61, - 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, - 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x58, 0x0a, 0x0b, 0x74, - 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x62, 0x5f, 0x69, 0x64, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x62, 0x49, 0x64, 0x73, - 0x22, 0x64, 0x0a, 0x1f, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x62, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x52, - 0x05, 0x62, 0x6c, 0x6f, 0x62, 0x73, 0x22, 0x8e, 0x02, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x12, 0x28, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, - 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, - 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, - 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x37, - 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x72, - 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x9c, 0x01, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x10, 0x74, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x0f, 0x74, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x26, - 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, - 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xb9, 0x01, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x15, 0x74, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, + 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3f, 0x0a, 0x19, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x17, 0x74, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, + 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x6e, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x9c, 0x02, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x06, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, + 0xfa, 0x41, 0x31, 0x12, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, + 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, + 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x37, 0x0a, 0x09, 0x72, + 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, + 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xb8, 0x01, 0x0a, 0x22, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x17, 0x74, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, + 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, + 0x16, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, + 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, + 0xd5, 0x01, 0x0a, 0x22, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x58, 0x0a, 0x0f, 0x74, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x42, 0x03, 0xe0, - 0x41, 0x02, 0x52, 0x0e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, - 0x75, 0x6e, 0x22, 0x63, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x44, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, - 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xdb, 0x01, 0x0a, 0x27, 0x42, 0x61, 0x74, 0x63, - 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x12, 0x5f, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x95, 0x01, 0x0a, 0x28, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x69, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, - 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xa7, 0x02, - 0x0a, 0x22, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x06, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x40, 0x0a, 0x1a, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, - 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x17, - 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x49, 0x64, 0x12, 0x6e, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x6d, 0x0a, 0x16, 0x74, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, + 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x02, - 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x6e, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x54, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, - 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, + 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, + 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, + 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x71, 0x0a, 0x22, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, + 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, + 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, + 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xce, 0x01, 0x0a, 0x21, 0x42, + 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x4f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x12, 0x58, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x03, 0xe0, 0x41, + 0x02, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x7b, 0x0a, 0x22, 0x42, + 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x55, 0x0a, 0x10, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x0f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x22, 0xf4, 0x01, 0x0a, 0x1b, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, + 0x0a, 0x28, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, - 0x73, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x9b, 0x02, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x12, 0x58, 0x0a, 0x0f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x74, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x31, 0x0a, 0x12, + 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10, 0x74, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x22, + 0x60, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x44, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, + 0x2a, 0x0a, 0x28, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x22, 0x95, 0x01, 0x0a, 0x1e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x58, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, + 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, + 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, + 0x65, 0x73, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x19, + 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x62, 0x49, 0x64, 0x73, 0x22, 0x64, 0x0a, 0x1f, 0x52, 0x65, 0x61, + 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, + 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x05, + 0x62, 0x6c, 0x6f, 0x62, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x62, 0x73, 0x22, + 0x8e, 0x02, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, + 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, + 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x12, 0x28, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, + 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, + 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, + 0x22, 0x9c, 0x01, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x55, 0x0a, 0x10, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, + 0x72, 0x75, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x0f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, + 0xb9, 0x01, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, + 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, + 0x6b, 0x12, 0x58, 0x0a, 0x0f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x74, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x22, 0x63, 0x0a, 0x1b, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x44, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, + 0x0a, 0x28, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x22, 0xdb, 0x01, 0x0a, 0x27, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, - 0x02, 0xfa, 0x41, 0x31, 0x12, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, - 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, - 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, - 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x37, 0x0a, 0x09, - 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x72, 0x65, 0x61, - 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xb6, 0x01, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, + 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x5f, 0x0a, + 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, + 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x95, + 0x01, 0x0a, 0x28, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, @@ -3029,645 +3267,712 @@ var file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDesc = []byte{ 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, - 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xd6, - 0x01, 0x0a, 0x22, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, - 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x6e, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x02, - 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x71, 0x0a, 0x22, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xa7, 0x02, 0x0a, 0x22, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, - 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xd6, 0x01, 0x0a, 0x29, 0x42, - 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, - 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x0b, 0x74, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, - 0x41, 0x02, 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, + 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, + 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x0b, 0x74, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x58, 0x0a, 0x0b, 0x74, 0x69, 0x6d, - 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x37, - 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x69, 0x65, 0x73, 0x22, 0x82, 0x01, 0x0a, 0x2a, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, - 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, - 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x22, 0xd7, 0x01, 0x0a, 0x24, 0x52, 0x65, 0x61, + 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, + 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x40, + 0x0a, 0x1a, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x49, 0x64, + 0x12, 0x6e, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, + 0x72, 0x69, 0x65, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x22, 0x6e, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x22, 0x9b, 0x02, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x12, 0x2f, 0x61, + 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x06, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, + 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, + 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, + 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, + 0x73, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xb6, + 0x01, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, + 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, + 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xd6, 0x01, 0x0a, 0x22, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, + 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, + 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, + 0x12, 0x6e, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, + 0x72, 0x69, 0x65, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x22, 0x71, 0x0a, 0x22, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x22, 0xd6, 0x01, 0x0a, 0x29, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x6f, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x15, 0x74, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, - 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6d, 0x61, 0x78, - 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x22, 0x7d, 0x0a, 0x25, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x74, 0x12, 0x4f, 0x0a, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x0a, 0x25, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x12, 0x58, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, + 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x82, 0x01, 0x0a, + 0x2a, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, - 0x61, 0x22, 0x8f, 0x02, 0x0a, 0x25, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x6e, 0x0a, 0x16, 0x74, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, - 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, + 0x61, 0x22, 0xd7, 0x01, 0x0a, 0x24, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, + 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x6f, 0x0a, 0x17, 0x74, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, + 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, + 0x72, 0x69, 0x65, 0x73, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6d, + 0x61, 0x78, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x69, + 0x6e, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x7d, 0x0a, 0x25, 0x52, + 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, + 0x69, 0x65, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0e, 0x74, 0x69, 0x6d, 0x65, + 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x22, 0x8f, 0x02, 0x0a, 0x25, 0x57, + 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x6e, 0x0a, 0x16, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, - 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x76, 0x0a, 0x17, 0x77, - 0x72, 0x69, 0x74, 0x65, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, - 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x14, 0x77, - 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x73, 0x22, 0x28, 0x0a, 0x26, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, - 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd6, 0x01, - 0x0a, 0x1e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x59, 0x0a, 0x0f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, - 0x72, 0x75, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, - 0x2a, 0x0a, 0x28, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x0e, 0x74, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x59, 0x0a, 0x10, 0x74, - 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x76, 0x0a, 0x17, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x72, 0x75, + 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, - 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, - 0x61, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x22, 0x21, 0x0a, 0x1f, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, - 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, 0x02, 0x0a, 0x26, 0x45, 0x78, - 0x70, 0x6f, 0x72, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x6f, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x15, - 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, - 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, - 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, - 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, - 0x65, 0x72, 0x42, 0x79, 0x22, 0xb9, 0x01, 0x0a, 0x27, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x66, 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x5f, - 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x69, - 0x6e, 0x74, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, - 0x74, 0x61, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, - 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x22, 0x85, 0x01, 0x0a, 0x22, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x5f, 0x0a, 0x10, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x85, 0x01, 0x0a, 0x22, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x5f, 0x0a, 0x10, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, - 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x32, 0xc5, 0x3b, 0x0a, 0x12, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xf9, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x34, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, - 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x8e, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x22, 0x30, 0x2f, 0x76, 0x31, - 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, - 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x3a, 0x0b, 0x74, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0xda, 0x41, 0x12, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x2c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0xca, - 0x41, 0x31, 0x0a, 0x0b, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, - 0x22, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x12, 0xad, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x14, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6e, + 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x28, 0x0a, 0x26, + 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd6, 0x01, 0x0a, 0x1e, 0x57, 0x72, 0x69, 0x74, 0x65, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x44, 0x61, + 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x59, 0x0a, 0x0f, 0x74, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x61, 0x69, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x52, 0x75, 0x6e, 0x52, 0x0e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x52, 0x75, 0x6e, 0x12, 0x59, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, + 0x69, 0x65, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, + 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x22, + 0x21, 0x0a, 0x1f, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x88, 0x02, 0x0a, 0x26, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, + 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x6f, 0x0a, + 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, + 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, + 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x16, + 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, + 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, + 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0xb9, 0x01, + 0x0a, 0x27, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, + 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x17, 0x74, 0x69, 0x6d, + 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, + 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x14, 0x74, 0x69, 0x6d, + 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x69, 0x6e, 0x74, + 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, + 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x85, 0x01, 0x0a, 0x22, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x12, 0x5f, 0x0a, 0x10, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x4f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x22, 0x85, 0x01, 0x0a, 0x22, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x5f, 0x0a, 0x10, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, + 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x32, 0xaa, 0x3d, 0x0a, 0x12, 0x54, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0xf9, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x22, 0x3f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x31, 0x2f, - 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, - 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x8a, 0x02, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, - 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9f, - 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4b, 0x32, 0x3c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, + 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8e, 0x01, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x3f, 0x22, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x3a, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0xda, 0x41, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x74, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0xca, 0x41, 0x31, 0x0a, 0x0b, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x22, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xad, 0x01, 0x0a, + 0x0e, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, + 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, + 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x22, 0x3f, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0xda, 0x41, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0xca, 0x41, 0x31, 0x0a, - 0x0b, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x22, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x12, 0xc0, 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x73, 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xe2, 0x01, 0x0a, + 0x14, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x55, 0x73, 0x61, 0x67, 0x65, 0x12, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, - 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x67, 0x6f, 0x6f, + 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x55, 0x73, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x57, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, + 0x12, 0x41, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x61, 0x64, 0x55, 0x73, + 0x61, 0x67, 0x65, 0xda, 0x41, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x12, 0x8a, 0x02, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, + 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9f, 0x01, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x4b, 0x32, 0x3c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, + 0x2f, 0x2a, 0x7d, 0x3a, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0xda, 0x41, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2c, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0xca, 0x41, 0x31, 0x0a, 0x0b, 0x54, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x22, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xc0, + 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x73, 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, + 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x12, 0xdc, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, + 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x72, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x32, 0x2a, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x30, + 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x12, 0xab, 0x02, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, + 0x12, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, + 0x65, 0x6e, 0x74, 0x22, 0x98, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x58, 0x22, 0x3e, 0x2f, 0x76, + 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, + 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x7d, + 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x16, 0x74, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, + 0x6d, 0x65, 0x6e, 0x74, 0xda, 0x41, 0x37, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x74, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, + 0x6d, 0x65, 0x6e, 0x74, 0x2c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x12, 0xd9, + 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3b, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x4d, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x40, 0x12, 0x3e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xad, 0x02, 0x0a, 0x1b, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, - 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x12, 0xdc, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, - 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x72, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x2a, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, - 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, - 0x41, 0x30, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x12, 0xab, 0x02, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, - 0x6e, 0x74, 0x12, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, - 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x98, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x58, 0x22, 0x3e, - 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, - 0x2a, 0x7d, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x16, - 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0xda, 0x41, 0x37, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, - 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x2c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, - 0x12, 0xd9, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3b, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x65, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x4d, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x40, 0x12, 0x3e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, - 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, - 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xad, 0x02, 0x0a, - 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3e, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, - 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x22, - 0x9a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6f, 0x32, 0x55, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, + 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x9a, 0x01, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6f, 0x32, 0x55, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, + 0x65, 0x6e, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, + 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x16, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, - 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, - 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, - 0x16, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, - 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0xda, 0x41, 0x22, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x12, 0xec, 0x01, 0x0a, - 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3d, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, + 0x69, 0x6d, 0x65, 0x6e, 0x74, 0xda, 0x41, 0x22, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x2c, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x12, 0xec, 0x01, 0x0a, 0x1a, 0x4c, + 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, + 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x40, + 0x12, 0x3e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xff, 0x01, 0x0a, 0x1b, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, - 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x40, 0x12, 0x3e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, + 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x80, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x40, 0x2a, 0x3e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, + 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, + 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x30, 0x0a, 0x15, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x88, 0x02, 0x0a, 0x14, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x52, 0x75, 0x6e, 0x12, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x22, 0x8a, 0x01, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x58, 0x22, 0x45, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, - 0x74, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xff, 0x01, 0x0a, 0x1b, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3e, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, - 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, - 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x80, 0x01, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x40, 0x2a, 0x3e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x30, 0x0a, 0x15, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x88, 0x02, - 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x22, 0x8a, 0x01, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x58, 0x22, 0x45, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x3a, 0x0f, 0x74, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0xda, 0x41, 0x29, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x2c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x12, 0x8b, 0x02, 0x0a, 0x1a, 0x42, 0x61, 0x74, - 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x56, 0x22, 0x51, - 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, - 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, - 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x0f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0xcb, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x54, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x34, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x22, 0x54, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x12, 0x45, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, - 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x8a, 0x02, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x37, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, - 0x75, 0x6e, 0x22, 0x8c, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x68, 0x32, 0x55, 0x2f, 0x76, 0x31, - 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, - 0x6e, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, - 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, - 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, - 0x2a, 0x7d, 0x3a, 0x0f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, - 0x72, 0x75, 0x6e, 0xda, 0x41, 0x1b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, - 0x6b, 0x12, 0xde, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, - 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x56, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x47, 0x12, 0x45, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, + 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x3a, 0x0f, 0x74, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0xda, 0x41, 0x29, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x2c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, + 0x72, 0x75, 0x6e, 0x2c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, + 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x12, 0x8b, 0x02, 0x0a, 0x1a, 0x42, 0x61, 0x74, 0x63, 0x68, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, + 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x56, 0x22, 0x51, 0x2f, 0x76, + 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, + 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, + 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, + 0x75, 0x6e, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x3a, + 0x01, 0x2a, 0xda, 0x41, 0x0f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x73, 0x12, 0xcb, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x34, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x22, 0x54, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x47, 0x12, 0x45, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x12, 0xf8, 0x01, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, + 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x8a, 0x02, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, - 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x87, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x2a, 0x45, 0x2f, 0x76, - 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, - 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, - 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, - 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x30, 0x0a, 0x15, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xaa, 0x02, - 0x0a, 0x20, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, + 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, + 0x22, 0x8c, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x68, 0x32, 0x55, 0x2f, 0x76, 0x31, 0x2f, 0x7b, + 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x2e, + 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, + 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, + 0x3a, 0x0f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, + 0x6e, 0xda, 0x41, 0x1b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, + 0x72, 0x75, 0x6e, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x12, + 0xde, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, + 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x56, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, + 0x12, 0x45, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, + 0x2a, 0x7d, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, + 0x12, 0xf8, 0x01, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, + 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0x87, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x2a, 0x45, 0x2f, 0x76, 0x31, 0x2f, + 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, + 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, + 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, + 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x30, 0x0a, 0x15, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xaa, 0x02, 0x0a, 0x20, + 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x12, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, + 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x44, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, + 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7b, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x63, 0x22, 0x5e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, + 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, + 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x0f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0xa7, 0x02, 0x0a, 0x1b, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x94, 0x01, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x6d, 0x22, 0x52, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, + 0x73, 0xda, 0x41, 0x1e, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x74, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, + 0x65, 0x73, 0x12, 0xed, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, + 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, + 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, + 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, + 0x61, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x54, 0x12, 0x52, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, + 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0xc5, 0x02, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x12, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x65, 0x73, 0x12, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, - 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x44, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7b, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x63, 0x22, 0x5e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, + 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xb2, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x85, 0x01, 0x32, + 0x6a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2e, 0x6e, 0x61, + 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, - 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x0f, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x2c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0xa7, 0x02, 0x0a, 0x1b, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x94, 0x01, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6d, 0x22, 0x52, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, - 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, - 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3a, 0x17, 0x74, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, - 0x69, 0x65, 0x73, 0xda, 0x41, 0x1e, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x74, 0x65, 0x6e, + 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x12, 0xed, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, - 0x73, 0x12, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, - 0x73, 0x22, 0x61, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x54, 0x12, 0x52, 0x2f, 0x76, 0x31, 0x2f, 0x7b, - 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, - 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, - 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xc5, 0x02, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x12, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, - 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, - 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xb2, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x85, - 0x01, 0x32, 0x6a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2e, - 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, - 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, - 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x17, 0x74, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, - 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0xda, 0x41, 0x23, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, - 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x12, 0xfd, 0x01, 0x0a, - 0x19, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x72, 0x69, 0x65, 0x73, 0xda, 0x41, 0x23, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2c, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x12, 0xfd, 0x01, 0x0a, 0x19, 0x4c, + 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x54, 0x12, - 0x52, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, - 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, - 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x69, 0x65, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x93, 0x02, 0x0a, - 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x3e, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, - 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x94, 0x01, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x54, 0x2a, 0x52, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, - 0x41, 0x30, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x12, 0xac, 0x02, 0x0a, 0x22, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, 0x64, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, 0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, 0x64, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x46, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, - 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x77, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x63, - 0x12, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, - 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, - 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x52, - 0x65, 0x61, 0x64, 0xda, 0x41, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x12, 0xb3, 0x02, 0x0a, 0x1d, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, - 0x61, 0x74, 0x61, 0x12, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, - 0x2e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x54, 0x12, 0x52, 0x2f, + 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, + 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, + 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, + 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, + 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x93, 0x02, 0x0a, 0x1b, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, + 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x94, 0x01, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x54, 0x2a, 0x52, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, + 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, + 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x30, + 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x12, 0xac, 0x02, 0x0a, 0x22, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, + 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, 0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, + 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x46, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, + 0x68, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, - 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8c, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x6c, 0x12, 0x6a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3d, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x61, 0x64, 0xda, 0x41, 0x17, - 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x92, 0x02, 0x0a, 0x17, 0x52, 0x65, 0x61, 0x64, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x44, - 0x61, 0x74, 0x61, 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x77, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x63, 0x12, 0x61, + 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, + 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, + 0x64, 0xda, 0x41, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, + 0xb3, 0x02, 0x0a, 0x1d, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, + 0x61, 0x12, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x42, 0x6c, 0x6f, 0x62, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, - 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, - 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7c, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x68, 0x12, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x69, 0x6d, 0x65, 0x5f, - 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, - 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, - 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, - 0x2a, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, - 0x72, 0x65, 0x61, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x44, 0x61, 0x74, 0x61, 0xda, 0x41, 0x0b, 0x74, - 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x30, 0x01, 0x12, 0xbc, 0x02, 0x0a, - 0x1e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, - 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x72, 0x69, - 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, - 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, - 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x92, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5b, 0x22, - 0x56, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, - 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, - 0x7d, 0x3a, 0x77, 0x72, 0x69, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x2e, 0x74, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, - 0x65, 0x6e, 0x74, 0x2c, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x64, 0x61, - 0x74, 0x61, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x99, 0x02, 0x0a, 0x17, - 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, - 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x84, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5b, 0x22, 0x56, 0x2f, 0x76, 0x31, 0x2f, 0x7b, - 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x3d, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x77, 0x72, 0x69, 0x74, - 0x65, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x20, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x2c, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x12, 0xd5, 0x02, 0x0a, 0x1f, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, 0x42, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa8, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x87, 0x01, 0x22, 0x81, - 0x01, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8c, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6c, 0x12, + 0x6a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x65, 0x6e, + 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x61, 0x64, 0xda, 0x41, 0x17, 0x74, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, + 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x92, 0x02, 0x0a, 0x17, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x44, 0x61, 0x74, + 0x61, 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, 0x6c, + 0x6f, 0x62, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x54, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x44, 0x61, + 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7c, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x68, 0x12, 0x66, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, + 0x72, 0x69, 0x65, 0x73, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, + 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, + 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, + 0x61, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x44, 0x61, 0x74, 0x61, 0xda, 0x41, 0x0b, 0x74, 0x69, 0x6d, + 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x30, 0x01, 0x12, 0xbc, 0x02, 0x0a, 0x1e, 0x57, + 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x41, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, + 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x72, + 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, + 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x92, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5b, 0x22, 0x56, 0x2f, + 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, + 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, + 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, + 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, + 0x77, 0x72, 0x69, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, + 0x74, 0x2c, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, + 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x99, 0x02, 0x0a, 0x17, 0x57, 0x72, + 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, + 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x57, + 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, + 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x84, + 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5b, 0x22, 0x56, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x3d, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, + 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x77, 0x72, 0x69, 0x74, 0x65, 0x3a, + 0x01, 0x2a, 0xda, 0x41, 0x20, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x5f, 0x72, 0x75, 0x6e, 0x2c, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x5f, 0x64, 0x61, 0x74, 0x61, 0x12, 0xd5, 0x02, 0x0a, 0x1f, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, + 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x1a, - 0x86, 0x01, 0xca, 0x41, 0x19, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, - 0x67, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, - 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, - 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x72, - 0x65, 0x61, 0x64, 0x2d, 0x6f, 0x6e, 0x6c, 0x79, 0x42, 0xdb, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x42, 0x17, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 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, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, - 0x31, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0xaa, 0x02, 0x1a, 0x47, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, - 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x43, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, + 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, + 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0xa8, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x87, 0x01, 0x22, 0x81, 0x01, 0x2f, + 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3d, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, + 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, + 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, + 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x1a, 0x86, 0x01, + 0xca, 0x41, 0x19, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x67, 0x68, + 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, + 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x72, 0x65, 0x61, + 0x64, 0x2d, 0x6f, 0x6e, 0x6c, 0x79, 0x42, 0xdb, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x42, 0x17, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 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, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x3b, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, + 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3682,155 +3987,165 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP() []b return file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescData } -var file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes = make([]protoimpl.MessageInfo, 42) +var file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes = make([]protoimpl.MessageInfo, 47) var file_google_cloud_aiplatform_v1_tensorboard_service_proto_goTypes = []interface{}{ - (*CreateTensorboardRequest)(nil), // 0: google.cloud.aiplatform.v1.CreateTensorboardRequest - (*GetTensorboardRequest)(nil), // 1: google.cloud.aiplatform.v1.GetTensorboardRequest - (*ListTensorboardsRequest)(nil), // 2: google.cloud.aiplatform.v1.ListTensorboardsRequest - (*ListTensorboardsResponse)(nil), // 3: google.cloud.aiplatform.v1.ListTensorboardsResponse - (*UpdateTensorboardRequest)(nil), // 4: google.cloud.aiplatform.v1.UpdateTensorboardRequest - (*DeleteTensorboardRequest)(nil), // 5: google.cloud.aiplatform.v1.DeleteTensorboardRequest - (*CreateTensorboardExperimentRequest)(nil), // 6: google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest - (*GetTensorboardExperimentRequest)(nil), // 7: google.cloud.aiplatform.v1.GetTensorboardExperimentRequest - (*ListTensorboardExperimentsRequest)(nil), // 8: google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest - (*ListTensorboardExperimentsResponse)(nil), // 9: google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse - (*UpdateTensorboardExperimentRequest)(nil), // 10: google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest - (*DeleteTensorboardExperimentRequest)(nil), // 11: google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest - (*BatchCreateTensorboardRunsRequest)(nil), // 12: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest - (*BatchCreateTensorboardRunsResponse)(nil), // 13: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse - (*CreateTensorboardRunRequest)(nil), // 14: google.cloud.aiplatform.v1.CreateTensorboardRunRequest - (*GetTensorboardRunRequest)(nil), // 15: google.cloud.aiplatform.v1.GetTensorboardRunRequest - (*ReadTensorboardBlobDataRequest)(nil), // 16: google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest - (*ReadTensorboardBlobDataResponse)(nil), // 17: google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse - (*ListTensorboardRunsRequest)(nil), // 18: google.cloud.aiplatform.v1.ListTensorboardRunsRequest - (*ListTensorboardRunsResponse)(nil), // 19: google.cloud.aiplatform.v1.ListTensorboardRunsResponse - (*UpdateTensorboardRunRequest)(nil), // 20: google.cloud.aiplatform.v1.UpdateTensorboardRunRequest - (*DeleteTensorboardRunRequest)(nil), // 21: google.cloud.aiplatform.v1.DeleteTensorboardRunRequest - (*BatchCreateTensorboardTimeSeriesRequest)(nil), // 22: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest - (*BatchCreateTensorboardTimeSeriesResponse)(nil), // 23: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse - (*CreateTensorboardTimeSeriesRequest)(nil), // 24: google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest - (*GetTensorboardTimeSeriesRequest)(nil), // 25: google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest - (*ListTensorboardTimeSeriesRequest)(nil), // 26: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest - (*ListTensorboardTimeSeriesResponse)(nil), // 27: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse - (*UpdateTensorboardTimeSeriesRequest)(nil), // 28: google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest - (*DeleteTensorboardTimeSeriesRequest)(nil), // 29: google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest - (*BatchReadTensorboardTimeSeriesDataRequest)(nil), // 30: google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest - (*BatchReadTensorboardTimeSeriesDataResponse)(nil), // 31: google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse - (*ReadTensorboardTimeSeriesDataRequest)(nil), // 32: google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest - (*ReadTensorboardTimeSeriesDataResponse)(nil), // 33: google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse - (*WriteTensorboardExperimentDataRequest)(nil), // 34: google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest - (*WriteTensorboardExperimentDataResponse)(nil), // 35: google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse - (*WriteTensorboardRunDataRequest)(nil), // 36: google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest - (*WriteTensorboardRunDataResponse)(nil), // 37: google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse - (*ExportTensorboardTimeSeriesDataRequest)(nil), // 38: google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest - (*ExportTensorboardTimeSeriesDataResponse)(nil), // 39: google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse - (*CreateTensorboardOperationMetadata)(nil), // 40: google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata - (*UpdateTensorboardOperationMetadata)(nil), // 41: google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata - (*Tensorboard)(nil), // 42: google.cloud.aiplatform.v1.Tensorboard - (*fieldmaskpb.FieldMask)(nil), // 43: google.protobuf.FieldMask - (*TensorboardExperiment)(nil), // 44: google.cloud.aiplatform.v1.TensorboardExperiment - (*TensorboardRun)(nil), // 45: google.cloud.aiplatform.v1.TensorboardRun - (*TensorboardBlob)(nil), // 46: google.cloud.aiplatform.v1.TensorboardBlob - (*TensorboardTimeSeries)(nil), // 47: google.cloud.aiplatform.v1.TensorboardTimeSeries - (*TimeSeriesData)(nil), // 48: google.cloud.aiplatform.v1.TimeSeriesData - (*TimeSeriesDataPoint)(nil), // 49: google.cloud.aiplatform.v1.TimeSeriesDataPoint - (*GenericOperationMetadata)(nil), // 50: google.cloud.aiplatform.v1.GenericOperationMetadata - (*longrunning.Operation)(nil), // 51: google.longrunning.Operation + (*CreateTensorboardRequest)(nil), // 0: google.cloud.aiplatform.v1.CreateTensorboardRequest + (*GetTensorboardRequest)(nil), // 1: google.cloud.aiplatform.v1.GetTensorboardRequest + (*ReadTensorboardUsageRequest)(nil), // 2: google.cloud.aiplatform.v1.ReadTensorboardUsageRequest + (*ReadTensorboardUsageResponse)(nil), // 3: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse + (*ListTensorboardsRequest)(nil), // 4: google.cloud.aiplatform.v1.ListTensorboardsRequest + (*ListTensorboardsResponse)(nil), // 5: google.cloud.aiplatform.v1.ListTensorboardsResponse + (*UpdateTensorboardRequest)(nil), // 6: google.cloud.aiplatform.v1.UpdateTensorboardRequest + (*DeleteTensorboardRequest)(nil), // 7: google.cloud.aiplatform.v1.DeleteTensorboardRequest + (*CreateTensorboardExperimentRequest)(nil), // 8: google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest + (*GetTensorboardExperimentRequest)(nil), // 9: google.cloud.aiplatform.v1.GetTensorboardExperimentRequest + (*ListTensorboardExperimentsRequest)(nil), // 10: google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest + (*ListTensorboardExperimentsResponse)(nil), // 11: google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse + (*UpdateTensorboardExperimentRequest)(nil), // 12: google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest + (*DeleteTensorboardExperimentRequest)(nil), // 13: google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest + (*BatchCreateTensorboardRunsRequest)(nil), // 14: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest + (*BatchCreateTensorboardRunsResponse)(nil), // 15: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse + (*CreateTensorboardRunRequest)(nil), // 16: google.cloud.aiplatform.v1.CreateTensorboardRunRequest + (*GetTensorboardRunRequest)(nil), // 17: google.cloud.aiplatform.v1.GetTensorboardRunRequest + (*ReadTensorboardBlobDataRequest)(nil), // 18: google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest + (*ReadTensorboardBlobDataResponse)(nil), // 19: google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse + (*ListTensorboardRunsRequest)(nil), // 20: google.cloud.aiplatform.v1.ListTensorboardRunsRequest + (*ListTensorboardRunsResponse)(nil), // 21: google.cloud.aiplatform.v1.ListTensorboardRunsResponse + (*UpdateTensorboardRunRequest)(nil), // 22: google.cloud.aiplatform.v1.UpdateTensorboardRunRequest + (*DeleteTensorboardRunRequest)(nil), // 23: google.cloud.aiplatform.v1.DeleteTensorboardRunRequest + (*BatchCreateTensorboardTimeSeriesRequest)(nil), // 24: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest + (*BatchCreateTensorboardTimeSeriesResponse)(nil), // 25: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse + (*CreateTensorboardTimeSeriesRequest)(nil), // 26: google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest + (*GetTensorboardTimeSeriesRequest)(nil), // 27: google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest + (*ListTensorboardTimeSeriesRequest)(nil), // 28: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest + (*ListTensorboardTimeSeriesResponse)(nil), // 29: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse + (*UpdateTensorboardTimeSeriesRequest)(nil), // 30: google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest + (*DeleteTensorboardTimeSeriesRequest)(nil), // 31: google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest + (*BatchReadTensorboardTimeSeriesDataRequest)(nil), // 32: google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest + (*BatchReadTensorboardTimeSeriesDataResponse)(nil), // 33: google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse + (*ReadTensorboardTimeSeriesDataRequest)(nil), // 34: google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest + (*ReadTensorboardTimeSeriesDataResponse)(nil), // 35: google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse + (*WriteTensorboardExperimentDataRequest)(nil), // 36: google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest + (*WriteTensorboardExperimentDataResponse)(nil), // 37: google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse + (*WriteTensorboardRunDataRequest)(nil), // 38: google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest + (*WriteTensorboardRunDataResponse)(nil), // 39: google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse + (*ExportTensorboardTimeSeriesDataRequest)(nil), // 40: google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest + (*ExportTensorboardTimeSeriesDataResponse)(nil), // 41: google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse + (*CreateTensorboardOperationMetadata)(nil), // 42: google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata + (*UpdateTensorboardOperationMetadata)(nil), // 43: google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata + (*ReadTensorboardUsageResponse_PerUserUsageData)(nil), // 44: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData + (*ReadTensorboardUsageResponse_PerMonthUsageData)(nil), // 45: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData + nil, // 46: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.MonthlyUsageDataEntry + (*Tensorboard)(nil), // 47: google.cloud.aiplatform.v1.Tensorboard + (*fieldmaskpb.FieldMask)(nil), // 48: google.protobuf.FieldMask + (*TensorboardExperiment)(nil), // 49: google.cloud.aiplatform.v1.TensorboardExperiment + (*TensorboardRun)(nil), // 50: google.cloud.aiplatform.v1.TensorboardRun + (*TensorboardBlob)(nil), // 51: google.cloud.aiplatform.v1.TensorboardBlob + (*TensorboardTimeSeries)(nil), // 52: google.cloud.aiplatform.v1.TensorboardTimeSeries + (*TimeSeriesData)(nil), // 53: google.cloud.aiplatform.v1.TimeSeriesData + (*TimeSeriesDataPoint)(nil), // 54: google.cloud.aiplatform.v1.TimeSeriesDataPoint + (*GenericOperationMetadata)(nil), // 55: google.cloud.aiplatform.v1.GenericOperationMetadata + (*longrunning.Operation)(nil), // 56: google.longrunning.Operation } var file_google_cloud_aiplatform_v1_tensorboard_service_proto_depIdxs = []int32{ - 42, // 0: google.cloud.aiplatform.v1.CreateTensorboardRequest.tensorboard:type_name -> google.cloud.aiplatform.v1.Tensorboard - 43, // 1: google.cloud.aiplatform.v1.ListTensorboardsRequest.read_mask:type_name -> google.protobuf.FieldMask - 42, // 2: google.cloud.aiplatform.v1.ListTensorboardsResponse.tensorboards:type_name -> google.cloud.aiplatform.v1.Tensorboard - 43, // 3: google.cloud.aiplatform.v1.UpdateTensorboardRequest.update_mask:type_name -> google.protobuf.FieldMask - 42, // 4: google.cloud.aiplatform.v1.UpdateTensorboardRequest.tensorboard:type_name -> google.cloud.aiplatform.v1.Tensorboard - 44, // 5: google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest.tensorboard_experiment:type_name -> google.cloud.aiplatform.v1.TensorboardExperiment - 43, // 6: google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest.read_mask:type_name -> google.protobuf.FieldMask - 44, // 7: google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse.tensorboard_experiments:type_name -> google.cloud.aiplatform.v1.TensorboardExperiment - 43, // 8: google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest.update_mask:type_name -> google.protobuf.FieldMask - 44, // 9: google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest.tensorboard_experiment:type_name -> google.cloud.aiplatform.v1.TensorboardExperiment - 14, // 10: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest.requests:type_name -> google.cloud.aiplatform.v1.CreateTensorboardRunRequest - 45, // 11: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse.tensorboard_runs:type_name -> google.cloud.aiplatform.v1.TensorboardRun - 45, // 12: google.cloud.aiplatform.v1.CreateTensorboardRunRequest.tensorboard_run:type_name -> google.cloud.aiplatform.v1.TensorboardRun - 46, // 13: google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse.blobs:type_name -> google.cloud.aiplatform.v1.TensorboardBlob - 43, // 14: google.cloud.aiplatform.v1.ListTensorboardRunsRequest.read_mask:type_name -> google.protobuf.FieldMask - 45, // 15: google.cloud.aiplatform.v1.ListTensorboardRunsResponse.tensorboard_runs:type_name -> google.cloud.aiplatform.v1.TensorboardRun - 43, // 16: google.cloud.aiplatform.v1.UpdateTensorboardRunRequest.update_mask:type_name -> google.protobuf.FieldMask - 45, // 17: google.cloud.aiplatform.v1.UpdateTensorboardRunRequest.tensorboard_run:type_name -> google.cloud.aiplatform.v1.TensorboardRun - 24, // 18: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest.requests:type_name -> google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest - 47, // 19: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse.tensorboard_time_series:type_name -> google.cloud.aiplatform.v1.TensorboardTimeSeries - 47, // 20: google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest.tensorboard_time_series:type_name -> google.cloud.aiplatform.v1.TensorboardTimeSeries - 43, // 21: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest.read_mask:type_name -> google.protobuf.FieldMask - 47, // 22: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse.tensorboard_time_series:type_name -> google.cloud.aiplatform.v1.TensorboardTimeSeries - 43, // 23: google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest.update_mask:type_name -> google.protobuf.FieldMask - 47, // 24: google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest.tensorboard_time_series:type_name -> google.cloud.aiplatform.v1.TensorboardTimeSeries - 48, // 25: google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse.time_series_data:type_name -> google.cloud.aiplatform.v1.TimeSeriesData - 48, // 26: google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse.time_series_data:type_name -> google.cloud.aiplatform.v1.TimeSeriesData - 36, // 27: google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest.write_run_data_requests:type_name -> google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest - 48, // 28: google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest.time_series_data:type_name -> google.cloud.aiplatform.v1.TimeSeriesData - 49, // 29: google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse.time_series_data_points:type_name -> google.cloud.aiplatform.v1.TimeSeriesDataPoint - 50, // 30: google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata.generic_metadata:type_name -> google.cloud.aiplatform.v1.GenericOperationMetadata - 50, // 31: google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata.generic_metadata:type_name -> google.cloud.aiplatform.v1.GenericOperationMetadata - 0, // 32: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboard:input_type -> google.cloud.aiplatform.v1.CreateTensorboardRequest - 1, // 33: google.cloud.aiplatform.v1.TensorboardService.GetTensorboard:input_type -> google.cloud.aiplatform.v1.GetTensorboardRequest - 4, // 34: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboard:input_type -> google.cloud.aiplatform.v1.UpdateTensorboardRequest - 2, // 35: google.cloud.aiplatform.v1.TensorboardService.ListTensorboards:input_type -> google.cloud.aiplatform.v1.ListTensorboardsRequest - 5, // 36: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboard:input_type -> google.cloud.aiplatform.v1.DeleteTensorboardRequest - 6, // 37: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardExperiment:input_type -> google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest - 7, // 38: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardExperiment:input_type -> google.cloud.aiplatform.v1.GetTensorboardExperimentRequest - 10, // 39: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardExperiment:input_type -> google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest - 8, // 40: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardExperiments:input_type -> google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest - 11, // 41: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardExperiment:input_type -> google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest - 14, // 42: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardRun:input_type -> google.cloud.aiplatform.v1.CreateTensorboardRunRequest - 12, // 43: google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardRuns:input_type -> google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest - 15, // 44: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardRun:input_type -> google.cloud.aiplatform.v1.GetTensorboardRunRequest - 20, // 45: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardRun:input_type -> google.cloud.aiplatform.v1.UpdateTensorboardRunRequest - 18, // 46: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardRuns:input_type -> google.cloud.aiplatform.v1.ListTensorboardRunsRequest - 21, // 47: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardRun:input_type -> google.cloud.aiplatform.v1.DeleteTensorboardRunRequest - 22, // 48: google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest - 24, // 49: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest - 25, // 50: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest - 28, // 51: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest - 26, // 52: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest - 29, // 53: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest - 30, // 54: google.cloud.aiplatform.v1.TensorboardService.BatchReadTensorboardTimeSeriesData:input_type -> google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest - 32, // 55: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardTimeSeriesData:input_type -> google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest - 16, // 56: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardBlobData:input_type -> google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest - 34, // 57: google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardExperimentData:input_type -> google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest - 36, // 58: google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardRunData:input_type -> google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest - 38, // 59: google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesData:input_type -> google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest - 51, // 60: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboard:output_type -> google.longrunning.Operation - 42, // 61: google.cloud.aiplatform.v1.TensorboardService.GetTensorboard:output_type -> google.cloud.aiplatform.v1.Tensorboard - 51, // 62: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboard:output_type -> google.longrunning.Operation - 3, // 63: google.cloud.aiplatform.v1.TensorboardService.ListTensorboards:output_type -> google.cloud.aiplatform.v1.ListTensorboardsResponse - 51, // 64: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboard:output_type -> google.longrunning.Operation - 44, // 65: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardExperiment:output_type -> google.cloud.aiplatform.v1.TensorboardExperiment - 44, // 66: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardExperiment:output_type -> google.cloud.aiplatform.v1.TensorboardExperiment - 44, // 67: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardExperiment:output_type -> google.cloud.aiplatform.v1.TensorboardExperiment - 9, // 68: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardExperiments:output_type -> google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse - 51, // 69: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardExperiment:output_type -> google.longrunning.Operation - 45, // 70: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardRun:output_type -> google.cloud.aiplatform.v1.TensorboardRun - 13, // 71: google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardRuns:output_type -> google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse - 45, // 72: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardRun:output_type -> google.cloud.aiplatform.v1.TensorboardRun - 45, // 73: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardRun:output_type -> google.cloud.aiplatform.v1.TensorboardRun - 19, // 74: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardRuns:output_type -> google.cloud.aiplatform.v1.ListTensorboardRunsResponse - 51, // 75: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardRun:output_type -> google.longrunning.Operation - 23, // 76: google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse - 47, // 77: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1.TensorboardTimeSeries - 47, // 78: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1.TensorboardTimeSeries - 47, // 79: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1.TensorboardTimeSeries - 27, // 80: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse - 51, // 81: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardTimeSeries:output_type -> google.longrunning.Operation - 31, // 82: google.cloud.aiplatform.v1.TensorboardService.BatchReadTensorboardTimeSeriesData:output_type -> google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse - 33, // 83: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardTimeSeriesData:output_type -> google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse - 17, // 84: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardBlobData:output_type -> google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse - 35, // 85: google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardExperimentData:output_type -> google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse - 37, // 86: google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardRunData:output_type -> google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse - 39, // 87: google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesData:output_type -> google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse - 60, // [60:88] is the sub-list for method output_type - 32, // [32:60] is the sub-list for method input_type - 32, // [32:32] is the sub-list for extension type_name - 32, // [32:32] is the sub-list for extension extendee - 0, // [0:32] is the sub-list for field type_name + 47, // 0: google.cloud.aiplatform.v1.CreateTensorboardRequest.tensorboard:type_name -> google.cloud.aiplatform.v1.Tensorboard + 46, // 1: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.monthly_usage_data:type_name -> google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.MonthlyUsageDataEntry + 48, // 2: google.cloud.aiplatform.v1.ListTensorboardsRequest.read_mask:type_name -> google.protobuf.FieldMask + 47, // 3: google.cloud.aiplatform.v1.ListTensorboardsResponse.tensorboards:type_name -> google.cloud.aiplatform.v1.Tensorboard + 48, // 4: google.cloud.aiplatform.v1.UpdateTensorboardRequest.update_mask:type_name -> google.protobuf.FieldMask + 47, // 5: google.cloud.aiplatform.v1.UpdateTensorboardRequest.tensorboard:type_name -> google.cloud.aiplatform.v1.Tensorboard + 49, // 6: google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest.tensorboard_experiment:type_name -> google.cloud.aiplatform.v1.TensorboardExperiment + 48, // 7: google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest.read_mask:type_name -> google.protobuf.FieldMask + 49, // 8: google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse.tensorboard_experiments:type_name -> google.cloud.aiplatform.v1.TensorboardExperiment + 48, // 9: google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest.update_mask:type_name -> google.protobuf.FieldMask + 49, // 10: google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest.tensorboard_experiment:type_name -> google.cloud.aiplatform.v1.TensorboardExperiment + 16, // 11: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest.requests:type_name -> google.cloud.aiplatform.v1.CreateTensorboardRunRequest + 50, // 12: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse.tensorboard_runs:type_name -> google.cloud.aiplatform.v1.TensorboardRun + 50, // 13: google.cloud.aiplatform.v1.CreateTensorboardRunRequest.tensorboard_run:type_name -> google.cloud.aiplatform.v1.TensorboardRun + 51, // 14: google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse.blobs:type_name -> google.cloud.aiplatform.v1.TensorboardBlob + 48, // 15: google.cloud.aiplatform.v1.ListTensorboardRunsRequest.read_mask:type_name -> google.protobuf.FieldMask + 50, // 16: google.cloud.aiplatform.v1.ListTensorboardRunsResponse.tensorboard_runs:type_name -> google.cloud.aiplatform.v1.TensorboardRun + 48, // 17: google.cloud.aiplatform.v1.UpdateTensorboardRunRequest.update_mask:type_name -> google.protobuf.FieldMask + 50, // 18: google.cloud.aiplatform.v1.UpdateTensorboardRunRequest.tensorboard_run:type_name -> google.cloud.aiplatform.v1.TensorboardRun + 26, // 19: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest.requests:type_name -> google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest + 52, // 20: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse.tensorboard_time_series:type_name -> google.cloud.aiplatform.v1.TensorboardTimeSeries + 52, // 21: google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest.tensorboard_time_series:type_name -> google.cloud.aiplatform.v1.TensorboardTimeSeries + 48, // 22: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest.read_mask:type_name -> google.protobuf.FieldMask + 52, // 23: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse.tensorboard_time_series:type_name -> google.cloud.aiplatform.v1.TensorboardTimeSeries + 48, // 24: google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest.update_mask:type_name -> google.protobuf.FieldMask + 52, // 25: google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest.tensorboard_time_series:type_name -> google.cloud.aiplatform.v1.TensorboardTimeSeries + 53, // 26: google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse.time_series_data:type_name -> google.cloud.aiplatform.v1.TimeSeriesData + 53, // 27: google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse.time_series_data:type_name -> google.cloud.aiplatform.v1.TimeSeriesData + 38, // 28: google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest.write_run_data_requests:type_name -> google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest + 53, // 29: google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest.time_series_data:type_name -> google.cloud.aiplatform.v1.TimeSeriesData + 54, // 30: google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse.time_series_data_points:type_name -> google.cloud.aiplatform.v1.TimeSeriesDataPoint + 55, // 31: google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata.generic_metadata:type_name -> google.cloud.aiplatform.v1.GenericOperationMetadata + 55, // 32: google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata.generic_metadata:type_name -> google.cloud.aiplatform.v1.GenericOperationMetadata + 44, // 33: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData.user_usage_data:type_name -> google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData + 45, // 34: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.MonthlyUsageDataEntry.value:type_name -> google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData + 0, // 35: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboard:input_type -> google.cloud.aiplatform.v1.CreateTensorboardRequest + 1, // 36: google.cloud.aiplatform.v1.TensorboardService.GetTensorboard:input_type -> google.cloud.aiplatform.v1.GetTensorboardRequest + 2, // 37: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsage:input_type -> google.cloud.aiplatform.v1.ReadTensorboardUsageRequest + 6, // 38: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboard:input_type -> google.cloud.aiplatform.v1.UpdateTensorboardRequest + 4, // 39: google.cloud.aiplatform.v1.TensorboardService.ListTensorboards:input_type -> google.cloud.aiplatform.v1.ListTensorboardsRequest + 7, // 40: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboard:input_type -> google.cloud.aiplatform.v1.DeleteTensorboardRequest + 8, // 41: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardExperiment:input_type -> google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest + 9, // 42: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardExperiment:input_type -> google.cloud.aiplatform.v1.GetTensorboardExperimentRequest + 12, // 43: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardExperiment:input_type -> google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest + 10, // 44: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardExperiments:input_type -> google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest + 13, // 45: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardExperiment:input_type -> google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest + 16, // 46: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardRun:input_type -> google.cloud.aiplatform.v1.CreateTensorboardRunRequest + 14, // 47: google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardRuns:input_type -> google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest + 17, // 48: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardRun:input_type -> google.cloud.aiplatform.v1.GetTensorboardRunRequest + 22, // 49: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardRun:input_type -> google.cloud.aiplatform.v1.UpdateTensorboardRunRequest + 20, // 50: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardRuns:input_type -> google.cloud.aiplatform.v1.ListTensorboardRunsRequest + 23, // 51: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardRun:input_type -> google.cloud.aiplatform.v1.DeleteTensorboardRunRequest + 24, // 52: google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest + 26, // 53: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest + 27, // 54: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest + 30, // 55: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest + 28, // 56: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest + 31, // 57: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest + 32, // 58: google.cloud.aiplatform.v1.TensorboardService.BatchReadTensorboardTimeSeriesData:input_type -> google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest + 34, // 59: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardTimeSeriesData:input_type -> google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest + 18, // 60: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardBlobData:input_type -> google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest + 36, // 61: google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardExperimentData:input_type -> google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest + 38, // 62: google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardRunData:input_type -> google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest + 40, // 63: google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesData:input_type -> google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest + 56, // 64: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboard:output_type -> google.longrunning.Operation + 47, // 65: google.cloud.aiplatform.v1.TensorboardService.GetTensorboard:output_type -> google.cloud.aiplatform.v1.Tensorboard + 3, // 66: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsage:output_type -> google.cloud.aiplatform.v1.ReadTensorboardUsageResponse + 56, // 67: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboard:output_type -> google.longrunning.Operation + 5, // 68: google.cloud.aiplatform.v1.TensorboardService.ListTensorboards:output_type -> google.cloud.aiplatform.v1.ListTensorboardsResponse + 56, // 69: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboard:output_type -> google.longrunning.Operation + 49, // 70: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardExperiment:output_type -> google.cloud.aiplatform.v1.TensorboardExperiment + 49, // 71: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardExperiment:output_type -> google.cloud.aiplatform.v1.TensorboardExperiment + 49, // 72: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardExperiment:output_type -> google.cloud.aiplatform.v1.TensorboardExperiment + 11, // 73: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardExperiments:output_type -> google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse + 56, // 74: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardExperiment:output_type -> google.longrunning.Operation + 50, // 75: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardRun:output_type -> google.cloud.aiplatform.v1.TensorboardRun + 15, // 76: google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardRuns:output_type -> google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse + 50, // 77: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardRun:output_type -> google.cloud.aiplatform.v1.TensorboardRun + 50, // 78: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardRun:output_type -> google.cloud.aiplatform.v1.TensorboardRun + 21, // 79: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardRuns:output_type -> google.cloud.aiplatform.v1.ListTensorboardRunsResponse + 56, // 80: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardRun:output_type -> google.longrunning.Operation + 25, // 81: google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse + 52, // 82: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1.TensorboardTimeSeries + 52, // 83: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1.TensorboardTimeSeries + 52, // 84: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1.TensorboardTimeSeries + 29, // 85: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse + 56, // 86: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardTimeSeries:output_type -> google.longrunning.Operation + 33, // 87: google.cloud.aiplatform.v1.TensorboardService.BatchReadTensorboardTimeSeriesData:output_type -> google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse + 35, // 88: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardTimeSeriesData:output_type -> google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse + 19, // 89: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardBlobData:output_type -> google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse + 37, // 90: google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardExperimentData:output_type -> google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse + 39, // 91: google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardRunData:output_type -> google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse + 41, // 92: google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesData:output_type -> google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse + 64, // [64:93] is the sub-list for method output_type + 35, // [35:64] is the sub-list for method input_type + 35, // [35:35] is the sub-list for extension type_name + 35, // [35:35] is the sub-list for extension extendee + 0, // [0:35] is the sub-list for field type_name } func init() { file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() } @@ -3870,7 +4185,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTensorboardsRequest); i { + switch v := v.(*ReadTensorboardUsageRequest); i { case 0: return &v.state case 1: @@ -3882,7 +4197,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTensorboardsResponse); i { + switch v := v.(*ReadTensorboardUsageResponse); i { case 0: return &v.state case 1: @@ -3894,7 +4209,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateTensorboardRequest); i { + switch v := v.(*ListTensorboardsRequest); i { case 0: return &v.state case 1: @@ -3906,7 +4221,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTensorboardRequest); i { + switch v := v.(*ListTensorboardsResponse); i { case 0: return &v.state case 1: @@ -3918,7 +4233,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTensorboardExperimentRequest); i { + switch v := v.(*UpdateTensorboardRequest); i { case 0: return &v.state case 1: @@ -3930,7 +4245,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTensorboardExperimentRequest); i { + switch v := v.(*DeleteTensorboardRequest); i { case 0: return &v.state case 1: @@ -3942,7 +4257,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTensorboardExperimentsRequest); i { + switch v := v.(*CreateTensorboardExperimentRequest); i { case 0: return &v.state case 1: @@ -3954,7 +4269,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTensorboardExperimentsResponse); i { + switch v := v.(*GetTensorboardExperimentRequest); i { case 0: return &v.state case 1: @@ -3966,7 +4281,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateTensorboardExperimentRequest); i { + switch v := v.(*ListTensorboardExperimentsRequest); i { case 0: return &v.state case 1: @@ -3978,7 +4293,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTensorboardExperimentRequest); i { + switch v := v.(*ListTensorboardExperimentsResponse); i { case 0: return &v.state case 1: @@ -3990,7 +4305,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchCreateTensorboardRunsRequest); i { + switch v := v.(*UpdateTensorboardExperimentRequest); i { case 0: return &v.state case 1: @@ -4002,7 +4317,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchCreateTensorboardRunsResponse); i { + switch v := v.(*DeleteTensorboardExperimentRequest); i { case 0: return &v.state case 1: @@ -4014,7 +4329,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTensorboardRunRequest); i { + switch v := v.(*BatchCreateTensorboardRunsRequest); i { case 0: return &v.state case 1: @@ -4026,7 +4341,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTensorboardRunRequest); i { + switch v := v.(*BatchCreateTensorboardRunsResponse); i { case 0: return &v.state case 1: @@ -4038,7 +4353,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadTensorboardBlobDataRequest); i { + switch v := v.(*CreateTensorboardRunRequest); i { case 0: return &v.state case 1: @@ -4050,7 +4365,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadTensorboardBlobDataResponse); i { + switch v := v.(*GetTensorboardRunRequest); i { case 0: return &v.state case 1: @@ -4062,7 +4377,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTensorboardRunsRequest); i { + switch v := v.(*ReadTensorboardBlobDataRequest); i { case 0: return &v.state case 1: @@ -4074,7 +4389,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTensorboardRunsResponse); i { + switch v := v.(*ReadTensorboardBlobDataResponse); i { case 0: return &v.state case 1: @@ -4086,7 +4401,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateTensorboardRunRequest); i { + switch v := v.(*ListTensorboardRunsRequest); i { case 0: return &v.state case 1: @@ -4098,7 +4413,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTensorboardRunRequest); i { + switch v := v.(*ListTensorboardRunsResponse); i { case 0: return &v.state case 1: @@ -4110,7 +4425,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchCreateTensorboardTimeSeriesRequest); i { + switch v := v.(*UpdateTensorboardRunRequest); i { case 0: return &v.state case 1: @@ -4122,7 +4437,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchCreateTensorboardTimeSeriesResponse); i { + switch v := v.(*DeleteTensorboardRunRequest); i { case 0: return &v.state case 1: @@ -4134,7 +4449,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTensorboardTimeSeriesRequest); i { + switch v := v.(*BatchCreateTensorboardTimeSeriesRequest); i { case 0: return &v.state case 1: @@ -4146,7 +4461,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTensorboardTimeSeriesRequest); i { + switch v := v.(*BatchCreateTensorboardTimeSeriesResponse); i { case 0: return &v.state case 1: @@ -4158,7 +4473,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTensorboardTimeSeriesRequest); i { + switch v := v.(*CreateTensorboardTimeSeriesRequest); i { case 0: return &v.state case 1: @@ -4170,7 +4485,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTensorboardTimeSeriesResponse); i { + switch v := v.(*GetTensorboardTimeSeriesRequest); i { case 0: return &v.state case 1: @@ -4182,7 +4497,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateTensorboardTimeSeriesRequest); i { + switch v := v.(*ListTensorboardTimeSeriesRequest); i { case 0: return &v.state case 1: @@ -4194,7 +4509,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTensorboardTimeSeriesRequest); i { + switch v := v.(*ListTensorboardTimeSeriesResponse); i { case 0: return &v.state case 1: @@ -4206,7 +4521,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchReadTensorboardTimeSeriesDataRequest); i { + switch v := v.(*UpdateTensorboardTimeSeriesRequest); i { case 0: return &v.state case 1: @@ -4218,7 +4533,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchReadTensorboardTimeSeriesDataResponse); i { + switch v := v.(*DeleteTensorboardTimeSeriesRequest); i { case 0: return &v.state case 1: @@ -4230,7 +4545,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadTensorboardTimeSeriesDataRequest); i { + switch v := v.(*BatchReadTensorboardTimeSeriesDataRequest); i { case 0: return &v.state case 1: @@ -4242,7 +4557,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadTensorboardTimeSeriesDataResponse); i { + switch v := v.(*BatchReadTensorboardTimeSeriesDataResponse); i { case 0: return &v.state case 1: @@ -4254,7 +4569,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WriteTensorboardExperimentDataRequest); i { + switch v := v.(*ReadTensorboardTimeSeriesDataRequest); i { case 0: return &v.state case 1: @@ -4266,7 +4581,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WriteTensorboardExperimentDataResponse); i { + switch v := v.(*ReadTensorboardTimeSeriesDataResponse); i { case 0: return &v.state case 1: @@ -4278,7 +4593,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WriteTensorboardRunDataRequest); i { + switch v := v.(*WriteTensorboardExperimentDataRequest); i { case 0: return &v.state case 1: @@ -4290,7 +4605,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WriteTensorboardRunDataResponse); i { + switch v := v.(*WriteTensorboardExperimentDataResponse); i { case 0: return &v.state case 1: @@ -4302,7 +4617,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExportTensorboardTimeSeriesDataRequest); i { + switch v := v.(*WriteTensorboardRunDataRequest); i { case 0: return &v.state case 1: @@ -4314,7 +4629,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExportTensorboardTimeSeriesDataResponse); i { + switch v := v.(*WriteTensorboardRunDataResponse); i { case 0: return &v.state case 1: @@ -4326,7 +4641,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTensorboardOperationMetadata); i { + switch v := v.(*ExportTensorboardTimeSeriesDataRequest); i { case 0: return &v.state case 1: @@ -4338,6 +4653,30 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExportTensorboardTimeSeriesDataResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateTensorboardOperationMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateTensorboardOperationMetadata); i { case 0: return &v.state @@ -4349,6 +4688,30 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { return nil } } + file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReadTensorboardUsageResponse_PerUserUsageData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_aiplatform_v1_tensorboard_service_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReadTensorboardUsageResponse_PerMonthUsageData); 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{ @@ -4356,7 +4719,7 @@ func file_google_cloud_aiplatform_v1_tensorboard_service_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDesc, NumEnums: 0, - NumMessages: 42, + NumMessages: 47, NumExtensions: 0, NumServices: 1, }, @@ -4386,6 +4749,8 @@ type TensorboardServiceClient interface { CreateTensorboard(ctx context.Context, in *CreateTensorboardRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Gets a Tensorboard. GetTensorboard(ctx context.Context, in *GetTensorboardRequest, opts ...grpc.CallOption) (*Tensorboard, error) + // Returns a list of monthly active users for a given TensorBoard instance. + ReadTensorboardUsage(ctx context.Context, in *ReadTensorboardUsageRequest, opts ...grpc.CallOption) (*ReadTensorboardUsageResponse, error) // Updates a Tensorboard. UpdateTensorboard(ctx context.Context, in *UpdateTensorboardRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Lists Tensorboards in a Location. @@ -4428,13 +4793,13 @@ type TensorboardServiceClient interface { DeleteTensorboardTimeSeries(ctx context.Context, in *DeleteTensorboardTimeSeriesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Reads multiple TensorboardTimeSeries' data. The data point number limit is // 1000 for scalars, 100 for tensors and blob references. If the number of - // data points stored is less than the limit, all data will be returned. - // Otherwise, that limit number of data points will be randomly selected from + // data points stored is less than the limit, all data is returned. + // Otherwise, the number limit of data points is randomly selected from // this time series and returned. BatchReadTensorboardTimeSeriesData(ctx context.Context, in *BatchReadTensorboardTimeSeriesDataRequest, opts ...grpc.CallOption) (*BatchReadTensorboardTimeSeriesDataResponse, error) // Reads a TensorboardTimeSeries' data. By default, if the number of data - // points stored is less than 1000, all data will be returned. Otherwise, 1000 - // data points will be randomly selected from this time series and returned. + // points stored is less than 1000, all data is returned. Otherwise, 1000 + // data points is randomly selected from this time series and returned. // This value can be changed by changing max_data_points, which can't be // greater than 10k. ReadTensorboardTimeSeriesData(ctx context.Context, in *ReadTensorboardTimeSeriesDataRequest, opts ...grpc.CallOption) (*ReadTensorboardTimeSeriesDataResponse, error) @@ -4444,12 +4809,10 @@ type TensorboardServiceClient interface { // permission. ReadTensorboardBlobData(ctx context.Context, in *ReadTensorboardBlobDataRequest, opts ...grpc.CallOption) (TensorboardService_ReadTensorboardBlobDataClient, error) // Write time series data points of multiple TensorboardTimeSeries in multiple - // TensorboardRun's. If any data fail to be ingested, an error will be - // returned. + // TensorboardRun's. If any data fail to be ingested, an error is returned. WriteTensorboardExperimentData(ctx context.Context, in *WriteTensorboardExperimentDataRequest, opts ...grpc.CallOption) (*WriteTensorboardExperimentDataResponse, error) // Write time series data points into multiple TensorboardTimeSeries under - // a TensorboardRun. If any data fail to be ingested, an error will be - // returned. + // a TensorboardRun. If any data fail to be ingested, an error is returned. WriteTensorboardRunData(ctx context.Context, in *WriteTensorboardRunDataRequest, opts ...grpc.CallOption) (*WriteTensorboardRunDataResponse, error) // Exports a TensorboardTimeSeries' data. Data is returned in paginated // responses. @@ -4482,6 +4845,15 @@ func (c *tensorboardServiceClient) GetTensorboard(ctx context.Context, in *GetTe return out, nil } +func (c *tensorboardServiceClient) ReadTensorboardUsage(ctx context.Context, in *ReadTensorboardUsageRequest, opts ...grpc.CallOption) (*ReadTensorboardUsageResponse, error) { + out := new(ReadTensorboardUsageResponse) + err := c.cc.Invoke(ctx, "/google.cloud.aiplatform.v1.TensorboardService/ReadTensorboardUsage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *tensorboardServiceClient) UpdateTensorboard(ctx context.Context, in *UpdateTensorboardRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { out := new(longrunning.Operation) err := c.cc.Invoke(ctx, "/google.cloud.aiplatform.v1.TensorboardService/UpdateTensorboard", in, out, opts...) @@ -4745,6 +5117,8 @@ type TensorboardServiceServer interface { CreateTensorboard(context.Context, *CreateTensorboardRequest) (*longrunning.Operation, error) // Gets a Tensorboard. GetTensorboard(context.Context, *GetTensorboardRequest) (*Tensorboard, error) + // Returns a list of monthly active users for a given TensorBoard instance. + ReadTensorboardUsage(context.Context, *ReadTensorboardUsageRequest) (*ReadTensorboardUsageResponse, error) // Updates a Tensorboard. UpdateTensorboard(context.Context, *UpdateTensorboardRequest) (*longrunning.Operation, error) // Lists Tensorboards in a Location. @@ -4787,13 +5161,13 @@ type TensorboardServiceServer interface { DeleteTensorboardTimeSeries(context.Context, *DeleteTensorboardTimeSeriesRequest) (*longrunning.Operation, error) // Reads multiple TensorboardTimeSeries' data. The data point number limit is // 1000 for scalars, 100 for tensors and blob references. If the number of - // data points stored is less than the limit, all data will be returned. - // Otherwise, that limit number of data points will be randomly selected from + // data points stored is less than the limit, all data is returned. + // Otherwise, the number limit of data points is randomly selected from // this time series and returned. BatchReadTensorboardTimeSeriesData(context.Context, *BatchReadTensorboardTimeSeriesDataRequest) (*BatchReadTensorboardTimeSeriesDataResponse, error) // Reads a TensorboardTimeSeries' data. By default, if the number of data - // points stored is less than 1000, all data will be returned. Otherwise, 1000 - // data points will be randomly selected from this time series and returned. + // points stored is less than 1000, all data is returned. Otherwise, 1000 + // data points is randomly selected from this time series and returned. // This value can be changed by changing max_data_points, which can't be // greater than 10k. ReadTensorboardTimeSeriesData(context.Context, *ReadTensorboardTimeSeriesDataRequest) (*ReadTensorboardTimeSeriesDataResponse, error) @@ -4803,12 +5177,10 @@ type TensorboardServiceServer interface { // permission. ReadTensorboardBlobData(*ReadTensorboardBlobDataRequest, TensorboardService_ReadTensorboardBlobDataServer) error // Write time series data points of multiple TensorboardTimeSeries in multiple - // TensorboardRun's. If any data fail to be ingested, an error will be - // returned. + // TensorboardRun's. If any data fail to be ingested, an error is returned. WriteTensorboardExperimentData(context.Context, *WriteTensorboardExperimentDataRequest) (*WriteTensorboardExperimentDataResponse, error) // Write time series data points into multiple TensorboardTimeSeries under - // a TensorboardRun. If any data fail to be ingested, an error will be - // returned. + // a TensorboardRun. If any data fail to be ingested, an error is returned. WriteTensorboardRunData(context.Context, *WriteTensorboardRunDataRequest) (*WriteTensorboardRunDataResponse, error) // Exports a TensorboardTimeSeries' data. Data is returned in paginated // responses. @@ -4825,6 +5197,9 @@ func (*UnimplementedTensorboardServiceServer) CreateTensorboard(context.Context, func (*UnimplementedTensorboardServiceServer) GetTensorboard(context.Context, *GetTensorboardRequest) (*Tensorboard, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTensorboard not implemented") } +func (*UnimplementedTensorboardServiceServer) ReadTensorboardUsage(context.Context, *ReadTensorboardUsageRequest) (*ReadTensorboardUsageResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReadTensorboardUsage not implemented") +} func (*UnimplementedTensorboardServiceServer) UpdateTensorboard(context.Context, *UpdateTensorboardRequest) (*longrunning.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateTensorboard not implemented") } @@ -4944,6 +5319,24 @@ func _TensorboardService_GetTensorboard_Handler(srv interface{}, ctx context.Con return interceptor(ctx, in, info, handler) } +func _TensorboardService_ReadTensorboardUsage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReadTensorboardUsageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TensorboardServiceServer).ReadTensorboardUsage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.aiplatform.v1.TensorboardService/ReadTensorboardUsage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TensorboardServiceServer).ReadTensorboardUsage(ctx, req.(*ReadTensorboardUsageRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _TensorboardService_UpdateTensorboard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateTensorboardRequest) if err := dec(in); err != nil { @@ -5427,6 +5820,10 @@ var _TensorboardService_serviceDesc = grpc.ServiceDesc{ MethodName: "GetTensorboard", Handler: _TensorboardService_GetTensorboard_Handler, }, + { + MethodName: "ReadTensorboardUsage", + Handler: _TensorboardService_ReadTensorboardUsage_Handler, + }, { MethodName: "UpdateTensorboard", Handler: _TensorboardService_UpdateTensorboard_Handler, diff --git a/aiplatform/apiv1/aiplatformpb/tensorboard_time_series.pb.go b/aiplatform/apiv1/aiplatformpb/tensorboard_time_series.pb.go index 8089c654e9d2..c739b00e2d24 100644 --- a/aiplatform/apiv1/aiplatformpb/tensorboard_time_series.pb.go +++ b/aiplatform/apiv1/aiplatformpb/tensorboard_time_series.pb.go @@ -120,12 +120,13 @@ type TensorboardTimeSeries struct { // Used to perform a consistent read-modify-write updates. If not set, a blind // "overwrite" update happens. Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"` - // Immutable. Name of the plugin this time series pertain to. Such as Scalar, Tensor, - // Blob + // Immutable. Name of the plugin this time series pertain to. Such as Scalar, + // Tensor, Blob PluginName string `protobuf:"bytes,8,opt,name=plugin_name,json=pluginName,proto3" json:"plugin_name,omitempty"` // Data of the current plugin, with the size limited to 65KB. PluginData []byte `protobuf:"bytes,9,opt,name=plugin_data,json=pluginData,proto3" json:"plugin_data,omitempty"` - // Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries. + // Output only. Scalar, Tensor, or Blob metadata for this + // TensorboardTimeSeries. Metadata *TensorboardTimeSeries_Metadata `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"` } @@ -237,13 +238,14 @@ type TensorboardTimeSeries_Metadata struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. Max step index of all data points within a TensorboardTimeSeries. + // Output only. Max step index of all data points within a + // TensorboardTimeSeries. MaxStep int64 `protobuf:"varint,1,opt,name=max_step,json=maxStep,proto3" json:"max_step,omitempty"` // Output only. Max wall clock timestamp of all data points within a // TensorboardTimeSeries. MaxWallTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=max_wall_time,json=maxWallTime,proto3" json:"max_wall_time,omitempty"` - // Output only. The largest blob sequence length (number of blobs) of all data points in - // this time series, if its ValueType is BLOB_SEQUENCE. + // Output only. The largest blob sequence length (number of blobs) of all + // data points in this time series, if its ValueType is BLOB_SEQUENCE. MaxBlobSequenceLength int64 `protobuf:"varint,3,opt,name=max_blob_sequence_length,json=maxBlobSequenceLength,proto3" json:"max_blob_sequence_length,omitempty"` } diff --git a/aiplatform/apiv1/aiplatformpb/training_pipeline.pb.go b/aiplatform/apiv1/aiplatformpb/training_pipeline.pb.go index f20b0f43a61b..2bff807bea79 100644 --- a/aiplatform/apiv1/aiplatformpb/training_pipeline.pb.go +++ b/aiplatform/apiv1/aiplatformpb/training_pipeline.pb.go @@ -42,8 +42,8 @@ const ( // The TrainingPipeline orchestrates tasks associated with training a Model. It // always executes the training task, and optionally may also // export data from Vertex AI's Dataset which becomes the training input, -// [upload][google.cloud.aiplatform.v1.ModelService.UploadModel] the Model to Vertex AI, and evaluate the -// Model. +// [upload][google.cloud.aiplatform.v1.ModelService.UploadModel] the Model to +// Vertex AI, and evaluate the Model. type TrainingPipeline struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -54,44 +54,53 @@ type TrainingPipeline struct { // Required. The user-defined name of this TrainingPipeline. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Specifies Vertex AI owned input data that may be used for training the - // Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make - // clear whether this config is used and if there are any special requirements - // on how it should be filled. If nothing about this config is mentioned in - // the [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition], then it should be assumed that the - // TrainingPipeline does not depend on this configuration. + // Model. The TrainingPipeline's + // [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] + // should make clear whether this config is used and if there are any special + // requirements on how it should be filled. If nothing about this config is + // mentioned in the + // [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition], + // then it should be assumed that the TrainingPipeline does not depend on this + // configuration. InputDataConfig *InputDataConfig `protobuf:"bytes,3,opt,name=input_data_config,json=inputDataConfig,proto3" json:"input_data_config,omitempty"` - // Required. A Google Cloud Storage path to the YAML file that defines the training task - // which is responsible for producing the model artifact, and may also include - // additional auxiliary work. - // The definition files that can be used here are found in + // Required. A Google Cloud Storage path to the YAML file that defines the + // training task which is responsible for producing the model artifact, and + // may also include additional auxiliary work. The definition files that can + // be used here are found in // gs://google-cloud-aiplatform/schema/trainingjob/definition/. // Note: The URI given on output will be immutable and probably different, // including the URI scheme, than the one given on input. The output URI will // point to a location where the user only has a read access. TrainingTaskDefinition string `protobuf:"bytes,4,opt,name=training_task_definition,json=trainingTaskDefinition,proto3" json:"training_task_definition,omitempty"` // Required. The training task's parameter(s), as specified in the - // [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition]'s `inputs`. + // [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition]'s + // `inputs`. TrainingTaskInputs *structpb.Value `protobuf:"bytes,5,opt,name=training_task_inputs,json=trainingTaskInputs,proto3" json:"training_task_inputs,omitempty"` - // Output only. The metadata information as specified in the [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition]'s + // Output only. The metadata information as specified in the + // [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition]'s // `metadata`. This metadata is an auxiliary runtime and final information // about the training task. While the pipeline is running this information is // populated only at a best effort basis. Only present if the - // pipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] contains `metadata` object. + // pipeline's + // [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] + // contains `metadata` object. TrainingTaskMetadata *structpb.Value `protobuf:"bytes,6,opt,name=training_task_metadata,json=trainingTaskMetadata,proto3" json:"training_task_metadata,omitempty"` - // Describes the Model that may be uploaded (via [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel]) + // Describes the Model that may be uploaded (via + // [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel]) // by this TrainingPipeline. The TrainingPipeline's - // [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make clear whether this Model - // description should be populated, and if there are any special requirements - // regarding how it should be filled. If nothing is mentioned in the - // [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition], then it should be assumed that this field - // should not be filled and the training task either uploads the Model without - // a need of this information, or that training task does not support - // uploading a Model as part of the pipeline. - // When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and + // [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] + // should make clear whether this Model description should be populated, and + // if there are any special requirements regarding how it should be filled. If + // nothing is mentioned in the + // [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition], + // then it should be assumed that this field should not be filled and the + // training task either uploads the Model without a need of this information, + // or that training task does not support uploading a Model as part of the + // pipeline. When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and // the trained Model had been uploaded into Vertex AI, then the - // model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is populated. The Model - // is always uploaded into the Project and Location in which this pipeline - // is. + // model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is + // populated. The Model is always uploaded into the Project and Location in + // which this pipeline is. ModelToUpload *Model `protobuf:"bytes,7,opt,name=model_to_upload,json=modelToUpload,proto3" json:"model_to_upload,omitempty"` // Optional. The ID to use for the uploaded Model, which will become the final // component of the model resource name. @@ -99,21 +108,22 @@ type TrainingPipeline struct { // This value may be up to 63 characters, and valid characters are // `[a-z0-9_-]`. The first character cannot be a number or hyphen. ModelId string `protobuf:"bytes,22,opt,name=model_id,json=modelId,proto3" json:"model_id,omitempty"` - // Optional. When specify this field, the `model_to_upload` will not be uploaded as a - // new model, instead, it will become a new version of this `parent_model`. + // Optional. When specify this field, the `model_to_upload` will not be + // uploaded as a new model, instead, it will become a new version of this + // `parent_model`. ParentModel string `protobuf:"bytes,21,opt,name=parent_model,json=parentModel,proto3" json:"parent_model,omitempty"` // Output only. The detailed state of the pipeline. State PipelineState `protobuf:"varint,9,opt,name=state,proto3,enum=google.cloud.aiplatform.v1.PipelineState" json:"state,omitempty"` - // Output only. Only populated when the pipeline's state is `PIPELINE_STATE_FAILED` or - // `PIPELINE_STATE_CANCELLED`. + // Output only. Only populated when the pipeline's state is + // `PIPELINE_STATE_FAILED` or `PIPELINE_STATE_CANCELLED`. Error *status.Status `protobuf:"bytes,10,opt,name=error,proto3" json:"error,omitempty"` // Output only. Time when the TrainingPipeline was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Time when the TrainingPipeline for the first time entered the // `PIPELINE_STATE_RUNNING` state. StartTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - // Output only. Time when the TrainingPipeline entered any of the following states: - // `PIPELINE_STATE_SUCCEEDED`, `PIPELINE_STATE_FAILED`, + // Output only. Time when the TrainingPipeline entered any of the following + // states: `PIPELINE_STATE_SUCCEEDED`, `PIPELINE_STATE_FAILED`, // `PIPELINE_STATE_CANCELLED`. EndTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Time when the TrainingPipeline was most recently updated. @@ -130,7 +140,8 @@ type TrainingPipeline struct { // TrainingPipeline will be secured by this key. // // Note: Model trained by this TrainingPipeline is also secured by this key if - // [model_to_upload][google.cloud.aiplatform.v1.TrainingPipeline.encryption_spec] is not set separately. + // [model_to_upload][google.cloud.aiplatform.v1.TrainingPipeline.encryption_spec] + // is not set separately. EncryptionSpec *EncryptionSpec `protobuf:"bytes,18,opt,name=encryption_spec,json=encryptionSpec,proto3" json:"encryption_spec,omitempty"` } @@ -294,7 +305,9 @@ type InputDataConfig struct { // The instructions how the input data should be split between the // training, validation and test sets. - // If no split type is provided, the [fraction_split][google.cloud.aiplatform.v1.InputDataConfig.fraction_split] is used by default. + // If no split type is provided, the + // [fraction_split][google.cloud.aiplatform.v1.InputDataConfig.fraction_split] + // is used by default. // // Types that are assignable to Split: // @@ -325,9 +338,9 @@ type InputDataConfig struct { // *InputDataConfig_GcsDestination // *InputDataConfig_BigqueryDestination Destination isInputDataConfig_Destination `protobuf_oneof:"destination"` - // Required. The ID of the Dataset in the same Project and Location which data will be - // used to train the Model. The Dataset must use schema compatible with - // Model being trained, and what is compatible should be described in the + // Required. The ID of the Dataset in the same Project and Location which data + // will be used to train the Model. The Dataset must use schema compatible + // with Model being trained, and what is compatible should be described in the // used TrainingPipeline's [training_task_definition] // [google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition]. // For tabular Datasets, all their data is exported to training, to pick @@ -340,9 +353,9 @@ type InputDataConfig struct { // are used in respectively training, validation or test role, depending on // the role of the DataItem they are on (for the auto-assigned that role is // decided by Vertex AI). A filter with same syntax as the one used in - // [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations] may be used, but note - // here it filters across all Annotations of the Dataset, and not just within - // a single DataItem. + // [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations] + // may be used, but note here it filters across all Annotations of the + // Dataset, and not just within a single DataItem. AnnotationsFilter string `protobuf:"bytes,6,opt,name=annotations_filter,json=annotationsFilter,proto3" json:"annotations_filter,omitempty"` // Applicable only to custom training with Datasets that have DataItems and // Annotations. @@ -353,29 +366,40 @@ type InputDataConfig struct { // The schema files that can be used here are found in // gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the // chosen schema must be consistent with - // [metadata][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] of the Dataset specified by + // [metadata][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] of the + // Dataset specified by // [dataset_id][google.cloud.aiplatform.v1.InputDataConfig.dataset_id]. // // Only Annotations that both match this schema and belong to DataItems not // ignored by the split method are used in respectively training, validation // or test role, depending on the role of the DataItem they are on. // - // When used in conjunction with [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter], the Annotations used - // for training are filtered by both [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter] and + // When used in conjunction with + // [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter], + // the Annotations used for training are filtered by both + // [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter] + // and // [annotation_schema_uri][google.cloud.aiplatform.v1.InputDataConfig.annotation_schema_uri]. AnnotationSchemaUri string `protobuf:"bytes,9,opt,name=annotation_schema_uri,json=annotationSchemaUri,proto3" json:"annotation_schema_uri,omitempty"` // Only applicable to Datasets that have SavedQueries. // // The ID of a SavedQuery (annotation set) under the Dataset specified by - // [dataset_id][google.cloud.aiplatform.v1.InputDataConfig.dataset_id] used for filtering Annotations for training. + // [dataset_id][google.cloud.aiplatform.v1.InputDataConfig.dataset_id] used + // for filtering Annotations for training. // // Only Annotations that are associated with this SavedQuery are used in // respectively training. When used in conjunction with - // [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by - // both [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter]. + // [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter], + // the Annotations used for training are filtered by both + // [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] + // and + // [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter]. // - // Only one of [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1.InputDataConfig.annotation_schema_uri] should be - // specified as both of them represent the same thing: problem type. + // Only one of + // [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] + // and + // [annotation_schema_uri][google.cloud.aiplatform.v1.InputDataConfig.annotation_schema_uri] + // should be specified as both of them represent the same thing: problem type. SavedQueryId string `protobuf:"bytes,7,opt,name=saved_query_id,json=savedQueryId,proto3" json:"saved_query_id,omitempty"` // Whether to persist the ML use assignment to data item system labels. PersistMlUseAssignment bool `protobuf:"varint,11,opt,name=persist_ml_use_assignment,json=persistMlUseAssignment,proto3" json:"persist_ml_use_assignment,omitempty"` @@ -697,24 +721,27 @@ type FilterSplit struct { // Required. A filter on DataItems of the Dataset. DataItems that match // this filter are used to train the Model. A filter with same syntax - // as the one used in [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems] may be used. If a - // single DataItem is matched by more than one of the FilterSplit filters, - // then it is assigned to the first set that applies to it in the - // training, validation, test order. + // as the one used in + // [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems] + // may be used. If a single DataItem is matched by more than one of the + // FilterSplit filters, then it is assigned to the first set that applies to + // it in the training, validation, test order. TrainingFilter string `protobuf:"bytes,1,opt,name=training_filter,json=trainingFilter,proto3" json:"training_filter,omitempty"` // Required. A filter on DataItems of the Dataset. DataItems that match // this filter are used to validate the Model. A filter with same syntax - // as the one used in [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems] may be used. If a - // single DataItem is matched by more than one of the FilterSplit filters, - // then it is assigned to the first set that applies to it in the - // training, validation, test order. + // as the one used in + // [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems] + // may be used. If a single DataItem is matched by more than one of the + // FilterSplit filters, then it is assigned to the first set that applies to + // it in the training, validation, test order. ValidationFilter string `protobuf:"bytes,2,opt,name=validation_filter,json=validationFilter,proto3" json:"validation_filter,omitempty"` // Required. A filter on DataItems of the Dataset. DataItems that match // this filter are used to test the Model. A filter with same syntax - // as the one used in [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems] may be used. If a - // single DataItem is matched by more than one of the FilterSplit filters, - // then it is assigned to the first set that applies to it in the - // training, validation, test order. + // as the one used in + // [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems] + // may be used. If a single DataItem is matched by more than one of the + // FilterSplit filters, then it is assigned to the first set that applies to + // it in the training, validation, test order. TestFilter string `protobuf:"bytes,3,opt,name=test_filter,json=testFilter,proto3" json:"test_filter,omitempty"` } diff --git a/aiplatform/apiv1/aiplatformpb/unmanaged_container_model.pb.go b/aiplatform/apiv1/aiplatformpb/unmanaged_container_model.pb.go index cc8ca3913afb..db5c8b615d0a 100644 --- a/aiplatform/apiv1/aiplatformpb/unmanaged_container_model.pb.go +++ b/aiplatform/apiv1/aiplatformpb/unmanaged_container_model.pb.go @@ -48,8 +48,8 @@ type UnmanagedContainerModel struct { ArtifactUri string `protobuf:"bytes,1,opt,name=artifact_uri,json=artifactUri,proto3" json:"artifact_uri,omitempty"` // Contains the schemata used in Model's predictions and explanations PredictSchemata *PredictSchemata `protobuf:"bytes,2,opt,name=predict_schemata,json=predictSchemata,proto3" json:"predict_schemata,omitempty"` - // Input only. The specification of the container that is to be used when deploying - // this Model. + // Input only. The specification of the container that is to be used when + // deploying this Model. ContainerSpec *ModelContainerSpec `protobuf:"bytes,3,opt,name=container_spec,json=containerSpec,proto3" json:"container_spec,omitempty"` } diff --git a/aiplatform/apiv1/aiplatformpb/vizier_service.pb.go b/aiplatform/apiv1/aiplatformpb/vizier_service.pb.go index 7fb9d13ff2f8..4add53a7e5fa 100644 --- a/aiplatform/apiv1/aiplatformpb/vizier_service.pb.go +++ b/aiplatform/apiv1/aiplatformpb/vizier_service.pb.go @@ -43,7 +43,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [VizierService.GetStudy][google.cloud.aiplatform.v1.VizierService.GetStudy]. +// Request message for +// [VizierService.GetStudy][google.cloud.aiplatform.v1.VizierService.GetStudy]. type GetStudyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -93,7 +94,8 @@ func (x *GetStudyRequest) GetName() string { return "" } -// Request message for [VizierService.CreateStudy][google.cloud.aiplatform.v1.VizierService.CreateStudy]. +// Request message for +// [VizierService.CreateStudy][google.cloud.aiplatform.v1.VizierService.CreateStudy]. type CreateStudyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -152,7 +154,8 @@ func (x *CreateStudyRequest) GetStudy() *Study { return nil } -// Request message for [VizierService.ListStudies][google.cloud.aiplatform.v1.VizierService.ListStudies]. +// Request message for +// [VizierService.ListStudies][google.cloud.aiplatform.v1.VizierService.ListStudies]. type ListStudiesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -222,7 +225,8 @@ func (x *ListStudiesRequest) GetPageSize() int32 { return 0 } -// Response message for [VizierService.ListStudies][google.cloud.aiplatform.v1.VizierService.ListStudies]. +// Response message for +// [VizierService.ListStudies][google.cloud.aiplatform.v1.VizierService.ListStudies]. type ListStudiesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -282,7 +286,8 @@ func (x *ListStudiesResponse) GetNextPageToken() string { return "" } -// Request message for [VizierService.DeleteStudy][google.cloud.aiplatform.v1.VizierService.DeleteStudy]. +// Request message for +// [VizierService.DeleteStudy][google.cloud.aiplatform.v1.VizierService.DeleteStudy]. type DeleteStudyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -332,7 +337,8 @@ func (x *DeleteStudyRequest) GetName() string { return "" } -// Request message for [VizierService.LookupStudy][google.cloud.aiplatform.v1.VizierService.LookupStudy]. +// Request message for +// [VizierService.LookupStudy][google.cloud.aiplatform.v1.VizierService.LookupStudy]. type LookupStudyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -391,7 +397,8 @@ func (x *LookupStudyRequest) GetDisplayName() string { return "" } -// Request message for [VizierService.SuggestTrials][google.cloud.aiplatform.v1.VizierService.SuggestTrials]. +// Request message for +// [VizierService.SuggestTrials][google.cloud.aiplatform.v1.VizierService.SuggestTrials]. type SuggestTrialsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -463,7 +470,8 @@ func (x *SuggestTrialsRequest) GetClientId() string { return "" } -// Response message for [VizierService.SuggestTrials][google.cloud.aiplatform.v1.VizierService.SuggestTrials]. +// Response message for +// [VizierService.SuggestTrials][google.cloud.aiplatform.v1.VizierService.SuggestTrials]. type SuggestTrialsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -601,7 +609,8 @@ func (x *SuggestTrialsMetadata) GetClientId() string { return "" } -// Request message for [VizierService.CreateTrial][google.cloud.aiplatform.v1.VizierService.CreateTrial]. +// Request message for +// [VizierService.CreateTrial][google.cloud.aiplatform.v1.VizierService.CreateTrial]. type CreateTrialRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -660,7 +669,8 @@ func (x *CreateTrialRequest) GetTrial() *Trial { return nil } -// Request message for [VizierService.GetTrial][google.cloud.aiplatform.v1.VizierService.GetTrial]. +// Request message for +// [VizierService.GetTrial][google.cloud.aiplatform.v1.VizierService.GetTrial]. type GetTrialRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -711,7 +721,8 @@ func (x *GetTrialRequest) GetName() string { return "" } -// Request message for [VizierService.ListTrials][google.cloud.aiplatform.v1.VizierService.ListTrials]. +// Request message for +// [VizierService.ListTrials][google.cloud.aiplatform.v1.VizierService.ListTrials]. type ListTrialsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -781,7 +792,8 @@ func (x *ListTrialsRequest) GetPageSize() int32 { return 0 } -// Response message for [VizierService.ListTrials][google.cloud.aiplatform.v1.VizierService.ListTrials]. +// Response message for +// [VizierService.ListTrials][google.cloud.aiplatform.v1.VizierService.ListTrials]. type ListTrialsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -841,7 +853,8 @@ func (x *ListTrialsResponse) GetNextPageToken() string { return "" } -// Request message for [VizierService.AddTrialMeasurement][google.cloud.aiplatform.v1.VizierService.AddTrialMeasurement]. +// Request message for +// [VizierService.AddTrialMeasurement][google.cloud.aiplatform.v1.VizierService.AddTrialMeasurement]. type AddTrialMeasurementRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -901,7 +914,8 @@ func (x *AddTrialMeasurementRequest) GetMeasurement() *Measurement { return nil } -// Request message for [VizierService.CompleteTrial][google.cloud.aiplatform.v1.VizierService.CompleteTrial]. +// Request message for +// [VizierService.CompleteTrial][google.cloud.aiplatform.v1.VizierService.CompleteTrial]. type CompleteTrialRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -983,7 +997,8 @@ func (x *CompleteTrialRequest) GetInfeasibleReason() string { return "" } -// Request message for [VizierService.DeleteTrial][google.cloud.aiplatform.v1.VizierService.DeleteTrial]. +// Request message for +// [VizierService.DeleteTrial][google.cloud.aiplatform.v1.VizierService.DeleteTrial]. type DeleteTrialRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1034,7 +1049,8 @@ func (x *DeleteTrialRequest) GetName() string { return "" } -// Request message for [VizierService.CheckTrialEarlyStoppingState][google.cloud.aiplatform.v1.VizierService.CheckTrialEarlyStoppingState]. +// Request message for +// [VizierService.CheckTrialEarlyStoppingState][google.cloud.aiplatform.v1.VizierService.CheckTrialEarlyStoppingState]. type CheckTrialEarlyStoppingStateRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1085,7 +1101,8 @@ func (x *CheckTrialEarlyStoppingStateRequest) GetTrialName() string { return "" } -// Response message for [VizierService.CheckTrialEarlyStoppingState][google.cloud.aiplatform.v1.VizierService.CheckTrialEarlyStoppingState]. +// Response message for +// [VizierService.CheckTrialEarlyStoppingState][google.cloud.aiplatform.v1.VizierService.CheckTrialEarlyStoppingState]. type CheckTrialEarlyStoppingStateResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1203,7 +1220,8 @@ func (x *CheckTrialEarlyStoppingStateMetatdata) GetTrial() string { return "" } -// Request message for [VizierService.StopTrial][google.cloud.aiplatform.v1.VizierService.StopTrial]. +// Request message for +// [VizierService.StopTrial][google.cloud.aiplatform.v1.VizierService.StopTrial]. type StopTrialRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1254,7 +1272,8 @@ func (x *StopTrialRequest) GetName() string { return "" } -// Request message for [VizierService.ListOptimalTrials][google.cloud.aiplatform.v1.VizierService.ListOptimalTrials]. +// Request message for +// [VizierService.ListOptimalTrials][google.cloud.aiplatform.v1.VizierService.ListOptimalTrials]. type ListOptimalTrialsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1303,7 +1322,8 @@ func (x *ListOptimalTrialsRequest) GetParent() string { return "" } -// Response message for [VizierService.ListOptimalTrials][google.cloud.aiplatform.v1.VizierService.ListOptimalTrials]. +// Response message for +// [VizierService.ListOptimalTrials][google.cloud.aiplatform.v1.VizierService.ListOptimalTrials]. type ListOptimalTrialsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/aiplatform/apiv1/doc.go b/aiplatform/apiv1/doc.go index efba75a2e958..2838c9c9bf8c 100644 --- a/aiplatform/apiv1/doc.go +++ b/aiplatform/apiv1/doc.go @@ -20,6 +20,11 @@ // Train high-quality custom machine learning models with minimal machine // learning expertise and effort. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package aiplatform // import "cloud.google.com/go/aiplatform/apiv1" import ( diff --git a/aiplatform/apiv1/featurestore_online_serving_client.go b/aiplatform/apiv1/featurestore_online_serving_client.go index da9724a96059..94146d572dee 100644 --- a/aiplatform/apiv1/featurestore_online_serving_client.go +++ b/aiplatform/apiv1/featurestore_online_serving_client.go @@ -335,6 +335,7 @@ func (c *featurestoreOnlineServingGRPCClient) StreamingReadFeatureValues(ctx con md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "entity_type", url.QueryEscape(req.GetEntityType()))) ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).StreamingReadFeatureValues[0:len((*c.CallOptions).StreamingReadFeatureValues):len((*c.CallOptions).StreamingReadFeatureValues)], opts...) var resp aiplatformpb.FeaturestoreOnlineServingService_StreamingReadFeatureValuesClient err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { var err error diff --git a/aiplatform/apiv1/gapic_metadata.json b/aiplatform/apiv1/gapic_metadata.json index 5763a94e8a92..cbe93f3708dd 100644 --- a/aiplatform/apiv1/gapic_metadata.json +++ b/aiplatform/apiv1/gapic_metadata.json @@ -1682,6 +1682,11 @@ "ReadTensorboardTimeSeriesData" ] }, + "ReadTensorboardUsage": { + "methods": [ + "ReadTensorboardUsage" + ] + }, "SetIamPolicy": { "methods": [ "SetIamPolicy" diff --git a/aiplatform/apiv1/index_client.go b/aiplatform/apiv1/index_client.go index dc0d12a7e4f7..a36e1bf663eb 100644 --- a/aiplatform/apiv1/index_client.go +++ b/aiplatform/apiv1/index_client.go @@ -197,7 +197,8 @@ func (c *IndexClient) UpdateIndexOperation(name string) *UpdateIndexOperation { // DeleteIndex deletes an Index. // An Index can only be deleted when all its -// DeployedIndexes had been undeployed. +// DeployedIndexes had +// been undeployed. func (c *IndexClient) DeleteIndex(ctx context.Context, req *aiplatformpb.DeleteIndexRequest, opts ...gax.CallOption) (*DeleteIndexOperation, error) { return c.internalClient.DeleteIndex(ctx, req, opts...) } diff --git a/aiplatform/apiv1/job_client.go b/aiplatform/apiv1/job_client.go index 9c05d7f5f2ca..acddc69d79b6 100644 --- a/aiplatform/apiv1/job_client.go +++ b/aiplatform/apiv1/job_client.go @@ -259,12 +259,15 @@ func (c *JobClient) DeleteCustomJobOperation(name string) *DeleteCustomJobOperat // CancelCustomJob cancels a CustomJob. // Starts asynchronous cancellation on the CustomJob. The server // makes a best effort to cancel the job, but success is not -// guaranteed. Clients can use JobService.GetCustomJob or -// other methods to check whether the cancellation succeeded or whether the +// guaranteed. Clients can use +// JobService.GetCustomJob +// or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On successful cancellation, // the CustomJob is not deleted; instead it becomes a job with -// a CustomJob.error value with a google.rpc.Status.code of 1, -// corresponding to Code.CANCELLED, and CustomJob.state is set to +// a CustomJob.error value with +// a google.rpc.Status.code of 1, corresponding to +// Code.CANCELLED, and +// CustomJob.state is set to // CANCELLED. func (c *JobClient) CancelCustomJob(ctx context.Context, req *aiplatformpb.CancelCustomJobRequest, opts ...gax.CallOption) error { return c.internalClient.CancelCustomJob(ctx, req, opts...) @@ -330,13 +333,17 @@ func (c *JobClient) DeleteHyperparameterTuningJobOperation(name string) *DeleteH // CancelHyperparameterTuningJob cancels a HyperparameterTuningJob. // Starts asynchronous cancellation on the HyperparameterTuningJob. The server // makes a best effort to cancel the job, but success is not -// guaranteed. Clients can use JobService.GetHyperparameterTuningJob or -// other methods to check whether the cancellation succeeded or whether the +// guaranteed. Clients can use +// JobService.GetHyperparameterTuningJob +// or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On successful cancellation, // the HyperparameterTuningJob is not deleted; instead it becomes a job with -// a HyperparameterTuningJob.error value with a google.rpc.Status.code -// of 1, corresponding to Code.CANCELLED, and -// HyperparameterTuningJob.state is set to CANCELLED. +// a +// HyperparameterTuningJob.error +// value with a google.rpc.Status.code of 1, +// corresponding to Code.CANCELLED, and +// HyperparameterTuningJob.state +// is set to CANCELLED. func (c *JobClient) CancelHyperparameterTuningJob(ctx context.Context, req *aiplatformpb.CancelHyperparameterTuningJobRequest, opts ...gax.CallOption) error { return c.internalClient.CancelHyperparameterTuningJob(ctx, req, opts...) } @@ -373,12 +380,14 @@ func (c *JobClient) DeleteBatchPredictionJobOperation(name string) *DeleteBatchP // // Starts asynchronous cancellation on the BatchPredictionJob. The server // makes the best effort to cancel the job, but success is not -// guaranteed. Clients can use JobService.GetBatchPredictionJob or -// other methods to check whether the cancellation succeeded or whether the +// guaranteed. Clients can use +// JobService.GetBatchPredictionJob +// or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On a successful cancellation, // the BatchPredictionJob is not deleted;instead its -// BatchPredictionJob.state is set to CANCELLED. Any files already -// outputted by the job are not deleted. +// BatchPredictionJob.state +// is set to CANCELLED. Any files already outputted by the job are not +// deleted. func (c *JobClient) CancelBatchPredictionJob(ctx context.Context, req *aiplatformpb.CancelBatchPredictionJobRequest, opts ...gax.CallOption) error { return c.internalClient.CancelBatchPredictionJob(ctx, req, opts...) } @@ -428,7 +437,8 @@ func (c *JobClient) DeleteModelDeploymentMonitoringJobOperation(name string) *De // PauseModelDeploymentMonitoringJob pauses a ModelDeploymentMonitoringJob. If the job is running, the server // makes a best effort to cancel the job. Will mark -// ModelDeploymentMonitoringJob.state to ‘PAUSED’. +// ModelDeploymentMonitoringJob.state +// to ‘PAUSED’. func (c *JobClient) PauseModelDeploymentMonitoringJob(ctx context.Context, req *aiplatformpb.PauseModelDeploymentMonitoringJobRequest, opts ...gax.CallOption) error { return c.internalClient.PauseModelDeploymentMonitoringJob(ctx, req, opts...) } diff --git a/aiplatform/apiv1/model_client.go b/aiplatform/apiv1/model_client.go index f214929d36a7..6a43c877eadc 100644 --- a/aiplatform/apiv1/model_client.go +++ b/aiplatform/apiv1/model_client.go @@ -221,9 +221,12 @@ func (c *ModelClient) UpdateModel(ctx context.Context, req *aiplatformpb.UpdateM // DeleteModel deletes a Model. // -// A model cannot be deleted if any Endpoint resource has a -// DeployedModel based on the model in its -// deployed_models field. +// A model cannot be deleted if any +// Endpoint resource has a +// DeployedModel based on the +// model in its +// deployed_models +// field. func (c *ModelClient) DeleteModel(ctx context.Context, req *aiplatformpb.DeleteModelRequest, opts ...gax.CallOption) (*DeleteModelOperation, error) { return c.internalClient.DeleteModel(ctx, req, opts...) } @@ -238,7 +241,8 @@ func (c *ModelClient) DeleteModelOperation(name string) *DeleteModelOperation { // // Model version can only be deleted if there are no DeployedModels // created from it. Deleting the only version in the Model is not allowed. Use -// DeleteModel for deleting the Model instead. +// DeleteModel for +// deleting the Model instead. func (c *ModelClient) DeleteModelVersion(ctx context.Context, req *aiplatformpb.DeleteModelVersionRequest, opts ...gax.CallOption) (*DeleteModelVersionOperation, error) { return c.internalClient.DeleteModelVersion(ctx, req, opts...) } @@ -256,7 +260,8 @@ func (c *ModelClient) MergeVersionAliases(ctx context.Context, req *aiplatformpb // ExportModel exports a trained, exportable Model to a location specified by the // user. A Model is considered to be exportable if it has at least one -// [supported export format][google.cloud.aiplatform.v1.Model.supported_export_formats]. +// [supported export +// format][google.cloud.aiplatform.v1.Model.supported_export_formats]. func (c *ModelClient) ExportModel(ctx context.Context, req *aiplatformpb.ExportModelRequest, opts ...gax.CallOption) (*ExportModelOperation, error) { return c.internalClient.ExportModel(ctx, req, opts...) } diff --git a/aiplatform/apiv1/pipeline_client.go b/aiplatform/apiv1/pipeline_client.go index 06d7c2e12ae8..bca6242af143 100644 --- a/aiplatform/apiv1/pipeline_client.go +++ b/aiplatform/apiv1/pipeline_client.go @@ -203,13 +203,17 @@ func (c *PipelineClient) DeleteTrainingPipelineOperation(name string) *DeleteTra // CancelTrainingPipeline cancels a TrainingPipeline. // Starts asynchronous cancellation on the TrainingPipeline. The server // makes a best effort to cancel the pipeline, but success is not -// guaranteed. Clients can use PipelineService.GetTrainingPipeline or -// other methods to check whether the cancellation succeeded or whether the +// guaranteed. Clients can use +// PipelineService.GetTrainingPipeline +// or other methods to check whether the cancellation succeeded or whether the // pipeline completed despite cancellation. On successful cancellation, // the TrainingPipeline is not deleted; instead it becomes a pipeline with -// a TrainingPipeline.error value with a google.rpc.Status.code of 1, -// corresponding to Code.CANCELLED, and TrainingPipeline.state is set to -// CANCELLED. +// a +// TrainingPipeline.error +// value with a google.rpc.Status.code of 1, +// corresponding to Code.CANCELLED, and +// TrainingPipeline.state +// is set to CANCELLED. func (c *PipelineClient) CancelTrainingPipeline(ctx context.Context, req *aiplatformpb.CancelTrainingPipelineRequest, opts ...gax.CallOption) error { return c.internalClient.CancelTrainingPipeline(ctx, req, opts...) } @@ -243,12 +247,15 @@ func (c *PipelineClient) DeletePipelineJobOperation(name string) *DeletePipeline // CancelPipelineJob cancels a PipelineJob. // Starts asynchronous cancellation on the PipelineJob. The server // makes a best effort to cancel the pipeline, but success is not -// guaranteed. Clients can use PipelineService.GetPipelineJob or -// other methods to check whether the cancellation succeeded or whether the +// guaranteed. Clients can use +// PipelineService.GetPipelineJob +// or other methods to check whether the cancellation succeeded or whether the // pipeline completed despite cancellation. On successful cancellation, // the PipelineJob is not deleted; instead it becomes a pipeline with -// a PipelineJob.error value with a google.rpc.Status.code of 1, -// corresponding to Code.CANCELLED, and PipelineJob.state is set to +// a PipelineJob.error value +// with a google.rpc.Status.code of 1, corresponding +// to Code.CANCELLED, and +// PipelineJob.state is set to // CANCELLED. func (c *PipelineClient) CancelPipelineJob(ctx context.Context, req *aiplatformpb.CancelPipelineJobRequest, opts ...gax.CallOption) error { return c.internalClient.CancelPipelineJob(ctx, req, opts...) diff --git a/aiplatform/apiv1/prediction_client.go b/aiplatform/apiv1/prediction_client.go index c0ac47b9ef52..02da6218059b 100644 --- a/aiplatform/apiv1/prediction_client.go +++ b/aiplatform/apiv1/prediction_client.go @@ -150,21 +150,25 @@ func (c *PredictionClient) Predict(ctx context.Context, req *aiplatformpb.Predic // // The response includes the following HTTP headers: // -// X-Vertex-AI-Endpoint-Id: ID of the Endpoint that served this +// X-Vertex-AI-Endpoint-Id: ID of the +// Endpoint that served this // prediction. // -// X-Vertex-AI-Deployed-Model-Id: ID of the Endpoint’s DeployedModel -// that served this prediction. +// X-Vertex-AI-Deployed-Model-Id: ID of the Endpoint’s +// DeployedModel that served this +// prediction. func (c *PredictionClient) RawPredict(ctx context.Context, req *aiplatformpb.RawPredictRequest, opts ...gax.CallOption) (*httpbodypb.HttpBody, error) { return c.internalClient.RawPredict(ctx, req, opts...) } // Explain perform an online explanation. // -// If deployed_model_id is specified, -// the corresponding DeployModel must have +// If +// deployed_model_id +// is specified, the corresponding DeployModel must have // explanation_spec -// populated. If deployed_model_id +// populated. If +// deployed_model_id // is not specified, all DeployedModels must have // explanation_spec // populated. Only deployed AutoML tabular Models have diff --git a/aiplatform/apiv1/tensorboard_client.go b/aiplatform/apiv1/tensorboard_client.go index f3a69ff26bb3..adb337e36444 100644 --- a/aiplatform/apiv1/tensorboard_client.go +++ b/aiplatform/apiv1/tensorboard_client.go @@ -45,6 +45,7 @@ var newTensorboardClientHook clientHook type TensorboardCallOptions struct { CreateTensorboard []gax.CallOption GetTensorboard []gax.CallOption + ReadTensorboardUsage []gax.CallOption UpdateTensorboard []gax.CallOption ListTensorboards []gax.CallOption DeleteTensorboard []gax.CallOption @@ -99,6 +100,7 @@ func defaultTensorboardCallOptions() *TensorboardCallOptions { return &TensorboardCallOptions{ CreateTensorboard: []gax.CallOption{}, GetTensorboard: []gax.CallOption{}, + ReadTensorboardUsage: []gax.CallOption{}, UpdateTensorboard: []gax.CallOption{}, ListTensorboards: []gax.CallOption{}, DeleteTensorboard: []gax.CallOption{}, @@ -146,6 +148,7 @@ type internalTensorboardClient interface { CreateTensorboard(context.Context, *aiplatformpb.CreateTensorboardRequest, ...gax.CallOption) (*CreateTensorboardOperation, error) CreateTensorboardOperation(name string) *CreateTensorboardOperation GetTensorboard(context.Context, *aiplatformpb.GetTensorboardRequest, ...gax.CallOption) (*aiplatformpb.Tensorboard, error) + ReadTensorboardUsage(context.Context, *aiplatformpb.ReadTensorboardUsageRequest, ...gax.CallOption) (*aiplatformpb.ReadTensorboardUsageResponse, error) UpdateTensorboard(context.Context, *aiplatformpb.UpdateTensorboardRequest, ...gax.CallOption) (*UpdateTensorboardOperation, error) UpdateTensorboardOperation(name string) *UpdateTensorboardOperation ListTensorboards(context.Context, *aiplatformpb.ListTensorboardsRequest, ...gax.CallOption) *TensorboardIterator @@ -245,6 +248,11 @@ func (c *TensorboardClient) GetTensorboard(ctx context.Context, req *aiplatformp return c.internalClient.GetTensorboard(ctx, req, opts...) } +// ReadTensorboardUsage returns a list of monthly active users for a given TensorBoard instance. +func (c *TensorboardClient) ReadTensorboardUsage(ctx context.Context, req *aiplatformpb.ReadTensorboardUsageRequest, opts ...gax.CallOption) (*aiplatformpb.ReadTensorboardUsageResponse, error) { + return c.internalClient.ReadTensorboardUsage(ctx, req, opts...) +} + // UpdateTensorboard updates a Tensorboard. func (c *TensorboardClient) UpdateTensorboard(ctx context.Context, req *aiplatformpb.UpdateTensorboardRequest, opts ...gax.CallOption) (*UpdateTensorboardOperation, error) { return c.internalClient.UpdateTensorboard(ctx, req, opts...) @@ -377,16 +385,16 @@ func (c *TensorboardClient) DeleteTensorboardTimeSeriesOperation(name string) *D // BatchReadTensorboardTimeSeriesData reads multiple TensorboardTimeSeries’ data. The data point number limit is // 1000 for scalars, 100 for tensors and blob references. If the number of -// data points stored is less than the limit, all data will be returned. -// Otherwise, that limit number of data points will be randomly selected from +// data points stored is less than the limit, all data is returned. +// Otherwise, the number limit of data points is randomly selected from // this time series and returned. func (c *TensorboardClient) BatchReadTensorboardTimeSeriesData(ctx context.Context, req *aiplatformpb.BatchReadTensorboardTimeSeriesDataRequest, opts ...gax.CallOption) (*aiplatformpb.BatchReadTensorboardTimeSeriesDataResponse, error) { return c.internalClient.BatchReadTensorboardTimeSeriesData(ctx, req, opts...) } // ReadTensorboardTimeSeriesData reads a TensorboardTimeSeries’ data. By default, if the number of data -// points stored is less than 1000, all data will be returned. Otherwise, 1000 -// data points will be randomly selected from this time series and returned. +// points stored is less than 1000, all data is returned. Otherwise, 1000 +// data points is randomly selected from this time series and returned. // This value can be changed by changing max_data_points, which can’t be // greater than 10k. func (c *TensorboardClient) ReadTensorboardTimeSeriesData(ctx context.Context, req *aiplatformpb.ReadTensorboardTimeSeriesDataRequest, opts ...gax.CallOption) (*aiplatformpb.ReadTensorboardTimeSeriesDataResponse, error) { @@ -402,15 +410,13 @@ func (c *TensorboardClient) ReadTensorboardBlobData(ctx context.Context, req *ai } // WriteTensorboardExperimentData write time series data points of multiple TensorboardTimeSeries in multiple -// TensorboardRun’s. If any data fail to be ingested, an error will be -// returned. +// TensorboardRun’s. If any data fail to be ingested, an error is returned. func (c *TensorboardClient) WriteTensorboardExperimentData(ctx context.Context, req *aiplatformpb.WriteTensorboardExperimentDataRequest, opts ...gax.CallOption) (*aiplatformpb.WriteTensorboardExperimentDataResponse, error) { return c.internalClient.WriteTensorboardExperimentData(ctx, req, opts...) } // WriteTensorboardRunData write time series data points into multiple TensorboardTimeSeries under -// a TensorboardRun. If any data fail to be ingested, an error will be -// returned. +// a TensorboardRun. If any data fail to be ingested, an error is returned. func (c *TensorboardClient) WriteTensorboardRunData(ctx context.Context, req *aiplatformpb.WriteTensorboardRunDataRequest, opts ...gax.CallOption) (*aiplatformpb.WriteTensorboardRunDataResponse, error) { return c.internalClient.WriteTensorboardRunData(ctx, req, opts...) } @@ -624,6 +630,23 @@ func (c *tensorboardGRPCClient) GetTensorboard(ctx context.Context, req *aiplatf return resp, nil } +func (c *tensorboardGRPCClient) ReadTensorboardUsage(ctx context.Context, req *aiplatformpb.ReadTensorboardUsageRequest, opts ...gax.CallOption) (*aiplatformpb.ReadTensorboardUsageResponse, error) { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "tensorboard", url.QueryEscape(req.GetTensorboard()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).ReadTensorboardUsage[0:len((*c.CallOptions).ReadTensorboardUsage):len((*c.CallOptions).ReadTensorboardUsage)], opts...) + var resp *aiplatformpb.ReadTensorboardUsageResponse + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.tensorboardClient.ReadTensorboardUsage(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return resp, nil +} + func (c *tensorboardGRPCClient) UpdateTensorboard(ctx context.Context, req *aiplatformpb.UpdateTensorboardRequest, opts ...gax.CallOption) (*UpdateTensorboardOperation, error) { md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "tensorboard.name", url.QueryEscape(req.GetTensorboard().GetName()))) @@ -1124,6 +1147,7 @@ func (c *tensorboardGRPCClient) ReadTensorboardBlobData(ctx context.Context, req md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "time_series", url.QueryEscape(req.GetTimeSeries()))) ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).ReadTensorboardBlobData[0:len((*c.CallOptions).ReadTensorboardBlobData):len((*c.CallOptions).ReadTensorboardBlobData)], opts...) var resp aiplatformpb.TensorboardService_ReadTensorboardBlobDataClient err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { var err error diff --git a/aiplatform/apiv1/tensorboard_client_example_test.go b/aiplatform/apiv1/tensorboard_client_example_test.go index daf3b0162008..72abb0b7498d 100644 --- a/aiplatform/apiv1/tensorboard_client_example_test.go +++ b/aiplatform/apiv1/tensorboard_client_example_test.go @@ -99,6 +99,31 @@ func ExampleTensorboardClient_GetTensorboard() { _ = resp } +func ExampleTensorboardClient_ReadTensorboardUsage() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := aiplatform.NewTensorboardClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ReadTensorboardUsageRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/aiplatform/apiv1/aiplatformpb#ReadTensorboardUsageRequest. + } + resp, err := c.ReadTensorboardUsage(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + func ExampleTensorboardClient_UpdateTensorboard() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. diff --git a/aiplatform/apiv1beta1/aiplatformpb/annotation.pb.go b/aiplatform/apiv1beta1/aiplatformpb/annotation.pb.go index d336ac2946a8..81f2759515f8 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/annotation.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/annotation.pb.go @@ -47,8 +47,9 @@ type Annotation struct { // Output only. Resource name of the Annotation. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Required. Google Cloud Storage URI points to a YAML file describing [payload][google.cloud.aiplatform.v1beta1.Annotation.payload]. The - // schema is defined as an [OpenAPI 3.0.2 Schema + // Required. Google Cloud Storage URI points to a YAML file describing + // [payload][google.cloud.aiplatform.v1beta1.Annotation.payload]. The schema + // is defined as an [OpenAPI 3.0.2 Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). // The schema files that can be used here are found in // gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the @@ -62,12 +63,13 @@ type Annotation struct { CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when this Annotation was last updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // Optional. Used to perform consistent read-modify-write updates. If not set, a blind - // "overwrite" update happens. + // Optional. Used to perform consistent read-modify-write updates. If not set, + // a blind "overwrite" update happens. Etag string `protobuf:"bytes,8,opt,name=etag,proto3" json:"etag,omitempty"` // Output only. The source of the Annotation. AnnotationSource *UserActionReference `protobuf:"bytes,5,opt,name=annotation_source,json=annotationSource,proto3" json:"annotation_source,omitempty"` - // Optional. The labels with user-defined metadata to organize your Annotations. + // Optional. The labels with user-defined metadata to organize your + // Annotations. // // Label keys and values can be no longer than 64 characters // (Unicode codepoints), can only contain lowercase letters, numeric @@ -84,7 +86,8 @@ type Annotation struct { // If not set, the Annotation is not visible in the UI. // // - "aiplatform.googleapis.com/payload_schema": - // output only, its value is the [payload_schema's][google.cloud.aiplatform.v1beta1.Annotation.payload_schema_uri] + // output only, its value is the + // [payload_schema's][google.cloud.aiplatform.v1beta1.Annotation.payload_schema_uri] // title. 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"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/annotation_spec.pb.go b/aiplatform/apiv1beta1/aiplatformpb/annotation_spec.pb.go index 132081748dfe..ef1a97ba696b 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/annotation_spec.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/annotation_spec.pb.go @@ -53,8 +53,8 @@ type AnnotationSpec struct { CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when AnnotationSpec was last updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // Optional. Used to perform consistent read-modify-write updates. If not set, a blind - // "overwrite" update happens. + // Optional. Used to perform consistent read-modify-write updates. If not set, + // a blind "overwrite" update happens. Etag string `protobuf:"bytes,5,opt,name=etag,proto3" json:"etag,omitempty"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/batch_prediction_job.pb.go b/aiplatform/apiv1beta1/aiplatformpb/batch_prediction_job.pb.go index 7e906f4a7152..2d319b3729bb 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/batch_prediction_job.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/batch_prediction_job.pb.go @@ -39,10 +39,12 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// A job that uses a [Model][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model] to produce predictions -// on multiple [input instances][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config]. If -// predictions for significant portion of the instances fail, the job may finish -// without attempting predictions for all remaining instances. +// A job that uses a +// [Model][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model] to produce +// predictions on multiple [input +// instances][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config]. +// If predictions for significant portion of the instances fail, the job may +// finish without attempting predictions for all remaining instances. type BatchPredictionJob struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -61,15 +63,16 @@ type BatchPredictionJob struct { // The model resource name may contain version id or version alias to specify // the version, if no version is specified, the default version will be used. Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"` - // Output only. The version ID of the Model that produces the predictions via this job. + // Output only. The version ID of the Model that produces the predictions via + // this job. ModelVersionId string `protobuf:"bytes,30,opt,name=model_version_id,json=modelVersionId,proto3" json:"model_version_id,omitempty"` // Contains model information necessary to perform batch prediction without // requiring uploading to model registry. // Exactly one of model and unmanaged_container_model must be set. UnmanagedContainerModel *UnmanagedContainerModel `protobuf:"bytes,28,opt,name=unmanaged_container_model,json=unmanagedContainerModel,proto3" json:"unmanaged_container_model,omitempty"` - // Required. Input configuration of the instances on which predictions are performed. - // The schema of any single instance may be specified via - // the [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model] + // Required. Input configuration of the instances on which predictions are + // performed. The schema of any single instance may be specified via the + // [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model] // [PredictSchemata's][google.cloud.aiplatform.v1beta1.Model.predict_schemata] // [instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]. InputConfig *BatchPredictionJob_InputConfig `protobuf:"bytes,4,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"` @@ -77,7 +80,8 @@ type BatchPredictionJob struct { // prediction instances that are sent to the Model. InstanceConfig *BatchPredictionJob_InstanceConfig `protobuf:"bytes,27,opt,name=instance_config,json=instanceConfig,proto3" json:"instance_config,omitempty"` // The parameters that govern the predictions. The schema of the parameters - // may be specified via the [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model] + // may be specified via the + // [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model] // [PredictSchemata's][google.cloud.aiplatform.v1beta1.Model.predict_schemata] // [parameters_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.parameters_schema_uri]. ModelParameters *structpb.Value `protobuf:"bytes,5,opt,name=model_parameters,json=modelParameters,proto3" json:"model_parameters,omitempty"` @@ -91,7 +95,8 @@ type BatchPredictionJob struct { // [prediction_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.prediction_schema_uri]. OutputConfig *BatchPredictionJob_OutputConfig `protobuf:"bytes,6,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"` // The config of resources used by the Model during the batch prediction. If - // the Model [supports][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types] + // the Model + // [supports][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types] // DEDICATED_RESOURCES this config may be provided (and the job will use these // resources), if the Model doesn't support AUTOMATIC_RESOURCES, this config // must be provided. @@ -104,33 +109,47 @@ type BatchPredictionJob struct { // Users deploying the Model must have the `iam.serviceAccounts.actAs` // permission on this service account. ServiceAccount string `protobuf:"bytes,29,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` - // Immutable. Parameters configuring the batch behavior. Currently only applicable when - // [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does - // the tuning itself). + // Immutable. Parameters configuring the batch behavior. Currently only + // applicable when + // [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] + // are used (in other cases Vertex AI does the tuning itself). ManualBatchTuningParameters *ManualBatchTuningParameters `protobuf:"bytes,8,opt,name=manual_batch_tuning_parameters,json=manualBatchTuningParameters,proto3" json:"manual_batch_tuning_parameters,omitempty"` // Generate explanation with the batch prediction results. // // When set to `true`, the batch prediction output changes based on the // `predictions_format` field of the - // [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config] object: + // [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config] + // object: // // - `bigquery`: output includes a column named `explanation`. The value - // is a struct that conforms to the [Explanation][google.cloud.aiplatform.v1beta1.Explanation] object. + // is a struct that conforms to the + // [Explanation][google.cloud.aiplatform.v1beta1.Explanation] object. // - `jsonl`: The JSON objects on each line include an additional entry // keyed `explanation`. The value of the entry is a JSON object that - // conforms to the [Explanation][google.cloud.aiplatform.v1beta1.Explanation] object. + // conforms to the + // [Explanation][google.cloud.aiplatform.v1beta1.Explanation] object. // - `csv`: Generating explanations for CSV format is not supported. // - // If this field is set to true, either the [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] or - // [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] must be populated. + // If this field is set to true, either the + // [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] + // or + // [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] + // must be populated. GenerateExplanation bool `protobuf:"varint,23,opt,name=generate_explanation,json=generateExplanation,proto3" json:"generate_explanation,omitempty"` // Explanation configuration for this BatchPredictionJob. Can be - // specified only if [generate_explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation] is set to `true`. + // specified only if + // [generate_explanation][google.cloud.aiplatform.v1beta1.BatchPredictionJob.generate_explanation] + // is set to `true`. // - // This value overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of - // [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] are optional in the request. If a field of the - // [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] object is not populated, the corresponding field of - // the [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] object is inherited. + // This value overrides the value of + // [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. + // All fields of + // [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] + // are optional in the request. If a field of the + // [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] + // object is not populated, the corresponding field of the + // [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] + // object is inherited. ExplanationSpec *ExplanationSpec `protobuf:"bytes,25,opt,name=explanation_spec,json=explanationSpec,proto3" json:"explanation_spec,omitempty"` // Output only. Information further describing the output of this job. OutputInfo *BatchPredictionJob_OutputInfo `protobuf:"bytes,9,opt,name=output_info,json=outputInfo,proto3" json:"output_info,omitempty"` @@ -144,8 +163,8 @@ type BatchPredictionJob struct { // This field never exceeds 20 entries. // Status details fields contain standard Google Cloud error details. PartialFailures []*status.Status `protobuf:"bytes,12,rep,name=partial_failures,json=partialFailures,proto3" json:"partial_failures,omitempty"` - // Output only. Information about resources that had been consumed by this job. - // Provided in real time at best effort basis, as well as a final value + // Output only. Information about resources that had been consumed by this + // job. Provided in real time at best effort basis, as well as a final value // once the job completes. // // Note: This field currently may be not populated for batch predictions that @@ -155,11 +174,11 @@ type BatchPredictionJob struct { CompletionStats *CompletionStats `protobuf:"bytes,14,opt,name=completion_stats,json=completionStats,proto3" json:"completion_stats,omitempty"` // Output only. Time when the BatchPredictionJob was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. Time when the BatchPredictionJob for the first time entered the - // `JOB_STATE_RUNNING` state. + // Output only. Time when the BatchPredictionJob for the first time entered + // the `JOB_STATE_RUNNING` state. StartTime *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - // Output only. Time when the BatchPredictionJob entered any of the following states: - // `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + // Output only. Time when the BatchPredictionJob entered any of the following + // states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. EndTime *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Time when the BatchPredictionJob was most recently updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` @@ -420,9 +439,12 @@ func (x *BatchPredictionJob) GetModelMonitoringStatus() *status.Status { return nil } -// Configures the input to [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. -// See [Model.supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats] for Model's supported input -// formats, and how instances should be expressed via any of them. +// Configures the input to +// [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. +// See +// [Model.supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats] +// for Model's supported input formats, and how instances should be expressed +// via any of them. type BatchPredictionJob_InputConfig struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -532,7 +554,8 @@ type BatchPredictionJob_InstanceConfig struct { // The format of the instance that the Model accepts. Vertex AI will // convert compatible - // [batch prediction input instance formats][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.instances_format] + // [batch prediction input instance + // formats][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.instances_format] // to the specified format. // // Supported values are: @@ -546,10 +569,13 @@ type BatchPredictionJob_InstanceConfig struct { // * `array`: Each input is converted to JSON array format. // - For `bigquery`, each row is converted to an array. The order // of columns is determined by the BigQuery column order, unless - // [included_fields][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.included_fields] is populated. - // [included_fields][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.included_fields] must be populated for specifying field orders. + // [included_fields][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.included_fields] + // is populated. + // [included_fields][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.included_fields] + // must be populated for specifying field orders. // - For `jsonl`, if each line of the JSONL input is an object, - // [included_fields][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.included_fields] must be populated for specifying field orders. + // [included_fields][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.included_fields] + // must be populated for specifying field orders. // - Does not apply to `csv`, `file-list`, `tf-record`, or // `tf-record-gzip`. // @@ -558,7 +584,8 @@ type BatchPredictionJob_InstanceConfig struct { // // - For `bigquery` and `csv`, the behavior is the same as `array`. The // order of columns is the same as defined in the file or table, unless - // [included_fields][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.included_fields] is populated. + // [included_fields][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.included_fields] + // is populated. // - For `jsonl`, the prediction instance format is determined by // each line of the input. // - For `tf-record`/`tf-record-gzip`, each record will be converted to @@ -572,10 +599,11 @@ type BatchPredictionJob_InstanceConfig struct { // // The values identified by the key field is not included in the transformed // instances that is sent to the Model. This is similar to - // specifying this name of the field in [excluded_fields][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.excluded_fields]. In addition, - // the batch prediction output will not include the instances. Instead the - // output will only include the value of the key field, in a field named - // `key` in the output: + // specifying this name of the field in + // [excluded_fields][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.excluded_fields]. + // In addition, the batch prediction output will not include the instances. + // Instead the output will only include the value of the key field, in a + // field named `key` in the output: // // - For `jsonl` output format, the output will have a `key` field // instead of the `instance` field. @@ -588,10 +616,14 @@ type BatchPredictionJob_InstanceConfig struct { // Fields that will be included in the prediction instance that is // sent to the Model. // - // If [instance_type][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.instance_type] is `array`, the order of field names in - // included_fields also determines the order of the values in the array. + // If + // [instance_type][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.instance_type] + // is `array`, the order of field names in included_fields also determines + // the order of the values in the array. // - // When included_fields is populated, [excluded_fields][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.excluded_fields] must be empty. + // When included_fields is populated, + // [excluded_fields][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.excluded_fields] + // must be empty. // // The input must be JSONL with objects at each line, CSV, BigQuery // or TfRecord. @@ -599,10 +631,13 @@ type BatchPredictionJob_InstanceConfig struct { // Fields that will be excluded in the prediction instance that is // sent to the Model. // - // Excluded will be attached to the batch prediction output if [key_field][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.key_field] + // Excluded will be attached to the batch prediction output if + // [key_field][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.key_field] // is not specified. // - // When excluded_fields is populated, [included_fields][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.included_fields] must be empty. + // When excluded_fields is populated, + // [included_fields][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.included_fields] + // must be empty. // // The input must be JSONL with objects at each line, CSV, BigQuery // or TfRecord. @@ -669,9 +704,12 @@ func (x *BatchPredictionJob_InstanceConfig) GetExcludedFields() []string { return nil } -// Configures the output of [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. -// See [Model.supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats] for supported output -// formats, and how predictions are expressed via any of them. +// Configures the output of +// [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. +// See +// [Model.supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats] +// for supported output formats, and how predictions are expressed via any of +// them. type BatchPredictionJob_OutputConfig struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -684,7 +722,8 @@ type BatchPredictionJob_OutputConfig struct { // *BatchPredictionJob_OutputConfig_GcsDestination // *BatchPredictionJob_OutputConfig_BigqueryDestination Destination isBatchPredictionJob_OutputConfig_Destination `protobuf_oneof:"destination"` - // Required. The format in which Vertex AI gives the predictions, must be one of the + // Required. The format in which Vertex AI gives the predictions, must be + // one of the // [Model's][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model] // [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats]. PredictionsFormat string `protobuf:"bytes,1,opt,name=predictions_format,json=predictionsFormat,proto3" json:"predictions_format,omitempty"` @@ -762,11 +801,13 @@ type BatchPredictionJob_OutputConfig_GcsDestination struct { // Inside of it files `predictions_0001.`, // `predictions_0002.`, ..., `predictions_N.` // are created where `` depends on chosen - // [predictions_format][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.predictions_format], and N may equal 0001 and depends on the total - // number of successfully predicted instances. - // If the Model has both [instance][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri] - // and [prediction][google.cloud.aiplatform.v1beta1.PredictSchemata.parameters_schema_uri] schemata - // defined then each such file contains predictions as per the + // [predictions_format][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.predictions_format], + // and N may equal 0001 and depends on the total number of successfully + // predicted instances. If the Model has both + // [instance][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri] + // and + // [prediction][google.cloud.aiplatform.v1beta1.PredictSchemata.parameters_schema_uri] + // schemata defined then each such file contains predictions as per the // [predictions_format][google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.predictions_format]. // If prediction for any instance failed (partially or completely), then // an additional `errors_0001.`, `errors_0002.`,..., @@ -787,13 +828,15 @@ type BatchPredictionJob_OutputConfig_BigqueryDestination struct { // become underscores), and timestamp is in // YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In the dataset // two tables will be created, `predictions`, and `errors`. - // If the Model has both [instance][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri] - // and [prediction][google.cloud.aiplatform.v1beta1.PredictSchemata.parameters_schema_uri] schemata - // defined then the tables have columns as follows: The `predictions` - // table contains instances for which the prediction succeeded, it - // has columns as per a concatenation of the Model's instance and - // prediction schemata. The `errors` table contains rows for which the - // prediction has failed, it has instance columns, as per the + // If the Model has both + // [instance][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri] + // and + // [prediction][google.cloud.aiplatform.v1beta1.PredictSchemata.parameters_schema_uri] + // schemata defined then the tables have columns as follows: The + // `predictions` table contains instances for which the prediction + // succeeded, it has columns as per a concatenation of the Model's + // instance and prediction schemata. The `errors` table contains rows for + // which the prediction has failed, it has instance columns, as per the // instance schema, followed by a single "errors" column, which as values // has [google.rpc.Status][google.rpc.Status] // represented as a STRUCT, and containing only `code` and `message`. @@ -807,7 +850,8 @@ func (*BatchPredictionJob_OutputConfig_BigqueryDestination) isBatchPredictionJob } // Further describes this job's output. -// Supplements [output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config]. +// Supplements +// [output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config]. type BatchPredictionJob_OutputInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -892,8 +936,8 @@ type isBatchPredictionJob_OutputInfo_OutputLocation interface { } type BatchPredictionJob_OutputInfo_GcsOutputDirectory struct { - // Output only. The full path of the Cloud Storage directory created, into which - // the prediction output is written. + // Output only. The full path of the Cloud Storage directory created, into + // which the prediction output is written. GcsOutputDirectory string `protobuf:"bytes,1,opt,name=gcs_output_directory,json=gcsOutputDirectory,proto3,oneof"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/completion_stats.pb.go b/aiplatform/apiv1beta1/aiplatformpb/completion_stats.pb.go index 89c3fda3c643..40c8c3a0546d 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/completion_stats.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/completion_stats.pb.go @@ -47,14 +47,15 @@ type CompletionStats struct { SuccessfulCount int64 `protobuf:"varint,1,opt,name=successful_count,json=successfulCount,proto3" json:"successful_count,omitempty"` // Output only. The number of entities for which any error was encountered. FailedCount int64 `protobuf:"varint,2,opt,name=failed_count,json=failedCount,proto3" json:"failed_count,omitempty"` - // Output only. In cases when enough errors are encountered a job, pipeline, or operation - // may be failed as a whole. Below is the number of entities for which the - // processing had not been finished (either in successful or failed state). - // Set to -1 if the number is unknown (for example, the operation failed - // before the total entity number could be collected). + // Output only. In cases when enough errors are encountered a job, pipeline, + // or operation may be failed as a whole. Below is the number of entities for + // which the processing had not been finished (either in successful or failed + // state). Set to -1 if the number is unknown (for example, the operation + // failed before the total entity number could be collected). IncompleteCount int64 `protobuf:"varint,3,opt,name=incomplete_count,json=incompleteCount,proto3" json:"incomplete_count,omitempty"` - // Output only. The number of the successful forecast points that are generated by the - // forecasting model. This is ONLY used by the forecasting batch prediction. + // Output only. The number of the successful forecast points that are + // generated by the forecasting model. This is ONLY used by the forecasting + // batch prediction. SuccessfulForecastPointCount int64 `protobuf:"varint,5,opt,name=successful_forecast_point_count,json=successfulForecastPointCount,proto3" json:"successful_forecast_point_count,omitempty"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/context.pb.go b/aiplatform/apiv1beta1/aiplatformpb/context.pb.go index 03fecab6c32a..15886e9546fb 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/context.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/context.pb.go @@ -64,8 +64,8 @@ type Context struct { CreateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when this Context was last updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // Output only. A list of resource names of Contexts that are parents of this Context. - // A Context may have at most 10 parent_contexts. + // Output only. A list of resource names of Contexts that are parents of this + // Context. A Context may have at most 10 parent_contexts. ParentContexts []string `protobuf:"bytes,12,rep,name=parent_contexts,json=parentContexts,proto3" json:"parent_contexts,omitempty"` // The title of the schema describing the metadata. // diff --git a/aiplatform/apiv1beta1/aiplatformpb/custom_job.pb.go b/aiplatform/apiv1beta1/aiplatformpb/custom_job.pb.go index 6bffb527c8b1..c85abfd18da5 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/custom_job.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/custom_job.pb.go @@ -86,7 +86,8 @@ type CustomJob struct { // Output only. URIs for accessing [interactive // shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) // (one URI for each training node). Only available if - // [job_spec.enable_web_access][google.cloud.aiplatform.v1beta1.CustomJobSpec.enable_web_access] is `true`. + // [job_spec.enable_web_access][google.cloud.aiplatform.v1beta1.CustomJobSpec.enable_web_access] + // is `true`. // // The keys are names of each node in the training job; for example, // `workerpool0-0` for the primary node, `workerpool1-0` for the first node in @@ -219,9 +220,9 @@ type CustomJobSpec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The spec of the worker pools including machine type and Docker image. - // All worker pools except the first one are optional and can be skipped by - // providing an empty value. + // Required. The spec of the worker pools including machine type and Docker + // image. All worker pools except the first one are optional and can be + // skipped by providing an empty value. WorkerPoolSpecs []*WorkerPoolSpec `protobuf:"bytes,1,rep,name=worker_pool_specs,json=workerPoolSpecs,proto3" json:"worker_pool_specs,omitempty"` // Scheduling options for a CustomJob. Scheduling *Scheduling `protobuf:"bytes,3,opt,name=scheduling,proto3" json:"scheduling,omitempty"` @@ -258,8 +259,8 @@ type CustomJobSpec struct { // HyperparameterTuningJob. For HyperparameterTuningJob, // the baseOutputDirectory of // each child CustomJob backing a Trial is set to a subdirectory of name - // [id][google.cloud.aiplatform.v1beta1.Trial.id] under its parent HyperparameterTuningJob's - // baseOutputDirectory. + // [id][google.cloud.aiplatform.v1beta1.Trial.id] under its parent + // HyperparameterTuningJob's baseOutputDirectory. // // The following Vertex AI environment variables will be passed to // containers or python modules when this field is set: @@ -276,9 +277,9 @@ type CustomJobSpec struct { // * AIP_CHECKPOINT_DIR = `//checkpoints/` // * AIP_TENSORBOARD_LOG_DIR = `//logs/` BaseOutputDirectory *GcsDestination `protobuf:"bytes,6,opt,name=base_output_directory,json=baseOutputDirectory,proto3" json:"base_output_directory,omitempty"` - // Optional. The name of a Vertex AI [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard] resource to which this CustomJob - // will upload Tensorboard logs. - // Format: + // Optional. The name of a Vertex AI + // [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard] resource to + // which this CustomJob will upload Tensorboard logs. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}` Tensorboard string `protobuf:"bytes,7,opt,name=tensorboard,proto3" json:"tensorboard,omitempty"` // Optional. Whether you want Vertex AI to enable [interactive shell @@ -286,7 +287,11 @@ type CustomJobSpec struct { // to training containers. // // If set to `true`, you can access interactive shells at the URIs given - // by [CustomJob.web_access_uris][google.cloud.aiplatform.v1beta1.CustomJob.web_access_uris] or [Trial.web_access_uris][google.cloud.aiplatform.v1beta1.Trial.web_access_uris] (within + // by + // [CustomJob.web_access_uris][google.cloud.aiplatform.v1beta1.CustomJob.web_access_uris] + // or + // [Trial.web_access_uris][google.cloud.aiplatform.v1beta1.Trial.web_access_uris] + // (within // [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.trials]). EnableWebAccess bool `protobuf:"varint,10,opt,name=enable_web_access,json=enableWebAccess,proto3" json:"enable_web_access,omitempty"` } @@ -507,8 +512,8 @@ type ContainerSpec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The URI of a container image in the Container Registry that is to be run on - // each worker replica. + // Required. The URI of a container image in the Container Registry that is to + // be run on each worker replica. ImageUri string `protobuf:"bytes,1,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"` // The command to be invoked when the container is started. // It overrides the entrypoint instruction in Dockerfile when provided. @@ -586,16 +591,16 @@ type PythonPackageSpec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The URI of a container image in Artifact Registry that will run the - // provided Python package. Vertex AI provides a wide range of executor + // Required. The URI of a container image in Artifact Registry that will run + // the provided Python package. Vertex AI provides a wide range of executor // images with pre-installed packages to meet users' various use cases. See // the list of [pre-built containers for // training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). // You must use an image from this list. ExecutorImageUri string `protobuf:"bytes,1,opt,name=executor_image_uri,json=executorImageUri,proto3" json:"executor_image_uri,omitempty"` - // Required. The Google Cloud Storage location of the Python package files which are - // the training program and its dependent packages. - // The maximum number of package URIs is 100. + // Required. The Google Cloud Storage location of the Python package files + // which are the training program and its dependent packages. The maximum + // number of package URIs is 100. PackageUris []string `protobuf:"bytes,2,rep,name=package_uris,json=packageUris,proto3" json:"package_uris,omitempty"` // Required. The Python module name to run after installing the packages. PythonModule string `protobuf:"bytes,3,opt,name=python_module,json=pythonModule,proto3" json:"python_module,omitempty"` diff --git a/aiplatform/apiv1beta1/aiplatformpb/data_item.pb.go b/aiplatform/apiv1beta1/aiplatformpb/data_item.pb.go index 300eda761895..0f1448763e02 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/data_item.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/data_item.pb.go @@ -63,12 +63,14 @@ type DataItem struct { // System reserved label keys are prefixed with "aiplatform.googleapis.com/" // and are immutable. 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"` - // Required. The data that the DataItem represents (for example, an image or a text - // snippet). The schema of the payload is stored in the parent Dataset's - // [metadata schema's][google.cloud.aiplatform.v1beta1.Dataset.metadata_schema_uri] dataItemSchemaUri field. + // Required. The data that the DataItem represents (for example, an image or a + // text snippet). The schema of the payload is stored in the parent Dataset's + // [metadata + // schema's][google.cloud.aiplatform.v1beta1.Dataset.metadata_schema_uri] + // dataItemSchemaUri field. Payload *structpb.Value `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` - // Optional. Used to perform consistent read-modify-write updates. If not set, a blind - // "overwrite" update happens. + // Optional. Used to perform consistent read-modify-write updates. If not set, + // a blind "overwrite" update happens. Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/data_labeling_job.pb.go b/aiplatform/apiv1beta1/aiplatformpb/data_labeling_job.pb.go index 4d3ac4f6e0e2..951bdcce83ce 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/data_labeling_job.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/data_labeling_job.pb.go @@ -104,9 +104,8 @@ type DataLabelingJob struct { // characters. // Display name of a DataLabelingJob. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - // Required. Dataset resource names. Right now we only support labeling from a single - // Dataset. - // Format: + // Required. Dataset resource names. Right now we only support labeling from a + // single Dataset. Format: // `projects/{project}/locations/{location}/datasets/{dataset}` Datasets []string `protobuf:"bytes,3,rep,name=datasets,proto3" json:"datasets,omitempty"` // Labels to assign to annotations generated by this DataLabelingJob. @@ -120,13 +119,13 @@ type DataLabelingJob struct { AnnotationLabels map[string]string `protobuf:"bytes,12,rep,name=annotation_labels,json=annotationLabels,proto3" json:"annotation_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Required. Number of labelers to work on each DataItem. LabelerCount int32 `protobuf:"varint,4,opt,name=labeler_count,json=labelerCount,proto3" json:"labeler_count,omitempty"` - // Required. The Google Cloud Storage location of the instruction pdf. This pdf is - // shared with labelers, and provides detailed description on how to label - // DataItems in Datasets. + // Required. The Google Cloud Storage location of the instruction pdf. This + // pdf is shared with labelers, and provides detailed description on how to + // label DataItems in Datasets. InstructionUri string `protobuf:"bytes,5,opt,name=instruction_uri,json=instructionUri,proto3" json:"instruction_uri,omitempty"` - // Required. Points to a YAML file stored on Google Cloud Storage describing the - // config for a specific type of DataLabelingJob. - // The schema files that can be used here are found in the + // Required. Points to a YAML file stored on Google Cloud Storage describing + // the config for a specific type of DataLabelingJob. The schema files that + // can be used here are found in the // https://storage.googleapis.com/google-cloud-aiplatform bucket in the // /schema/datalabelingjob/inputs/ folder. InputsSchemaUri string `protobuf:"bytes,6,opt,name=inputs_schema_uri,json=inputsSchemaUri,proto3" json:"inputs_schema_uri,omitempty"` @@ -134,18 +133,18 @@ type DataLabelingJob struct { Inputs *structpb.Value `protobuf:"bytes,7,opt,name=inputs,proto3" json:"inputs,omitempty"` // Output only. The detailed state of the job. State JobState `protobuf:"varint,8,opt,name=state,proto3,enum=google.cloud.aiplatform.v1beta1.JobState" json:"state,omitempty"` - // Output only. Current labeling job progress percentage scaled in interval [0, 100], - // indicating the percentage of DataItems that has been finished. + // Output only. Current labeling job progress percentage scaled in interval + // [0, 100], indicating the percentage of DataItems that has been finished. LabelingProgress int32 `protobuf:"varint,13,opt,name=labeling_progress,json=labelingProgress,proto3" json:"labeling_progress,omitempty"` - // Output only. Estimated cost(in US dollars) that the DataLabelingJob has incurred to - // date. + // Output only. Estimated cost(in US dollars) that the DataLabelingJob has + // incurred to date. CurrentSpend *money.Money `protobuf:"bytes,14,opt,name=current_spend,json=currentSpend,proto3" json:"current_spend,omitempty"` // Output only. Timestamp when this DataLabelingJob was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when this DataLabelingJob was updated most recently. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // Output only. DataLabelingJob errors. It is only populated when job's state is - // `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`. + // Output only. DataLabelingJob errors. It is only populated when job's state + // is `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`. Error *status.Status `protobuf:"bytes,22,opt,name=error,proto3" json:"error,omitempty"` // The labels with user-defined metadata to organize your DataLabelingJobs. // @@ -158,7 +157,8 @@ type DataLabelingJob struct { // and are immutable. Following system labels exist for each DataLabelingJob: // // - "aiplatform.googleapis.com/schema": output only, its value is the - // [inputs_schema][google.cloud.aiplatform.v1beta1.DataLabelingJob.inputs_schema_uri]'s title. + // [inputs_schema][google.cloud.aiplatform.v1beta1.DataLabelingJob.inputs_schema_uri]'s + // title. Labels map[string]string `protobuf:"bytes,11,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // The SpecialistPools' resource names associated with this job. SpecialistPools []string `protobuf:"bytes,16,rep,name=specialist_pools,json=specialistPools,proto3" json:"specialist_pools,omitempty"` diff --git a/aiplatform/apiv1beta1/aiplatformpb/dataset.pb.go b/aiplatform/apiv1beta1/aiplatformpb/dataset.pb.go index 28b518a6c024..18b6dde78121 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/dataset.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/dataset.pb.go @@ -52,11 +52,10 @@ type Dataset struct { DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // The description of the Dataset. Description string `protobuf:"bytes,16,opt,name=description,proto3" json:"description,omitempty"` - // Required. Points to a YAML file stored on Google Cloud Storage describing additional - // information about the Dataset. - // The schema is defined as an OpenAPI 3.0.2 Schema Object. - // The schema files that can be used here are found in - // gs://google-cloud-aiplatform/schema/dataset/metadata/. + // Required. Points to a YAML file stored on Google Cloud Storage describing + // additional information about the Dataset. The schema is defined as an + // OpenAPI 3.0.2 Schema Object. The schema files that can be used here are + // found in gs://google-cloud-aiplatform/schema/dataset/metadata/. MetadataSchemaUri string `protobuf:"bytes,3,opt,name=metadata_schema_uri,json=metadataSchemaUri,proto3" json:"metadata_schema_uri,omitempty"` // Required. Additional information about the Dataset. Metadata *structpb.Value `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"` @@ -80,13 +79,24 @@ type Dataset struct { // and are immutable. Following system labels exist for each Dataset: // // - "aiplatform.googleapis.com/dataset_metadata_schema": output only, its - // value is the [metadata_schema's][google.cloud.aiplatform.v1beta1.Dataset.metadata_schema_uri] title. + // value is the + // [metadata_schema's][google.cloud.aiplatform.v1beta1.Dataset.metadata_schema_uri] + // title. Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // All SavedQueries belong to the Dataset will be returned in List/Get + // Dataset response. The [annotation_specs][SavedQuery.annotation_specs] field + // will not be populated except for UI cases which will only use + // [annotation_spec_count][google.cloud.aiplatform.v1beta1.SavedQuery.annotation_spec_count]. + // In CreateDataset request, a SavedQuery is created together if + // this field is set, up to one SavedQuery can be set in CreateDatasetRequest. + // The SavedQuery should not contain any AnnotationSpec. + SavedQueries []*SavedQuery `protobuf:"bytes,9,rep,name=saved_queries,json=savedQueries,proto3" json:"saved_queries,omitempty"` // Customer-managed encryption key spec for a Dataset. If set, this Dataset // and all sub-resources of this Dataset will be secured by this key. EncryptionSpec *EncryptionSpec `protobuf:"bytes,11,opt,name=encryption_spec,json=encryptionSpec,proto3" json:"encryption_spec,omitempty"` - // Output only. The resource name of the Artifact that was created in MetadataStore when - // creating the Dataset. The Artifact resource name pattern is + // Output only. The resource name of the Artifact that was created in + // MetadataStore when creating the Dataset. The Artifact resource name pattern + // is // `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. MetadataArtifact string `protobuf:"bytes,17,opt,name=metadata_artifact,json=metadataArtifact,proto3" json:"metadata_artifact,omitempty"` } @@ -186,6 +196,13 @@ func (x *Dataset) GetLabels() map[string]string { return nil } +func (x *Dataset) GetSavedQueries() []*SavedQuery { + if x != nil { + return x.SavedQueries + } + return nil +} + func (x *Dataset) GetEncryptionSpec() *EncryptionSpec { if x != nil { return x.EncryptionSpec @@ -223,19 +240,25 @@ type ImportDataConfig struct { // considered identical if their content bytes are identical (e.g. image bytes // or pdf bytes). // These labels will be overridden by Annotation labels specified inside index - // file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + // file referenced by + // [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], + // e.g. jsonl file. DataItemLabels map[string]string `protobuf:"bytes,2,rep,name=data_item_labels,json=dataItemLabels,proto3" json:"data_item_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Labels that will be applied to newly imported Annotations. If two // Annotations are identical, one of them will be deduped. Two Annotations are - // considered identical if their [payload][google.cloud.aiplatform.v1beta1.Annotation.payload], - // [payload_schema_uri][google.cloud.aiplatform.v1beta1.Annotation.payload_schema_uri] and all of their + // considered identical if their + // [payload][google.cloud.aiplatform.v1beta1.Annotation.payload], + // [payload_schema_uri][google.cloud.aiplatform.v1beta1.Annotation.payload_schema_uri] + // and all of their // [labels][google.cloud.aiplatform.v1beta1.Annotation.labels] are the same. // These labels will be overridden by Annotation labels specified inside index - // file referenced by [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + // file referenced by + // [import_schema_uri][google.cloud.aiplatform.v1beta1.ImportDataConfig.import_schema_uri], + // e.g. jsonl file. AnnotationLabels map[string]string `protobuf:"bytes,3,rep,name=annotation_labels,json=annotationLabels,proto3" json:"annotation_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Required. Points to a YAML file stored on Google Cloud Storage describing the import - // format. Validation will be done against the schema. The schema is defined - // as an [OpenAPI 3.0.2 Schema + // Required. Points to a YAML file stored on Google Cloud Storage describing + // the import format. Validation will be done against the schema. The schema + // is defined as an [OpenAPI 3.0.2 Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). ImportSchemaUri string `protobuf:"bytes,4,opt,name=import_schema_uri,json=importSchemaUri,proto3" json:"import_schema_uri,omitempty"` } @@ -427,117 +450,125 @@ var file_google_cloud_aiplatform_v1beta1_dataset_proto_rawDesc = []byte{ 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2f, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xeb, 0x05, 0x0a, - 0x07, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x26, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x64, 0x69, - 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x13, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x75, - 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x11, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x72, 0x69, - 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, - 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, - 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, - 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, - 0x67, 0x12, 0x4c, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, - 0x58, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x70, - 0x65, 0x63, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0e, 0x65, 0x6e, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x12, 0x30, 0x0a, 0x11, 0x6d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x18, 0x11, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x10, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x62, 0xea, 0x41, 0x5f, 0x0a, 0x21, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x3a, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x73, - 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x7d, 0x22, 0x89, 0x04, 0x0a, 0x10, 0x49, - 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x4b, 0x0a, 0x0a, 0x67, 0x63, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, - 0x00, 0x52, 0x09, 0x67, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x6f, 0x0a, 0x10, - 0x64, 0x61, 0x74, 0x61, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x44, - 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x49, 0x74, - 0x65, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x64, - 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x74, 0x0a, - 0x11, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x47, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x74, 0x61, 0x31, 0x2f, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x31, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, + 0x61, 0x76, 0x65, 0x64, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0xbd, 0x06, 0x0a, 0x07, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, + 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, + 0x0a, 0x13, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, + 0x52, 0x11, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x55, 0x72, 0x69, 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x03, 0xe0, + 0x41, 0x02, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x0b, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, + 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, + 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, + 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x65, 0x74, 0x61, 0x67, 0x12, 0x4c, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x2e, 0x4c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x12, 0x50, 0x0a, 0x0d, 0x73, 0x61, 0x76, 0x65, 0x64, 0x5f, 0x71, 0x75, 0x65, 0x72, + 0x69, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x61, 0x76, 0x65, + 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x0c, 0x73, 0x61, 0x76, 0x65, 0x64, 0x51, 0x75, 0x65, + 0x72, 0x69, 0x65, 0x73, 0x12, 0x58, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0e, + 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x12, 0x30, + 0x0a, 0x11, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x61, 0x72, 0x74, 0x69, 0x66, + 0x61, 0x63, 0x74, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x10, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, + 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x62, 0xea, 0x41, 0x5f, + 0x0a, 0x21, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, + 0x73, 0x65, 0x74, 0x12, 0x3a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x64, 0x61, 0x74, + 0x61, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x7d, 0x22, + 0x89, 0x04, 0x0a, 0x10, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4b, 0x0a, 0x0a, 0x67, 0x63, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, - 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x10, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x12, 0x2f, 0x0a, 0x11, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, - 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x55, 0x72, 0x69, 0x1a, 0x41, 0x0a, 0x13, 0x44, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x43, 0x0a, 0x15, 0x41, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x09, 0x67, 0x63, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x12, 0x6f, 0x0a, 0x10, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x5f, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6d, + 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, + 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x49, 0x74, 0x65, 0x6d, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x12, 0x74, 0x0a, 0x11, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x47, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x2f, 0x0a, 0x11, 0x69, 0x6d, 0x70, 0x6f, + 0x72, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x72, 0x69, 0x1a, 0x41, 0x0a, 0x13, 0x44, 0x61, 0x74, + 0x61, 0x49, 0x74, 0x65, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x08, 0x0a, 0x06, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xac, 0x01, 0x0a, 0x10, 0x45, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x5a, 0x0a, 0x0f, 0x67, - 0x63, 0x73, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0e, 0x67, 0x63, 0x73, 0x44, 0x65, 0x73, 0x74, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x11, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x42, 0x0d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xe9, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0c, 0x44, - 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 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, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x22, 0x47, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, - 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x43, 0x0a, 0x15, + 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xac, 0x01, 0x0a, 0x10, + 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x12, 0x5a, 0x0a, 0x0f, 0x67, 0x63, 0x73, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x44, + 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0e, 0x67, 0x63, + 0x73, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, + 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x42, 0x0d, 0x0a, 0x0b, 0x64, + 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0xe9, 0x01, 0x0a, 0x23, 0x63, + 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x42, 0x0c, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x49, 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, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0xaa, 0x02, 0x1f, + 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, + 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, + 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, + 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -562,25 +593,27 @@ var file_google_cloud_aiplatform_v1beta1_dataset_proto_goTypes = []interface{}{ nil, // 5: google.cloud.aiplatform.v1beta1.ImportDataConfig.AnnotationLabelsEntry (*structpb.Value)(nil), // 6: google.protobuf.Value (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp - (*EncryptionSpec)(nil), // 8: google.cloud.aiplatform.v1beta1.EncryptionSpec - (*GcsSource)(nil), // 9: google.cloud.aiplatform.v1beta1.GcsSource - (*GcsDestination)(nil), // 10: google.cloud.aiplatform.v1beta1.GcsDestination + (*SavedQuery)(nil), // 8: google.cloud.aiplatform.v1beta1.SavedQuery + (*EncryptionSpec)(nil), // 9: google.cloud.aiplatform.v1beta1.EncryptionSpec + (*GcsSource)(nil), // 10: google.cloud.aiplatform.v1beta1.GcsSource + (*GcsDestination)(nil), // 11: google.cloud.aiplatform.v1beta1.GcsDestination } var file_google_cloud_aiplatform_v1beta1_dataset_proto_depIdxs = []int32{ 6, // 0: google.cloud.aiplatform.v1beta1.Dataset.metadata:type_name -> google.protobuf.Value 7, // 1: google.cloud.aiplatform.v1beta1.Dataset.create_time:type_name -> google.protobuf.Timestamp 7, // 2: google.cloud.aiplatform.v1beta1.Dataset.update_time:type_name -> google.protobuf.Timestamp 3, // 3: google.cloud.aiplatform.v1beta1.Dataset.labels:type_name -> google.cloud.aiplatform.v1beta1.Dataset.LabelsEntry - 8, // 4: google.cloud.aiplatform.v1beta1.Dataset.encryption_spec:type_name -> google.cloud.aiplatform.v1beta1.EncryptionSpec - 9, // 5: google.cloud.aiplatform.v1beta1.ImportDataConfig.gcs_source:type_name -> google.cloud.aiplatform.v1beta1.GcsSource - 4, // 6: google.cloud.aiplatform.v1beta1.ImportDataConfig.data_item_labels:type_name -> google.cloud.aiplatform.v1beta1.ImportDataConfig.DataItemLabelsEntry - 5, // 7: google.cloud.aiplatform.v1beta1.ImportDataConfig.annotation_labels:type_name -> google.cloud.aiplatform.v1beta1.ImportDataConfig.AnnotationLabelsEntry - 10, // 8: google.cloud.aiplatform.v1beta1.ExportDataConfig.gcs_destination:type_name -> google.cloud.aiplatform.v1beta1.GcsDestination - 9, // [9:9] is the sub-list for method output_type - 9, // [9:9] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name + 8, // 4: google.cloud.aiplatform.v1beta1.Dataset.saved_queries:type_name -> google.cloud.aiplatform.v1beta1.SavedQuery + 9, // 5: google.cloud.aiplatform.v1beta1.Dataset.encryption_spec:type_name -> google.cloud.aiplatform.v1beta1.EncryptionSpec + 10, // 6: google.cloud.aiplatform.v1beta1.ImportDataConfig.gcs_source:type_name -> google.cloud.aiplatform.v1beta1.GcsSource + 4, // 7: google.cloud.aiplatform.v1beta1.ImportDataConfig.data_item_labels:type_name -> google.cloud.aiplatform.v1beta1.ImportDataConfig.DataItemLabelsEntry + 5, // 8: google.cloud.aiplatform.v1beta1.ImportDataConfig.annotation_labels:type_name -> google.cloud.aiplatform.v1beta1.ImportDataConfig.AnnotationLabelsEntry + 11, // 9: google.cloud.aiplatform.v1beta1.ExportDataConfig.gcs_destination:type_name -> google.cloud.aiplatform.v1beta1.GcsDestination + 10, // [10:10] is the sub-list for method output_type + 10, // [10:10] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name } func init() { file_google_cloud_aiplatform_v1beta1_dataset_proto_init() } @@ -590,6 +623,7 @@ func file_google_cloud_aiplatform_v1beta1_dataset_proto_init() { } file_google_cloud_aiplatform_v1beta1_encryption_spec_proto_init() file_google_cloud_aiplatform_v1beta1_io_proto_init() + file_google_cloud_aiplatform_v1beta1_saved_query_proto_init() if !protoimpl.UnsafeEnabled { file_google_cloud_aiplatform_v1beta1_dataset_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Dataset); i { diff --git a/aiplatform/apiv1beta1/aiplatformpb/dataset_service.pb.go b/aiplatform/apiv1beta1/aiplatformpb/dataset_service.pb.go index f81627c98f5c..b8f3471990a6 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/dataset_service.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/dataset_service.pb.go @@ -42,7 +42,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [DatasetService.CreateDataset][google.cloud.aiplatform.v1beta1.DatasetService.CreateDataset]. +// Request message for +// [DatasetService.CreateDataset][google.cloud.aiplatform.v1beta1.DatasetService.CreateDataset]. type CreateDatasetRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -101,7 +102,8 @@ func (x *CreateDatasetRequest) GetDataset() *Dataset { return nil } -// Runtime operation information for [DatasetService.CreateDataset][google.cloud.aiplatform.v1beta1.DatasetService.CreateDataset]. +// Runtime operation information for +// [DatasetService.CreateDataset][google.cloud.aiplatform.v1beta1.DatasetService.CreateDataset]. type CreateDatasetOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -150,7 +152,8 @@ func (x *CreateDatasetOperationMetadata) GetGenericMetadata() *GenericOperationM return nil } -// Request message for [DatasetService.GetDataset][google.cloud.aiplatform.v1beta1.DatasetService.GetDataset]. +// Request message for +// [DatasetService.GetDataset][google.cloud.aiplatform.v1beta1.DatasetService.GetDataset]. type GetDatasetRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -208,7 +211,8 @@ func (x *GetDatasetRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Request message for [DatasetService.UpdateDataset][google.cloud.aiplatform.v1beta1.DatasetService.UpdateDataset]. +// Request message for +// [DatasetService.UpdateDataset][google.cloud.aiplatform.v1beta1.DatasetService.UpdateDataset]. type UpdateDatasetRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -217,8 +221,8 @@ type UpdateDatasetRequest struct { // Required. The Dataset which replaces the resource on the server. Dataset *Dataset `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` // Required. The update mask applies to the resource. - // For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. - // Updatable fields: + // For the `FieldMask` definition, see + // [google.protobuf.FieldMask][google.protobuf.FieldMask]. Updatable fields: // // - `display_name` // - `description` @@ -272,7 +276,8 @@ func (x *UpdateDatasetRequest) GetUpdateMask() *fieldmaskpb.FieldMask { return nil } -// Request message for [DatasetService.ListDatasets][google.cloud.aiplatform.v1beta1.DatasetService.ListDatasets]. +// Request message for +// [DatasetService.ListDatasets][google.cloud.aiplatform.v1beta1.DatasetService.ListDatasets]. type ListDatasetsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -386,7 +391,8 @@ func (x *ListDatasetsRequest) GetOrderBy() string { return "" } -// Response message for [DatasetService.ListDatasets][google.cloud.aiplatform.v1beta1.DatasetService.ListDatasets]. +// Response message for +// [DatasetService.ListDatasets][google.cloud.aiplatform.v1beta1.DatasetService.ListDatasets]. type ListDatasetsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -444,7 +450,8 @@ func (x *ListDatasetsResponse) GetNextPageToken() string { return "" } -// Request message for [DatasetService.DeleteDataset][google.cloud.aiplatform.v1beta1.DatasetService.DeleteDataset]. +// Request message for +// [DatasetService.DeleteDataset][google.cloud.aiplatform.v1beta1.DatasetService.DeleteDataset]. type DeleteDatasetRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -495,7 +502,8 @@ func (x *DeleteDatasetRequest) GetName() string { return "" } -// Request message for [DatasetService.ImportData][google.cloud.aiplatform.v1beta1.DatasetService.ImportData]. +// Request message for +// [DatasetService.ImportData][google.cloud.aiplatform.v1beta1.DatasetService.ImportData]. type ImportDataRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -505,8 +513,8 @@ type ImportDataRequest struct { // Format: // `projects/{project}/locations/{location}/datasets/{dataset}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Required. The desired input locations. The contents of all input locations will be - // imported in one batch. + // Required. The desired input locations. The contents of all input locations + // will be imported in one batch. ImportConfigs []*ImportDataConfig `protobuf:"bytes,2,rep,name=import_configs,json=importConfigs,proto3" json:"import_configs,omitempty"` } @@ -556,7 +564,8 @@ func (x *ImportDataRequest) GetImportConfigs() []*ImportDataConfig { return nil } -// Response message for [DatasetService.ImportData][google.cloud.aiplatform.v1beta1.DatasetService.ImportData]. +// Response message for +// [DatasetService.ImportData][google.cloud.aiplatform.v1beta1.DatasetService.ImportData]. type ImportDataResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -595,7 +604,8 @@ func (*ImportDataResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1beta1_dataset_service_proto_rawDescGZIP(), []int{8} } -// Runtime operation information for [DatasetService.ImportData][google.cloud.aiplatform.v1beta1.DatasetService.ImportData]. +// Runtime operation information for +// [DatasetService.ImportData][google.cloud.aiplatform.v1beta1.DatasetService.ImportData]. type ImportDataOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -644,7 +654,8 @@ func (x *ImportDataOperationMetadata) GetGenericMetadata() *GenericOperationMeta return nil } -// Request message for [DatasetService.ExportData][google.cloud.aiplatform.v1beta1.DatasetService.ExportData]. +// Request message for +// [DatasetService.ExportData][google.cloud.aiplatform.v1beta1.DatasetService.ExportData]. type ExportDataRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -704,7 +715,8 @@ func (x *ExportDataRequest) GetExportConfig() *ExportDataConfig { return nil } -// Response message for [DatasetService.ExportData][google.cloud.aiplatform.v1beta1.DatasetService.ExportData]. +// Response message for +// [DatasetService.ExportData][google.cloud.aiplatform.v1beta1.DatasetService.ExportData]. type ExportDataResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -753,7 +765,8 @@ func (x *ExportDataResponse) GetExportedFiles() []string { return nil } -// Runtime operation information for [DatasetService.ExportData][google.cloud.aiplatform.v1beta1.DatasetService.ExportData]. +// Runtime operation information for +// [DatasetService.ExportData][google.cloud.aiplatform.v1beta1.DatasetService.ExportData]. type ExportDataOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -812,7 +825,8 @@ func (x *ExportDataOperationMetadata) GetGcsOutputDirectory() string { return "" } -// Request message for [DatasetService.ListDataItems][google.cloud.aiplatform.v1beta1.DatasetService.ListDataItems]. +// Request message for +// [DatasetService.ListDataItems][google.cloud.aiplatform.v1beta1.DatasetService.ListDataItems]. type ListDataItemsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -909,7 +923,8 @@ func (x *ListDataItemsRequest) GetOrderBy() string { return "" } -// Response message for [DatasetService.ListDataItems][google.cloud.aiplatform.v1beta1.DatasetService.ListDataItems]. +// Response message for +// [DatasetService.ListDataItems][google.cloud.aiplatform.v1beta1.DatasetService.ListDataItems]. type ListDataItemsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -967,7 +982,8 @@ func (x *ListDataItemsResponse) GetNextPageToken() string { return "" } -// Request message for [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems]. +// Request message for +// [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems]. type SearchDataItemsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1021,7 +1037,8 @@ type SearchDataItemsRequest struct { // Must specify `saved_query_id=` - saved query id that annotations should // belong to. AnnotationFilters []string `protobuf:"bytes,11,rep,name=annotation_filters,json=annotationFilters,proto3" json:"annotation_filters,omitempty"` - // Mask specifying which fields of [DataItemView][google.cloud.aiplatform.v1beta1.DataItemView] to read. + // Mask specifying which fields of + // [DataItemView][google.cloud.aiplatform.v1beta1.DataItemView] to read. FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,6,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` // If set, only up to this many of Annotations will be returned per // DataItemView. The maximum value is 1000. If not set, the maximum value will @@ -1037,8 +1054,10 @@ type SearchDataItemsRequest struct { OrderBy string `protobuf:"bytes,9,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` // A token identifying a page of results for the server to return // Typically obtained via - // [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.next_page_token] of the previous - // [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems] call. + // [SearchDataItemsResponse.next_page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.next_page_token] + // of the previous + // [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems] + // call. PageToken string `protobuf:"bytes,10,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` } @@ -1194,7 +1213,8 @@ func (*SearchDataItemsRequest_OrderByDataItem) isSearchDataItemsRequest_Order() func (*SearchDataItemsRequest_OrderByAnnotation_) isSearchDataItemsRequest_Order() {} -// Response message for [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems]. +// Response message for +// [DatasetService.SearchDataItems][google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems]. type SearchDataItemsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1203,7 +1223,9 @@ type SearchDataItemsResponse struct { // The DataItemViews read. DataItemViews []*DataItemView `protobuf:"bytes,1,rep,name=data_item_views,json=dataItemViews,proto3" json:"data_item_views,omitempty"` // A token to retrieve next page of results. - // Pass to [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.page_token] to obtain that page. + // Pass to + // [SearchDataItemsRequest.page_token][google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -1327,7 +1349,8 @@ func (x *DataItemView) GetHasTruncatedAnnotations() bool { return false } -// Request message for [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries]. +// Request message for +// [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries]. type ListSavedQueriesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1424,7 +1447,8 @@ func (x *ListSavedQueriesRequest) GetOrderBy() string { return "" } -// Response message for [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries]. +// Response message for +// [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries]. type ListSavedQueriesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1482,7 +1506,8 @@ func (x *ListSavedQueriesResponse) GetNextPageToken() string { return "" } -// Request message for [DatasetService.GetAnnotationSpec][google.cloud.aiplatform.v1beta1.DatasetService.GetAnnotationSpec]. +// Request message for +// [DatasetService.GetAnnotationSpec][google.cloud.aiplatform.v1beta1.DatasetService.GetAnnotationSpec]. type GetAnnotationSpecRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1542,7 +1567,8 @@ func (x *GetAnnotationSpecRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Request message for [DatasetService.ListAnnotations][google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotations]. +// Request message for +// [DatasetService.ListAnnotations][google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotations]. type ListAnnotationsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1639,7 +1665,8 @@ func (x *ListAnnotationsRequest) GetOrderBy() string { return "" } -// Response message for [DatasetService.ListAnnotations][google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotations]. +// Response message for +// [DatasetService.ListAnnotations][google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotations]. type ListAnnotationsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1703,8 +1730,8 @@ type SearchDataItemsRequest_OrderByAnnotation struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. Saved query of the Annotation. Only Annotations belong to this saved - // query will be considered for ordering. + // Required. Saved query of the Annotation. Only Annotations belong to this + // saved query will be considered for ordering. SavedQuery string `protobuf:"bytes,1,opt,name=saved_query,json=savedQuery,proto3" json:"saved_query,omitempty"` // A comma-separated list of annotation fields to order by, sorted in // ascending order. Use "desc" after a field name for descending. Must also diff --git a/aiplatform/apiv1beta1/aiplatformpb/deployment_resource_pool.pb.go b/aiplatform/apiv1beta1/aiplatformpb/deployment_resource_pool.pb.go index 388b7dba3639..29794445d8f2 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/deployment_resource_pool.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/deployment_resource_pool.pb.go @@ -48,7 +48,8 @@ type DeploymentResourcePool struct { // Format: // `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Required. The underlying DedicatedResources that the DeploymentResourcePool uses. + // Required. The underlying DedicatedResources that the DeploymentResourcePool + // uses. DedicatedResources *DedicatedResources `protobuf:"bytes,2,opt,name=dedicated_resources,json=dedicatedResources,proto3" json:"dedicated_resources,omitempty"` // Output only. Timestamp when this DeploymentResourcePool was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` diff --git a/aiplatform/apiv1beta1/aiplatformpb/deployment_resource_pool_service.pb.go b/aiplatform/apiv1beta1/aiplatformpb/deployment_resource_pool_service.pb.go index 66fea3325535..33d591476866 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/deployment_resource_pool_service.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/deployment_resource_pool_service.pb.go @@ -47,8 +47,8 @@ type CreateDeploymentResourcePoolRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The parent location resource where this DeploymentResourcePool will be - // created. Format: `projects/{project}/locations/{location}` + // Required. The parent location resource where this DeploymentResourcePool + // will be created. Format: `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The DeploymentResourcePool to create. DeploymentResourcePool *DeploymentResourcePool `protobuf:"bytes,2,opt,name=deployment_resource_pool,json=deploymentResourcePool,proto3" json:"deployment_resource_pool,omitempty"` @@ -220,8 +220,8 @@ type ListDeploymentResourcePoolsRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The parent Location which owns this collection of DeploymentResourcePools. - // Format: `projects/{project}/locations/{location}` + // Required. The parent Location which owns this collection of + // DeploymentResourcePools. Format: `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The maximum number of DeploymentResourcePools to return. The service may // return fewer than this value. diff --git a/aiplatform/apiv1beta1/aiplatformpb/encryption_spec.pb.go b/aiplatform/apiv1beta1/aiplatformpb/encryption_spec.pb.go index be8e2773b255..b16e1f7dcff8 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/encryption_spec.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/encryption_spec.pb.go @@ -43,8 +43,8 @@ type EncryptionSpec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The Cloud KMS resource identifier of the customer managed encryption key - // used to protect a resource. Has the form: + // Required. The Cloud KMS resource identifier of the customer managed + // encryption key used to protect a resource. Has the form: // `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. // The key needs to be in the same region as where the compute resource is // created. diff --git a/aiplatform/apiv1beta1/aiplatformpb/endpoint.pb.go b/aiplatform/apiv1beta1/aiplatformpb/endpoint.pb.go index 7b4ba597a0ef..62e18f9b5d45 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/endpoint.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/endpoint.pb.go @@ -53,8 +53,11 @@ type Endpoint struct { // The description of the Endpoint. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Output only. The models deployed in this Endpoint. - // To add or remove DeployedModels use [EndpointService.DeployModel][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] and - // [EndpointService.UndeployModel][google.cloud.aiplatform.v1beta1.EndpointService.UndeployModel] respectively. + // To add or remove DeployedModels use + // [EndpointService.DeployModel][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] + // and + // [EndpointService.UndeployModel][google.cloud.aiplatform.v1beta1.EndpointService.UndeployModel] + // respectively. DeployedModels []*DeployedModel `protobuf:"bytes,4,rep,name=deployed_models,json=deployedModels,proto3" json:"deployed_models,omitempty"` // A map from a DeployedModel's ID to the percentage of this Endpoint's // traffic that should be forwarded to that DeployedModel. @@ -91,7 +94,8 @@ type Endpoint struct { // Private services access must already be configured for the network. If left // unspecified, the Endpoint is not peered with any network. // - // Only one of the fields, [network][google.cloud.aiplatform.v1beta1.Endpoint.network] or + // Only one of the fields, + // [network][google.cloud.aiplatform.v1beta1.Endpoint.network] or // [enable_private_service_connect][google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect], // can be set. // @@ -102,15 +106,16 @@ type Endpoint struct { Network string `protobuf:"bytes,13,opt,name=network,proto3" json:"network,omitempty"` // Deprecated: If true, expose the Endpoint via private service connect. // - // Only one of the fields, [network][google.cloud.aiplatform.v1beta1.Endpoint.network] or + // Only one of the fields, + // [network][google.cloud.aiplatform.v1beta1.Endpoint.network] or // [enable_private_service_connect][google.cloud.aiplatform.v1beta1.Endpoint.enable_private_service_connect], // can be set. // // Deprecated: Do not use. EnablePrivateServiceConnect bool `protobuf:"varint,17,opt,name=enable_private_service_connect,json=enablePrivateServiceConnect,proto3" json:"enable_private_service_connect,omitempty"` - // Output only. Resource name of the Model Monitoring job associated with this Endpoint - // if monitoring is enabled by [CreateModelDeploymentMonitoringJob][]. - // Format: + // Output only. Resource name of the Model Monitoring job associated with this + // Endpoint if monitoring is enabled by + // [CreateModelDeploymentMonitoringJob][]. Format: // `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` ModelDeploymentMonitoringJob string `protobuf:"bytes,14,opt,name=model_deployment_monitoring_job,json=modelDeploymentMonitoringJob,proto3" json:"model_deployment_monitoring_job,omitempty"` // Configures the request-response logging for online prediction. @@ -266,13 +271,14 @@ type DeployedModel struct { // *DeployedModel_AutomaticResources // *DeployedModel_SharedResources PredictionResources isDeployedModel_PredictionResources `protobuf_oneof:"prediction_resources"` - // Immutable. The ID of the DeployedModel. If not provided upon deployment, Vertex AI - // will generate a value for this ID. + // Immutable. The ID of the DeployedModel. If not provided upon deployment, + // Vertex AI will generate a value for this ID. // // This value should be 1-10 characters, and valid characters are /[0-9]/. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Required. The resource name of the Model that this is the deployment of. Note that - // the Model may be in a different location than the DeployedModel's Endpoint. + // Required. The resource name of the Model that this is the deployment of. + // Note that the Model may be in a different location than the DeployedModel's + // Endpoint. // // The resource name may contain version id or version alias to specify the // version, if no version is specified, the default version will be deployed. @@ -286,13 +292,21 @@ type DeployedModel struct { CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Explanation configuration for this DeployedModel. // - // When deploying a Model using [EndpointService.DeployModel][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel], this value - // overrides the value of [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. All fields of - // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] are optional in the request. If a field of - // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] is not populated, the value of the same field of - // [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is inherited. If the corresponding - // [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] is not populated, all fields of the - // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] will be used for the explanation configuration. + // When deploying a Model using + // [EndpointService.DeployModel][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel], + // this value overrides the value of + // [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec]. + // All fields of + // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] + // are optional in the request. If a field of + // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] + // is not populated, the value of the same field of + // [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] + // is inherited. If the corresponding + // [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] + // is not populated, all fields of the + // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] + // will be used for the explanation configuration. ExplanationSpec *ExplanationSpec `protobuf:"bytes,9,opt,name=explanation_spec,json=explanationSpec,proto3" json:"explanation_spec,omitempty"` // The service account that the DeployedModel's container runs as. Specify the // email address of the service account. If this service account is not @@ -314,9 +328,10 @@ type DeployedModel struct { // receives prediction requests at a high queries per second rate (QPS). // Estimate your costs before enabling this option. EnableAccessLogging bool `protobuf:"varint,13,opt,name=enable_access_logging,json=enableAccessLogging,proto3" json:"enable_access_logging,omitempty"` - // Output only. Provide paths for users to send predict/explain/health requests directly to - // the deployed model services running on Cloud via private services access. - // This field is populated if [network][google.cloud.aiplatform.v1beta1.Endpoint.network] is configured. + // Output only. Provide paths for users to send predict/explain/health + // requests directly to the deployed model services running on Cloud via + // private services access. This field is populated if + // [network][google.cloud.aiplatform.v1beta1.Endpoint.network] is configured. PrivateEndpoints *PrivateEndpoints `protobuf:"bytes,14,opt,name=private_endpoints,json=privateEndpoints,proto3" json:"private_endpoints,omitempty"` } @@ -495,8 +510,8 @@ type PrivateEndpoints struct { ExplainHttpUri string `protobuf:"bytes,2,opt,name=explain_http_uri,json=explainHttpUri,proto3" json:"explain_http_uri,omitempty"` // Output only. Http(s) path to send health check requests. HealthHttpUri string `protobuf:"bytes,3,opt,name=health_http_uri,json=healthHttpUri,proto3" json:"health_http_uri,omitempty"` - // Output only. The name of the service attachment resource. Populated if private service - // connect is enabled. + // Output only. The name of the service attachment resource. Populated if + // private service connect is enabled. ServiceAttachment string `protobuf:"bytes,4,opt,name=service_attachment,json=serviceAttachment,proto3" json:"service_attachment,omitempty"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/endpoint_service.pb.go b/aiplatform/apiv1beta1/aiplatformpb/endpoint_service.pb.go index 11911b57b265..c410ca0b1d63 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/endpoint_service.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/endpoint_service.pb.go @@ -42,7 +42,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [EndpointService.CreateEndpoint][google.cloud.aiplatform.v1beta1.EndpointService.CreateEndpoint]. +// Request message for +// [EndpointService.CreateEndpoint][google.cloud.aiplatform.v1beta1.EndpointService.CreateEndpoint]. type CreateEndpointRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -117,7 +118,8 @@ func (x *CreateEndpointRequest) GetEndpointId() string { return "" } -// Runtime operation information for [EndpointService.CreateEndpoint][google.cloud.aiplatform.v1beta1.EndpointService.CreateEndpoint]. +// Runtime operation information for +// [EndpointService.CreateEndpoint][google.cloud.aiplatform.v1beta1.EndpointService.CreateEndpoint]. type CreateEndpointOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -166,7 +168,8 @@ func (x *CreateEndpointOperationMetadata) GetGenericMetadata() *GenericOperation return nil } -// Request message for [EndpointService.GetEndpoint][google.cloud.aiplatform.v1beta1.EndpointService.GetEndpoint] +// Request message for +// [EndpointService.GetEndpoint][google.cloud.aiplatform.v1beta1.EndpointService.GetEndpoint] type GetEndpointRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -217,20 +220,22 @@ func (x *GetEndpointRequest) GetName() string { return "" } -// Request message for [EndpointService.ListEndpoints][google.cloud.aiplatform.v1beta1.EndpointService.ListEndpoints]. +// Request message for +// [EndpointService.ListEndpoints][google.cloud.aiplatform.v1beta1.EndpointService.ListEndpoints]. type ListEndpointsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Location from which to list the Endpoints. - // Format: `projects/{project}/locations/{location}` + // Required. The resource name of the Location from which to list the + // Endpoints. Format: `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. An expression for filtering the results of the request. For field names - // both snake_case and camelCase are supported. + // Optional. An expression for filtering the results of the request. For field + // names both snake_case and camelCase are supported. // // - `endpoint` supports = and !=. `endpoint` represents the Endpoint ID, - // i.e. the last segment of the Endpoint's [resource name][google.cloud.aiplatform.v1beta1.Endpoint.name]. + // i.e. the last segment of the Endpoint's [resource + // name][google.cloud.aiplatform.v1beta1.Endpoint.name]. // - `display_name` supports = and, != // - `labels` supports general map functions that is: // - `labels.key=value` - key:value equality @@ -246,8 +251,10 @@ type ListEndpointsRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. The standard list page token. // Typically obtained via - // [ListEndpointsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListEndpointsResponse.next_page_token] of the previous - // [EndpointService.ListEndpoints][google.cloud.aiplatform.v1beta1.EndpointService.ListEndpoints] call. + // [ListEndpointsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListEndpointsResponse.next_page_token] + // of the previous + // [EndpointService.ListEndpoints][google.cloud.aiplatform.v1beta1.EndpointService.ListEndpoints] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Optional. Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -320,7 +327,8 @@ func (x *ListEndpointsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [EndpointService.ListEndpoints][google.cloud.aiplatform.v1beta1.EndpointService.ListEndpoints]. +// Response message for +// [EndpointService.ListEndpoints][google.cloud.aiplatform.v1beta1.EndpointService.ListEndpoints]. type ListEndpointsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -329,7 +337,9 @@ type ListEndpointsResponse struct { // List of Endpoints in the requested page. Endpoints []*Endpoint `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // A token to retrieve the next page of results. - // Pass to [ListEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListEndpointsRequest.page_token] to obtain that page. + // Pass to + // [ListEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListEndpointsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -379,7 +389,8 @@ func (x *ListEndpointsResponse) GetNextPageToken() string { return "" } -// Request message for [EndpointService.UpdateEndpoint][google.cloud.aiplatform.v1beta1.EndpointService.UpdateEndpoint]. +// Request message for +// [EndpointService.UpdateEndpoint][google.cloud.aiplatform.v1beta1.EndpointService.UpdateEndpoint]. type UpdateEndpointRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -387,7 +398,8 @@ type UpdateEndpointRequest struct { // Required. The Endpoint which replaces the resource on the server. Endpoint *Endpoint `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - // Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask]. + // Required. The update mask applies to the resource. See + // [google.protobuf.FieldMask][google.protobuf.FieldMask]. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } @@ -437,7 +449,8 @@ func (x *UpdateEndpointRequest) GetUpdateMask() *fieldmaskpb.FieldMask { return nil } -// Request message for [EndpointService.DeleteEndpoint][google.cloud.aiplatform.v1beta1.EndpointService.DeleteEndpoint]. +// Request message for +// [EndpointService.DeleteEndpoint][google.cloud.aiplatform.v1beta1.EndpointService.DeleteEndpoint]. type DeleteEndpointRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -488,7 +501,8 @@ func (x *DeleteEndpointRequest) GetName() string { return "" } -// Request message for [EndpointService.DeployModel][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel]. +// Request message for +// [EndpointService.DeployModel][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel]. type DeployModelRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -499,21 +513,24 @@ type DeployModelRequest struct { // `projects/{project}/locations/{location}/endpoints/{endpoint}` Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // Required. The DeployedModel to be created within the Endpoint. Note that - // [Endpoint.traffic_split][google.cloud.aiplatform.v1beta1.Endpoint.traffic_split] must be updated for the DeployedModel to start - // receiving traffic, either as part of this call, or via + // [Endpoint.traffic_split][google.cloud.aiplatform.v1beta1.Endpoint.traffic_split] + // must be updated for the DeployedModel to start receiving traffic, either as + // part of this call, or via // [EndpointService.UpdateEndpoint][google.cloud.aiplatform.v1beta1.EndpointService.UpdateEndpoint]. DeployedModel *DeployedModel `protobuf:"bytes,2,opt,name=deployed_model,json=deployedModel,proto3" json:"deployed_model,omitempty"` // A map from a DeployedModel's ID to the percentage of this Endpoint's // traffic that should be forwarded to that DeployedModel. // // If this field is non-empty, then the Endpoint's - // [traffic_split][google.cloud.aiplatform.v1beta1.Endpoint.traffic_split] will be overwritten with it. - // To refer to the ID of the just being deployed Model, a "0" should be used, - // and the actual ID of the new DeployedModel will be filled in its place by - // this method. The traffic percentage values must add up to 100. + // [traffic_split][google.cloud.aiplatform.v1beta1.Endpoint.traffic_split] + // will be overwritten with it. To refer to the ID of the just being deployed + // Model, a "0" should be used, and the actual ID of the new DeployedModel + // will be filled in its place by this method. The traffic percentage values + // must add up to 100. // // If this field is empty, then the Endpoint's - // [traffic_split][google.cloud.aiplatform.v1beta1.Endpoint.traffic_split] is not updated. + // [traffic_split][google.cloud.aiplatform.v1beta1.Endpoint.traffic_split] is + // not updated. TrafficSplit map[string]int32 `protobuf:"bytes,3,rep,name=traffic_split,json=trafficSplit,proto3" json:"traffic_split,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` } @@ -570,7 +587,8 @@ func (x *DeployModelRequest) GetTrafficSplit() map[string]int32 { return nil } -// Response message for [EndpointService.DeployModel][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel]. +// Response message for +// [EndpointService.DeployModel][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel]. type DeployModelResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -619,7 +637,8 @@ func (x *DeployModelResponse) GetDeployedModel() *DeployedModel { return nil } -// Runtime operation information for [EndpointService.DeployModel][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel]. +// Runtime operation information for +// [EndpointService.DeployModel][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel]. type DeployModelOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -668,7 +687,8 @@ func (x *DeployModelOperationMetadata) GetGenericMetadata() *GenericOperationMet return nil } -// Request message for [EndpointService.UndeployModel][google.cloud.aiplatform.v1beta1.EndpointService.UndeployModel]. +// Request message for +// [EndpointService.UndeployModel][google.cloud.aiplatform.v1beta1.EndpointService.UndeployModel]. type UndeployModelRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -681,12 +701,12 @@ type UndeployModelRequest struct { // Required. The ID of the DeployedModel to be undeployed from the Endpoint. DeployedModelId string `protobuf:"bytes,2,opt,name=deployed_model_id,json=deployedModelId,proto3" json:"deployed_model_id,omitempty"` // If this field is provided, then the Endpoint's - // [traffic_split][google.cloud.aiplatform.v1beta1.Endpoint.traffic_split] will be overwritten with it. If - // last DeployedModel is being undeployed from the Endpoint, the - // [Endpoint.traffic_split] will always end up empty when this call returns. - // A DeployedModel will be successfully undeployed only if it doesn't have - // any traffic assigned to it when this method executes, or if this field - // unassigns any traffic to it. + // [traffic_split][google.cloud.aiplatform.v1beta1.Endpoint.traffic_split] + // will be overwritten with it. If last DeployedModel is being undeployed from + // the Endpoint, the [Endpoint.traffic_split] will always end up empty when + // this call returns. A DeployedModel will be successfully undeployed only if + // it doesn't have any traffic assigned to it when this method executes, or if + // this field unassigns any traffic to it. TrafficSplit map[string]int32 `protobuf:"bytes,3,rep,name=traffic_split,json=trafficSplit,proto3" json:"traffic_split,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` } @@ -743,7 +763,8 @@ func (x *UndeployModelRequest) GetTrafficSplit() map[string]int32 { return nil } -// Response message for [EndpointService.UndeployModel][google.cloud.aiplatform.v1beta1.EndpointService.UndeployModel]. +// Response message for +// [EndpointService.UndeployModel][google.cloud.aiplatform.v1beta1.EndpointService.UndeployModel]. type UndeployModelResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -782,7 +803,8 @@ func (*UndeployModelResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1beta1_endpoint_service_proto_rawDescGZIP(), []int{11} } -// Runtime operation information for [EndpointService.UndeployModel][google.cloud.aiplatform.v1beta1.EndpointService.UndeployModel]. +// Runtime operation information for +// [EndpointService.UndeployModel][google.cloud.aiplatform.v1beta1.EndpointService.UndeployModel]. type UndeployModelOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/aiplatform/apiv1beta1/aiplatformpb/entity_type.pb.go b/aiplatform/apiv1beta1/aiplatformpb/entity_type.pb.go index 10dc7a06995d..8b12112251b7 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/entity_type.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/entity_type.pb.go @@ -60,7 +60,8 @@ type EntityType struct { CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when this EntityType was most recently updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // Optional. The labels with user-defined metadata to organize your EntityTypes. + // Optional. The labels with user-defined metadata to organize your + // EntityTypes. // // Label keys and values can be no longer than 64 characters // (Unicode codepoints), can only contain lowercase letters, numeric @@ -72,12 +73,13 @@ type EntityType struct { // System reserved label keys are prefixed with "aiplatform.googleapis.com/" // and are immutable. 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"` - // Optional. Used to perform a consistent read-modify-write updates. If not set, a blind - // "overwrite" update happens. + // Optional. Used to perform a consistent read-modify-write updates. If not + // set, a blind "overwrite" update happens. Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"` - // Optional. The default monitoring configuration for all Features with value type - // ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or INT64 under this - // EntityType. + // Optional. The default monitoring configuration for all Features with value + // type + // ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) + // BOOL, STRING, DOUBLE or INT64 under this EntityType. // // If this is populated with // [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot diff --git a/aiplatform/apiv1beta1/aiplatformpb/explanation.pb.go b/aiplatform/apiv1beta1/aiplatformpb/explanation.pb.go index a349d2461dbb..2526865fb6d6 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/explanation.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/explanation.pb.go @@ -197,8 +197,10 @@ func (ExamplesOverride_DataFormat) EnumDescriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1beta1_explanation_proto_rawDescGZIP(), []int{16, 0} } -// Explanation of a prediction (provided in [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions]) -// produced by the Model on a given [instance][google.cloud.aiplatform.v1beta1.ExplainRequest.instances]. +// Explanation of a prediction (provided in +// [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions]) +// produced by the Model on a given +// [instance][google.cloud.aiplatform.v1beta1.ExplainRequest.instances]. type Explanation struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -210,14 +212,19 @@ type Explanation struct { // predict only one score, there is only one attibution that explains the // predicted output. For Models that predict multiple outputs, such as // multiclass Models that predict multiple classes, each element explains one - // specific item. [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] can be used to identify which - // output this attribution is explaining. + // specific item. + // [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] + // can be used to identify which output this attribution is explaining. // - // If users set [ExplanationParameters.top_k][google.cloud.aiplatform.v1beta1.ExplanationParameters.top_k], the attributions are sorted - // by [instance_output_value][Attributions.instance_output_value] in - // descending order. If [ExplanationParameters.output_indices][google.cloud.aiplatform.v1beta1.ExplanationParameters.output_indices] is specified, - // the attributions are stored by [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] in the same - // order as they appear in the output_indices. + // If users set + // [ExplanationParameters.top_k][google.cloud.aiplatform.v1beta1.ExplanationParameters.top_k], + // the attributions are sorted by + // [instance_output_value][Attributions.instance_output_value] in descending + // order. If + // [ExplanationParameters.output_indices][google.cloud.aiplatform.v1beta1.ExplanationParameters.output_indices] + // is specified, the attributions are stored by + // [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] + // in the same order as they appear in the output_indices. Attributions []*Attribution `protobuf:"bytes,1,rep,name=attributions,proto3" json:"attributions,omitempty"` // Output only. List of the nearest neighbors for example-based explanations. // @@ -278,24 +285,28 @@ type ModelExplanation struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. Aggregated attributions explaining the Model's prediction outputs over the - // set of instances. The attributions are grouped by outputs. + // Output only. Aggregated attributions explaining the Model's prediction + // outputs over the set of instances. The attributions are grouped by outputs. // // For Models that predict only one output, such as regression Models that // predict only one score, there is only one attibution that explains the // predicted output. For Models that predict multiple outputs, such as // multiclass Models that predict multiple classes, each element explains one - // specific item. [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] can be used to identify which - // output this attribution is explaining. + // specific item. + // [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] + // can be used to identify which output this attribution is explaining. // - // The [baselineOutputValue][google.cloud.aiplatform.v1beta1.Attribution.baseline_output_value], - // [instanceOutputValue][google.cloud.aiplatform.v1beta1.Attribution.instance_output_value] and - // [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] fields are - // averaged over the test data. + // The + // [baselineOutputValue][google.cloud.aiplatform.v1beta1.Attribution.baseline_output_value], + // [instanceOutputValue][google.cloud.aiplatform.v1beta1.Attribution.instance_output_value] + // and + // [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] + // fields are averaged over the test data. // // NOTE: Currently AutoML tabular classification Models produce only one // attribution, which averages attributions over all the classes it predicts. - // [Attribution.approximation_error][google.cloud.aiplatform.v1beta1.Attribution.approximation_error] is not populated. + // [Attribution.approximation_error][google.cloud.aiplatform.v1beta1.Attribution.approximation_error] + // is not populated. MeanAttributions []*Attribution `protobuf:"bytes,1,rep,name=mean_attributions,json=meanAttributions,proto3" json:"mean_attributions,omitempty"` } @@ -344,29 +355,36 @@ type Attribution struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. Model predicted output if the input instance is constructed from the - // baselines of all the features defined in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. + // Output only. Model predicted output if the input instance is constructed + // from the baselines of all the features defined in + // [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. // The field name of the output is determined by the key in // [ExplanationMetadata.outputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.outputs]. // // If the Model's predicted output has multiple dimensions (rank > 1), this is - // the value in the output located by [output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. + // the value in the output located by + // [output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. // // If there are multiple baselines, their output values are averaged. BaselineOutputValue float64 `protobuf:"fixed64,1,opt,name=baseline_output_value,json=baselineOutputValue,proto3" json:"baseline_output_value,omitempty"` // Output only. Model predicted output on the corresponding [explanation // instance][ExplainRequest.instances]. The field name of the output is - // determined by the key in [ExplanationMetadata.outputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.outputs]. + // determined by the key in + // [ExplanationMetadata.outputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.outputs]. // // If the Model predicted output has multiple dimensions, this is the value in - // the output located by [output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. + // the output located by + // [output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. InstanceOutputValue float64 `protobuf:"fixed64,2,opt,name=instance_output_value,json=instanceOutputValue,proto3" json:"instance_output_value,omitempty"` - // Output only. Attributions of each explained feature. Features are extracted from - // the [prediction instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] according to - // [explanation metadata for inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. + // Output only. Attributions of each explained feature. Features are extracted + // from the [prediction + // instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] + // according to [explanation metadata for + // inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. // // The value is a struct, whose keys are the name of the feature. The values - // are how much the feature in the [instance][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] + // are how much the feature in the + // [instance][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] // contributed to the predicted result. // // The format of the value is determined by the feature's input format: @@ -383,10 +401,14 @@ type Attribution struct { // struct. The formats of the values in the attribution struct are // determined by the formats of the values in the feature struct. // - // The [ExplanationMetadata.feature_attributions_schema_uri][google.cloud.aiplatform.v1beta1.ExplanationMetadata.feature_attributions_schema_uri] field, - // pointed to by the [ExplanationSpec][google.cloud.aiplatform.v1beta1.ExplanationSpec] field of the - // [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models] object, points to the schema file that - // describes the features and their attribution values (if it is populated). + // The + // [ExplanationMetadata.feature_attributions_schema_uri][google.cloud.aiplatform.v1beta1.ExplanationMetadata.feature_attributions_schema_uri] + // field, pointed to by the + // [ExplanationSpec][google.cloud.aiplatform.v1beta1.ExplanationSpec] field of + // the + // [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models] + // object, points to the schema file that describes the features and their + // attribution values (if it is populated). FeatureAttributions *structpb.Value `protobuf:"bytes,3,opt,name=feature_attributions,json=featureAttributions,proto3" json:"feature_attributions,omitempty"` // Output only. The index that locates the explained prediction output. // @@ -396,28 +418,35 @@ type Attribution struct { // The i-th element in output_index is the element index of the i-th dimension // of the output vector. Indices start from 0. OutputIndex []int32 `protobuf:"varint,4,rep,packed,name=output_index,json=outputIndex,proto3" json:"output_index,omitempty"` - // Output only. The display name of the output identified by [output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. For example, - // the predicted class name by a multi-classification Model. + // Output only. The display name of the output identified by + // [output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. + // For example, the predicted class name by a multi-classification Model. // // This field is only populated iff the Model predicts display names as a // separate field along with the explained output. The predicted display name // must has the same shape of the explained output, and can be located using // output_index. OutputDisplayName string `protobuf:"bytes,5,opt,name=output_display_name,json=outputDisplayName,proto3" json:"output_display_name,omitempty"` - // Output only. Error of [feature_attributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] caused by approximation used in the - // explanation method. Lower value means more precise attributions. + // Output only. Error of + // [feature_attributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] + // caused by approximation used in the explanation method. Lower value means + // more precise attributions. // // * For Sampled Shapley // [attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.sampled_shapley_attribution], - // increasing [path_count][google.cloud.aiplatform.v1beta1.SampledShapleyAttribution.path_count] might reduce - // the error. + // increasing + // [path_count][google.cloud.aiplatform.v1beta1.SampledShapleyAttribution.path_count] + // might reduce the error. // * For Integrated Gradients // [attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution], - // increasing [step_count][google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution.step_count] might - // reduce the error. - // * For [XRAI attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.xrai_attribution], // increasing - // [step_count][google.cloud.aiplatform.v1beta1.XraiAttribution.step_count] might reduce the error. + // [step_count][google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution.step_count] + // might reduce the error. + // * For [XRAI + // attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.xrai_attribution], + // increasing + // [step_count][google.cloud.aiplatform.v1beta1.XraiAttribution.step_count] + // might reduce the error. // // See [this introduction](/vertex-ai/docs/explainable-ai/overview) // for more information. @@ -643,13 +672,14 @@ type ExplanationParameters struct { // outputs. TopK int32 `protobuf:"varint,4,opt,name=top_k,json=topK,proto3" json:"top_k,omitempty"` // If populated, only returns attributions that have - // [output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] contained in output_indices. It - // must be an ndarray of integers, with the same shape of the output it's - // explaining. + // [output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] + // contained in output_indices. It must be an ndarray of integers, with the + // same shape of the output it's explaining. // - // If not populated, returns attributions for [top_k][google.cloud.aiplatform.v1beta1.ExplanationParameters.top_k] indices of outputs. - // If neither top_k nor output_indices is populated, returns the argmax - // index of the outputs. + // If not populated, returns attributions for + // [top_k][google.cloud.aiplatform.v1beta1.ExplanationParameters.top_k] + // indices of outputs. If neither top_k nor output_indices is populated, + // returns the argmax index of the outputs. // // Only applicable to Models that predict multiple outputs (e,g, multi-class // Models that predict multiple classes). @@ -791,8 +821,8 @@ type SampledShapleyAttribution struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The number of feature permutations to consider when approximating the - // Shapley values. + // Required. The number of feature permutations to consider when approximating + // the Shapley values. // // Valid range of its value is [1, 50], inclusively. PathCount int32 `protobuf:"varint,1,opt,name=path_count,json=pathCount,proto3" json:"path_count,omitempty"` @@ -1109,18 +1139,20 @@ type SmoothGradConfig_NoiseSigma struct { // paper: https://arxiv.org/pdf/1706.03825.pdf. Defaults to 0.1. // // If the distribution is different per feature, set - // [feature_noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.feature_noise_sigma] instead - // for each feature. + // [feature_noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.feature_noise_sigma] + // instead for each feature. NoiseSigma float32 `protobuf:"fixed32,1,opt,name=noise_sigma,json=noiseSigma,proto3,oneof"` } type SmoothGradConfig_FeatureNoiseSigma struct { - // This is similar to [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma], but - // provides additional flexibility. A separate noise sigma can be provided - // for each feature, which is useful if their distributions are different. - // No noise is added to features that are not set. If this field is unset, - // [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma] will be used for all - // features. + // This is similar to + // [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma], + // but provides additional flexibility. A separate noise sigma can be + // provided for each feature, which is useful if their distributions are + // different. No noise is added to features that are not set. If this field + // is unset, + // [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma] + // will be used for all features. FeatureNoiseSigma *FeatureNoiseSigma `protobuf:"bytes,2,opt,name=feature_noise_sigma,json=featureNoiseSigma,proto3,oneof"` } @@ -1327,7 +1359,8 @@ type isExamples_Config interface { type Examples_NearestNeighborSearchConfig struct { // The configuration for the generated index, the semantics are the same as - // [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should match NearestNeighborSearchConfig. + // [metadata][google.cloud.aiplatform.v1beta1.Index.metadata] and should + // match NearestNeighborSearchConfig. NearestNeighborSearchConfig *structpb.Value `protobuf:"bytes,2,opt,name=nearest_neighbor_search_config,json=nearestNeighborSearchConfig,proto3,oneof"` } @@ -1399,16 +1432,17 @@ func (x *Presets) GetModality() Presets_Modality { return Presets_MODALITY_UNSPECIFIED } -// The [ExplanationSpec][google.cloud.aiplatform.v1beta1.ExplanationSpec] entries that can be overridden at -// [online explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] time. +// The [ExplanationSpec][google.cloud.aiplatform.v1beta1.ExplanationSpec] +// entries that can be overridden at [online +// explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] time. type ExplanationSpecOverride struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The parameters to be overridden. Note that the - // [method][google.cloud.aiplatform.v1beta1.ExplanationParameters.method] cannot be changed. If not specified, - // no parameter is overridden. + // [method][google.cloud.aiplatform.v1beta1.ExplanationParameters.method] + // cannot be changed. If not specified, no parameter is overridden. Parameters *ExplanationParameters `protobuf:"bytes,1,opt,name=parameters,proto3" json:"parameters,omitempty"` // The metadata to be overridden. If not specified, no metadata is overridden. Metadata *ExplanationMetadataOverride `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` @@ -1469,18 +1503,21 @@ func (x *ExplanationSpecOverride) GetExamplesOverride() *ExamplesOverride { return nil } -// The [ExplanationMetadata][google.cloud.aiplatform.v1beta1.ExplanationMetadata] entries that can be overridden at -// [online explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] time. +// The +// [ExplanationMetadata][google.cloud.aiplatform.v1beta1.ExplanationMetadata] +// entries that can be overridden at [online +// explanation][google.cloud.aiplatform.v1beta1.PredictionService.Explain] time. type ExplanationMetadataOverride struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. Overrides the [input metadata][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs] of the features. - // The key is the name of the feature to be overridden. The keys specified - // here must exist in the input metadata to be overridden. If a feature is - // not specified here, the corresponding feature's input metadata is not - // overridden. + // Required. Overrides the [input + // metadata][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs] of + // the features. The key is the name of the feature to be overridden. The keys + // specified here must exist in the input metadata to be overridden. If a + // feature is not specified here, the corresponding feature's input metadata + // is not overridden. Inputs map[string]*ExplanationMetadataOverride_InputMetadataOverride `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } @@ -1683,12 +1720,14 @@ type FeatureNoiseSigma_NoiseSigmaForFeature struct { // The name of the input feature for which noise sigma is provided. The // features are defined in - // [explanation metadata inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. + // [explanation metadata + // inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // This represents the standard deviation of the Gaussian kernel that will // be used to add noise to the feature prior to computing gradients. Similar - // to [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma] but represents the - // noise added to the current feature. Defaults to 0.1. + // to + // [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma] + // but represents the noise added to the current feature. Defaults to 0.1. Sigma float32 `protobuf:"fixed32,2,opt,name=sigma,proto3" json:"sigma,omitempty"` } @@ -1738,8 +1777,9 @@ func (x *FeatureNoiseSigma_NoiseSigmaForFeature) GetSigma() float32 { return 0 } -// The [input metadata][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata] entries to be -// overridden. +// The [input +// metadata][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata] +// entries to be overridden. type ExplanationMetadataOverride_InputMetadataOverride struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/aiplatform/apiv1beta1/aiplatformpb/explanation_metadata.pb.go b/aiplatform/apiv1beta1/aiplatformpb/explanation_metadata.pb.go index 0ebc4a528f3d..fc6b2cc65ebb 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/explanation_metadata.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/explanation_metadata.pb.go @@ -46,8 +46,9 @@ const ( // The tensor represents one feature. ExplanationMetadata_InputMetadata_IDENTITY ExplanationMetadata_InputMetadata_Encoding = 1 // The tensor represents a bag of features where each index maps to - // a feature. [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.index_feature_mapping] must be provided for - // this encoding. For example: + // a feature. + // [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.index_feature_mapping] + // must be provided for this encoding. For example: // ``` // input = [27, 6.0, 150] // index_feature_mapping = ["age", "height", "weight"] @@ -55,15 +56,17 @@ const ( ExplanationMetadata_InputMetadata_BAG_OF_FEATURES ExplanationMetadata_InputMetadata_Encoding = 2 // The tensor represents a bag of features where each index maps to a // feature. Zero values in the tensor indicates feature being - // non-existent. [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.index_feature_mapping] must be provided - // for this encoding. For example: + // non-existent. + // [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.index_feature_mapping] + // must be provided for this encoding. For example: // ``` // input = [2, 0, 5, 0, 1] // index_feature_mapping = ["a", "b", "c", "d", "e"] // ``` ExplanationMetadata_InputMetadata_BAG_OF_FEATURES_SPARSE ExplanationMetadata_InputMetadata_Encoding = 3 // The tensor is a list of binaries representing whether a feature exists - // or not (1 indicates existence). [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.index_feature_mapping] + // or not (1 indicates existence). + // [InputMetadata.index_feature_mapping][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.index_feature_mapping] // must be provided for this encoding. For example: // ``` // input = [1, 0, 1, 0, 1] @@ -71,8 +74,9 @@ const ( // ``` ExplanationMetadata_InputMetadata_INDICATOR ExplanationMetadata_InputMetadata_Encoding = 4 // The tensor is encoded into a 1-dimensional array represented by an - // encoded tensor. [InputMetadata.encoded_tensor_name][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.encoded_tensor_name] must be provided - // for this encoding. For example: + // encoded tensor. + // [InputMetadata.encoded_tensor_name][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.encoded_tensor_name] + // must be provided for this encoding. For example: // ``` // input = ["This", "is", "a", "test", "."] // encoded = [0.1, 0.2, 0.3, 0.4, 0.5] @@ -80,9 +84,9 @@ const ( ExplanationMetadata_InputMetadata_COMBINED_EMBEDDING ExplanationMetadata_InputMetadata_Encoding = 5 // Select this encoding when the input tensor is encoded into a // 2-dimensional array represented by an encoded tensor. - // [InputMetadata.encoded_tensor_name][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.encoded_tensor_name] must be provided for this - // encoding. The first dimension of the encoded tensor's shape is the same - // as the input tensor's shape. For example: + // [InputMetadata.encoded_tensor_name][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.encoded_tensor_name] + // must be provided for this encoding. The first dimension of the encoded + // tensor's shape is the same as the input tensor's shape. For example: // ``` // input = ["This", "is", "a", "test", "."] // encoded = [[0.1, 0.2, 0.3, 0.4, 0.5], @@ -146,7 +150,8 @@ func (ExplanationMetadata_InputMetadata_Encoding) EnumDescriptor() ([]byte, []in } // Type of the image visualization. Only applicable to -// [Integrated Gradients attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution]. +// [Integrated Gradients +// attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution]. type ExplanationMetadata_InputMetadata_Visualization_Type int32 const ( @@ -400,17 +405,18 @@ type ExplanationMetadata struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. Map from feature names to feature input metadata. Keys are the name of the - // features. Values are the specification of the feature. + // Required. Map from feature names to feature input metadata. Keys are the + // name of the features. Values are the specification of the feature. // // An empty InputMetadata is valid. It describes a text feature which has the - // name specified as the key in [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. The baseline - // of the empty feature is chosen by Vertex AI. + // name specified as the key in + // [ExplanationMetadata.inputs][google.cloud.aiplatform.v1beta1.ExplanationMetadata.inputs]. + // The baseline of the empty feature is chosen by Vertex AI. // // For Vertex AI-provided Tensorflow images, the key can be any friendly // name of the feature. Once specified, - // [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] are keyed by - // this key (if not grouped with another feature). + // [featureAttributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions] + // are keyed by this key (if not grouped with another feature). // // For custom images, the key must match with the key in // [instance][google.cloud.aiplatform.v1beta1.ExplainRequest.instances]. @@ -426,7 +432,8 @@ type ExplanationMetadata struct { // Currently only one key is allowed. Outputs map[string]*ExplanationMetadata_OutputMetadata `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Points to a YAML file stored on Google Cloud Storage describing the format - // of the [feature attributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions]. + // of the [feature + // attributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions]. // The schema is defined as an OpenAPI 3.0.2 [Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). // AutoML tabular Models always have this field populated by Vertex AI. @@ -500,8 +507,10 @@ func (x *ExplanationMetadata) GetLatentSpaceSource() string { // Metadata of the input of a feature. // -// Fields other than [InputMetadata.input_baselines][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.input_baselines] are applicable only -// for Models that are using Vertex AI-provided images for Tensorflow. +// Fields other than +// [InputMetadata.input_baselines][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.input_baselines] +// are applicable only for Models that are using Vertex AI-provided images for +// Tensorflow. type ExplanationMetadata_InputMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -511,7 +520,8 @@ type ExplanationMetadata_InputMetadata struct { // // If no baseline is specified, Vertex AI chooses the baseline for this // feature. If multiple baselines are specified, Vertex AI returns the - // average attributions across them in [Attribution.feature_attributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions]. + // average attributions across them in + // [Attribution.feature_attributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions]. // // For Vertex AI-provided Tensorflow images (both 1.x and 2.x), the shape // of each baseline must match the shape of the input tensor. If a scalar is @@ -519,8 +529,9 @@ type ExplanationMetadata_InputMetadata struct { // // For custom images, the element of the baselines must be in the same // format as the feature's input in the - // [instance][google.cloud.aiplatform.v1beta1.ExplainRequest.instances][]. The schema of any single instance - // may be specified via Endpoint's DeployedModels' + // [instance][google.cloud.aiplatform.v1beta1.ExplainRequest.instances][]. + // The schema of any single instance may be specified via Endpoint's + // DeployedModels' // [Model's][google.cloud.aiplatform.v1beta1.DeployedModel.model] // [PredictSchemata's][google.cloud.aiplatform.v1beta1.Model.predict_schemata] // [instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]. @@ -547,14 +558,17 @@ type ExplanationMetadata_InputMetadata struct { // https://www.tensorflow.org/api_docs/python/tf/sparse/SparseTensor. DenseShapeTensorName string `protobuf:"bytes,7,opt,name=dense_shape_tensor_name,json=denseShapeTensorName,proto3" json:"dense_shape_tensor_name,omitempty"` // A list of feature names for each index in the input tensor. - // Required when the input [InputMetadata.encoding][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.encoding] is BAG_OF_FEATURES, - // BAG_OF_FEATURES_SPARSE, INDICATOR. + // Required when the input + // [InputMetadata.encoding][google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.encoding] + // is BAG_OF_FEATURES, BAG_OF_FEATURES_SPARSE, INDICATOR. IndexFeatureMapping []string `protobuf:"bytes,8,rep,name=index_feature_mapping,json=indexFeatureMapping,proto3" json:"index_feature_mapping,omitempty"` // Encoded tensor is a transformation of the input tensor. Must be provided // if choosing - // [Integrated Gradients attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution] - // or [XRAI attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.xrai_attribution] and the - // input tensor is not differentiable. + // [Integrated Gradients + // attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution] + // or [XRAI + // attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.xrai_attribution] + // and the input tensor is not differentiable. // // An encoded tensor is generated if the input tensor is encoded by a lookup // table. @@ -571,7 +585,8 @@ type ExplanationMetadata_InputMetadata struct { // name will be treated as one feature when computing attributions. Features // grouped together can have different shapes in value. If provided, there // will be one single attribution generated in - // [Attribution.feature_attributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions], keyed by the group name. + // [Attribution.feature_attributions][google.cloud.aiplatform.v1beta1.Attribution.feature_attributions], + // keyed by the group name. GroupName string `protobuf:"bytes,12,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` } @@ -697,11 +712,14 @@ type ExplanationMetadata_OutputMetadata struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Defines how to map [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] to + // Defines how to map + // [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] + // to // [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name]. // // If neither of the fields are specified, - // [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] will not be populated. + // [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] + // will not be populated. // // Types that are assignable to DisplayNameMapping: // @@ -788,8 +806,10 @@ type ExplanationMetadata_OutputMetadata_IndexDisplayNameMapping struct { // // The shape of the value must be an n-dimensional array of strings. The // number of dimensions must match that of the outputs to be explained. - // The [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] is populated by locating in the - // mapping with [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. + // The + // [Attribution.output_display_name][google.cloud.aiplatform.v1beta1.Attribution.output_display_name] + // is populated by locating in the mapping with + // [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index]. IndexDisplayNameMapping *structpb.Value `protobuf:"bytes,1,opt,name=index_display_name_mapping,json=indexDisplayNameMapping,proto3,oneof"` } @@ -799,8 +819,9 @@ type ExplanationMetadata_OutputMetadata_DisplayNameMappingKey struct { // Use this if the prediction contains the display names for the outputs. // // The display names in the prediction must have the same shape of the - // outputs, so that it can be located by [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] for - // a specific output. + // outputs, so that it can be located by + // [Attribution.output_index][google.cloud.aiplatform.v1beta1.Attribution.output_index] + // for a specific output. DisplayNameMappingKey string `protobuf:"bytes,2,opt,name=display_name_mapping_key,json=displayNameMappingKey,proto3,oneof"` } @@ -904,7 +925,8 @@ type ExplanationMetadata_InputMetadata_Visualization struct { unknownFields protoimpl.UnknownFields // Type of the image visualization. Only applicable to - // [Integrated Gradients attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution]. + // [Integrated Gradients + // attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution]. // OUTLINES shows regions of attribution, while PIXELS shows per-pixel // attribution. Defaults to OUTLINES. Type ExplanationMetadata_InputMetadata_Visualization_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.aiplatform.v1beta1.ExplanationMetadata_InputMetadata_Visualization_Type" json:"type,omitempty"` @@ -914,12 +936,14 @@ type ExplanationMetadata_InputMetadata_Visualization struct { // The color scheme used for the highlighted areas. // // Defaults to PINK_GREEN for - // [Integrated Gradients attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution], + // [Integrated Gradients + // attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.integrated_gradients_attribution], // which shows positive attributions in green and negative in pink. // // Defaults to VIRIDIS for - // [XRAI attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.xrai_attribution], which - // highlights the most influential regions in yellow and the least + // [XRAI + // attribution][google.cloud.aiplatform.v1beta1.ExplanationParameters.xrai_attribution], + // which highlights the most influential regions in yellow and the least // influential in blue. ColorMap ExplanationMetadata_InputMetadata_Visualization_ColorMap `protobuf:"varint,3,opt,name=color_map,json=colorMap,proto3,enum=google.cloud.aiplatform.v1beta1.ExplanationMetadata_InputMetadata_Visualization_ColorMap" json:"color_map,omitempty"` // Excludes attributions above the specified percentile from the diff --git a/aiplatform/apiv1beta1/aiplatformpb/feature.pb.go b/aiplatform/apiv1beta1/aiplatformpb/feature.pb.go index ab538e743ca6..cd8ec63f9708 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/feature.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/feature.pb.go @@ -214,11 +214,11 @@ type Feature struct { // Used to perform a consistent read-modify-write updates. If not set, a blind // "overwrite" update happens. Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"` - // Optional. Deprecated: The custom monitoring configuration for this Feature, if not - // set, use the monitoring_config defined for the EntityType this Feature - // belongs to. - // Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or - // INT64 can enable monitoring. + // Optional. Deprecated: The custom monitoring configuration for this Feature, + // if not set, use the monitoring_config defined for the EntityType this + // Feature belongs to. Only Features with type + // ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) + // BOOL, STRING, DOUBLE or INT64 can enable monitoring. // // If this is populated with // [FeaturestoreMonitoringConfig.disabled][] = true, snapshot analysis @@ -229,20 +229,22 @@ type Feature struct { // // Deprecated: Do not use. MonitoringConfig *FeaturestoreMonitoringConfig `protobuf:"bytes,9,opt,name=monitoring_config,json=monitoringConfig,proto3" json:"monitoring_config,omitempty"` - // Optional. If not set, use the monitoring_config defined for the EntityType this - // Feature belongs to. - // Only Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL, STRING, DOUBLE or - // INT64 can enable monitoring. + // Optional. If not set, use the monitoring_config defined for the EntityType + // this Feature belongs to. Only Features with type + // ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) + // BOOL, STRING, DOUBLE or INT64 can enable monitoring. // // If set to true, all types of data monitoring are disabled despite the // config on EntityType. DisableMonitoring bool `protobuf:"varint,12,opt,name=disable_monitoring,json=disableMonitoring,proto3" json:"disable_monitoring,omitempty"` // Output only. A list of historical [Snapshot // Analysis][FeaturestoreMonitoringConfig.SnapshotAnalysis] - // stats requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time] + // stats requested by user, sorted by + // [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time] // descending. MonitoringStats []*FeatureStatsAnomaly `protobuf:"bytes,10,rep,name=monitoring_stats,json=monitoringStats,proto3" json:"monitoring_stats,omitempty"` - // Output only. The list of historical stats and anomalies with specified objectives. + // Output only. The list of historical stats and anomalies with specified + // objectives. MonitoringStatsAnomalies []*Feature_MonitoringStatsAnomaly `protobuf:"bytes,11,rep,name=monitoring_stats_anomalies,json=monitoringStatsAnomalies,proto3" json:"monitoring_stats_anomalies,omitempty"` } @@ -359,7 +361,9 @@ func (x *Feature) GetMonitoringStatsAnomalies() []*Feature_MonitoringStatsAnomal // A list of historical [Snapshot // Analysis][FeaturestoreMonitoringConfig.SnapshotAnalysis] or [Import Feature // Analysis] [FeaturestoreMonitoringConfig.ImportFeatureAnalysis] stats -// requested by user, sorted by [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time] descending. +// requested by user, sorted by +// [FeatureStatsAnomaly.start_time][google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.start_time] +// descending. type Feature_MonitoringStatsAnomaly struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/aiplatform/apiv1beta1/aiplatformpb/feature_monitoring_stats.pb.go b/aiplatform/apiv1beta1/aiplatformpb/feature_monitoring_stats.pb.go index 9f09418f0ba1..45a72d915a7b 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/feature_monitoring_stats.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/feature_monitoring_stats.pb.go @@ -53,7 +53,8 @@ type FeatureStatsAnomaly struct { // Feature importance score, only populated when cross-feature monitoring is // enabled. For now only used to represent feature attribution score within // range [0, 1] for - // [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW] and + // [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW] + // and // [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT]. Score float64 `protobuf:"fixed64,1,opt,name=score,proto3" json:"score,omitempty"` // Path of the stats file for current feature values in Cloud Storage bucket. diff --git a/aiplatform/apiv1beta1/aiplatformpb/featurestore.pb.go b/aiplatform/apiv1beta1/aiplatformpb/featurestore.pb.go index 1a22f7135e1f..fb7062e10fb8 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/featurestore.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/featurestore.pb.go @@ -116,10 +116,11 @@ type Featurestore struct { CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when this Featurestore was last updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // Optional. Used to perform consistent read-modify-write updates. If not set, a blind - // "overwrite" update happens. + // Optional. Used to perform consistent read-modify-write updates. If not set, + // a blind "overwrite" update happens. Etag string `protobuf:"bytes,5,opt,name=etag,proto3" json:"etag,omitempty"` - // Optional. The labels with user-defined metadata to organize your Featurestore. + // Optional. The labels with user-defined metadata to organize your + // Featurestore. // // Label keys and values can be no longer than 64 characters // (Unicode codepoints), can only contain lowercase letters, numeric @@ -131,23 +132,22 @@ type Featurestore struct { // System reserved label keys are prefixed with "aiplatform.googleapis.com/" // and are immutable. 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"` - // Optional. Config for online storage resources. The field should not co-exist with the - // field of `OnlineStoreReplicationConfig`. If both of it and - // OnlineStoreReplicationConfig are unset, the feature store will not have an - // online store and cannot be used for online serving. + // Optional. Config for online storage resources. The field should not + // co-exist with the field of `OnlineStoreReplicationConfig`. If both of it + // and OnlineStoreReplicationConfig are unset, the feature store will not have + // an online store and cannot be used for online serving. OnlineServingConfig *Featurestore_OnlineServingConfig `protobuf:"bytes,7,opt,name=online_serving_config,json=onlineServingConfig,proto3" json:"online_serving_config,omitempty"` // Output only. State of the featurestore. State Featurestore_State `protobuf:"varint,8,opt,name=state,proto3,enum=google.cloud.aiplatform.v1beta1.Featurestore_State" json:"state,omitempty"` - // Optional. TTL in days for feature values that will be stored in online serving - // storage. The Feature Store online storage periodically removes obsolete - // feature values older than `online_storage_ttl_days` since the feature - // generation time. - // Note that `online_storage_ttl_days` should be less than or equal to - // `offline_storage_ttl_days` for each EntityType under a featurestore. - // If not set, default to 4000 days + // Optional. TTL in days for feature values that will be stored in online + // serving storage. The Feature Store online storage periodically removes + // obsolete feature values older than `online_storage_ttl_days` since the + // feature generation time. Note that `online_storage_ttl_days` should be less + // than or equal to `offline_storage_ttl_days` for each EntityType under a + // featurestore. If not set, default to 4000 days OnlineStorageTtlDays int32 `protobuf:"varint,13,opt,name=online_storage_ttl_days,json=onlineStorageTtlDays,proto3" json:"online_storage_ttl_days,omitempty"` - // Optional. Customer-managed encryption key spec for data storage. If set, both of the - // online and offline data storage will be secured by this key. + // Optional. Customer-managed encryption key spec for data storage. If set, + // both of the online and offline data storage will be secured by this key. EncryptionSpec *EncryptionSpec `protobuf:"bytes,10,opt,name=encryption_spec,json=encryptionSpec,proto3" json:"encryption_spec,omitempty"` } @@ -318,8 +318,8 @@ type Featurestore_OnlineServingConfig_Scaling struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The minimum number of nodes to scale down to. Must be greater than or - // equal to 1. + // Required. The minimum number of nodes to scale down to. Must be greater + // than or equal to 1. MinNodeCount int32 `protobuf:"varint,1,opt,name=min_node_count,json=minNodeCount,proto3" json:"min_node_count,omitempty"` // The maximum number of nodes to scale up to. Must be greater than // min_node_count, and less than or equal to 10 times of 'min_node_count'. diff --git a/aiplatform/apiv1beta1/aiplatformpb/featurestore_monitoring.pb.go b/aiplatform/apiv1beta1/aiplatformpb/featurestore_monitoring.pb.go index 3903fbc11b2d..7688bfdef893 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/featurestore_monitoring.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/featurestore_monitoring.pb.go @@ -176,11 +176,15 @@ type FeaturestoreMonitoringConfig struct { ImportFeaturesAnalysis *FeaturestoreMonitoringConfig_ImportFeaturesAnalysis `protobuf:"bytes,2,opt,name=import_features_analysis,json=importFeaturesAnalysis,proto3" json:"import_features_analysis,omitempty"` // Threshold for numerical features of anomaly detection. // This is shared by all objectives of Featurestore Monitoring for numerical - // features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) DOUBLE or INT64). + // features (i.e. Features with type + // ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) + // DOUBLE or INT64). NumericalThresholdConfig *FeaturestoreMonitoringConfig_ThresholdConfig `protobuf:"bytes,3,opt,name=numerical_threshold_config,json=numericalThresholdConfig,proto3" json:"numerical_threshold_config,omitempty"` // Threshold for categorical features of anomaly detection. // This is shared by all types of Featurestore Monitoring for categorical - // features (i.e. Features with type ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) BOOL or STRING). + // features (i.e. Features with type + // ([Feature.ValueType][google.cloud.aiplatform.v1beta1.Feature.ValueType]) + // BOOL or STRING). CategoricalThresholdConfig *FeaturestoreMonitoringConfig_ThresholdConfig `protobuf:"bytes,4,opt,name=categorical_threshold_config,json=categoricalThresholdConfig,proto3" json:"categorical_threshold_config,omitempty"` } @@ -278,7 +282,8 @@ type FeaturestoreMonitoringConfig_SnapshotAnalysis struct { // running interval. The value indicates number of days. // If both // [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] - // and [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval] + // and + // [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval] // are set when creating/updating EntityTypes/Features, // [FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days][google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoring_interval_days] // will be used. diff --git a/aiplatform/apiv1beta1/aiplatformpb/featurestore_online_service.pb.go b/aiplatform/apiv1beta1/aiplatformpb/featurestore_online_service.pb.go index fe2d47f98d0a..2a47754ba247 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/featurestore_online_service.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/featurestore_online_service.pb.go @@ -41,20 +41,22 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.WriteFeatureValues]. +// Request message for +// [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.WriteFeatureValues]. type WriteFeatureValuesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the EntityType for the entities being written. - // Value format: `projects/{project}/locations/{location}/featurestores/ + // Required. The resource name of the EntityType for the entities being + // written. Value format: + // `projects/{project}/locations/{location}/featurestores/ // {featurestore}/entityTypes/{entityType}`. For example, // for a machine learning model predicting user clicks on a website, an // EntityType ID could be `user`. EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - // Required. The entities to be written. Up to 100,000 feature values can be written - // across all `payloads`. + // Required. The entities to be written. Up to 100,000 feature values can be + // written across all `payloads`. Payloads []*WriteFeatureValuesPayload `protobuf:"bytes,2,rep,name=payloads,proto3" json:"payloads,omitempty"` } @@ -112,9 +114,9 @@ type WriteFeatureValuesPayload struct { // Required. The ID of the entity. EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` - // Required. Feature values to be written, mapping from Feature ID to value. Up to - // 100,000 `feature_values` entries may be written across all payloads. The - // feature generation time, aligned by days, must be no older than five + // Required. Feature values to be written, mapping from Feature ID to value. + // Up to 100,000 `feature_values` entries may be written across all payloads. + // The feature generation time, aligned by days, must be no older than five // years (1825 days) and no later than one year (366 days) in the future. FeatureValues map[string]*FeatureValue `protobuf:"bytes,2,rep,name=feature_values,json=featureValues,proto3" json:"feature_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } @@ -165,7 +167,8 @@ func (x *WriteFeatureValuesPayload) GetFeatureValues() map[string]*FeatureValue return nil } -// Response message for [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.WriteFeatureValues]. +// Response message for +// [FeaturestoreOnlineServingService.WriteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.WriteFeatureValues]. type WriteFeatureValuesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -204,7 +207,8 @@ func (*WriteFeatureValuesResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1beta1_featurestore_online_service_proto_rawDescGZIP(), []int{2} } -// Request message for [FeaturestoreOnlineServingService.ReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValues]. +// Request message for +// [FeaturestoreOnlineServingService.ReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValues]. type ReadFeatureValuesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -277,7 +281,8 @@ func (x *ReadFeatureValuesRequest) GetFeatureSelector() *FeatureSelector { return nil } -// Response message for [FeaturestoreOnlineServingService.ReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValues]. +// Response message for +// [FeaturestoreOnlineServingService.ReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValues]. type ReadFeatureValuesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -352,12 +357,12 @@ type StreamingReadFeatureValuesRequest struct { // for a machine learning model predicting user clicks on a website, an // EntityType ID could be `user`. EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - // Required. IDs of entities to read Feature values of. The maximum number of IDs is - // 100. For example, for a machine learning model predicting user clicks on a - // website, an entity ID could be `user_123`. + // Required. IDs of entities to read Feature values of. The maximum number of + // IDs is 100. For example, for a machine learning model predicting user + // clicks on a website, an entity ID could be `user_123`. EntityIds []string `protobuf:"bytes,2,rep,name=entity_ids,json=entityIds,proto3" json:"entity_ids,omitempty"` - // Required. Selector choosing Features of the target EntityType. Feature IDs will be - // deduplicated. + // Required. Selector choosing Features of the target EntityType. Feature IDs + // will be deduplicated. FeatureSelector *FeatureSelector `protobuf:"bytes,3,opt,name=feature_selector,json=featureSelector,proto3" json:"feature_selector,omitempty"` } @@ -713,14 +718,16 @@ func (x *ReadFeatureValuesResponse_FeatureDescriptor) GetId() string { } // Response header with metadata for the requested -// [ReadFeatureValuesRequest.entity_type][google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.entity_type] and Features. +// [ReadFeatureValuesRequest.entity_type][google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.entity_type] +// and Features. type ReadFeatureValuesResponse_Header struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The resource name of the EntityType from the - // [ReadFeatureValuesRequest][google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest]. Value format: + // [ReadFeatureValuesRequest][google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest]. + // Value format: // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` // List of Feature metadata corresponding to each piece of @@ -786,7 +793,8 @@ type ReadFeatureValuesResponse_EntityView struct { // requested values for one requested Feature. If no values // for the requested Feature exist, the corresponding cell will be empty. // This has the same size and is in the same order as the features from the - // header [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header]. + // header + // [ReadFeatureValuesResponse.header][google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header]. Data []*ReadFeatureValuesResponse_EntityView_Data `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/featurestore_service.pb.go b/aiplatform/apiv1beta1/aiplatformpb/featurestore_service.pb.go index e021e554c2ab..63109dcaba51 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/featurestore_service.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/featurestore_service.pb.go @@ -44,7 +44,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [FeaturestoreService.CreateFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeaturestore]. +// Request message for +// [FeaturestoreService.CreateFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeaturestore]. type CreateFeaturestoreRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -56,8 +57,8 @@ type CreateFeaturestoreRequest struct { Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The Featurestore to create. Featurestore *Featurestore `protobuf:"bytes,2,opt,name=featurestore,proto3" json:"featurestore,omitempty"` - // Required. The ID to use for this Featurestore, which will become the final component - // of the Featurestore's resource name. + // Required. The ID to use for this Featurestore, which will become the final + // component of the Featurestore's resource name. // // This value may be up to 60 characters, and valid characters are // `[a-z0-9_]`. The first character cannot be a number. @@ -119,7 +120,8 @@ func (x *CreateFeaturestoreRequest) GetFeaturestoreId() string { return "" } -// Request message for [FeaturestoreService.GetFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeaturestore]. +// Request message for +// [FeaturestoreService.GetFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeaturestore]. type GetFeaturestoreRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -168,7 +170,8 @@ func (x *GetFeaturestoreRequest) GetName() string { return "" } -// Request message for [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores]. +// Request message for +// [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores]. type ListFeaturestoresRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -208,12 +211,12 @@ type ListFeaturestoresRequest struct { // coerced to 100. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] call. - // Provide this to retrieve the subsequent page. + // [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] must - // match the call that provided the page token. + // [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores] + // must match the call that provided the page token. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // A comma-separated list of fields to order by, sorted in ascending order. // Use "desc" after a field name for descending. @@ -301,7 +304,8 @@ func (x *ListFeaturestoresRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores]. +// Response message for +// [FeaturestoreService.ListFeaturestores][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores]. type ListFeaturestoresResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -309,9 +313,10 @@ type ListFeaturestoresResponse struct { // The Featurestores matching the request. Featurestores []*Featurestore `protobuf:"bytes,1,rep,name=featurestores,proto3" json:"featurestores,omitempty"` - // A token, which can be sent as [ListFeaturestoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.page_token] to - // retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // A token, which can be sent as + // [ListFeaturestoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -361,15 +366,15 @@ func (x *ListFeaturestoresResponse) GetNextPageToken() string { return "" } -// Request message for [FeaturestoreService.UpdateFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeaturestore]. +// Request message for +// [FeaturestoreService.UpdateFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeaturestore]. type UpdateFeaturestoreRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The Featurestore's `name` field is used to identify the Featurestore to be - // updated. - // Format: + // Required. The Featurestore's `name` field is used to identify the + // Featurestore to be updated. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}` Featurestore *Featurestore `protobuf:"bytes,1,opt,name=featurestore,proto3" json:"featurestore,omitempty"` // Field mask is used to specify the fields to be overwritten in the @@ -385,7 +390,7 @@ type UpdateFeaturestoreRequest struct { // - `labels` // - `online_serving_config.fixed_node_count` // - `online_serving_config.scaling` - // - `online_storage_ttl_days` + // - `online_storage_ttl_days` (available in Preview) UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } @@ -435,7 +440,8 @@ func (x *UpdateFeaturestoreRequest) GetUpdateMask() *fieldmaskpb.FieldMask { return nil } -// Request message for [FeaturestoreService.DeleteFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeaturestore]. +// Request message for +// [FeaturestoreService.DeleteFeaturestore][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeaturestore]. type DeleteFeaturestoreRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -497,7 +503,8 @@ func (x *DeleteFeaturestoreRequest) GetForce() bool { return false } -// Request message for [FeaturestoreService.ImportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValues]. +// Request message for +// [FeaturestoreService.ImportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValues]. type ImportFeatureValuesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -520,16 +527,16 @@ type ImportFeatureValuesRequest struct { // *ImportFeatureValuesRequest_FeatureTimeField // *ImportFeatureValuesRequest_FeatureTime FeatureTimeSource isImportFeatureValuesRequest_FeatureTimeSource `protobuf_oneof:"feature_time_source"` - // Required. The resource name of the EntityType grouping the Features for which values - // are being imported. Format: + // Required. The resource name of the EntityType grouping the Features for + // which values are being imported. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` // Source column that holds entity IDs. If not provided, entity IDs are // extracted from the column named `entity_id`. EntityIdField string `protobuf:"bytes,5,opt,name=entity_id_field,json=entityIdField,proto3" json:"entity_id_field,omitempty"` - // Required. Specifications defining which Feature values to import from the entity. The - // request fails if no feature_specs are provided, and having multiple - // feature_specs for one Feature is not allowed. + // Required. Specifications defining which Feature values to import from the + // entity. The request fails if no feature_specs are provided, and having + // multiple feature_specs for one Feature is not allowed. FeatureSpecs []*ImportFeatureValuesRequest_FeatureSpec `protobuf:"bytes,8,rep,name=feature_specs,json=featureSpecs,proto3" json:"feature_specs,omitempty"` // If set, data will not be imported for online serving. This // is typically used for backfilling, where Feature generation timestamps are @@ -712,7 +719,8 @@ func (*ImportFeatureValuesRequest_FeatureTimeField) isImportFeatureValuesRequest func (*ImportFeatureValuesRequest_FeatureTime) isImportFeatureValuesRequest_FeatureTimeSource() {} -// Response message for [FeaturestoreService.ImportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValues]. +// Response message for +// [FeaturestoreService.ImportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValues]. type ImportFeatureValuesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -793,7 +801,8 @@ func (x *ImportFeatureValuesResponse) GetTimestampOutsideRetentionRowsCount() in return 0 } -// Request message for [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValues]. +// Request message for +// [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValues]. type BatchReadFeatureValuesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -804,8 +813,8 @@ type BatchReadFeatureValuesRequest struct { // *BatchReadFeatureValuesRequest_CsvReadInstances // *BatchReadFeatureValuesRequest_BigqueryReadInstances ReadOption isBatchReadFeatureValuesRequest_ReadOption `protobuf_oneof:"read_option"` - // Required. The resource name of the Featurestore from which to query Feature values. - // Format: + // Required. The resource name of the Featurestore from which to query Feature + // values. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}` Featurestore string `protobuf:"bytes,1,opt,name=featurestore,proto3" json:"featurestore,omitempty"` // Required. Specifies output location and format. @@ -818,14 +827,14 @@ type BatchReadFeatureValuesRequest struct { // automatically inferred. For CSV source, the pass-through values will be // passed as opaque bytes. PassThroughFields []*BatchReadFeatureValuesRequest_PassThroughField `protobuf:"bytes,8,rep,name=pass_through_fields,json=passThroughFields,proto3" json:"pass_through_fields,omitempty"` - // Required. Specifies EntityType grouping Features to read values of and settings. - // Each EntityType referenced in + // Required. Specifies EntityType grouping Features to read values of and + // settings. Each EntityType referenced in // [BatchReadFeatureValuesRequest.entity_type_specs] must have a column // specifying entity IDs in the EntityType in // [BatchReadFeatureValuesRequest.request][] . EntityTypeSpecs []*BatchReadFeatureValuesRequest_EntityTypeSpec `protobuf:"bytes,7,rep,name=entity_type_specs,json=entityTypeSpecs,proto3" json:"entity_type_specs,omitempty"` - // Optional. Excludes Feature values with feature generation timestamp before this - // timestamp. If not set, retrieve oldest values kept in Feature Store. + // Optional. Excludes Feature values with feature generation timestamp before + // this timestamp. If not set, retrieve oldest values kept in Feature Store. // Timestamp, if present, must not have higher than millisecond precision. StartTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` } @@ -961,7 +970,8 @@ func (*BatchReadFeatureValuesRequest_CsvReadInstances) isBatchReadFeatureValuesR func (*BatchReadFeatureValuesRequest_BigqueryReadInstances) isBatchReadFeatureValuesRequest_ReadOption() { } -// Request message for [FeaturestoreService.ExportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValues]. +// Request message for +// [FeaturestoreService.ExportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValues]. type ExportFeatureValuesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -974,8 +984,8 @@ type ExportFeatureValuesRequest struct { // *ExportFeatureValuesRequest_SnapshotExport_ // *ExportFeatureValuesRequest_FullExport_ Mode isExportFeatureValuesRequest_Mode `protobuf_oneof:"mode"` - // Required. The resource name of the EntityType from which to export Feature values. - // Format: + // Required. The resource name of the EntityType from which to export Feature + // values. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` // Required. Specifies destination location and format. @@ -1225,8 +1235,10 @@ type isFeatureValueDestination_Destination interface { type FeatureValueDestination_BigqueryDestination struct { // Output in BigQuery format. - // [BigQueryDestination.output_uri][google.cloud.aiplatform.v1beta1.BigQueryDestination.output_uri] in - // [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigquery_destination] must refer to a table. + // [BigQueryDestination.output_uri][google.cloud.aiplatform.v1beta1.BigQueryDestination.output_uri] + // in + // [FeatureValueDestination.bigquery_destination][google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigquery_destination] + // must refer to a table. BigqueryDestination *BigQueryDestination `protobuf:"bytes,1,opt,name=bigquery_destination,json=bigqueryDestination,proto3,oneof"` } @@ -1257,7 +1269,8 @@ func (*FeatureValueDestination_TfrecordDestination) isFeatureValueDestination_De func (*FeatureValueDestination_CsvDestination) isFeatureValueDestination_Destination() {} -// Response message for [FeaturestoreService.ExportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValues]. +// Response message for +// [FeaturestoreService.ExportFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValues]. type ExportFeatureValuesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1296,7 +1309,8 @@ func (*ExportFeatureValuesResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1beta1_featurestore_service_proto_rawDescGZIP(), []int{12} } -// Response message for [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValues]. +// Response message for +// [FeaturestoreService.BatchReadFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValues]. type BatchReadFeatureValuesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1335,7 +1349,8 @@ func (*BatchReadFeatureValuesResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1beta1_featurestore_service_proto_rawDescGZIP(), []int{13} } -// Request message for [FeaturestoreService.CreateEntityType][google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateEntityType]. +// Request message for +// [FeaturestoreService.CreateEntityType][google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateEntityType]. type CreateEntityTypeRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1347,8 +1362,8 @@ type CreateEntityTypeRequest struct { Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The EntityType to create. EntityType *EntityType `protobuf:"bytes,2,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` - // Required. The ID to use for the EntityType, which will become the final component of - // the EntityType's resource name. + // Required. The ID to use for the EntityType, which will become the final + // component of the EntityType's resource name. // // This value may be up to 60 characters, and valid characters are // `[a-z0-9_]`. The first character cannot be a number. @@ -1410,7 +1425,8 @@ func (x *CreateEntityTypeRequest) GetEntityTypeId() string { return "" } -// Request message for [FeaturestoreService.GetEntityType][google.cloud.aiplatform.v1beta1.FeaturestoreService.GetEntityType]. +// Request message for +// [FeaturestoreService.GetEntityType][google.cloud.aiplatform.v1beta1.FeaturestoreService.GetEntityType]. type GetEntityTypeRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1461,7 +1477,8 @@ func (x *GetEntityTypeRequest) GetName() string { return "" } -// Request message for [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes]. +// Request message for +// [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes]. type ListEntityTypesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1496,12 +1513,12 @@ type ListEntityTypesRequest struct { // 1000. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] call. - // Provide this to retrieve the subsequent page. + // [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] must - // match the call that provided the page token. + // [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes] + // must match the call that provided the page token. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // A comma-separated list of fields to order by, sorted in ascending order. // Use "desc" after a field name for descending. @@ -1590,7 +1607,8 @@ func (x *ListEntityTypesRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes]. +// Response message for +// [FeaturestoreService.ListEntityTypes][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes]. type ListEntityTypesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1598,9 +1616,10 @@ type ListEntityTypesResponse struct { // The EntityTypes matching the request. EntityTypes []*EntityType `protobuf:"bytes,1,rep,name=entity_types,json=entityTypes,proto3" json:"entity_types,omitempty"` - // A token, which can be sent as [ListEntityTypesRequest.page_token][google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.page_token] to - // retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // A token, which can be sent as + // [ListEntityTypesRequest.page_token][google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -1650,15 +1669,15 @@ func (x *ListEntityTypesResponse) GetNextPageToken() string { return "" } -// Request message for [FeaturestoreService.UpdateEntityType][google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateEntityType]. +// Request message for +// [FeaturestoreService.UpdateEntityType][google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateEntityType]. type UpdateEntityTypeRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The EntityType's `name` field is used to identify the EntityType to be - // updated. - // Format: + // Required. The EntityType's `name` field is used to identify the EntityType + // to be updated. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` EntityType *EntityType `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` // Field mask is used to specify the fields to be overwritten in the @@ -1680,7 +1699,7 @@ type UpdateEntityTypeRequest struct { // - `monitoring_config.import_features_analysis.anomaly_detection_baseline` // - `monitoring_config.numerical_threshold_config.value` // - `monitoring_config.categorical_threshold_config.value` - // - `offline_storage_ttl_days` + // - `offline_storage_ttl_days` (available in Preview) UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } @@ -1791,7 +1810,8 @@ func (x *DeleteEntityTypeRequest) GetForce() bool { return false } -// Request message for [FeaturestoreService.CreateFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeature]. +// Request message for +// [FeaturestoreService.CreateFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeature]. type CreateFeatureRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1803,8 +1823,8 @@ type CreateFeatureRequest struct { Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The Feature to create. Feature *Feature `protobuf:"bytes,2,opt,name=feature,proto3" json:"feature,omitempty"` - // Required. The ID to use for the Feature, which will become the final component of - // the Feature's resource name. + // Required. The ID to use for the Feature, which will become the final + // component of the Feature's resource name. // // This value may be up to 128 characters, and valid characters are // `[a-z0-9_]`. The first character cannot be a number. @@ -1866,20 +1886,22 @@ func (x *CreateFeatureRequest) GetFeatureId() string { return "" } -// Request message for [FeaturestoreService.BatchCreateFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeatures]. +// Request message for +// [FeaturestoreService.BatchCreateFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeatures]. type BatchCreateFeaturesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the EntityType to create the batch of Features under. - // Format: + // Required. The resource name of the EntityType to create the batch of + // Features under. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The request message specifying the Features to create. All Features must be - // created under the same parent EntityType. The `parent` field in each child - // request message can be omitted. If `parent` is set in a child request, then - // the value must match the `parent` value in this request message. + // Required. The request message specifying the Features to create. All + // Features must be created under the same parent EntityType. The `parent` + // field in each child request message can be omitted. If `parent` is set in a + // child request, then the value must match the `parent` value in this request + // message. Requests []*CreateFeatureRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"` } @@ -1929,7 +1951,8 @@ func (x *BatchCreateFeaturesRequest) GetRequests() []*CreateFeatureRequest { return nil } -// Response message for [FeaturestoreService.BatchCreateFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeatures]. +// Response message for +// [FeaturestoreService.BatchCreateFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeatures]. type BatchCreateFeaturesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1978,7 +2001,8 @@ func (x *BatchCreateFeaturesResponse) GetFeatures() []*Feature { return nil } -// Request message for [FeaturestoreService.GetFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeature]. +// Request message for +// [FeaturestoreService.GetFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeature]. type GetFeatureRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2029,7 +2053,8 @@ func (x *GetFeatureRequest) GetName() string { return "" } -// Request message for [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures]. +// Request message for +// [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures]. type ListFeaturesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2066,12 +2091,12 @@ type ListFeaturesRequest struct { // 1000. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] call. - // Provide this to retrieve the subsequent page. + // [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] must - // match the call that provided the page token. + // [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures] + // must match the call that provided the page token. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // A comma-separated list of fields to order by, sorted in ascending order. // Use "desc" after a field name for descending. @@ -2084,10 +2109,12 @@ type ListFeaturesRequest struct { OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,6,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` - // If set, return the most recent [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count] + // If set, return the most recent + // [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count] // of stats for each Feature in response. Valid value is [0, 10]. If number of - // stats exists < [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count], return all - // existing stats. + // stats exists < + // [ListFeaturesRequest.latest_stats_count][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.latest_stats_count], + // return all existing stats. LatestStatsCount int32 `protobuf:"varint,7,opt,name=latest_stats_count,json=latestStatsCount,proto3" json:"latest_stats_count,omitempty"` } @@ -2172,7 +2199,8 @@ func (x *ListFeaturesRequest) GetLatestStatsCount() int32 { return 0 } -// Response message for [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures]. +// Response message for +// [FeaturestoreService.ListFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures]. type ListFeaturesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2180,9 +2208,10 @@ type ListFeaturesResponse struct { // The Features matching the request. Features []*Feature `protobuf:"bytes,1,rep,name=features,proto3" json:"features,omitempty"` - // A token, which can be sent as [ListFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.page_token] to - // retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // A token, which can be sent as + // [ListFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.ListFeaturesRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -2232,7 +2261,8 @@ func (x *ListFeaturesResponse) GetNextPageToken() string { return "" } -// Request message for [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures]. +// Request message for +// [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures]. type SearchFeaturesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2307,12 +2337,12 @@ type SearchFeaturesRequest struct { // 100. PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures] call. - // Provide this to retrieve the subsequent page. + // [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures], except `page_size`, must - // match the call that provided the page token. + // [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures], + // except `page_size`, must match the call that provided the page token. PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` } @@ -2376,7 +2406,8 @@ func (x *SearchFeaturesRequest) GetPageToken() string { return "" } -// Response message for [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures]. +// Response message for +// [FeaturestoreService.SearchFeatures][google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures]. type SearchFeaturesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2392,9 +2423,10 @@ type SearchFeaturesResponse struct { // - `create_time` // - `update_time` Features []*Feature `protobuf:"bytes,1,rep,name=features,proto3" json:"features,omitempty"` - // A token, which can be sent as [SearchFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.page_token] to - // retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // A token, which can be sent as + // [SearchFeaturesRequest.page_token][google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -2444,7 +2476,8 @@ func (x *SearchFeaturesResponse) GetNextPageToken() string { return "" } -// Request message for [FeaturestoreService.UpdateFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeature]. +// Request message for +// [FeaturestoreService.UpdateFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeature]. type UpdateFeatureRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2517,7 +2550,8 @@ func (x *UpdateFeatureRequest) GetUpdateMask() *fieldmaskpb.FieldMask { return nil } -// Request message for [FeaturestoreService.DeleteFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeature]. +// Request message for +// [FeaturestoreService.DeleteFeature][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeature]. type DeleteFeatureRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3059,7 +3093,8 @@ func (x *BatchCreateFeaturesOperationMetadata) GetGenericMetadata() *GenericOper return nil } -// Request message for [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues]. +// Request message for +// [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues]. type DeleteFeatureValuesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3072,8 +3107,8 @@ type DeleteFeatureValuesRequest struct { // *DeleteFeatureValuesRequest_SelectEntity_ // *DeleteFeatureValuesRequest_SelectTimeRangeAndFeature_ DeleteOption isDeleteFeatureValuesRequest_DeleteOption `protobuf_oneof:"DeleteOption"` - // Required. The resource name of the EntityType grouping the Features for which values - // are being deleted from. Format: + // Required. The resource name of the EntityType grouping the Features for + // which values are being deleted from. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}` EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` } @@ -3158,7 +3193,8 @@ func (*DeleteFeatureValuesRequest_SelectEntity_) isDeleteFeatureValuesRequest_De func (*DeleteFeatureValuesRequest_SelectTimeRangeAndFeature_) isDeleteFeatureValuesRequest_DeleteOption() { } -// Response message for [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues]. +// Response message for +// [FeaturestoreService.DeleteFeatureValues][google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues]. type DeleteFeatureValuesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3285,8 +3321,8 @@ type ImportFeatureValuesRequest_FeatureSpec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. ID of the Feature to import values of. This Feature must exist in the - // target EntityType, or the request will fail. + // Required. ID of the Feature to import values of. This Feature must exist + // in the target EntityType, or the request will fail. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Source column to get the Feature values from. If not set, uses the column // with the same name as the Feature ID. @@ -3345,8 +3381,9 @@ type BatchReadFeatureValuesRequest_PassThroughField struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The name of the field in the CSV header or the name of the column in - // BigQuery table. The naming restriction is the same as [Feature.name][google.cloud.aiplatform.v1beta1.Feature.name]. + // Required. The name of the field in the CSV header or the name of the + // column in BigQuery table. The naming restriction is the same as + // [Feature.name][google.cloud.aiplatform.v1beta1.Feature.name]. FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` } @@ -3396,11 +3433,13 @@ type BatchReadFeatureValuesRequest_EntityTypeSpec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. ID of the EntityType to select Features. The EntityType id is the - // [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] specified - // during EntityType creation. + // Required. ID of the EntityType to select Features. The EntityType id is + // the + // [entity_type_id][google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entity_type_id] + // specified during EntityType creation. EntityTypeId string `protobuf:"bytes,1,opt,name=entity_type_id,json=entityTypeId,proto3" json:"entity_type_id,omitempty"` - // Required. Selectors choosing which Feature values to read from the EntityType. + // Required. Selectors choosing which Feature values to read from the + // EntityType. FeatureSelector *FeatureSelector `protobuf:"bytes,2,opt,name=feature_selector,json=featureSelector,proto3" json:"feature_selector,omitempty"` // Per-Feature settings for the batch read. Settings []*DestinationFeatureSetting `protobuf:"bytes,3,rep,name=settings,proto3" json:"settings,omitempty"` @@ -3593,8 +3632,8 @@ type DeleteFeatureValuesRequest_SelectEntity struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. Selectors choosing feature values of which entity id to be deleted from - // the EntityType. + // Required. Selectors choosing feature values of which entity id to be + // deleted from the EntityType. EntityIdSelector *EntityIdSelector `protobuf:"bytes,1,opt,name=entity_id_selector,json=entityIdSelector,proto3" json:"entity_id_selector,omitempty"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/hyperparameter_tuning_job.pb.go b/aiplatform/apiv1beta1/aiplatformpb/hyperparameter_tuning_job.pb.go index bd69091a34d6..dd76c72057dc 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/hyperparameter_tuning_job.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/hyperparameter_tuning_job.pb.go @@ -64,8 +64,8 @@ type HyperparameterTuningJob struct { // If set to 0, Vertex AI decides how many Trials must fail // before the whole job fails. MaxFailedTrialCount int32 `protobuf:"varint,7,opt,name=max_failed_trial_count,json=maxFailedTrialCount,proto3" json:"max_failed_trial_count,omitempty"` - // Required. The spec of a trial job. The same spec applies to the CustomJobs created - // in all the trials. + // Required. The spec of a trial job. The same spec applies to the CustomJobs + // created in all the trials. TrialJobSpec *CustomJobSpec `protobuf:"bytes,8,opt,name=trial_job_spec,json=trialJobSpec,proto3" json:"trial_job_spec,omitempty"` // Output only. Trials of the HyperparameterTuningJob. Trials []*Trial `protobuf:"bytes,9,rep,name=trials,proto3" json:"trials,omitempty"` @@ -73,13 +73,15 @@ type HyperparameterTuningJob struct { State JobState `protobuf:"varint,10,opt,name=state,proto3,enum=google.cloud.aiplatform.v1beta1.JobState" json:"state,omitempty"` // Output only. Time when the HyperparameterTuningJob was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. Time when the HyperparameterTuningJob for the first time entered the - // `JOB_STATE_RUNNING` state. + // Output only. Time when the HyperparameterTuningJob for the first time + // entered the `JOB_STATE_RUNNING` state. StartTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - // Output only. Time when the HyperparameterTuningJob entered any of the following states: - // `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + // Output only. Time when the HyperparameterTuningJob entered any of the + // following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, + // `JOB_STATE_CANCELLED`. EndTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - // Output only. Time when the HyperparameterTuningJob was most recently updated. + // Output only. Time when the HyperparameterTuningJob was most recently + // updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. Only populated when job's state is JOB_STATE_FAILED or // JOB_STATE_CANCELLED. diff --git a/aiplatform/apiv1beta1/aiplatformpb/index.pb.go b/aiplatform/apiv1beta1/aiplatformpb/index.pb.go index c512dbfa3319..8dd7add68d11 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/index.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/index.pb.go @@ -109,17 +109,18 @@ type Index struct { DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // The description of the Index. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - // Immutable. Points to a YAML file stored on Google Cloud Storage describing additional - // information about the Index, that is specific to it. Unset if the Index - // does not have any additional information. - // The schema is defined as an OpenAPI 3.0.2 [Schema + // Immutable. Points to a YAML file stored on Google Cloud Storage describing + // additional information about the Index, that is specific to it. Unset if + // the Index does not have any additional information. The schema is defined + // as an OpenAPI 3.0.2 [Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). // Note: The URI given on output will be immutable and probably different, // including the URI scheme, than the one given on input. The output URI will // point to a location where the user only has a read access. MetadataSchemaUri string `protobuf:"bytes,4,opt,name=metadata_schema_uri,json=metadataSchemaUri,proto3" json:"metadata_schema_uri,omitempty"` // An additional information about the Index; the schema of the metadata can - // be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri]. + // be found in + // [metadata_schema][google.cloud.aiplatform.v1beta1.Index.metadata_schema_uri]. Metadata *structpb.Value `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` // Output only. The pointers to DeployedIndexes created from this Index. // An Index can be only deleted if all its DeployedIndexes had been undeployed @@ -142,15 +143,15 @@ type Index struct { // This also includes any update to the contents of the Index. // Note that Operations working on this Index may have their // [Operations.metadata.generic_metadata.update_time] - // [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a little after the value of this - // timestamp, yet that does not mean their results are not already reflected - // in the Index. Result of any successfully completed Operation on the Index - // is reflected in it. + // [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] a + // little after the value of this timestamp, yet that does not mean their + // results are not already reflected in the Index. Result of any successfully + // completed Operation on the Index is reflected in it. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. Stats of the index resource. IndexStats *IndexStats `protobuf:"bytes,14,opt,name=index_stats,json=indexStats,proto3" json:"index_stats,omitempty"` - // Immutable. The update method to use with this Index. If not set, BATCH_UPDATE will be - // used by default. + // Immutable. The update method to use with this Index. If not set, + // BATCH_UPDATE will be used by default. IndexUpdateMethod Index_IndexUpdateMethod `protobuf:"varint,16,opt,name=index_update_method,json=indexUpdateMethod,proto3,enum=google.cloud.aiplatform.v1beta1.Index_IndexUpdateMethod" json:"index_update_method,omitempty"` } @@ -281,13 +282,13 @@ type IndexDatapoint struct { // Required. Feature embedding vector. An array of numbers with the length of // [NearestNeighborSearchConfig.dimensions]. FeatureVector []float32 `protobuf:"fixed32,2,rep,packed,name=feature_vector,json=featureVector,proto3" json:"feature_vector,omitempty"` - // Optional. List of Restrict of the datapoint, used to perform "restricted searches" - // where boolean rule are used to filter the subset of the database eligible - // for matching. - // See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering + // Optional. List of Restrict of the datapoint, used to perform "restricted + // searches" where boolean rule are used to filter the subset of the database + // eligible for matching. See: + // https://cloud.google.com/vertex-ai/docs/matching-engine/filtering Restricts []*IndexDatapoint_Restriction `protobuf:"bytes,4,rep,name=restricts,proto3" json:"restricts,omitempty"` - // Optional. CrowdingTag of the datapoint, the number of neighbors to return in each - // crowding can be configured during query. + // Optional. CrowdingTag of the datapoint, the number of neighbors to return + // in each crowding can be configured during query. CrowdingTag *IndexDatapoint_CrowdingTag `protobuf:"bytes,5,opt,name=crowding_tag,json=crowdingTag,proto3" json:"crowding_tag,omitempty"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/index_endpoint.pb.go b/aiplatform/apiv1beta1/aiplatformpb/index_endpoint.pb.go index 4ad9ec36e8a2..bc6c767b649c 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/index_endpoint.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/index_endpoint.pb.go @@ -88,9 +88,11 @@ type IndexEndpoint struct { // Where {project} is a project number, as in '12345', and {network} is // network name. Network string `protobuf:"bytes,9,opt,name=network,proto3" json:"network,omitempty"` - // Optional. Deprecated: If true, expose the IndexEndpoint via private service connect. + // Optional. Deprecated: If true, expose the IndexEndpoint via private service + // connect. // - // Only one of the fields, [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or + // Only one of the fields, + // [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] or // [enable_private_service_connect][google.cloud.aiplatform.v1beta1.IndexEndpoint.enable_private_service_connect], // can be set. // @@ -220,17 +222,20 @@ type DeployedIndex struct { DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Output only. Timestamp when the DeployedIndex was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. Provides paths for users to send requests directly to the deployed index - // services running on Cloud via private services access. This field is - // populated if [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] is configured. + // Output only. Provides paths for users to send requests directly to the + // deployed index services running on Cloud via private services access. This + // field is populated if + // [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] is + // configured. PrivateEndpoints *IndexPrivateEndpoints `protobuf:"bytes,5,opt,name=private_endpoints,json=privateEndpoints,proto3" json:"private_endpoints,omitempty"` - // Output only. The DeployedIndex may depend on various data on its original Index. - // Additionally when certain changes to the original Index are being done - // (e.g. when what the Index contains is being changed) the DeployedIndex may - // be asynchronously updated in the background to reflect this changes. - // If this timestamp's value is at least the [Index.update_time][google.cloud.aiplatform.v1beta1.Index.update_time] of the - // original Index, it means that this DeployedIndex and the original Index are - // in sync. If this timestamp is older, then to see which updates this + // Output only. The DeployedIndex may depend on various data on its original + // Index. Additionally when certain changes to the original Index are being + // done (e.g. when what the Index contains is being changed) the DeployedIndex + // may be asynchronously updated in the background to reflect this changes. If + // this timestamp's value is at least the + // [Index.update_time][google.cloud.aiplatform.v1beta1.Index.update_time] of + // the original Index, it means that this DeployedIndex and the original Index + // are in sync. If this timestamp is older, then to see which updates this // DeployedIndex already contains (and which not), one must // [list][Operations.ListOperations] [Operations][Operation] // [working][Operation.name] on the original Index. Only @@ -239,26 +244,34 @@ type DeployedIndex struct { // [google.cloud.aiplatform.v1beta1.GenericOperationMetadata.update_time] // equal or before this sync time are contained in this DeployedIndex. IndexSyncTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=index_sync_time,json=indexSyncTime,proto3" json:"index_sync_time,omitempty"` - // Optional. A description of resources that the DeployedIndex uses, which to large - // degree are decided by Vertex AI, and optionally allows only a modest + // Optional. A description of resources that the DeployedIndex uses, which to + // large degree are decided by Vertex AI, and optionally allows only a modest // additional configuration. // If min_replica_count is not set, the default value is 2 (we don't provide // SLA when min_replica_count=1). If max_replica_count is not set, the // default value is min_replica_count. The max allowed replica count is // 1000. AutomaticResources *AutomaticResources `protobuf:"bytes,7,opt,name=automatic_resources,json=automaticResources,proto3" json:"automatic_resources,omitempty"` - // Optional. A description of resources that are dedicated to the DeployedIndex, and - // that need a higher degree of manual configuration. - // If min_replica_count is not set, the default value is 2 (we don't provide - // SLA when min_replica_count=1). If max_replica_count is not set, the - // default value is min_replica_count. The max allowed replica count is - // 1000. + // Optional. A description of resources that are dedicated to the + // DeployedIndex, and that need a higher degree of manual configuration. If + // min_replica_count is not set, the default value is 2 (we don't provide SLA + // when min_replica_count=1). If max_replica_count is not set, the default + // value is min_replica_count. The max allowed replica count is 1000. + // + // Available machine types for SMALL shard: + // e2-standard-2 and all machine types available for MEDIUM and LARGE shard. + // + // Available machine types for MEDIUM shard: + // e2-standard-16 and all machine types available for LARGE shard. + // + // Available machine types for LARGE shard: + // e2-standard-32, e2-highmem-16, n2d-standard-32. // - // Available machine types: - // n1-standard-16 - // n1-standard-32 + // n1-standard-16 and n1-standard-32 are still available, but we recommend + // e2-standard-16 and e2-standard-32 for cost efficiency. DedicatedResources *DedicatedResources `protobuf:"bytes,16,opt,name=dedicated_resources,json=dedicatedResources,proto3" json:"dedicated_resources,omitempty"` - // Optional. If true, private endpoint's access logs are sent to StackDriver Logging. + // Optional. If true, private endpoint's access logs are sent to StackDriver + // Logging. // // These logs are like standard server access logs, containing // information like timestamp and latency for each MatchRequest. @@ -472,8 +485,8 @@ type IndexPrivateEndpoints struct { // Output only. The ip address used to send match gRPC requests. MatchGrpcAddress string `protobuf:"bytes,1,opt,name=match_grpc_address,json=matchGrpcAddress,proto3" json:"match_grpc_address,omitempty"` - // Output only. The name of the service attachment resource. Populated if private service - // connect is enabled. + // Output only. The name of the service attachment resource. Populated if + // private service connect is enabled. ServiceAttachment string `protobuf:"bytes,2,opt,name=service_attachment,json=serviceAttachment,proto3" json:"service_attachment,omitempty"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/index_endpoint_service.pb.go b/aiplatform/apiv1beta1/aiplatformpb/index_endpoint_service.pb.go index 022cfcbd3669..c8dc8361eccc 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/index_endpoint_service.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/index_endpoint_service.pb.go @@ -42,7 +42,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [IndexEndpointService.CreateIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpoint]. +// Request message for +// [IndexEndpointService.CreateIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpoint]. type CreateIndexEndpointRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -151,7 +152,8 @@ func (x *CreateIndexEndpointOperationMetadata) GetGenericMetadata() *GenericOper return nil } -// Request message for [IndexEndpointService.GetIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpoint] +// Request message for +// [IndexEndpointService.GetIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpoint] type GetIndexEndpointRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -202,17 +204,18 @@ func (x *GetIndexEndpointRequest) GetName() string { return "" } -// Request message for [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints]. +// Request message for +// [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints]. type ListIndexEndpointsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Location from which to list the IndexEndpoints. - // Format: `projects/{project}/locations/{location}` + // Required. The resource name of the Location from which to list the + // IndexEndpoints. Format: `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. An expression for filtering the results of the request. For field names - // both snake_case and camelCase are supported. + // Optional. An expression for filtering the results of the request. For field + // names both snake_case and camelCase are supported. // // - `index_endpoint` supports = and !=. `index_endpoint` represents the // IndexEndpoint ID, ie. the last segment of the IndexEndpoint's @@ -234,8 +237,10 @@ type ListIndexEndpointsRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. The standard list page token. // Typically obtained via - // [ListIndexEndpointsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.next_page_token] of the previous - // [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints] call. + // [ListIndexEndpointsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.next_page_token] + // of the previous + // [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Optional. Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -308,7 +313,8 @@ func (x *ListIndexEndpointsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints]. +// Response message for +// [IndexEndpointService.ListIndexEndpoints][google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints]. type ListIndexEndpointsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -317,7 +323,9 @@ type ListIndexEndpointsResponse struct { // List of IndexEndpoints in the requested page. IndexEndpoints []*IndexEndpoint `protobuf:"bytes,1,rep,name=index_endpoints,json=indexEndpoints,proto3" json:"index_endpoints,omitempty"` // A token to retrieve next page of results. - // Pass to [ListIndexEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.page_token] to obtain that page. + // Pass to + // [ListIndexEndpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -367,7 +375,8 @@ func (x *ListIndexEndpointsResponse) GetNextPageToken() string { return "" } -// Request message for [IndexEndpointService.UpdateIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpoint]. +// Request message for +// [IndexEndpointService.UpdateIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpoint]. type UpdateIndexEndpointRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -375,7 +384,8 @@ type UpdateIndexEndpointRequest struct { // Required. The IndexEndpoint which replaces the resource on the server. IndexEndpoint *IndexEndpoint `protobuf:"bytes,1,opt,name=index_endpoint,json=indexEndpoint,proto3" json:"index_endpoint,omitempty"` - // Required. The update mask applies to the resource. See [google.protobuf.FieldMask][google.protobuf.FieldMask]. + // Required. The update mask applies to the resource. See + // [google.protobuf.FieldMask][google.protobuf.FieldMask]. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } @@ -425,7 +435,8 @@ func (x *UpdateIndexEndpointRequest) GetUpdateMask() *fieldmaskpb.FieldMask { return nil } -// Request message for [IndexEndpointService.DeleteIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpoint]. +// Request message for +// [IndexEndpointService.DeleteIndexEndpoint][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpoint]. type DeleteIndexEndpointRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -476,14 +487,15 @@ func (x *DeleteIndexEndpointRequest) GetName() string { return "" } -// Request message for [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndex]. +// Request message for +// [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndex]. type DeployIndexRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The name of the IndexEndpoint resource into which to deploy an Index. - // Format: + // Required. The name of the IndexEndpoint resource into which to deploy an + // Index. Format: // `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` IndexEndpoint string `protobuf:"bytes,1,opt,name=index_endpoint,json=indexEndpoint,proto3" json:"index_endpoint,omitempty"` // Required. The DeployedIndex to be created within the IndexEndpoint. @@ -536,7 +548,8 @@ func (x *DeployIndexRequest) GetDeployedIndex() *DeployedIndex { return nil } -// Response message for [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndex]. +// Response message for +// [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndex]. type DeployIndexResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -585,7 +598,8 @@ func (x *DeployIndexResponse) GetDeployedIndex() *DeployedIndex { return nil } -// Runtime operation information for [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndex]. +// Runtime operation information for +// [IndexEndpointService.DeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndex]. type DeployIndexOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -643,17 +657,19 @@ func (x *DeployIndexOperationMetadata) GetDeployedIndexId() string { return "" } -// Request message for [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndex]. +// Request message for +// [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndex]. type UndeployIndexRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The name of the IndexEndpoint resource from which to undeploy an Index. - // Format: + // Required. The name of the IndexEndpoint resource from which to undeploy an + // Index. Format: // `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` IndexEndpoint string `protobuf:"bytes,1,opt,name=index_endpoint,json=indexEndpoint,proto3" json:"index_endpoint,omitempty"` - // Required. The ID of the DeployedIndex to be undeployed from the IndexEndpoint. + // Required. The ID of the DeployedIndex to be undeployed from the + // IndexEndpoint. DeployedIndexId string `protobuf:"bytes,2,opt,name=deployed_index_id,json=deployedIndexId,proto3" json:"deployed_index_id,omitempty"` } @@ -703,7 +719,8 @@ func (x *UndeployIndexRequest) GetDeployedIndexId() string { return "" } -// Response message for [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndex]. +// Response message for +// [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndex]. type UndeployIndexResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -742,7 +759,8 @@ func (*UndeployIndexResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1beta1_index_endpoint_service_proto_rawDescGZIP(), []int{11} } -// Runtime operation information for [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndex]. +// Runtime operation information for +// [IndexEndpointService.UndeployIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndex]. type UndeployIndexOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -791,14 +809,15 @@ func (x *UndeployIndexOperationMetadata) GetGenericMetadata() *GenericOperationM return nil } -// Request message for [IndexEndpointService.MutateDeployedIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndex]. +// Request message for +// [IndexEndpointService.MutateDeployedIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndex]. type MutateDeployedIndexRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The name of the IndexEndpoint resource into which to deploy an Index. - // Format: + // Required. The name of the IndexEndpoint resource into which to deploy an + // Index. Format: // `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` IndexEndpoint string `protobuf:"bytes,1,opt,name=index_endpoint,json=indexEndpoint,proto3" json:"index_endpoint,omitempty"` // Required. The DeployedIndex to be updated within the IndexEndpoint. @@ -853,7 +872,8 @@ func (x *MutateDeployedIndexRequest) GetDeployedIndex() *DeployedIndex { return nil } -// Response message for [IndexEndpointService.MutateDeployedIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndex]. +// Response message for +// [IndexEndpointService.MutateDeployedIndex][google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndex]. type MutateDeployedIndexResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/aiplatform/apiv1beta1/aiplatformpb/index_service.pb.go b/aiplatform/apiv1beta1/aiplatformpb/index_service.pb.go index d0e67393ec50..94ee2498c931 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/index_service.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/index_service.pb.go @@ -115,7 +115,8 @@ func (NearestNeighborSearchOperationMetadata_RecordError_RecordErrorType) EnumDe return file_google_cloud_aiplatform_v1beta1_index_service_proto_rawDescGZIP(), []int{12, 0, 0} } -// Request message for [IndexService.CreateIndex][google.cloud.aiplatform.v1beta1.IndexService.CreateIndex]. +// Request message for +// [IndexService.CreateIndex][google.cloud.aiplatform.v1beta1.IndexService.CreateIndex]. type CreateIndexRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -174,7 +175,8 @@ func (x *CreateIndexRequest) GetIndex() *Index { return nil } -// Runtime operation information for [IndexService.CreateIndex][google.cloud.aiplatform.v1beta1.IndexService.CreateIndex]. +// Runtime operation information for +// [IndexService.CreateIndex][google.cloud.aiplatform.v1beta1.IndexService.CreateIndex]. type CreateIndexOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -232,7 +234,8 @@ func (x *CreateIndexOperationMetadata) GetNearestNeighborSearchOperationMetadata return nil } -// Request message for [IndexService.GetIndex][google.cloud.aiplatform.v1beta1.IndexService.GetIndex] +// Request message for +// [IndexService.GetIndex][google.cloud.aiplatform.v1beta1.IndexService.GetIndex] type GetIndexRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -283,7 +286,8 @@ func (x *GetIndexRequest) GetName() string { return "" } -// Request message for [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes]. +// Request message for +// [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes]. type ListIndexesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -298,8 +302,10 @@ type ListIndexesRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListIndexesResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexesResponse.next_page_token] of the previous - // [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes] call. + // [ListIndexesResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListIndexesResponse.next_page_token] + // of the previous + // [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -372,7 +378,8 @@ func (x *ListIndexesRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes]. +// Response message for +// [IndexService.ListIndexes][google.cloud.aiplatform.v1beta1.IndexService.ListIndexes]. type ListIndexesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -381,7 +388,9 @@ type ListIndexesResponse struct { // List of indexes in the requested page. Indexes []*Index `protobuf:"bytes,1,rep,name=indexes,proto3" json:"indexes,omitempty"` // A token to retrieve next page of results. - // Pass to [ListIndexesRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexesRequest.page_token] to obtain that page. + // Pass to + // [ListIndexesRequest.page_token][google.cloud.aiplatform.v1beta1.ListIndexesRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -431,7 +440,8 @@ func (x *ListIndexesResponse) GetNextPageToken() string { return "" } -// Request message for [IndexService.UpdateIndex][google.cloud.aiplatform.v1beta1.IndexService.UpdateIndex]. +// Request message for +// [IndexService.UpdateIndex][google.cloud.aiplatform.v1beta1.IndexService.UpdateIndex]. type UpdateIndexRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -440,7 +450,8 @@ type UpdateIndexRequest struct { // Required. The Index which updates the resource on the server. Index *Index `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` // The update mask applies to the resource. - // For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. + // For the `FieldMask` definition, see + // [google.protobuf.FieldMask][google.protobuf.FieldMask]. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } @@ -490,7 +501,8 @@ func (x *UpdateIndexRequest) GetUpdateMask() *fieldmaskpb.FieldMask { return nil } -// Runtime operation information for [IndexService.UpdateIndex][google.cloud.aiplatform.v1beta1.IndexService.UpdateIndex]. +// Runtime operation information for +// [IndexService.UpdateIndex][google.cloud.aiplatform.v1beta1.IndexService.UpdateIndex]. type UpdateIndexOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -548,7 +560,8 @@ func (x *UpdateIndexOperationMetadata) GetNearestNeighborSearchOperationMetadata return nil } -// Request message for [IndexService.DeleteIndex][google.cloud.aiplatform.v1beta1.IndexService.DeleteIndex]. +// Request message for +// [IndexService.DeleteIndex][google.cloud.aiplatform.v1beta1.IndexService.DeleteIndex]. type DeleteIndexRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -599,7 +612,8 @@ func (x *DeleteIndexRequest) GetName() string { return "" } -// Request message for [IndexService.UpsertDatapoints][google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapoints] +// Request message for +// [IndexService.UpsertDatapoints][google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapoints] type UpsertDatapointsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -659,7 +673,8 @@ func (x *UpsertDatapointsRequest) GetDatapoints() []*IndexDatapoint { return nil } -// Response message for [IndexService.UpsertDatapoints][google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapoints] +// Response message for +// [IndexService.UpsertDatapoints][google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapoints] type UpsertDatapointsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -698,7 +713,8 @@ func (*UpsertDatapointsResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1beta1_index_service_proto_rawDescGZIP(), []int{9} } -// Request message for [IndexService.RemoveDatapoints][google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapoints] +// Request message for +// [IndexService.RemoveDatapoints][google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapoints] type RemoveDatapointsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -758,7 +774,8 @@ func (x *RemoveDatapointsRequest) GetDatapointIds() []string { return nil } -// Response message for [IndexService.RemoveDatapoints][google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapoints] +// Response message for +// [IndexService.RemoveDatapoints][google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapoints] type RemoveDatapointsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -805,9 +822,10 @@ type NearestNeighborSearchOperationMetadata struct { // The validation stats of the content (per file) to be inserted or // updated on the Matching Engine Index resource. Populated if - // contentsDeltaUri is provided as part of [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please note - // that, currently for those files that are broken or has unsupported file - // format, we will not have the stats for those files. + // contentsDeltaUri is provided as part of + // [Index.metadata][google.cloud.aiplatform.v1beta1.Index.metadata]. Please + // note that, currently for those files that are broken or has unsupported + // file format, we will not have the stats for those files. ContentValidationStats []*NearestNeighborSearchOperationMetadata_ContentValidationStats `protobuf:"bytes,1,rep,name=content_validation_stats,json=contentValidationStats,proto3" json:"content_validation_stats,omitempty"` // The ingested data size in bytes. DataBytesCount int64 `protobuf:"varint,2,opt,name=data_bytes_count,json=dataBytesCount,proto3" json:"data_bytes_count,omitempty"` @@ -1643,7 +1661,8 @@ type IndexServiceClient interface { UpdateIndex(ctx context.Context, in *UpdateIndexRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Deletes an Index. // An Index can only be deleted when all its - // [DeployedIndexes][google.cloud.aiplatform.v1beta1.Index.deployed_indexes] had been undeployed. + // [DeployedIndexes][google.cloud.aiplatform.v1beta1.Index.deployed_indexes] + // had been undeployed. DeleteIndex(ctx context.Context, in *DeleteIndexRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Add/update Datapoints into an Index. UpsertDatapoints(ctx context.Context, in *UpsertDatapointsRequest, opts ...grpc.CallOption) (*UpsertDatapointsResponse, error) @@ -1734,7 +1753,8 @@ type IndexServiceServer interface { UpdateIndex(context.Context, *UpdateIndexRequest) (*longrunning.Operation, error) // Deletes an Index. // An Index can only be deleted when all its - // [DeployedIndexes][google.cloud.aiplatform.v1beta1.Index.deployed_indexes] had been undeployed. + // [DeployedIndexes][google.cloud.aiplatform.v1beta1.Index.deployed_indexes] + // had been undeployed. DeleteIndex(context.Context, *DeleteIndexRequest) (*longrunning.Operation, error) // Add/update Datapoints into an Index. UpsertDatapoints(context.Context, *UpsertDatapointsRequest) (*UpsertDatapointsResponse, error) diff --git a/aiplatform/apiv1beta1/aiplatformpb/io.pb.go b/aiplatform/apiv1beta1/aiplatformpb/io.pb.go index f5ead0a5284e..c76138f97d43 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/io.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/io.pb.go @@ -191,7 +191,8 @@ type GcsDestination struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. Google Cloud Storage URI to output directory. If the uri doesn't end with + // Required. Google Cloud Storage URI to output directory. If the uri doesn't + // end with // '/', a '/' will be automatically appended. The directory is created if it // doesn't exist. OutputUriPrefix string `protobuf:"bytes,1,opt,name=output_uri_prefix,json=outputUriPrefix,proto3" json:"output_uri_prefix,omitempty"` diff --git a/aiplatform/apiv1beta1/aiplatformpb/job_service.pb.go b/aiplatform/apiv1beta1/aiplatformpb/job_service.pb.go index 04a21300e19f..68b90e7c738d 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/job_service.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/job_service.pb.go @@ -44,7 +44,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [JobService.CreateCustomJob][google.cloud.aiplatform.v1beta1.JobService.CreateCustomJob]. +// Request message for +// [JobService.CreateCustomJob][google.cloud.aiplatform.v1beta1.JobService.CreateCustomJob]. type CreateCustomJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -103,7 +104,8 @@ func (x *CreateCustomJobRequest) GetCustomJob() *CustomJob { return nil } -// Request message for [JobService.GetCustomJob][google.cloud.aiplatform.v1beta1.JobService.GetCustomJob]. +// Request message for +// [JobService.GetCustomJob][google.cloud.aiplatform.v1beta1.JobService.GetCustomJob]. type GetCustomJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -154,7 +156,8 @@ func (x *GetCustomJobRequest) GetName() string { return "" } -// Request message for [JobService.ListCustomJobs][google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs]. +// Request message for +// [JobService.ListCustomJobs][google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs]. type ListCustomJobsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -188,8 +191,10 @@ type ListCustomJobsRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListCustomJobsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.next_page_token] of the previous - // [JobService.ListCustomJobs][google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs] call. + // [ListCustomJobsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.next_page_token] + // of the previous + // [JobService.ListCustomJobs][google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -262,7 +267,8 @@ func (x *ListCustomJobsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [JobService.ListCustomJobs][google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs] +// Response message for +// [JobService.ListCustomJobs][google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs] type ListCustomJobsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -271,7 +277,9 @@ type ListCustomJobsResponse struct { // List of CustomJobs in the requested page. CustomJobs []*CustomJob `protobuf:"bytes,1,rep,name=custom_jobs,json=customJobs,proto3" json:"custom_jobs,omitempty"` // A token to retrieve the next page of results. - // Pass to [ListCustomJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.page_token] to obtain that page. + // Pass to + // [ListCustomJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -321,7 +329,8 @@ func (x *ListCustomJobsResponse) GetNextPageToken() string { return "" } -// Request message for [JobService.DeleteCustomJob][google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJob]. +// Request message for +// [JobService.DeleteCustomJob][google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJob]. type DeleteCustomJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -372,7 +381,8 @@ func (x *DeleteCustomJobRequest) GetName() string { return "" } -// Request message for [JobService.CancelCustomJob][google.cloud.aiplatform.v1beta1.JobService.CancelCustomJob]. +// Request message for +// [JobService.CancelCustomJob][google.cloud.aiplatform.v1beta1.JobService.CancelCustomJob]. type CancelCustomJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -423,7 +433,8 @@ func (x *CancelCustomJobRequest) GetName() string { return "" } -// Request message for [JobService.CreateDataLabelingJob][google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJob]. +// Request message for +// [JobService.CreateDataLabelingJob][google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJob]. type CreateDataLabelingJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -482,7 +493,8 @@ func (x *CreateDataLabelingJobRequest) GetDataLabelingJob() *DataLabelingJob { return nil } -// Request message for [JobService.GetDataLabelingJob][google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJob]. +// Request message for +// [JobService.GetDataLabelingJob][google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJob]. type GetDataLabelingJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -533,7 +545,8 @@ func (x *GetDataLabelingJobRequest) GetName() string { return "" } -// Request message for [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobs]. +// Request message for +// [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobs]. type ListDataLabelingJobsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -652,7 +665,8 @@ func (x *ListDataLabelingJobsRequest) GetOrderBy() string { return "" } -// Response message for [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobs]. +// Response message for +// [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobs]. type ListDataLabelingJobsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -711,7 +725,8 @@ func (x *ListDataLabelingJobsResponse) GetNextPageToken() string { return "" } -// Request message for [JobService.DeleteDataLabelingJob][google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJob]. +// Request message for +// [JobService.DeleteDataLabelingJob][google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJob]. type DeleteDataLabelingJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -762,7 +777,8 @@ func (x *DeleteDataLabelingJobRequest) GetName() string { return "" } -// Request message for [JobService.CancelDataLabelingJob][google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJob]. +// Request message for +// [JobService.CancelDataLabelingJob][google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJob]. type CancelDataLabelingJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -813,14 +829,16 @@ func (x *CancelDataLabelingJobRequest) GetName() string { return "" } -// Request message for [JobService.CreateHyperparameterTuningJob][google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJob]. +// Request message for +// [JobService.CreateHyperparameterTuningJob][google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJob]. type CreateHyperparameterTuningJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Location to create the HyperparameterTuningJob in. - // Format: `projects/{project}/locations/{location}` + // Required. The resource name of the Location to create the + // HyperparameterTuningJob in. Format: + // `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The HyperparameterTuningJob to create. HyperparameterTuningJob *HyperparameterTuningJob `protobuf:"bytes,2,opt,name=hyperparameter_tuning_job,json=hyperparameterTuningJob,proto3" json:"hyperparameter_tuning_job,omitempty"` @@ -872,7 +890,8 @@ func (x *CreateHyperparameterTuningJobRequest) GetHyperparameterTuningJob() *Hyp return nil } -// Request message for [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJob]. +// Request message for +// [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJob]. type GetHyperparameterTuningJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -923,14 +942,16 @@ func (x *GetHyperparameterTuningJobRequest) GetName() string { return "" } -// Request message for [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs]. +// Request message for +// [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs]. type ListHyperparameterTuningJobsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Location to list the HyperparameterTuningJobs - // from. Format: `projects/{project}/locations/{location}` + // Required. The resource name of the Location to list the + // HyperparameterTuningJobs from. Format: + // `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The standard list filter. // @@ -957,8 +978,10 @@ type ListHyperparameterTuningJobsRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListHyperparameterTuningJobsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.next_page_token] of the previous - // [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs] call. + // [ListHyperparameterTuningJobsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.next_page_token] + // of the previous + // [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -1031,18 +1054,21 @@ func (x *ListHyperparameterTuningJobsRequest) GetReadMask() *fieldmaskpb.FieldMa return nil } -// Response message for [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs] +// Response message for +// [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs] type ListHyperparameterTuningJobsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // List of HyperparameterTuningJobs in the requested page. - // [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.trials] of the jobs will be not be returned. + // [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.trials] + // of the jobs will be not be returned. HyperparameterTuningJobs []*HyperparameterTuningJob `protobuf:"bytes,1,rep,name=hyperparameter_tuning_jobs,json=hyperparameterTuningJobs,proto3" json:"hyperparameter_tuning_jobs,omitempty"` // A token to retrieve the next page of results. - // Pass to [ListHyperparameterTuningJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.page_token] to obtain that - // page. + // Pass to + // [ListHyperparameterTuningJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -1092,7 +1118,8 @@ func (x *ListHyperparameterTuningJobsResponse) GetNextPageToken() string { return "" } -// Request message for [JobService.DeleteHyperparameterTuningJob][google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJob]. +// Request message for +// [JobService.DeleteHyperparameterTuningJob][google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJob]. type DeleteHyperparameterTuningJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1143,7 +1170,8 @@ func (x *DeleteHyperparameterTuningJobRequest) GetName() string { return "" } -// Request message for [JobService.CancelHyperparameterTuningJob][google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJob]. +// Request message for +// [JobService.CancelHyperparameterTuningJob][google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJob]. type CancelHyperparameterTuningJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1194,14 +1222,15 @@ func (x *CancelHyperparameterTuningJobRequest) GetName() string { return "" } -// Request message for [JobService.CreateBatchPredictionJob][google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJob]. +// Request message for +// [JobService.CreateBatchPredictionJob][google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJob]. type CreateBatchPredictionJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Location to create the BatchPredictionJob in. - // Format: `projects/{project}/locations/{location}` + // Required. The resource name of the Location to create the + // BatchPredictionJob in. Format: `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The BatchPredictionJob to create. BatchPredictionJob *BatchPredictionJob `protobuf:"bytes,2,opt,name=batch_prediction_job,json=batchPredictionJob,proto3" json:"batch_prediction_job,omitempty"` @@ -1253,7 +1282,8 @@ func (x *CreateBatchPredictionJobRequest) GetBatchPredictionJob() *BatchPredicti return nil } -// Request message for [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJob]. +// Request message for +// [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJob]. type GetBatchPredictionJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1304,7 +1334,8 @@ func (x *GetBatchPredictionJobRequest) GetName() string { return "" } -// Request message for [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobs]. +// Request message for +// [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobs]. type ListBatchPredictionJobsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1339,8 +1370,10 @@ type ListBatchPredictionJobsRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListBatchPredictionJobsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.next_page_token] of the previous - // [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobs] call. + // [ListBatchPredictionJobsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.next_page_token] + // of the previous + // [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobs] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -1413,7 +1446,8 @@ func (x *ListBatchPredictionJobsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobs] +// Response message for +// [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobs] type ListBatchPredictionJobsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1422,8 +1456,9 @@ type ListBatchPredictionJobsResponse struct { // List of BatchPredictionJobs in the requested page. BatchPredictionJobs []*BatchPredictionJob `protobuf:"bytes,1,rep,name=batch_prediction_jobs,json=batchPredictionJobs,proto3" json:"batch_prediction_jobs,omitempty"` // A token to retrieve the next page of results. - // Pass to [ListBatchPredictionJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.page_token] to obtain that - // page. + // Pass to + // [ListBatchPredictionJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -1473,7 +1508,8 @@ func (x *ListBatchPredictionJobsResponse) GetNextPageToken() string { return "" } -// Request message for [JobService.DeleteBatchPredictionJob][google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJob]. +// Request message for +// [JobService.DeleteBatchPredictionJob][google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJob]. type DeleteBatchPredictionJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1524,7 +1560,8 @@ func (x *DeleteBatchPredictionJobRequest) GetName() string { return "" } -// Request message for [JobService.CancelBatchPredictionJob][google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJob]. +// Request message for +// [JobService.CancelBatchPredictionJob][google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJob]. type CancelBatchPredictionJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2047,17 +2084,16 @@ type UpdateModelDeploymentMonitoringJobRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The model monitoring configuration which replaces the resource on the - // server. + // Required. The model monitoring configuration which replaces the resource on + // the server. ModelDeploymentMonitoringJob *ModelDeploymentMonitoringJob `protobuf:"bytes,1,opt,name=model_deployment_monitoring_job,json=modelDeploymentMonitoringJob,proto3" json:"model_deployment_monitoring_job,omitempty"` - // Required. The update mask is used to specify the fields to be overwritten in the - // ModelDeploymentMonitoringJob resource by the update. - // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then only the non-empty fields present in the - // request will be overwritten. Set the update_mask to `*` to override all - // fields. - // For the objective config, the user can either provide the update mask for + // Required. The update mask is used to specify the fields to be overwritten + // in the ModelDeploymentMonitoringJob resource by the update. The fields + // specified in the update_mask are relative to the resource, not the full + // request. A field will be overwritten if it is in the mask. If the user does + // not provide a mask then only the non-empty fields present in the request + // will be overwritten. Set the update_mask to `*` to override all fields. For + // the objective config, the user can either provide the update mask for // model_deployment_monitoring_objective_configs or any combination of its // nested fields, such as: // model_deployment_monitoring_objective_configs.objective_config.training_dataset. @@ -2342,11 +2378,12 @@ type SearchModelDeploymentMonitoringStatsAnomaliesRequest_StatsAnomaliesObjectiv Type ModelDeploymentMonitoringObjectiveType `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType" json:"type,omitempty"` // If set, all attribution scores between - // [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] and - // [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] are - // fetched, and page token doesn't take effect in this case. - // Only used to retrieve attribution score for the top Features which has - // the highest attribution score in the latest monitoring run. + // [SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time] + // and + // [SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time][google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time] + // are fetched, and page token doesn't take effect in this case. Only used + // to retrieve attribution score for the top Features which has the highest + // attribution score in the latest monitoring run. TopFeatureCount int32 `protobuf:"varint,4,opt,name=top_feature_count,json=topFeatureCount,proto3" json:"top_feature_count,omitempty"` } @@ -3947,13 +3984,16 @@ type JobServiceClient interface { // Cancels a CustomJob. // Starts asynchronous cancellation on the CustomJob. The server // makes a best effort to cancel the job, but success is not - // guaranteed. Clients can use [JobService.GetCustomJob][google.cloud.aiplatform.v1beta1.JobService.GetCustomJob] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [JobService.GetCustomJob][google.cloud.aiplatform.v1beta1.JobService.GetCustomJob] + // or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On successful cancellation, // the CustomJob is not deleted; instead it becomes a job with - // a [CustomJob.error][google.cloud.aiplatform.v1beta1.CustomJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`, and [CustomJob.state][google.cloud.aiplatform.v1beta1.CustomJob.state] is set to - // `CANCELLED`. + // a [CustomJob.error][google.cloud.aiplatform.v1beta1.CustomJob.error] value + // with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding + // to `Code.CANCELLED`, and + // [CustomJob.state][google.cloud.aiplatform.v1beta1.CustomJob.state] is set + // to `CANCELLED`. CancelCustomJob(ctx context.Context, in *CancelCustomJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Creates a DataLabelingJob. CreateDataLabelingJob(ctx context.Context, in *CreateDataLabelingJobRequest, opts ...grpc.CallOption) (*DataLabelingJob, error) @@ -3976,13 +4016,17 @@ type JobServiceClient interface { // Cancels a HyperparameterTuningJob. // Starts asynchronous cancellation on the HyperparameterTuningJob. The server // makes a best effort to cancel the job, but success is not - // guaranteed. Clients can use [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJob] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJob] + // or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On successful cancellation, // the HyperparameterTuningJob is not deleted; instead it becomes a job with - // a [HyperparameterTuningJob.error][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] - // of 1, corresponding to `Code.CANCELLED`, and - // [HyperparameterTuningJob.state][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.state] is set to `CANCELLED`. + // a + // [HyperparameterTuningJob.error][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`, and + // [HyperparameterTuningJob.state][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.state] + // is set to `CANCELLED`. CancelHyperparameterTuningJob(ctx context.Context, in *CancelHyperparameterTuningJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Creates a BatchPredictionJob. A BatchPredictionJob once created will // right away be attempted to start. @@ -3998,12 +4042,14 @@ type JobServiceClient interface { // // Starts asynchronous cancellation on the BatchPredictionJob. The server // makes the best effort to cancel the job, but success is not - // guaranteed. Clients can use [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJob] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJob] + // or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On a successful cancellation, // the BatchPredictionJob is not deleted;instead its - // [BatchPredictionJob.state][google.cloud.aiplatform.v1beta1.BatchPredictionJob.state] is set to `CANCELLED`. Any files already - // outputted by the job are not deleted. + // [BatchPredictionJob.state][google.cloud.aiplatform.v1beta1.BatchPredictionJob.state] + // is set to `CANCELLED`. Any files already outputted by the job are not + // deleted. CancelBatchPredictionJob(ctx context.Context, in *CancelBatchPredictionJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Creates a ModelDeploymentMonitoringJob. It will run periodically on a // configured interval. @@ -4020,7 +4066,8 @@ type JobServiceClient interface { DeleteModelDeploymentMonitoringJob(ctx context.Context, in *DeleteModelDeploymentMonitoringJobRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Pauses a ModelDeploymentMonitoringJob. If the job is running, the server // makes a best effort to cancel the job. Will mark - // [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.state] to 'PAUSED'. + // [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.state] + // to 'PAUSED'. PauseModelDeploymentMonitoringJob(ctx context.Context, in *PauseModelDeploymentMonitoringJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Resumes a paused ModelDeploymentMonitoringJob. It will start to run from // next scheduled time. A deleted ModelDeploymentMonitoringJob can't be @@ -4302,13 +4349,16 @@ type JobServiceServer interface { // Cancels a CustomJob. // Starts asynchronous cancellation on the CustomJob. The server // makes a best effort to cancel the job, but success is not - // guaranteed. Clients can use [JobService.GetCustomJob][google.cloud.aiplatform.v1beta1.JobService.GetCustomJob] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [JobService.GetCustomJob][google.cloud.aiplatform.v1beta1.JobService.GetCustomJob] + // or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On successful cancellation, // the CustomJob is not deleted; instead it becomes a job with - // a [CustomJob.error][google.cloud.aiplatform.v1beta1.CustomJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`, and [CustomJob.state][google.cloud.aiplatform.v1beta1.CustomJob.state] is set to - // `CANCELLED`. + // a [CustomJob.error][google.cloud.aiplatform.v1beta1.CustomJob.error] value + // with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding + // to `Code.CANCELLED`, and + // [CustomJob.state][google.cloud.aiplatform.v1beta1.CustomJob.state] is set + // to `CANCELLED`. CancelCustomJob(context.Context, *CancelCustomJobRequest) (*emptypb.Empty, error) // Creates a DataLabelingJob. CreateDataLabelingJob(context.Context, *CreateDataLabelingJobRequest) (*DataLabelingJob, error) @@ -4331,13 +4381,17 @@ type JobServiceServer interface { // Cancels a HyperparameterTuningJob. // Starts asynchronous cancellation on the HyperparameterTuningJob. The server // makes a best effort to cancel the job, but success is not - // guaranteed. Clients can use [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJob] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJob] + // or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On successful cancellation, // the HyperparameterTuningJob is not deleted; instead it becomes a job with - // a [HyperparameterTuningJob.error][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] - // of 1, corresponding to `Code.CANCELLED`, and - // [HyperparameterTuningJob.state][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.state] is set to `CANCELLED`. + // a + // [HyperparameterTuningJob.error][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`, and + // [HyperparameterTuningJob.state][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.state] + // is set to `CANCELLED`. CancelHyperparameterTuningJob(context.Context, *CancelHyperparameterTuningJobRequest) (*emptypb.Empty, error) // Creates a BatchPredictionJob. A BatchPredictionJob once created will // right away be attempted to start. @@ -4353,12 +4407,14 @@ type JobServiceServer interface { // // Starts asynchronous cancellation on the BatchPredictionJob. The server // makes the best effort to cancel the job, but success is not - // guaranteed. Clients can use [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJob] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJob] + // or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On a successful cancellation, // the BatchPredictionJob is not deleted;instead its - // [BatchPredictionJob.state][google.cloud.aiplatform.v1beta1.BatchPredictionJob.state] is set to `CANCELLED`. Any files already - // outputted by the job are not deleted. + // [BatchPredictionJob.state][google.cloud.aiplatform.v1beta1.BatchPredictionJob.state] + // is set to `CANCELLED`. Any files already outputted by the job are not + // deleted. CancelBatchPredictionJob(context.Context, *CancelBatchPredictionJobRequest) (*emptypb.Empty, error) // Creates a ModelDeploymentMonitoringJob. It will run periodically on a // configured interval. @@ -4375,7 +4431,8 @@ type JobServiceServer interface { DeleteModelDeploymentMonitoringJob(context.Context, *DeleteModelDeploymentMonitoringJobRequest) (*longrunning.Operation, error) // Pauses a ModelDeploymentMonitoringJob. If the job is running, the server // makes a best effort to cancel the job. Will mark - // [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.state] to 'PAUSED'. + // [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.state] + // to 'PAUSED'. PauseModelDeploymentMonitoringJob(context.Context, *PauseModelDeploymentMonitoringJobRequest) (*emptypb.Empty, error) // Resumes a paused ModelDeploymentMonitoringJob. It will start to run from // next scheduled time. A deleted ModelDeploymentMonitoringJob can't be diff --git a/aiplatform/apiv1beta1/aiplatformpb/machine_resources.pb.go b/aiplatform/apiv1beta1/aiplatformpb/machine_resources.pb.go index 9c7921df0dc9..4b65240cc85a 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/machine_resources.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/machine_resources.pb.go @@ -50,11 +50,14 @@ type MachineSpec struct { // See the [list of machine types supported for custom // training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types). // - // For [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] this field is optional, and the default - // value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] or as part of - // [WorkerPoolSpec][google.cloud.aiplatform.v1beta1.WorkerPoolSpec] this field is required. + // For [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] this + // field is optional, and the default value is `n1-standard-2`. For + // [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] or + // as part of [WorkerPoolSpec][google.cloud.aiplatform.v1beta1.WorkerPoolSpec] + // this field is required. MachineType string `protobuf:"bytes,1,opt,name=machine_type,json=machineType,proto3" json:"machine_type,omitempty"` - // Immutable. The type of accelerator(s) that may be attached to the machine as per + // Immutable. The type of accelerator(s) that may be attached to the machine + // as per // [accelerator_count][google.cloud.aiplatform.v1beta1.MachineSpec.accelerator_count]. AcceleratorType AcceleratorType `protobuf:"varint,2,opt,name=accelerator_type,json=acceleratorType,proto3,enum=google.cloud.aiplatform.v1beta1.AcceleratorType" json:"accelerator_type,omitempty"` // The number of accelerators to attach to the machine. @@ -121,23 +124,26 @@ type DedicatedResources struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. Immutable. The specification of a single machine used by the prediction. + // Required. Immutable. The specification of a single machine used by the + // prediction. MachineSpec *MachineSpec `protobuf:"bytes,1,opt,name=machine_spec,json=machineSpec,proto3" json:"machine_spec,omitempty"` - // Required. Immutable. The minimum number of machine replicas this DeployedModel will be always - // deployed on. This value must be greater than or equal to 1. + // Required. Immutable. The minimum number of machine replicas this + // DeployedModel will be always deployed on. This value must be greater than + // or equal to 1. // // If traffic against the DeployedModel increases, it may dynamically be // deployed onto more replicas, and as traffic decreases, some of these extra // replicas may be freed. MinReplicaCount int32 `protobuf:"varint,2,opt,name=min_replica_count,json=minReplicaCount,proto3" json:"min_replica_count,omitempty"` - // Immutable. The maximum number of replicas this DeployedModel may be deployed on when - // the traffic against it increases. If the requested value is too large, - // the deployment will error, but if deployment succeeds then the ability - // to scale the model to that many replicas is guaranteed (barring service - // outages). If traffic against the DeployedModel increases beyond what its - // replicas at maximum may handle, a portion of the traffic will be dropped. - // If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] as the - // default value. + // Immutable. The maximum number of replicas this DeployedModel may be + // deployed on when the traffic against it increases. If the requested value + // is too large, the deployment will error, but if deployment succeeds then + // the ability to scale the model to that many replicas is guaranteed (barring + // service outages). If traffic against the DeployedModel increases beyond + // what its replicas at maximum may handle, a portion of the traffic will be + // dropped. If this value is not provided, will use + // [min_replica_count][google.cloud.aiplatform.v1beta1.DedicatedResources.min_replica_count] + // as the default value. // // The value of this field impacts the charge against Vertex CPU and GPU // quotas. Specifically, you will be charged for (max_replica_count * @@ -149,21 +155,24 @@ type DedicatedResources struct { // target value (default to 60 if not set). At most one entry is allowed per // metric. // - // If [machine_spec.accelerator_count][google.cloud.aiplatform.v1beta1.MachineSpec.accelerator_count] is - // above 0, the autoscaling will be based on both CPU utilization and + // If + // [machine_spec.accelerator_count][google.cloud.aiplatform.v1beta1.MachineSpec.accelerator_count] + // is above 0, the autoscaling will be based on both CPU utilization and // accelerator's duty cycle metrics and scale up when either metrics exceeds // its target value while scale down if both metrics are under their target // value. The default target value is 60 for both metrics. // - // If [machine_spec.accelerator_count][google.cloud.aiplatform.v1beta1.MachineSpec.accelerator_count] is - // 0, the autoscaling will be based on CPU utilization metric only with + // If + // [machine_spec.accelerator_count][google.cloud.aiplatform.v1beta1.MachineSpec.accelerator_count] + // is 0, the autoscaling will be based on CPU utilization metric only with // default target value 60 if not explicitly set. // // For example, in the case of Online Prediction, if you want to override // target CPU utilization to 80, you should set // [autoscaling_metric_specs.metric_name][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.metric_name] // to `aiplatform.googleapis.com/prediction/online/cpu/utilization` and - // [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] to `80`. + // [autoscaling_metric_specs.target][google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.target] + // to `80`. AutoscalingMetricSpecs []*AutoscalingMetricSpec `protobuf:"bytes,4,rep,name=autoscaling_metric_specs,json=autoscalingMetricSpecs,proto3" json:"autoscaling_metric_specs,omitempty"` } @@ -235,21 +244,22 @@ type AutomaticResources struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Immutable. The minimum number of replicas this DeployedModel will be always deployed - // on. If traffic against it increases, it may dynamically be deployed onto - // more replicas up to [max_replica_count][google.cloud.aiplatform.v1beta1.AutomaticResources.max_replica_count], and as traffic decreases, some - // of these extra replicas may be freed. - // If the requested value is too large, the deployment will error. + // Immutable. The minimum number of replicas this DeployedModel will be always + // deployed on. If traffic against it increases, it may dynamically be + // deployed onto more replicas up to + // [max_replica_count][google.cloud.aiplatform.v1beta1.AutomaticResources.max_replica_count], + // and as traffic decreases, some of these extra replicas may be freed. If the + // requested value is too large, the deployment will error. MinReplicaCount int32 `protobuf:"varint,1,opt,name=min_replica_count,json=minReplicaCount,proto3" json:"min_replica_count,omitempty"` - // Immutable. The maximum number of replicas this DeployedModel may be deployed on when - // the traffic against it increases. If the requested value is too large, - // the deployment will error, but if deployment succeeds then the ability - // to scale the model to that many replicas is guaranteed (barring service - // outages). If traffic against the DeployedModel increases beyond what its - // replicas at maximum may handle, a portion of the traffic will be dropped. - // If this value is not provided, a no upper bound for scaling under heavy - // traffic will be assume, though Vertex AI may be unable to scale beyond - // certain replica number. + // Immutable. The maximum number of replicas this DeployedModel may be + // deployed on when the traffic against it increases. If the requested value + // is too large, the deployment will error, but if deployment succeeds then + // the ability to scale the model to that many replicas is guaranteed (barring + // service outages). If traffic against the DeployedModel increases beyond + // what its replicas at maximum may handle, a portion of the traffic will be + // dropped. If this value is not provided, a no upper bound for scaling under + // heavy traffic will be assume, though Vertex AI may be unable to scale + // beyond certain replica number. MaxReplicaCount int32 `protobuf:"varint,2,opt,name=max_replica_count,json=maxReplicaCount,proto3" json:"max_replica_count,omitempty"` } @@ -308,12 +318,12 @@ type BatchDedicatedResources struct { // Required. Immutable. The specification of a single machine. MachineSpec *MachineSpec `protobuf:"bytes,1,opt,name=machine_spec,json=machineSpec,proto3" json:"machine_spec,omitempty"` - // Immutable. The number of machine replicas used at the start of the batch operation. - // If not set, Vertex AI decides starting number, not greater than + // Immutable. The number of machine replicas used at the start of the batch + // operation. If not set, Vertex AI decides starting number, not greater than // [max_replica_count][google.cloud.aiplatform.v1beta1.BatchDedicatedResources.max_replica_count] StartingReplicaCount int32 `protobuf:"varint,2,opt,name=starting_replica_count,json=startingReplicaCount,proto3" json:"starting_replica_count,omitempty"` - // Immutable. The maximum number of machine replicas the batch operation may be scaled - // to. The default value is 10. + // Immutable. The maximum number of machine replicas the batch operation may + // be scaled to. The default value is 10. MaxReplicaCount int32 `protobuf:"varint,3,opt,name=max_replica_count,json=maxReplicaCount,proto3" json:"max_replica_count,omitempty"` } @@ -376,9 +386,9 @@ type ResourcesConsumed struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. The number of replica hours used. Note that many replicas may run in - // parallel, and additionally any given work may be queued for some time. - // Therefore this value is not strictly related to wall time. + // Output only. The number of replica hours used. Note that many replicas may + // run in parallel, and additionally any given work may be queued for some + // time. Therefore this value is not strictly related to wall time. ReplicaHours float64 `protobuf:"fixed64,1,opt,name=replica_hours,json=replicaHours,proto3" json:"replica_hours,omitempty"` } @@ -493,8 +503,8 @@ type NfsMount struct { // Has to start with '/', and combined with the ip address, it indicates // the source mount path in the form of `server:path` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - // Required. Destination mount path. The NFS will be mounted for the user under - // /mnt/nfs/ + // Required. Destination mount path. The NFS will be mounted for the user + // under /mnt/nfs/ MountPoint string `protobuf:"bytes,3,opt,name=mount_point,json=mountPoint,proto3" json:"mount_point,omitempty"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/manual_batch_tuning_parameters.pb.go b/aiplatform/apiv1beta1/aiplatformpb/manual_batch_tuning_parameters.pb.go index 7726ce118a2e..29432c88c1e2 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/manual_batch_tuning_parameters.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/manual_batch_tuning_parameters.pb.go @@ -42,11 +42,11 @@ type ManualBatchTuningParameters struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Immutable. The number of the records (e.g. instances) of the operation given in - // each batch to a machine replica. Machine type, and size of a single - // record should be considered when setting this parameter, higher value - // speeds up the batch operation's execution, but too high value will result - // in a whole batch not fitting in a machine's memory, and the whole + // Immutable. The number of the records (e.g. instances) of the operation + // given in each batch to a machine replica. Machine type, and size of a + // single record should be considered when setting this parameter, higher + // value speeds up the batch operation's execution, but too high value will + // result in a whole batch not fitting in a machine's memory, and the whole // operation will fail. // The default value is 64. BatchSize int32 `protobuf:"varint,1,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"` diff --git a/aiplatform/apiv1beta1/aiplatformpb/metadata_schema.pb.go b/aiplatform/apiv1beta1/aiplatformpb/metadata_schema.pb.go index 4c803c836e7a..7f39a2abf3df 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/metadata_schema.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/metadata_schema.pb.go @@ -106,9 +106,9 @@ type MetadataSchema struct { // the following regular expression: `^[0-9]+[.][0-9]+[.][0-9]+$`, which would // allow to order/compare different versions. Example: 1.0.0, 1.0.1, etc. SchemaVersion string `protobuf:"bytes,2,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"` - // Required. The raw YAML string representation of the MetadataSchema. The combination - // of [MetadataSchema.version] and the schema name given by `title` in - // [MetadataSchema.schema] must be unique within a MetadataStore. + // Required. The raw YAML string representation of the MetadataSchema. The + // combination of [MetadataSchema.version] and the schema name given by + // `title` in [MetadataSchema.schema] must be unique within a MetadataStore. // // The schema is defined as an OpenAPI 3.0.2 // [MetadataSchema diff --git a/aiplatform/apiv1beta1/aiplatformpb/metadata_service.pb.go b/aiplatform/apiv1beta1/aiplatformpb/metadata_service.pb.go index 76acf8757c53..53a4ca90023a 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/metadata_service.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/metadata_service.pb.go @@ -42,7 +42,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [MetadataService.CreateMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStore]. +// Request message for +// [MetadataService.CreateMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStore]. type CreateMetadataStoreRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -118,7 +119,8 @@ func (x *CreateMetadataStoreRequest) GetMetadataStoreId() string { return "" } -// Details of operations that perform [MetadataService.CreateMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStore]. +// Details of operations that perform +// [MetadataService.CreateMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStore]. type CreateMetadataStoreOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -167,7 +169,8 @@ func (x *CreateMetadataStoreOperationMetadata) GetGenericMetadata() *GenericOper return nil } -// Request message for [MetadataService.GetMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataStore]. +// Request message for +// [MetadataService.GetMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataStore]. type GetMetadataStoreRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -218,7 +221,8 @@ func (x *GetMetadataStoreRequest) GetName() string { return "" } -// Request message for [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores]. +// Request message for +// [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores]. type ListMetadataStoresRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -233,8 +237,8 @@ type ListMetadataStoresRequest struct { // Must be in range 1-1000, inclusive. Defaults to 100. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores] call. Provide this to retrieve the - // subsequent page. + // [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other provided parameters must match the call that // provided the page token. (Otherwise the request will fail with @@ -295,7 +299,8 @@ func (x *ListMetadataStoresRequest) GetPageToken() string { return "" } -// Response message for [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores]. +// Response message for +// [MetadataService.ListMetadataStores][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores]. type ListMetadataStoresResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -304,8 +309,9 @@ type ListMetadataStoresResponse struct { // The MetadataStores found for the Location. MetadataStores []*MetadataStore `protobuf:"bytes,1,rep,name=metadata_stores,json=metadataStores,proto3" json:"metadata_stores,omitempty"` // A token, which can be sent as - // [ListMetadataStoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.page_token] to retrieve the next - // page. If this field is not populated, there are no subsequent pages. + // [ListMetadataStoresRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataStoresRequest.page_token] + // to retrieve the next page. If this field is not populated, there are no + // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -355,7 +361,8 @@ func (x *ListMetadataStoresResponse) GetNextPageToken() string { return "" } -// Request message for [MetadataService.DeleteMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStore]. +// Request message for +// [MetadataService.DeleteMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStore]. type DeleteMetadataStoreRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -418,7 +425,8 @@ func (x *DeleteMetadataStoreRequest) GetForce() bool { return false } -// Details of operations that perform [MetadataService.DeleteMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStore]. +// Details of operations that perform +// [MetadataService.DeleteMetadataStore][google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStore]. type DeleteMetadataStoreOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -467,7 +475,8 @@ func (x *DeleteMetadataStoreOperationMetadata) GetGenericMetadata() *GenericOper return nil } -// Request message for [MetadataService.CreateArtifact][google.cloud.aiplatform.v1beta1.MetadataService.CreateArtifact]. +// Request message for +// [MetadataService.CreateArtifact][google.cloud.aiplatform.v1beta1.MetadataService.CreateArtifact]. type CreateArtifactRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -543,7 +552,8 @@ func (x *CreateArtifactRequest) GetArtifactId() string { return "" } -// Request message for [MetadataService.GetArtifact][google.cloud.aiplatform.v1beta1.MetadataService.GetArtifact]. +// Request message for +// [MetadataService.GetArtifact][google.cloud.aiplatform.v1beta1.MetadataService.GetArtifact]. type GetArtifactRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -594,7 +604,8 @@ func (x *GetArtifactRequest) GetName() string { return "" } -// Request message for [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts]. +// Request message for +// [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts]. type ListArtifactsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -607,7 +618,8 @@ type ListArtifactsRequest struct { // The maximum number of Artifacts to return. The service may return fewer. // Must be in range 1-1000, inclusive. Defaults to 100. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // A page token, received from a previous [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts] + // A page token, received from a previous + // [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts] // call. Provide this to retrieve the subsequent page. // // When paginating, all other provided parameters must match the call that @@ -719,7 +731,8 @@ func (x *ListArtifactsRequest) GetOrderBy() string { return "" } -// Response message for [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts]. +// Response message for +// [MetadataService.ListArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts]. type ListArtifactsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -727,7 +740,8 @@ type ListArtifactsResponse struct { // The Artifacts retrieved from the MetadataStore. Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"` - // A token, which can be sent as [ListArtifactsRequest.page_token][google.cloud.aiplatform.v1beta1.ListArtifactsRequest.page_token] + // A token, which can be sent as + // [ListArtifactsRequest.page_token][google.cloud.aiplatform.v1beta1.ListArtifactsRequest.page_token] // to retrieve the next page. // If this field is not populated, there are no subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -779,23 +793,25 @@ func (x *ListArtifactsResponse) GetNextPageToken() string { return "" } -// Request message for [MetadataService.UpdateArtifact][google.cloud.aiplatform.v1beta1.MetadataService.UpdateArtifact]. +// Request message for +// [MetadataService.UpdateArtifact][google.cloud.aiplatform.v1beta1.MetadataService.UpdateArtifact]. type UpdateArtifactRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The Artifact containing updates. - // The Artifact's [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is used to identify the Artifact to - // be updated. - // Format: + // The Artifact's + // [Artifact.name][google.cloud.aiplatform.v1beta1.Artifact.name] field is + // used to identify the Artifact to be updated. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` // Optional. A FieldMask indicating which fields should be updated. // Functionality of this field is not yet supported. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - // If set to true, and the [Artifact][google.cloud.aiplatform.v1beta1.Artifact] is not found, a new [Artifact][google.cloud.aiplatform.v1beta1.Artifact] is - // created. + // If set to true, and the + // [Artifact][google.cloud.aiplatform.v1beta1.Artifact] is not found, a new + // [Artifact][google.cloud.aiplatform.v1beta1.Artifact] is created. AllowMissing bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"` } @@ -852,7 +868,8 @@ func (x *UpdateArtifactRequest) GetAllowMissing() bool { return false } -// Request message for [MetadataService.DeleteArtifact][google.cloud.aiplatform.v1beta1.MetadataService.DeleteArtifact]. +// Request message for +// [MetadataService.DeleteArtifact][google.cloud.aiplatform.v1beta1.MetadataService.DeleteArtifact]. type DeleteArtifactRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -914,7 +931,8 @@ func (x *DeleteArtifactRequest) GetEtag() string { return "" } -// Request message for [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifacts]. +// Request message for +// [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifacts]. type PurgeArtifactsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -986,7 +1004,8 @@ func (x *PurgeArtifactsRequest) GetForce() bool { return false } -// Response message for [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifacts]. +// Response message for +// [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifacts]. type PurgeArtifactsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1047,7 +1066,8 @@ func (x *PurgeArtifactsResponse) GetPurgeSample() []string { return nil } -// Details of operations that perform [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifacts]. +// Details of operations that perform +// [MetadataService.PurgeArtifacts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifacts]. type PurgeArtifactsMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1096,15 +1116,15 @@ func (x *PurgeArtifactsMetadata) GetGenericMetadata() *GenericOperationMetadata return nil } -// Request message for [MetadataService.CreateContext][google.cloud.aiplatform.v1beta1.MetadataService.CreateContext]. +// Request message for +// [MetadataService.CreateContext][google.cloud.aiplatform.v1beta1.MetadataService.CreateContext]. type CreateContextRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the MetadataStore where the Context should be - // created. - // Format: + // Required. The resource name of the MetadataStore where the Context should + // be created. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatastore}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The Context to create. @@ -1172,7 +1192,8 @@ func (x *CreateContextRequest) GetContextId() string { return "" } -// Request message for [MetadataService.GetContext][google.cloud.aiplatform.v1beta1.MetadataService.GetContext]. +// Request message for +// [MetadataService.GetContext][google.cloud.aiplatform.v1beta1.MetadataService.GetContext]. type GetContextRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1223,7 +1244,8 @@ func (x *GetContextRequest) GetName() string { return "" } -// Request message for [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts] +// Request message for +// [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts] type ListContextsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1236,7 +1258,8 @@ type ListContextsRequest struct { // The maximum number of Contexts to return. The service may return fewer. // Must be in range 1-1000, inclusive. Defaults to 100. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // A page token, received from a previous [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts] + // A page token, received from a previous + // [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts] // call. Provide this to retrieve the subsequent page. // // When paginating, all other provided parameters must match the call that @@ -1354,7 +1377,8 @@ func (x *ListContextsRequest) GetOrderBy() string { return "" } -// Response message for [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts]. +// Response message for +// [MetadataService.ListContexts][google.cloud.aiplatform.v1beta1.MetadataService.ListContexts]. type ListContextsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1362,7 +1386,8 @@ type ListContextsResponse struct { // The Contexts retrieved from the MetadataStore. Contexts []*Context `protobuf:"bytes,1,rep,name=contexts,proto3" json:"contexts,omitempty"` - // A token, which can be sent as [ListContextsRequest.page_token][google.cloud.aiplatform.v1beta1.ListContextsRequest.page_token] + // A token, which can be sent as + // [ListContextsRequest.page_token][google.cloud.aiplatform.v1beta1.ListContextsRequest.page_token] // to retrieve the next page. // If this field is not populated, there are no subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -1414,22 +1439,23 @@ func (x *ListContextsResponse) GetNextPageToken() string { return "" } -// Request message for [MetadataService.UpdateContext][google.cloud.aiplatform.v1beta1.MetadataService.UpdateContext]. +// Request message for +// [MetadataService.UpdateContext][google.cloud.aiplatform.v1beta1.MetadataService.UpdateContext]. type UpdateContextRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The Context containing updates. - // The Context's [Context.name][google.cloud.aiplatform.v1beta1.Context.name] field is used to identify the Context to be - // updated. - // Format: + // The Context's [Context.name][google.cloud.aiplatform.v1beta1.Context.name] + // field is used to identify the Context to be updated. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // Optional. A FieldMask indicating which fields should be updated. // Functionality of this field is not yet supported. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - // If set to true, and the [Context][google.cloud.aiplatform.v1beta1.Context] is not found, a new [Context][google.cloud.aiplatform.v1beta1.Context] is + // If set to true, and the [Context][google.cloud.aiplatform.v1beta1.Context] + // is not found, a new [Context][google.cloud.aiplatform.v1beta1.Context] is // created. AllowMissing bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"` } @@ -1487,7 +1513,8 @@ func (x *UpdateContextRequest) GetAllowMissing() bool { return false } -// Request message for [MetadataService.DeleteContext][google.cloud.aiplatform.v1beta1.MetadataService.DeleteContext]. +// Request message for +// [MetadataService.DeleteContext][google.cloud.aiplatform.v1beta1.MetadataService.DeleteContext]. type DeleteContextRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1559,7 +1586,8 @@ func (x *DeleteContextRequest) GetEtag() string { return "" } -// Request message for [MetadataService.PurgeContexts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts]. +// Request message for +// [MetadataService.PurgeContexts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts]. type PurgeContextsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1631,7 +1659,8 @@ func (x *PurgeContextsRequest) GetForce() bool { return false } -// Response message for [MetadataService.PurgeContexts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts]. +// Response message for +// [MetadataService.PurgeContexts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts]. type PurgeContextsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1692,7 +1721,8 @@ func (x *PurgeContextsResponse) GetPurgeSample() []string { return nil } -// Details of operations that perform [MetadataService.PurgeContexts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts]. +// Details of operations that perform +// [MetadataService.PurgeContexts][google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts]. type PurgeContextsMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1741,15 +1771,15 @@ func (x *PurgeContextsMetadata) GetGenericMetadata() *GenericOperationMetadata { return nil } -// Request message for [MetadataService.AddContextArtifactsAndExecutions][google.cloud.aiplatform.v1beta1.MetadataService.AddContextArtifactsAndExecutions]. +// Request message for +// [MetadataService.AddContextArtifactsAndExecutions][google.cloud.aiplatform.v1beta1.MetadataService.AddContextArtifactsAndExecutions]. type AddContextArtifactsAndExecutionsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Context that the Artifacts and Executions - // belong to. - // Format: + // Required. The resource name of the Context that the Artifacts and + // Executions belong to. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` Context string `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // The resource names of the Artifacts to attribute to the Context. @@ -1818,7 +1848,8 @@ func (x *AddContextArtifactsAndExecutionsRequest) GetExecutions() []string { return nil } -// Response message for [MetadataService.AddContextArtifactsAndExecutions][google.cloud.aiplatform.v1beta1.MetadataService.AddContextArtifactsAndExecutions]. +// Response message for +// [MetadataService.AddContextArtifactsAndExecutions][google.cloud.aiplatform.v1beta1.MetadataService.AddContextArtifactsAndExecutions]. type AddContextArtifactsAndExecutionsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1857,7 +1888,8 @@ func (*AddContextArtifactsAndExecutionsResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1beta1_metadata_service_proto_rawDescGZIP(), []int{26} } -// Request message for [MetadataService.AddContextChildren][google.cloud.aiplatform.v1beta1.MetadataService.AddContextChildren]. +// Request message for +// [MetadataService.AddContextChildren][google.cloud.aiplatform.v1beta1.MetadataService.AddContextChildren]. type AddContextChildrenRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1918,7 +1950,8 @@ func (x *AddContextChildrenRequest) GetChildContexts() []string { return nil } -// Response message for [MetadataService.AddContextChildren][google.cloud.aiplatform.v1beta1.MetadataService.AddContextChildren]. +// Response message for +// [MetadataService.AddContextChildren][google.cloud.aiplatform.v1beta1.MetadataService.AddContextChildren]. type AddContextChildrenResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2019,7 +2052,8 @@ func (x *RemoveContextChildrenRequest) GetChildContexts() []string { return nil } -// Response message for [MetadataService.RemoveContextChildren][google.cloud.aiplatform.v1beta1.MetadataService.RemoveContextChildren]. +// Response message for +// [MetadataService.RemoveContextChildren][google.cloud.aiplatform.v1beta1.MetadataService.RemoveContextChildren]. type RemoveContextChildrenResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2058,7 +2092,8 @@ func (*RemoveContextChildrenResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1beta1_metadata_service_proto_rawDescGZIP(), []int{30} } -// Request message for [MetadataService.QueryContextLineageSubgraph][google.cloud.aiplatform.v1beta1.MetadataService.QueryContextLineageSubgraph]. +// Request message for +// [MetadataService.QueryContextLineageSubgraph][google.cloud.aiplatform.v1beta1.MetadataService.QueryContextLineageSubgraph]. type QueryContextLineageSubgraphRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2114,7 +2149,8 @@ func (x *QueryContextLineageSubgraphRequest) GetContext() string { return "" } -// Request message for [MetadataService.CreateExecution][google.cloud.aiplatform.v1beta1.MetadataService.CreateExecution]. +// Request message for +// [MetadataService.CreateExecution][google.cloud.aiplatform.v1beta1.MetadataService.CreateExecution]. type CreateExecutionRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2191,7 +2227,8 @@ func (x *CreateExecutionRequest) GetExecutionId() string { return "" } -// Request message for [MetadataService.GetExecution][google.cloud.aiplatform.v1beta1.MetadataService.GetExecution]. +// Request message for +// [MetadataService.GetExecution][google.cloud.aiplatform.v1beta1.MetadataService.GetExecution]. type GetExecutionRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2242,7 +2279,8 @@ func (x *GetExecutionRequest) GetName() string { return "" } -// Request message for [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions]. +// Request message for +// [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions]. type ListExecutionsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2255,7 +2293,8 @@ type ListExecutionsRequest struct { // The maximum number of Executions to return. The service may return fewer. // Must be in range 1-1000, inclusive. Defaults to 100. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // A page token, received from a previous [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions] + // A page token, received from a previous + // [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions] // call. Provide this to retrieve the subsequent page. // // When paginating, all other provided parameters must match the call that @@ -2367,7 +2406,8 @@ func (x *ListExecutionsRequest) GetOrderBy() string { return "" } -// Response message for [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions]. +// Response message for +// [MetadataService.ListExecutions][google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions]. type ListExecutionsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2375,7 +2415,8 @@ type ListExecutionsResponse struct { // The Executions retrieved from the MetadataStore. Executions []*Execution `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` - // A token, which can be sent as [ListExecutionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListExecutionsRequest.page_token] + // A token, which can be sent as + // [ListExecutionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListExecutionsRequest.page_token] // to retrieve the next page. // If this field is not populated, there are no subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -2427,23 +2468,25 @@ func (x *ListExecutionsResponse) GetNextPageToken() string { return "" } -// Request message for [MetadataService.UpdateExecution][google.cloud.aiplatform.v1beta1.MetadataService.UpdateExecution]. +// Request message for +// [MetadataService.UpdateExecution][google.cloud.aiplatform.v1beta1.MetadataService.UpdateExecution]. type UpdateExecutionRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The Execution containing updates. - // The Execution's [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is used to identify the Execution - // to be updated. - // Format: + // The Execution's + // [Execution.name][google.cloud.aiplatform.v1beta1.Execution.name] field is + // used to identify the Execution to be updated. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` Execution *Execution `protobuf:"bytes,1,opt,name=execution,proto3" json:"execution,omitempty"` // Optional. A FieldMask indicating which fields should be updated. // Functionality of this field is not yet supported. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - // If set to true, and the [Execution][google.cloud.aiplatform.v1beta1.Execution] is not found, a new [Execution][google.cloud.aiplatform.v1beta1.Execution] - // is created. + // If set to true, and the + // [Execution][google.cloud.aiplatform.v1beta1.Execution] is not found, a new + // [Execution][google.cloud.aiplatform.v1beta1.Execution] is created. AllowMissing bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"` } @@ -2500,7 +2543,8 @@ func (x *UpdateExecutionRequest) GetAllowMissing() bool { return false } -// Request message for [MetadataService.DeleteExecution][google.cloud.aiplatform.v1beta1.MetadataService.DeleteExecution]. +// Request message for +// [MetadataService.DeleteExecution][google.cloud.aiplatform.v1beta1.MetadataService.DeleteExecution]. type DeleteExecutionRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2562,7 +2606,8 @@ func (x *DeleteExecutionRequest) GetEtag() string { return "" } -// Request message for [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutions]. +// Request message for +// [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutions]. type PurgeExecutionsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2634,7 +2679,8 @@ func (x *PurgeExecutionsRequest) GetForce() bool { return false } -// Response message for [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutions]. +// Response message for +// [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutions]. type PurgeExecutionsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2696,7 +2742,8 @@ func (x *PurgeExecutionsResponse) GetPurgeSample() []string { return nil } -// Details of operations that perform [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutions]. +// Details of operations that perform +// [MetadataService.PurgeExecutions][google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutions]. type PurgeExecutionsMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2745,7 +2792,8 @@ func (x *PurgeExecutionsMetadata) GetGenericMetadata() *GenericOperationMetadata return nil } -// Request message for [MetadataService.AddExecutionEvents][google.cloud.aiplatform.v1beta1.MetadataService.AddExecutionEvents]. +// Request message for +// [MetadataService.AddExecutionEvents][google.cloud.aiplatform.v1beta1.MetadataService.AddExecutionEvents]. type AddExecutionEventsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2806,7 +2854,8 @@ func (x *AddExecutionEventsRequest) GetEvents() []*Event { return nil } -// Response message for [MetadataService.AddExecutionEvents][google.cloud.aiplatform.v1beta1.MetadataService.AddExecutionEvents]. +// Response message for +// [MetadataService.AddExecutionEvents][google.cloud.aiplatform.v1beta1.MetadataService.AddExecutionEvents]. type AddExecutionEventsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2845,15 +2894,15 @@ func (*AddExecutionEventsResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1beta1_metadata_service_proto_rawDescGZIP(), []int{42} } -// Request message for [MetadataService.QueryExecutionInputsAndOutputs][google.cloud.aiplatform.v1beta1.MetadataService.QueryExecutionInputsAndOutputs]. +// Request message for +// [MetadataService.QueryExecutionInputsAndOutputs][google.cloud.aiplatform.v1beta1.MetadataService.QueryExecutionInputsAndOutputs]. type QueryExecutionInputsAndOutputsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Execution whose input and output Artifacts should - // be retrieved as a LineageSubgraph. - // Format: + // Required. The resource name of the Execution whose input and output + // Artifacts should be retrieved as a LineageSubgraph. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` Execution string `protobuf:"bytes,1,opt,name=execution,proto3" json:"execution,omitempty"` } @@ -2897,15 +2946,15 @@ func (x *QueryExecutionInputsAndOutputsRequest) GetExecution() string { return "" } -// Request message for [MetadataService.CreateMetadataSchema][google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataSchema]. +// Request message for +// [MetadataService.CreateMetadataSchema][google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataSchema]. type CreateMetadataSchemaRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the MetadataStore where the MetadataSchema should - // be created. - // Format: + // Required. The resource name of the MetadataStore where the MetadataSchema + // should be created. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatastore}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The MetadataSchema to create. @@ -2974,7 +3023,8 @@ func (x *CreateMetadataSchemaRequest) GetMetadataSchemaId() string { return "" } -// Request message for [MetadataService.GetMetadataSchema][google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataSchema]. +// Request message for +// [MetadataService.GetMetadataSchema][google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataSchema]. type GetMetadataSchemaRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3025,7 +3075,8 @@ func (x *GetMetadataSchemaRequest) GetName() string { return "" } -// Request message for [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas]. +// Request message for +// [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas]. type ListMetadataSchemasRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3040,8 +3091,8 @@ type ListMetadataSchemasRequest struct { // Must be in range 1-1000, inclusive. Defaults to 100. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas] call. Provide this to retrieve the - // next page. + // [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas] + // call. Provide this to retrieve the next page. // // When paginating, all other provided parameters must match the call that // provided the page token. (Otherwise the request will fail with @@ -3111,7 +3162,8 @@ func (x *ListMetadataSchemasRequest) GetFilter() string { return "" } -// Response message for [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas]. +// Response message for +// [MetadataService.ListMetadataSchemas][google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas]. type ListMetadataSchemasResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3120,8 +3172,9 @@ type ListMetadataSchemasResponse struct { // The MetadataSchemas found for the MetadataStore. MetadataSchemas []*MetadataSchema `protobuf:"bytes,1,rep,name=metadata_schemas,json=metadataSchemas,proto3" json:"metadata_schemas,omitempty"` // A token, which can be sent as - // [ListMetadataSchemasRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.page_token] to retrieve the next - // page. If this field is not populated, there are no subsequent pages. + // [ListMetadataSchemasRequest.page_token][google.cloud.aiplatform.v1beta1.ListMetadataSchemasRequest.page_token] + // to retrieve the next page. If this field is not populated, there are no + // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -3171,15 +3224,15 @@ func (x *ListMetadataSchemasResponse) GetNextPageToken() string { return "" } -// Request message for [MetadataService.QueryArtifactLineageSubgraph][google.cloud.aiplatform.v1beta1.MetadataService.QueryArtifactLineageSubgraph]. +// Request message for +// [MetadataService.QueryArtifactLineageSubgraph][google.cloud.aiplatform.v1beta1.MetadataService.QueryArtifactLineageSubgraph]. type QueryArtifactLineageSubgraphRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Artifact whose Lineage needs to be retrieved as a - // LineageSubgraph. - // Format: + // Required. The resource name of the Artifact whose Lineage needs to be + // retrieved as a LineageSubgraph. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` // // The request may error with FAILED_PRECONDITION if the number of Artifacts, diff --git a/aiplatform/apiv1beta1/aiplatformpb/migratable_resource.pb.go b/aiplatform/apiv1beta1/aiplatformpb/migratable_resource.pb.go index 013381f1ff3f..933cd287ede1 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/migratable_resource.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/migratable_resource.pb.go @@ -51,9 +51,9 @@ type MigratableResource struct { // *MigratableResource_AutomlDataset_ // *MigratableResource_DataLabelingDataset_ Resource isMigratableResource_Resource `protobuf_oneof:"resource"` - // Output only. Timestamp when the last migration attempt on this MigratableResource - // started. Will not be set if there's no migration attempt on this - // MigratableResource. + // Output only. Timestamp when the last migration attempt on this + // MigratableResource started. Will not be set if there's no migration attempt + // on this MigratableResource. LastMigrateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_migrate_time,json=lastMigrateTime,proto3" json:"last_migrate_time,omitempty"` // Output only. Timestamp when this MigratableResource was last updated. LastUpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"` diff --git a/aiplatform/apiv1beta1/aiplatformpb/migration_service.pb.go b/aiplatform/apiv1beta1/aiplatformpb/migration_service.pb.go index c86b879187db..fae6afd7c963 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/migration_service.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/migration_service.pb.go @@ -42,16 +42,16 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [MigrationService.SearchMigratableResources][google.cloud.aiplatform.v1beta1.MigrationService.SearchMigratableResources]. +// Request message for +// [MigrationService.SearchMigratableResources][google.cloud.aiplatform.v1beta1.MigrationService.SearchMigratableResources]. type SearchMigratableResourcesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The location that the migratable resources should be searched from. - // It's the Vertex AI location that the resources can be migrated to, not - // the resources' original location. - // Format: + // Required. The location that the migratable resources should be searched + // from. It's the Vertex AI location that the resources can be migrated to, + // not the resources' original location. Format: // `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The standard page size. @@ -62,7 +62,8 @@ type SearchMigratableResourcesRequest struct { // A filter for your search. You can use the following types of filters: // // - Resource type filters. The following strings filter for a specific type - // of [MigratableResource][google.cloud.aiplatform.v1beta1.MigratableResource]: + // of + // [MigratableResource][google.cloud.aiplatform.v1beta1.MigratableResource]: // - `ml_engine_model_version:*` // - `automl_model:*` // - `automl_dataset:*` @@ -134,7 +135,8 @@ func (x *SearchMigratableResourcesRequest) GetFilter() string { return "" } -// Response message for [MigrationService.SearchMigratableResources][google.cloud.aiplatform.v1beta1.MigrationService.SearchMigratableResources]. +// Response message for +// [MigrationService.SearchMigratableResources][google.cloud.aiplatform.v1beta1.MigrationService.SearchMigratableResources]. type SearchMigratableResourcesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -195,7 +197,8 @@ func (x *SearchMigratableResourcesResponse) GetNextPageToken() string { return "" } -// Request message for [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResources]. +// Request message for +// [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResources]. type BatchMigrateResourcesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -375,7 +378,8 @@ func (*MigrateResourceRequest_MigrateAutomlDatasetConfig_) isMigrateResourceRequ func (*MigrateResourceRequest_MigrateDataLabelingDatasetConfig_) isMigrateResourceRequest_Request() {} -// Response message for [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResources]. +// Response message for +// [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResources]. type BatchMigrateResourcesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -520,7 +524,8 @@ func (*MigrateResourceResponse_Dataset) isMigrateResourceResponse_MigratedResour func (*MigrateResourceResponse_Model) isMigrateResourceResponse_MigratedResource() {} -// Runtime operation information for [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResources]. +// Runtime operation information for +// [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResources]. type BatchMigrateResourcesOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -584,9 +589,8 @@ type MigrateResourceRequest_MigrateMlEngineModelVersionConfig struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The ml.googleapis.com endpoint that this model version should be migrated - // from. - // Example values: + // Required. The ml.googleapis.com endpoint that this model version should + // be migrated from. Example values: // // * ml.googleapis.com // @@ -794,9 +798,9 @@ type MigrateResourceRequest_MigrateDataLabelingDatasetConfig struct { // Optional. Display name of the Dataset in Vertex AI. // System will pick a display name if unspecified. DatasetDisplayName string `protobuf:"bytes,2,opt,name=dataset_display_name,json=datasetDisplayName,proto3" json:"dataset_display_name,omitempty"` - // Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to - // Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong - // to the datalabeling Dataset. + // Optional. Configs for migrating AnnotatedDataset in + // datalabeling.googleapis.com to Vertex AI's SavedQuery. The specified + // AnnotatedDatasets have to belong to the datalabeling Dataset. MigrateDataLabelingAnnotatedDatasetConfigs []*MigrateResourceRequest_MigrateDataLabelingDatasetConfig_MigrateDataLabelingAnnotatedDatasetConfig `protobuf:"bytes,3,rep,name=migrate_data_labeling_annotated_dataset_configs,json=migrateDataLabelingAnnotatedDatasetConfigs,proto3" json:"migrate_data_labeling_annotated_dataset_configs,omitempty"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/model.pb.go b/aiplatform/apiv1beta1/aiplatformpb/model.pb.go index 7bf7c0d31152..4b6ecd37cdc8 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/model.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/model.pb.go @@ -44,14 +44,18 @@ type Model_DeploymentResourcesType int32 const ( // Should not be used. Model_DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED Model_DeploymentResourcesType = 0 - // Resources that are dedicated to the [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel], and that need a - // higher degree of manual configuration. + // Resources that are dedicated to the + // [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel], and that + // need a higher degree of manual configuration. Model_DEDICATED_RESOURCES Model_DeploymentResourcesType = 1 // Resources that to large degree are decided by Vertex AI, and require // only a modest additional configuration. Model_AUTOMATIC_RESOURCES Model_DeploymentResourcesType = 2 - // Resources that can be shared by multiple [DeployedModels][google.cloud.aiplatform.v1beta1.DeployedModel]. - // A pre-configured [DeploymentResourcePool][google.cloud.aiplatform.v1beta1.DeploymentResourcePool] is required. + // Resources that can be shared by multiple + // [DeployedModels][google.cloud.aiplatform.v1beta1.DeployedModel]. A + // pre-configured + // [DeploymentResourcePool][google.cloud.aiplatform.v1beta1.DeploymentResourcePool] + // is required. Model_SHARED_RESOURCES Model_DeploymentResourcesType = 3 ) @@ -106,11 +110,14 @@ const ( Model_ExportFormat_EXPORTABLE_CONTENT_UNSPECIFIED Model_ExportFormat_ExportableContent = 0 // Model artifact and any of its supported files. Will be exported to the // location specified by the `artifactDestination` field of the - // [ExportModelRequest.output_config][google.cloud.aiplatform.v1beta1.ExportModelRequest.output_config] object. + // [ExportModelRequest.output_config][google.cloud.aiplatform.v1beta1.ExportModelRequest.output_config] + // object. Model_ExportFormat_ARTIFACT Model_ExportFormat_ExportableContent = 1 // The container image that is to be used when deploying this Model. Will // be exported to the location specified by the `imageDestination` field - // of the [ExportModelRequest.output_config][google.cloud.aiplatform.v1beta1.ExportModelRequest.output_config] object. + // of the + // [ExportModelRequest.output_config][google.cloud.aiplatform.v1beta1.ExportModelRequest.output_config] + // object. Model_ExportFormat_IMAGE Model_ExportFormat_ExportableContent = 2 ) @@ -249,12 +256,14 @@ type Model struct { VersionDescription string `protobuf:"bytes,30,opt,name=version_description,json=versionDescription,proto3" json:"version_description,omitempty"` // The schemata that describe formats of the Model's predictions and // explanations as given and returned via - // [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] and [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]. + // [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] + // and + // [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]. PredictSchemata *PredictSchemata `protobuf:"bytes,4,opt,name=predict_schemata,json=predictSchemata,proto3" json:"predict_schemata,omitempty"` - // Immutable. Points to a YAML file stored on Google Cloud Storage describing additional - // information about the Model, that is specific to it. Unset if the Model - // does not have any additional information. - // The schema is defined as an OpenAPI 3.0.2 [Schema + // Immutable. Points to a YAML file stored on Google Cloud Storage describing + // additional information about the Model, that is specific to it. Unset if + // the Model does not have any additional information. The schema is defined + // as an OpenAPI 3.0.2 [Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). // AutoML Models always have this field populated by Vertex AI, if no // additional metadata is needed, this field is set to an empty string. @@ -262,42 +271,49 @@ type Model struct { // including the URI scheme, than the one given on input. The output URI will // point to a location where the user only has a read access. MetadataSchemaUri string `protobuf:"bytes,5,opt,name=metadata_schema_uri,json=metadataSchemaUri,proto3" json:"metadata_schema_uri,omitempty"` - // Immutable. An additional information about the Model; the schema of the metadata can - // be found in [metadata_schema][google.cloud.aiplatform.v1beta1.Model.metadata_schema_uri]. + // Immutable. An additional information about the Model; the schema of the + // metadata can be found in + // [metadata_schema][google.cloud.aiplatform.v1beta1.Model.metadata_schema_uri]. // Unset if the Model does not have any additional information. Metadata *structpb.Value `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` - // Output only. The formats in which this Model may be exported. If empty, this Model is - // not available for export. + // Output only. The formats in which this Model may be exported. If empty, + // this Model is not available for export. SupportedExportFormats []*Model_ExportFormat `protobuf:"bytes,20,rep,name=supported_export_formats,json=supportedExportFormats,proto3" json:"supported_export_formats,omitempty"` - // Output only. The resource name of the TrainingPipeline that uploaded this Model, if - // any. + // Output only. The resource name of the TrainingPipeline that uploaded this + // Model, if any. TrainingPipeline string `protobuf:"bytes,7,opt,name=training_pipeline,json=trainingPipeline,proto3" json:"training_pipeline,omitempty"` - // Input only. The specification of the container that is to be used when deploying - // this Model. The specification is ingested upon - // [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], and all binaries it contains are copied - // and stored internally by Vertex AI. + // Input only. The specification of the container that is to be used when + // deploying this Model. The specification is ingested upon + // [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], + // and all binaries it contains are copied and stored internally by Vertex AI. // Not present for AutoML Models. ContainerSpec *ModelContainerSpec `protobuf:"bytes,9,opt,name=container_spec,json=containerSpec,proto3" json:"container_spec,omitempty"` - // Immutable. The path to the directory containing the Model artifact and any of its - // supporting files. - // Not present for AutoML Models. + // Immutable. The path to the directory containing the Model artifact and any + // of its supporting files. Not present for AutoML Models. ArtifactUri string `protobuf:"bytes,26,opt,name=artifact_uri,json=artifactUri,proto3" json:"artifact_uri,omitempty"` - // Output only. When this Model is deployed, its prediction resources are described by the - // `prediction_resources` field of the [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models] object. - // Because not all Models support all resource configuration types, the - // configuration types this Model supports are listed here. If no + // Output only. When this Model is deployed, its prediction resources are + // described by the `prediction_resources` field of the + // [Endpoint.deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models] + // object. Because not all Models support all resource configuration types, + // the configuration types this Model supports are listed here. If no // configuration types are listed, the Model cannot be deployed to an // [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and does not support - // online predictions ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] or - // [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]). Such a Model can serve predictions by - // using a [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob], if it has at least one entry each in - // [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats] and + // online predictions + // ([PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] + // or + // [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]). + // Such a Model can serve predictions by using a + // [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob], + // if it has at least one entry each in + // [supported_input_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_input_storage_formats] + // and // [supported_output_storage_formats][google.cloud.aiplatform.v1beta1.Model.supported_output_storage_formats]. SupportedDeploymentResourcesTypes []Model_DeploymentResourcesType `protobuf:"varint,10,rep,packed,name=supported_deployment_resources_types,json=supportedDeploymentResourcesTypes,proto3,enum=google.cloud.aiplatform.v1beta1.Model_DeploymentResourcesType" json:"supported_deployment_resources_types,omitempty"` // Output only. The formats this Model supports in - // [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config]. If - // [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri] exists, the instances - // should be given as per that schema. + // [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config]. + // If + // [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri] + // exists, the instances should be given as per that schema. // // The possible formats are: // @@ -308,11 +324,13 @@ type Model struct { // * `csv` // The CSV format, where each instance is a single comma-separated line. // The first line in the file is the header, containing comma-separated field - // names. Uses [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source]. + // names. Uses + // [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source]. // // * `tf-record` // The TFRecord format, where each instance is a single record in tfrecord - // syntax. Uses [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source]. + // syntax. Uses + // [GcsSource][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.gcs_source]. // // * `tf-record-gzip` // Similar to `tf-record`, but the file is gzipped. Uses @@ -325,21 +343,28 @@ type Model struct { // * `file-list` // Each line of the file is the location of an instance to process, uses // `gcs_source` field of the - // [InputConfig][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig] object. + // [InputConfig][google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig] + // object. // // If this Model doesn't support any of these formats it means it cannot be - // used with a [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. However, if it has - // [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types], it could serve online - // predictions by using [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] or + // used with a + // [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. + // However, if it has + // [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types], + // it could serve online predictions by using + // [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] + // or // [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]. SupportedInputStorageFormats []string `protobuf:"bytes,11,rep,name=supported_input_storage_formats,json=supportedInputStorageFormats,proto3" json:"supported_input_storage_formats,omitempty"` // Output only. The formats this Model supports in - // [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config]. If both - // [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri] and - // [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.prediction_schema_uri] exist, the predictions - // are returned together with their instances. In other words, the - // prediction has the original instance data first, followed - // by the actual prediction content (as per the schema). + // [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config]. + // If both + // [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri] + // and + // [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.prediction_schema_uri] + // exist, the predictions are returned together with their instances. In other + // words, the prediction has the original instance data first, followed by the + // actual prediction content (as per the schema). // // The possible formats are: // @@ -359,39 +384,49 @@ type Model struct { // . // // If this Model doesn't support any of these formats it means it cannot be - // used with a [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. However, if it has - // [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types], it could serve online - // predictions by using [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] or + // used with a + // [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. + // However, if it has + // [supported_deployment_resources_types][google.cloud.aiplatform.v1beta1.Model.supported_deployment_resources_types], + // it could serve online predictions by using + // [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] + // or // [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]. SupportedOutputStorageFormats []string `protobuf:"bytes,12,rep,name=supported_output_storage_formats,json=supportedOutputStorageFormats,proto3" json:"supported_output_storage_formats,omitempty"` // Output only. Timestamp when this Model was uploaded into Vertex AI. CreateTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Timestamp when this Model was most recently updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // Output only. The pointers to DeployedModels created from this Model. Note that - // Model could have been deployed to Endpoints in different Locations. + // Output only. The pointers to DeployedModels created from this Model. Note + // that Model could have been deployed to Endpoints in different Locations. DeployedModels []*DeployedModelRef `protobuf:"bytes,15,rep,name=deployed_models,json=deployedModels,proto3" json:"deployed_models,omitempty"` // The default explanation specification for this Model. // // The Model can be used for [requesting // explanation][PredictionService.Explain] after being - // [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if it is populated. - // The Model can be used for [batch + // [deployed][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel] if + // it is populated. The Model can be used for [batch // explanation][BatchPredictionJob.generate_explanation] if it is populated. // // All fields of the explanation_spec can be overridden by - // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of - // [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model], or - // [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of + // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] + // of + // [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model], + // or + // [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] + // of // [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. // // If the default explanation specification is not set for this Model, this // Model can still be used for [requesting // explanation][PredictionService.Explain] by setting - // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of - // [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] and for [batch - // explanation][BatchPredictionJob.generate_explanation] by setting - // [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] of + // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] + // of + // [DeployModelRequest.deployed_model][google.cloud.aiplatform.v1beta1.DeployModelRequest.deployed_model] + // and for [batch explanation][BatchPredictionJob.generate_explanation] by + // setting + // [explanation_spec][google.cloud.aiplatform.v1beta1.BatchPredictionJob.explanation_spec] + // of // [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. ExplanationSpec *ExplanationSpec `protobuf:"bytes,23,opt,name=explanation_spec,json=explanationSpec,proto3" json:"explanation_spec,omitempty"` // Used to perform consistent read-modify-write updates. If not set, a blind @@ -408,11 +443,12 @@ type Model struct { // Customer-managed encryption key spec for a Model. If set, this // Model and all sub-resources of this Model will be secured by this key. EncryptionSpec *EncryptionSpec `protobuf:"bytes,24,opt,name=encryption_spec,json=encryptionSpec,proto3" json:"encryption_spec,omitempty"` - // Output only. Source of a model. It can either be automl training pipeline, custom - // training pipeline, BigQuery ML, or existing Vertex AI Model. + // Output only. Source of a model. It can either be automl training pipeline, + // custom training pipeline, BigQuery ML, or existing Vertex AI Model. ModelSourceInfo *ModelSourceInfo `protobuf:"bytes,38,opt,name=model_source_info,json=modelSourceInfo,proto3" json:"model_source_info,omitempty"` - // Output only. The resource name of the Artifact that was created in MetadataStore when - // creating the Model. The Artifact resource name pattern is + // Output only. The resource name of the Artifact that was created in + // MetadataStore when creating the Model. The Artifact resource name pattern + // is // `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. MetadataArtifact string `protobuf:"bytes,44,opt,name=metadata_artifact,json=metadataArtifact,proto3" json:"metadata_artifact,omitempty"` } @@ -639,16 +675,19 @@ func (x *Model) GetMetadataArtifact() string { } // Contains the schemata used in Model's predictions and explanations via -// [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict], [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain] and -// [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. +// [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict], +// [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain] +// and [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]. type PredictSchemata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Immutable. Points to a YAML file stored on Google Cloud Storage describing the format - // of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances], - // [ExplainRequest.instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] and + // Immutable. Points to a YAML file stored on Google Cloud Storage describing + // the format of a single instance, which are used in + // [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances], + // [ExplainRequest.instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] + // and // [BatchPredictionJob.input_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.input_config]. // The schema is defined as an OpenAPI 3.0.2 [Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). @@ -657,9 +696,11 @@ type PredictSchemata struct { // including the URI scheme, than the one given on input. The output URI will // point to a location where the user only has a read access. InstanceSchemaUri string `protobuf:"bytes,1,opt,name=instance_schema_uri,json=instanceSchemaUri,proto3" json:"instance_schema_uri,omitempty"` - // Immutable. Points to a YAML file stored on Google Cloud Storage describing the - // parameters of prediction and explanation via - // [PredictRequest.parameters][google.cloud.aiplatform.v1beta1.PredictRequest.parameters], [ExplainRequest.parameters][google.cloud.aiplatform.v1beta1.ExplainRequest.parameters] and + // Immutable. Points to a YAML file stored on Google Cloud Storage describing + // the parameters of prediction and explanation via + // [PredictRequest.parameters][google.cloud.aiplatform.v1beta1.PredictRequest.parameters], + // [ExplainRequest.parameters][google.cloud.aiplatform.v1beta1.ExplainRequest.parameters] + // and // [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1beta1.BatchPredictionJob.model_parameters]. // The schema is defined as an OpenAPI 3.0.2 [Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). @@ -669,9 +710,12 @@ type PredictSchemata struct { // including the URI scheme, than the one given on input. The output URI will // point to a location where the user only has a read access. ParametersSchemaUri string `protobuf:"bytes,2,opt,name=parameters_schema_uri,json=parametersSchemaUri,proto3" json:"parameters_schema_uri,omitempty"` - // Immutable. Points to a YAML file stored on Google Cloud Storage describing the format - // of a single prediction produced by this Model, which are returned via - // [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions], [ExplainResponse.explanations][google.cloud.aiplatform.v1beta1.ExplainResponse.explanations], and + // Immutable. Points to a YAML file stored on Google Cloud Storage describing + // the format of a single prediction produced by this Model, which are + // returned via + // [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions], + // [ExplainResponse.explanations][google.cloud.aiplatform.v1beta1.ExplainResponse.explanations], + // and // [BatchPredictionJob.output_config][google.cloud.aiplatform.v1beta1.BatchPredictionJob.output_config]. // The schema is defined as an OpenAPI 3.0.2 [Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). @@ -743,14 +787,16 @@ type ModelContainerSpec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. Immutable. URI of the Docker image to be used as the custom container for serving - // predictions. This URI must identify an image in Artifact Registry or - // Container Registry. Learn more about the [container publishing + // Required. Immutable. URI of the Docker image to be used as the custom + // container for serving predictions. This URI must identify an image in + // Artifact Registry or Container Registry. Learn more about the [container + // publishing // requirements](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#publishing), // including permissions requirements for the Vertex AI Service Agent. // - // The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], stored - // internally, and this original path is afterwards not used. + // The container image is ingested upon + // [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel], + // stored internally, and this original path is afterwards not used. // // To learn about the requirements for the Docker image itself, see // [Custom container @@ -760,18 +806,20 @@ type ModelContainerSpec struct { // prediction](https://cloud.google.com/vertex-ai/docs/predictions/pre-built-containers) // in this field. ImageUri string `protobuf:"bytes,1,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"` - // Immutable. Specifies the command that runs when the container starts. This overrides - // the container's + // Immutable. Specifies the command that runs when the container starts. This + // overrides the container's // [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint). // Specify this field as an array of executable and arguments, similar to a // Docker `ENTRYPOINT`'s "exec" form, not its "shell" form. // // If you do not specify this field, then the container's `ENTRYPOINT` runs, - // in conjunction with the [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or the - // container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), - // if either exists. If this field is not specified and the container does not - // have an `ENTRYPOINT`, then refer to the Docker documentation about [how - // `CMD` and `ENTRYPOINT` + // in conjunction with the + // [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] field or + // the container's + // [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), if either + // exists. If this field is not specified and the container does not have an + // `ENTRYPOINT`, then refer to the Docker documentation about [how `CMD` and + // `ENTRYPOINT` // interact](https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact). // // If you specify this field, then you can also specify the `args` field to @@ -783,9 +831,10 @@ type ModelContainerSpec struct { // // In this field, you can reference [environment variables set by Vertex // AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) - // and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. - // You cannot reference environment variables set in the Docker image. In - // order for environment variables to be expanded, reference them by using the + // and environment variables set in the + // [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. You + // cannot reference environment variables set in the Docker image. In order + // for environment variables to be expanded, reference them by using the // following syntax: // $(VARIABLE_NAME) // Note that this differs from Bash variable expansion, which does not use @@ -797,16 +846,16 @@ type ModelContainerSpec struct { // [v1 core // API](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#container-v1-core). Command []string `protobuf:"bytes,2,rep,name=command,proto3" json:"command,omitempty"` - // Immutable. Specifies arguments for the command that runs when the container starts. - // This overrides the container's + // Immutable. Specifies arguments for the command that runs when the container + // starts. This overrides the container's // [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd). Specify // this field as an array of executable and arguments, similar to a Docker // `CMD`'s "default parameters" form. // // If you don't specify this field but do specify the - // [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] field, then the command from the - // `command` field runs without any additional arguments. See the - // [Kubernetes documentation about how the + // [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] + // field, then the command from the `command` field runs without any + // additional arguments. See the [Kubernetes documentation about how the // `command` and `args` fields interact with a container's `ENTRYPOINT` and // `CMD`](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes). // @@ -820,9 +869,10 @@ type ModelContainerSpec struct { // In this field, you can reference [environment variables // set by Vertex // AI](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables) - // and environment variables set in the [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. - // You cannot reference environment variables set in the Docker image. In - // order for environment variables to be expanded, reference them by using the + // and environment variables set in the + // [env][google.cloud.aiplatform.v1beta1.ModelContainerSpec.env] field. You + // cannot reference environment variables set in the Docker image. In order + // for environment variables to be expanded, reference them by using the // following syntax: // $(VARIABLE_NAME) // Note that this differs from Bash variable expansion, which does not use @@ -834,14 +884,16 @@ type ModelContainerSpec struct { // [v1 core // API](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#container-v1-core). Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` - // Immutable. List of environment variables to set in the container. After the container - // starts running, code running in the container can read these environment - // variables. + // Immutable. List of environment variables to set in the container. After the + // container starts running, code running in the container can read these + // environment variables. // - // Additionally, the [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] and - // [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] fields can reference these variables. Later - // entries in this list can also reference earlier entries. For example, the - // following example sets the variable `VAR_2` to have the value `foo bar`: + // Additionally, the + // [command][google.cloud.aiplatform.v1beta1.ModelContainerSpec.command] and + // [args][google.cloud.aiplatform.v1beta1.ModelContainerSpec.args] fields can + // reference these variables. Later entries in this list can also reference + // earlier entries. For example, the following example sets the variable + // `VAR_2` to have the value `foo bar`: // // ```json // [ @@ -889,11 +941,11 @@ type ModelContainerSpec struct { // [v1 core // API](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#container-v1-core). Ports []*Port `protobuf:"bytes,5,rep,name=ports,proto3" json:"ports,omitempty"` - // Immutable. HTTP path on the container to send prediction requests to. Vertex AI - // forwards requests sent using - // [projects.locations.endpoints.predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] to this - // path on the container's IP address and port. Vertex AI then returns the - // container's response in the API response. + // Immutable. HTTP path on the container to send prediction requests to. + // Vertex AI forwards requests sent using + // [projects.locations.endpoints.predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] + // to this path on the container's IP address and port. Vertex AI then returns + // the container's response in the API response. // // For example, if you set this field to `/foo`, then when Vertex AI // receives a prediction request, it forwards the request body in a POST @@ -902,7 +954,8 @@ type ModelContainerSpec struct { // [ports][google.cloud.aiplatform.v1beta1.ModelContainerSpec.ports] field. // // If you don't specify this field, it defaults to the following value when - // you [deploy this Model to an Endpoint][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel]: + // you [deploy this Model to an + // Endpoint][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel]: // /v1/endpoints/ENDPOINT/deployedModels/DEPLOYED_MODEL:predict // The placeholders in this value are replaced as follows: // @@ -912,10 +965,13 @@ type ModelContainerSpec struct { // as the [`AIP_ENDPOINT_ID` environment // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) // - // - DEPLOYED_MODEL: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`. - // (Vertex AI makes this value available to your container code - // as the [`AIP_DEPLOYED_MODEL_ID` environment - // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) + // * DEPLOYED_MODEL: + // [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the + // `DeployedModel`. + // + // (Vertex AI makes this value available to your container code + // as the [`AIP_DEPLOYED_MODEL_ID` environment + // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) PredictRoute string `protobuf:"bytes,6,opt,name=predict_route,json=predictRoute,proto3" json:"predict_route,omitempty"` // Immutable. HTTP path on the container to send health checks to. Vertex AI // intermittently sends GET requests to this path on the container's IP @@ -929,7 +985,8 @@ type ModelContainerSpec struct { // [ports][google.cloud.aiplatform.v1beta1.ModelContainerSpec.ports] field. // // If you don't specify this field, it defaults to the following value when - // you [deploy this Model to an Endpoint][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel]: + // you [deploy this Model to an + // Endpoint][google.cloud.aiplatform.v1beta1.EndpointService.DeployModel]: // /v1/endpoints/ENDPOINT/deployedModels/DEPLOYED_MODEL:predict // The placeholders in this value are replaced as follows: // @@ -939,10 +996,13 @@ type ModelContainerSpec struct { // as the [`AIP_ENDPOINT_ID` environment // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) // - // - DEPLOYED_MODEL: [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the `DeployedModel`. - // (Vertex AI makes this value available to your container code as the - // [`AIP_DEPLOYED_MODEL_ID` environment - // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) + // * DEPLOYED_MODEL: + // [DeployedModel.id][google.cloud.aiplatform.v1beta1.DeployedModel.id] of the + // `DeployedModel`. + // + // (Vertex AI makes this value available to your container code as the + // [`AIP_DEPLOYED_MODEL_ID` environment + // variable](https://cloud.google.com/vertex-ai/docs/predictions/custom-container-requirements#aip-variables).) HealthRoute string `protobuf:"bytes,7,opt,name=health_route,json=healthRoute,proto3" json:"health_route,omitempty"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/model_deployment_monitoring_job.pb.go b/aiplatform/apiv1beta1/aiplatformpb/model_deployment_monitoring_job.pb.go index 92ed1a044245..c0cb1b923971 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/model_deployment_monitoring_job.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/model_deployment_monitoring_job.pb.go @@ -296,8 +296,8 @@ type ModelDeploymentMonitoringJob struct { ScheduleState ModelDeploymentMonitoringJob_MonitoringScheduleState `protobuf:"varint,5,opt,name=schedule_state,json=scheduleState,proto3,enum=google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob_MonitoringScheduleState" json:"schedule_state,omitempty"` // Output only. Latest triggered monitoring pipeline metadata. LatestMonitoringPipelineMetadata *ModelDeploymentMonitoringJob_LatestMonitoringPipelineMetadata `protobuf:"bytes,25,opt,name=latest_monitoring_pipeline_metadata,json=latestMonitoringPipelineMetadata,proto3" json:"latest_monitoring_pipeline_metadata,omitempty"` - // Required. The config for monitoring objectives. This is a per DeployedModel config. - // Each DeployedModel needs to be configured separately. + // Required. The config for monitoring objectives. This is a per DeployedModel + // config. Each DeployedModel needs to be configured separately. ModelDeploymentMonitoringObjectiveConfigs []*ModelDeploymentMonitoringObjectiveConfig `protobuf:"bytes,6,rep,name=model_deployment_monitoring_objective_configs,json=modelDeploymentMonitoringObjectiveConfigs,proto3" json:"model_deployment_monitoring_objective_configs,omitempty"` // Required. Schedule config for running the monitoring job. ModelDeploymentMonitoringScheduleConfig *ModelDeploymentMonitoringScheduleConfig `protobuf:"bytes,7,opt,name=model_deployment_monitoring_schedule_config,json=modelDeploymentMonitoringScheduleConfig,proto3" json:"model_deployment_monitoring_schedule_config,omitempty"` @@ -310,10 +310,12 @@ type ModelDeploymentMonitoringJob struct { // If not set, we will generate predict schema from collected predict // requests. PredictInstanceSchemaUri string `protobuf:"bytes,9,opt,name=predict_instance_schema_uri,json=predictInstanceSchemaUri,proto3" json:"predict_instance_schema_uri,omitempty"` - // Sample Predict instance, same format as [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances], + // Sample Predict instance, same format as + // [PredictRequest.instances][google.cloud.aiplatform.v1beta1.PredictRequest.instances], // this can be set as a replacement of - // [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. If not set, - // we will generate predict schema from collected predict requests. + // [ModelDeploymentMonitoringJob.predict_instance_schema_uri][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.predict_instance_schema_uri]. + // If not set, we will generate predict schema from collected predict + // requests. SamplePredictInstance *structpb.Value `protobuf:"bytes,19,opt,name=sample_predict_instance,json=samplePredictInstance,proto3" json:"sample_predict_instance,omitempty"` // YAML schema file uri describing the format of a single instance that you // want Tensorflow Data Validation (TFDV) to analyze. @@ -327,9 +329,9 @@ type ModelDeploymentMonitoringJob struct { // For models trained with Vertex AI, this field must be set as all the // fields in predict instance formatted as string. AnalysisInstanceSchemaUri string `protobuf:"bytes,16,opt,name=analysis_instance_schema_uri,json=analysisInstanceSchemaUri,proto3" json:"analysis_instance_schema_uri,omitempty"` - // Output only. The created bigquery tables for the job under customer project. Customer - // could do their own query & analysis. There could be 4 log tables in - // maximum: + // Output only. The created bigquery tables for the job under customer + // project. Customer could do their own query & analysis. There could be 4 log + // tables in maximum: // 1. Training data logging predict request/response // 2. Serving data logging predict request/response BigqueryTables []*ModelDeploymentMonitoringBigQueryTable `protobuf:"bytes,10,rep,name=bigquery_tables,json=bigqueryTables,proto3" json:"bigquery_tables,omitempty"` @@ -348,10 +350,11 @@ type ModelDeploymentMonitoringJob struct { Labels map[string]string `protobuf:"bytes,11,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Output only. Timestamp when this ModelDeploymentMonitoringJob was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. Timestamp when this ModelDeploymentMonitoringJob was updated most recently. + // Output only. Timestamp when this ModelDeploymentMonitoringJob was updated + // most recently. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // Output only. Timestamp when this monitoring pipeline will be scheduled to run for the - // next round. + // Output only. Timestamp when this monitoring pipeline will be scheduled to + // run for the next round. NextScheduleTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=next_schedule_time,json=nextScheduleTime,proto3" json:"next_schedule_time,omitempty"` // Stats anomalies base folder path. StatsAnomaliesBaseDirectory *GcsDestination `protobuf:"bytes,20,opt,name=stats_anomalies_base_directory,json=statsAnomaliesBaseDirectory,proto3" json:"stats_anomalies_base_directory,omitempty"` @@ -697,16 +700,17 @@ type ModelDeploymentMonitoringScheduleConfig struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The model monitoring job scheduling interval. It will be rounded up to next - // full hour. This defines how often the monitoring jobs are triggered. + // Required. The model monitoring job scheduling interval. It will be rounded + // up to next full hour. This defines how often the monitoring jobs are + // triggered. MonitorInterval *durationpb.Duration `protobuf:"bytes,1,opt,name=monitor_interval,json=monitorInterval,proto3" json:"monitor_interval,omitempty"` // The time window of the prediction data being included in each prediction // dataset. This window specifies how long the data should be collected from // historical model results for each run. If not set, - // [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used. - // e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the - // monitor_window is set to be 3600, then data from 2022-01-08 13:30:00 - // to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the + // [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] + // will be used. e.g. If currently the cutoff time is 2022-01-08 14:30:00 and + // the monitor_window is set to be 3600, then data from 2022-01-08 13:30:00 to + // 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the // monitoring statistics. MonitorWindow *durationpb.Duration `protobuf:"bytes,2,opt,name=monitor_window,json=monitorWindow,proto3" json:"monitor_window,omitempty"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/model_evaluation.pb.go b/aiplatform/apiv1beta1/aiplatformpb/model_evaluation.pb.go index 6e1e9e485915..88e97583bfaf 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/model_evaluation.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/model_evaluation.pb.go @@ -50,8 +50,8 @@ type ModelEvaluation struct { // The display name of the ModelEvaluation. DisplayName string `protobuf:"bytes,10,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Points to a YAML file stored on Google Cloud Storage describing the - // [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is - // defined as an OpenAPI 3.0.2 [Schema + // [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluation.metrics] of this + // ModelEvaluation. The schema is defined as an OpenAPI 3.0.2 [Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). MetricsSchemaUri string `protobuf:"bytes,2,opt,name=metrics_schema_uri,json=metricsSchemaUri,proto3" json:"metrics_schema_uri,omitempty"` // Evaluation metrics of the Model. The schema of the metrics is stored in @@ -61,15 +61,16 @@ type ModelEvaluation struct { CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // All possible [dimensions][ModelEvaluationSlice.slice.dimension] of // ModelEvaluationSlices. The dimensions can be used as the filter of the - // [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlices] request, in the form of - // `slice.dimension = `. + // [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlices] + // request, in the form of `slice.dimension = `. SliceDimensions []string `protobuf:"bytes,5,rep,name=slice_dimensions,json=sliceDimensions,proto3" json:"slice_dimensions,omitempty"` // Aggregated explanation metrics for the Model's prediction output over the // data this ModelEvaluation uses. This field is populated only if the Model // is evaluated with explanations, and only for AutoML tabular Models. ModelExplanation *ModelExplanation `protobuf:"bytes,8,opt,name=model_explanation,json=modelExplanation,proto3" json:"model_explanation,omitempty"` - // Describes the values of [ExplanationSpec][google.cloud.aiplatform.v1beta1.ExplanationSpec] that are used for explaining - // the predicted values on the evaluated data. + // Describes the values of + // [ExplanationSpec][google.cloud.aiplatform.v1beta1.ExplanationSpec] that are + // used for explaining the predicted values on the evaluated data. ExplanationSpecs []*ModelEvaluation_ModelEvaluationExplanationSpec `protobuf:"bytes,9,rep,name=explanation_specs,json=explanationSpecs,proto3" json:"explanation_specs,omitempty"` // The metadata of the ModelEvaluation. // For the ModelEvaluation uploaded from Managed Pipeline, metadata contains a diff --git a/aiplatform/apiv1beta1/aiplatformpb/model_evaluation_slice.pb.go b/aiplatform/apiv1beta1/aiplatformpb/model_evaluation_slice.pb.go index 1719a5843065..b09ee62b88e0 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/model_evaluation_slice.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/model_evaluation_slice.pb.go @@ -49,13 +49,16 @@ type ModelEvaluationSlice struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The slice of the test data that is used to evaluate the Model. Slice *ModelEvaluationSlice_Slice `protobuf:"bytes,2,opt,name=slice,proto3" json:"slice,omitempty"` - // Output only. Points to a YAML file stored on Google Cloud Storage describing the - // [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The - // schema is defined as an OpenAPI 3.0.2 [Schema + // Output only. Points to a YAML file stored on Google Cloud Storage + // describing the + // [metrics][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.metrics] of + // this ModelEvaluationSlice. The schema is defined as an OpenAPI 3.0.2 + // [Schema // Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject). MetricsSchemaUri string `protobuf:"bytes,3,opt,name=metrics_schema_uri,json=metricsSchemaUri,proto3" json:"metrics_schema_uri,omitempty"` - // Output only. Sliced evaluation metrics of the Model. The schema of the metrics is stored - // in [metrics_schema_uri][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.metrics_schema_uri] + // Output only. Sliced evaluation metrics of the Model. The schema of the + // metrics is stored in + // [metrics_schema_uri][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.metrics_schema_uri] Metrics *structpb.Value `protobuf:"bytes,4,opt,name=metrics,proto3" json:"metrics,omitempty"` // Output only. Timestamp when this ModelEvaluationSlice was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` @@ -137,8 +140,10 @@ type ModelEvaluationSlice_Slice struct { // Output only. The dimension of the slice. // Well-known dimensions are: // - `annotationSpec`: This slice is on the test data that has either - // ground truth or prediction with [AnnotationSpec.display_name][google.cloud.aiplatform.v1beta1.AnnotationSpec.display_name] - // equals to [value][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.value]. + // ground truth or prediction with + // [AnnotationSpec.display_name][google.cloud.aiplatform.v1beta1.AnnotationSpec.display_name] + // equals to + // [value][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.value]. Dimension string `protobuf:"bytes,1,opt,name=dimension,proto3" json:"dimension,omitempty"` // Output only. The value of the dimension in this slice. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` diff --git a/aiplatform/apiv1beta1/aiplatformpb/model_monitoring.pb.go b/aiplatform/apiv1beta1/aiplatformpb/model_monitoring.pb.go index 2e126cc4adbd..c2f45bc74bfe 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/model_monitoring.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/model_monitoring.pb.go @@ -813,8 +813,10 @@ func (x *ModelMonitoringObjectiveConfig_ExplanationConfig) GetExplanationBaselin return nil } -// Output from [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] for Model Monitoring baseline dataset, -// which can be used to generate baseline attribution scores. +// Output from +// [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] +// for Model Monitoring baseline dataset, which can be used to generate +// baseline attribution scores. type ModelMonitoringObjectiveConfig_ExplanationConfig_ExplanationBaseline struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/aiplatform/apiv1beta1/aiplatformpb/model_service.pb.go b/aiplatform/apiv1beta1/aiplatformpb/model_service.pb.go index c1ba8e6c84d4..3f5cce1ca5eb 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/model_service.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/model_service.pb.go @@ -42,7 +42,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel]. +// Request message for +// [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel]. type UploadModelRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -51,8 +52,8 @@ type UploadModelRequest struct { // Required. The resource name of the Location into which to upload the Model. // Format: `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The resource name of the model into which to upload the version. Only - // specify this field when uploading a new version. + // Optional. The resource name of the model into which to upload the version. + // Only specify this field when uploading a new version. ParentModel string `protobuf:"bytes,4,opt,name=parent_model,json=parentModel,proto3" json:"parent_model,omitempty"` // Optional. The ID to use for the uploaded Model, which will become the final // component of the model resource name. @@ -139,7 +140,9 @@ func (x *UploadModelRequest) GetServiceAccount() string { return "" } -// Details of [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel] operation. +// Details of +// [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel] +// operation. type UploadModelOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -188,7 +191,9 @@ func (x *UploadModelOperationMetadata) GetGenericMetadata() *GenericOperationMet return nil } -// Response message of [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel] operation. +// Response message of +// [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel] +// operation. type UploadModelResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -247,7 +252,8 @@ func (x *UploadModelResponse) GetModelVersionId() string { return "" } -// Request message for [ModelService.GetModel][google.cloud.aiplatform.v1beta1.ModelService.GetModel]. +// Request message for +// [ModelService.GetModel][google.cloud.aiplatform.v1beta1.ModelService.GetModel]. type GetModelRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -309,7 +315,8 @@ func (x *GetModelRequest) GetName() string { return "" } -// Request message for [ModelService.ListModels][google.cloud.aiplatform.v1beta1.ModelService.ListModels]. +// Request message for +// [ModelService.ListModels][google.cloud.aiplatform.v1beta1.ModelService.ListModels]. type ListModelsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -322,7 +329,8 @@ type ListModelsRequest struct { // both snake_case and camelCase are supported. // // - `model` supports = and !=. `model` represents the Model ID, - // i.e. the last segment of the Model's [resource name][google.cloud.aiplatform.v1beta1.Model.name]. + // i.e. the last segment of the Model's [resource + // name][google.cloud.aiplatform.v1beta1.Model.name]. // - `display_name` supports = and != // - `labels` supports general map functions that is: // - `labels.key=value` - key:value equality @@ -339,8 +347,10 @@ type ListModelsRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListModelsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListModelsResponse.next_page_token] of the previous - // [ModelService.ListModels][google.cloud.aiplatform.v1beta1.ModelService.ListModels] call. + // [ListModelsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListModelsResponse.next_page_token] + // of the previous + // [ModelService.ListModels][google.cloud.aiplatform.v1beta1.ModelService.ListModels] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -413,7 +423,8 @@ func (x *ListModelsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [ModelService.ListModels][google.cloud.aiplatform.v1beta1.ModelService.ListModels] +// Response message for +// [ModelService.ListModels][google.cloud.aiplatform.v1beta1.ModelService.ListModels] type ListModelsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -422,7 +433,9 @@ type ListModelsResponse struct { // List of Models in the requested page. Models []*Model `protobuf:"bytes,1,rep,name=models,proto3" json:"models,omitempty"` // A token to retrieve next page of results. - // Pass to [ListModelsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelsRequest.page_token] to obtain that page. + // Pass to + // [ListModelsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -472,7 +485,8 @@ func (x *ListModelsResponse) GetNextPageToken() string { return "" } -// Request message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersions]. +// Request message for +// [ModelService.ListModelVersions][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersions]. type ListModelVersionsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -484,8 +498,8 @@ type ListModelVersionsRequest struct { PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.next_page_token] of the previous - // [ModelService.ListModelversions][] call. + // [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsResponse.next_page_token] + // of the previous [ModelService.ListModelversions][] call. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // An expression for filtering the results of the request. For field names // both snake_case and camelCase are supported. @@ -501,6 +515,15 @@ type ListModelVersionsRequest struct { Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` + // A comma-separated list of fields to order by, sorted in ascending order. + // Use "desc" after a field name for descending. + // Supported fields: + // + // - `create_time` + // - `update_time` + // + // Example: `update_time asc, create_time desc`. + OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` } func (x *ListModelVersionsRequest) Reset() { @@ -570,7 +593,15 @@ func (x *ListModelVersionsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersions] +func (x *ListModelVersionsRequest) GetOrderBy() string { + if x != nil { + return x.OrderBy + } + return "" +} + +// Response message for +// [ModelService.ListModelVersions][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersions] type ListModelVersionsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -581,7 +612,9 @@ type ListModelVersionsResponse struct { // be included. Models []*Model `protobuf:"bytes,1,rep,name=models,proto3" json:"models,omitempty"` // A token to retrieve the next page of results. - // Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.page_token] to obtain that page. + // Pass to + // [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -631,7 +664,8 @@ func (x *ListModelVersionsResponse) GetNextPageToken() string { return "" } -// Request message for [ModelService.UpdateModel][google.cloud.aiplatform.v1beta1.ModelService.UpdateModel]. +// Request message for +// [ModelService.UpdateModel][google.cloud.aiplatform.v1beta1.ModelService.UpdateModel]. type UpdateModelRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -657,7 +691,8 @@ type UpdateModelRequest struct { // must update them separately. Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` // Required. The update mask applies to the resource. - // For the `FieldMask` definition, see [google.protobuf.FieldMask][google.protobuf.FieldMask]. + // For the `FieldMask` definition, see + // [google.protobuf.FieldMask][google.protobuf.FieldMask]. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` } @@ -817,7 +852,8 @@ func (x *UpdateExplanationDatasetOperationMetadata) GetGenericMetadata() *Generi return nil } -// Request message for [ModelService.DeleteModel][google.cloud.aiplatform.v1beta1.ModelService.DeleteModel]. +// Request message for +// [ModelService.DeleteModel][google.cloud.aiplatform.v1beta1.ModelService.DeleteModel]. type DeleteModelRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -867,14 +903,15 @@ func (x *DeleteModelRequest) GetName() string { return "" } -// Request message for [ModelService.DeleteModelVersion][google.cloud.aiplatform.v1beta1.ModelService.DeleteModelVersion]. +// Request message for +// [ModelService.DeleteModelVersion][google.cloud.aiplatform.v1beta1.ModelService.DeleteModelVersion]. type DeleteModelVersionRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The name of the model version to be deleted, with a version ID explicitly - // included. + // Required. The name of the model version to be deleted, with a version ID + // explicitly included. // // Example: `projects/{project}/locations/{location}/models/{model}@1234` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` @@ -919,7 +956,8 @@ func (x *DeleteModelVersionRequest) GetName() string { return "" } -// Request message for [ModelService.MergeVersionAliases][google.cloud.aiplatform.v1beta1.ModelService.MergeVersionAliases]. +// Request message for +// [ModelService.MergeVersionAliases][google.cloud.aiplatform.v1beta1.ModelService.MergeVersionAliases]. type MergeVersionAliasesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -991,7 +1029,8 @@ func (x *MergeVersionAliasesRequest) GetVersionAliases() []string { return nil } -// Request message for [ModelService.ExportModel][google.cloud.aiplatform.v1beta1.ModelService.ExportModel]. +// Request message for +// [ModelService.ExportModel][google.cloud.aiplatform.v1beta1.ModelService.ExportModel]. type ExportModelRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1051,7 +1090,9 @@ func (x *ExportModelRequest) GetOutputConfig() *ExportModelRequest_OutputConfig return nil } -// Details of [ModelService.ExportModel][google.cloud.aiplatform.v1beta1.ModelService.ExportModel] operation. +// Details of +// [ModelService.ExportModel][google.cloud.aiplatform.v1beta1.ModelService.ExportModel] +// operation. type ExportModelOperationMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1059,7 +1100,8 @@ type ExportModelOperationMetadata struct { // The common part of the operation metadata. GenericMetadata *GenericOperationMetadata `protobuf:"bytes,1,opt,name=generic_metadata,json=genericMetadata,proto3" json:"generic_metadata,omitempty"` - // Output only. Information further describing the output of this Model export. + // Output only. Information further describing the output of this Model + // export. OutputInfo *ExportModelOperationMetadata_OutputInfo `protobuf:"bytes,2,opt,name=output_info,json=outputInfo,proto3" json:"output_info,omitempty"` } @@ -1109,7 +1151,9 @@ func (x *ExportModelOperationMetadata) GetOutputInfo() *ExportModelOperationMeta return nil } -// Response message of [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1beta1.ModelService.UpdateExplanationDataset] operation. +// Response message of +// [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1beta1.ModelService.UpdateExplanationDataset] +// operation. type UpdateExplanationDatasetResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1148,7 +1192,9 @@ func (*UpdateExplanationDatasetResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1beta1_model_service_proto_rawDescGZIP(), []int{16} } -// Response message of [ModelService.ExportModel][google.cloud.aiplatform.v1beta1.ModelService.ExportModel] operation. +// Response message of +// [ModelService.ExportModel][google.cloud.aiplatform.v1beta1.ModelService.ExportModel] +// operation. type ExportModelResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1187,7 +1233,8 @@ func (*ExportModelResponse) Descriptor() ([]byte, []int) { return file_google_cloud_aiplatform_v1beta1_model_service_proto_rawDescGZIP(), []int{17} } -// Request message for [ModelService.ImportModelEvaluation][google.cloud.aiplatform.v1beta1.ModelService.ImportModelEvaluation] +// Request message for +// [ModelService.ImportModelEvaluation][google.cloud.aiplatform.v1beta1.ModelService.ImportModelEvaluation] type ImportModelEvaluationRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1246,7 +1293,8 @@ func (x *ImportModelEvaluationRequest) GetModelEvaluation() *ModelEvaluation { return nil } -// Request message for [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.BatchImportModelEvaluationSlices] +// Request message for +// [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.BatchImportModelEvaluationSlices] type BatchImportModelEvaluationSlicesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1306,13 +1354,15 @@ func (x *BatchImportModelEvaluationSlicesRequest) GetModelEvaluationSlices() []* return nil } -// Response message for [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.BatchImportModelEvaluationSlices] +// Response message for +// [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.BatchImportModelEvaluationSlices] type BatchImportModelEvaluationSlicesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. List of imported [ModelEvaluationSlice.name][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.name]. + // Output only. List of imported + // [ModelEvaluationSlice.name][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.name]. ImportedModelEvaluationSlices []string `protobuf:"bytes,1,rep,name=imported_model_evaluation_slices,json=importedModelEvaluationSlices,proto3" json:"imported_model_evaluation_slices,omitempty"` } @@ -1355,7 +1405,8 @@ func (x *BatchImportModelEvaluationSlicesResponse) GetImportedModelEvaluationSli return nil } -// Request message for [ModelService.GetModelEvaluation][google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluation]. +// Request message for +// [ModelService.GetModelEvaluation][google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluation]. type GetModelEvaluationRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1406,7 +1457,8 @@ func (x *GetModelEvaluationRequest) GetName() string { return "" } -// Request message for [ModelService.ListModelEvaluations][google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluations]. +// Request message for +// [ModelService.ListModelEvaluations][google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluations]. type ListModelEvaluationsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1421,8 +1473,10 @@ type ListModelEvaluationsRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListModelEvaluationsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.next_page_token] of the previous - // [ModelService.ListModelEvaluations][google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluations] call. + // [ListModelEvaluationsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse.next_page_token] + // of the previous + // [ModelService.ListModelEvaluations][google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluations] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -1495,7 +1549,8 @@ func (x *ListModelEvaluationsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [ModelService.ListModelEvaluations][google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluations]. +// Response message for +// [ModelService.ListModelEvaluations][google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluations]. type ListModelEvaluationsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1504,7 +1559,9 @@ type ListModelEvaluationsResponse struct { // List of ModelEvaluations in the requested page. ModelEvaluations []*ModelEvaluation `protobuf:"bytes,1,rep,name=model_evaluations,json=modelEvaluations,proto3" json:"model_evaluations,omitempty"` // A token to retrieve next page of results. - // Pass to [ListModelEvaluationsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.page_token] to obtain that page. + // Pass to + // [ListModelEvaluationsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -1554,7 +1611,8 @@ func (x *ListModelEvaluationsResponse) GetNextPageToken() string { return "" } -// Request message for [ModelService.GetModelEvaluationSlice][google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationSlice]. +// Request message for +// [ModelService.GetModelEvaluationSlice][google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationSlice]. type GetModelEvaluationSliceRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1605,14 +1663,15 @@ func (x *GetModelEvaluationSliceRequest) GetName() string { return "" } -// Request message for [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlices]. +// Request message for +// [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlices]. type ListModelEvaluationSlicesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the ModelEvaluation to list the ModelEvaluationSlices - // from. Format: + // Required. The resource name of the ModelEvaluation to list the + // ModelEvaluationSlices from. Format: // `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The standard list filter. @@ -1623,8 +1682,10 @@ type ListModelEvaluationSlicesRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListModelEvaluationSlicesResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.next_page_token] of the previous - // [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlices] call. + // [ListModelEvaluationSlicesResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse.next_page_token] + // of the previous + // [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlices] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -1697,7 +1758,8 @@ func (x *ListModelEvaluationSlicesRequest) GetReadMask() *fieldmaskpb.FieldMask return nil } -// Response message for [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlices]. +// Response message for +// [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlices]. type ListModelEvaluationSlicesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1706,8 +1768,9 @@ type ListModelEvaluationSlicesResponse struct { // List of ModelEvaluations in the requested page. ModelEvaluationSlices []*ModelEvaluationSlice `protobuf:"bytes,1,rep,name=model_evaluation_slices,json=modelEvaluationSlices,proto3" json:"model_evaluation_slices,omitempty"` // A token to retrieve next page of results. - // Pass to [ListModelEvaluationSlicesRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.page_token] to obtain that - // page. + // Pass to + // [ListModelEvaluationSlicesRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -1764,7 +1827,8 @@ type ExportModelRequest_OutputConfig struct { unknownFields protoimpl.UnknownFields // The ID of the format in which the Model must be exported. Each Model - // lists the [export formats it supports][google.cloud.aiplatform.v1beta1.Model.supported_export_formats]. + // lists the [export formats it + // supports][google.cloud.aiplatform.v1beta1.Model.supported_export_formats]. // If no value is provided here, then the first from the list of the Model's // supported formats is used by default. ExportFormatId string `protobuf:"bytes,1,opt,name=export_format_id,json=exportFormatId,proto3" json:"export_format_id,omitempty"` @@ -1844,12 +1908,12 @@ type ExportModelOperationMetadata_OutputInfo struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. If the Model artifact is being exported to Google Cloud Storage this is - // the full path of the directory created, into which the Model files are - // being written to. + // Output only. If the Model artifact is being exported to Google Cloud + // Storage this is the full path of the directory created, into which the + // Model files are being written to. ArtifactOutputUri string `protobuf:"bytes,2,opt,name=artifact_output_uri,json=artifactOutputUri,proto3" json:"artifact_output_uri,omitempty"` - // Output only. If the Model image is being exported to Google Container Registry or - // Artifact Registry this is the full path of the image created. + // Output only. If the Model image is being exported to Google Container + // Registry or Artifact Registry this is the full path of the image created. ImageOutputUri string `protobuf:"bytes,3,opt,name=image_output_uri,json=imageOutputUri,proto3" json:"image_output_uri,omitempty"` } @@ -1999,7 +2063,7 @@ var file_google_cloud_aiplatform_v1beta1_model_service_proto_rawDesc = []byte{ 0x65, 0x6c, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x22, 0xe4, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, + 0x65, 0x6e, 0x22, 0xff, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, @@ -2013,475 +2077,476 @@ var file_google_cloud_aiplatform_v1beta1_model_service_proto_rawDesc = []byte{ 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, - 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x83, 0x01, 0x0a, 0x19, 0x4c, 0x69, - 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x65, 0x6c, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, - 0x06, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, - 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, - 0x99, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x42, 0x03, 0xe0, - 0x41, 0x02, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, - 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xa7, 0x01, 0x0a, 0x1f, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x3d, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, - 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x45, - 0x0a, 0x08, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, + 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, + 0x65, 0x72, 0x42, 0x79, 0x22, 0x83, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, + 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x65, + 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, + 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x99, 0x01, 0x0a, 0x12, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x41, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x52, 0x08, 0x65, 0x78, 0x61, - 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x22, 0x91, 0x01, 0x0a, 0x29, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x73, - 0x65, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x12, 0x64, 0x0a, 0x10, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, - 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x51, 0x0a, 0x12, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, - 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x58, 0x0a, 0x19, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, - 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x87, 0x01, 0x0a, 0x1a, 0x4d, 0x65, 0x72, 0x67, 0x65, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x0f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x6c, - 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, - 0x52, 0x0e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, - 0x22, 0xc8, 0x03, 0x0a, 0x12, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x6a, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x67, 0x6f, + 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, + 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xa7, 0x01, 0x0a, 0x1f, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, + 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x05, 0x6d, 0x6f, + 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, + 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, + 0x65, 0x6c, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x45, 0x0a, 0x08, 0x65, 0x78, 0x61, + 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x45, 0x78, - 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x03, 0xe0, - 0x41, 0x02, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x1a, 0x88, 0x02, 0x0a, 0x0c, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d, - 0x61, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x49, 0x64, 0x12, 0x62, 0x0a, 0x14, 0x61, - 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x44, - 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x61, 0x72, 0x74, 0x69, - 0x66, 0x61, 0x63, 0x74, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x6a, 0x0a, 0x11, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6e, - 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x44, 0x65, - 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x69, 0x6d, 0x61, 0x67, 0x65, - 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xe6, 0x02, 0x0a, 0x1c, - 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x64, 0x0a, 0x10, - 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x12, 0x6e, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x66, - 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x49, 0x6e, 0x66, - 0x6f, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x49, 0x6e, - 0x66, 0x6f, 0x1a, 0x70, 0x0a, 0x0a, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x6f, - 0x12, 0x33, 0x0a, 0x13, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x6f, 0x75, 0x74, - 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, - 0x41, 0x03, 0x52, 0x11, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x4f, 0x75, 0x74, 0x70, - 0x75, 0x74, 0x55, 0x72, 0x69, 0x12, 0x2d, 0x0a, 0x10, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x6f, - 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x4f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x55, 0x72, 0x69, 0x22, 0x22, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x78, - 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x15, 0x0a, 0x13, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0xc1, 0x01, 0x0a, 0x1c, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, - 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x3f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x52, 0x08, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, + 0x22, 0x91, 0x01, 0x0a, 0x29, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x78, 0x70, 0x6c, 0x61, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x4f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x64, + 0x0a, 0x10, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, + 0x69, 0x63, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x22, 0x51, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, + 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x58, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x22, 0x87, 0x01, 0x0a, 0x1a, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, + 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, + 0x0f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x22, 0xc8, 0x03, 0x0a, 0x12, + 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x12, 0x60, 0x0a, 0x10, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, - 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, - 0x41, 0x02, 0x52, 0x0f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0xe8, 0x01, 0x0a, 0x27, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x70, - 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x49, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x31, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2b, 0x0a, 0x29, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x72, 0x0a, 0x17, 0x6d, 0x6f, - 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, - 0x6c, 0x69, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, - 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, - 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x15, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, - 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x22, 0x78, - 0x0a, 0x28, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, - 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, - 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x20, 0x69, 0x6d, - 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, - 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x1d, 0x69, 0x6d, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x22, 0x62, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x4d, - 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x31, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2b, 0x0a, 0x29, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, - 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xeb, 0x01, 0x0a, - 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x06, - 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, - 0x02, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, - 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, - 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, - 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, - 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xa5, 0x01, 0x0a, 0x1c, 0x4c, - 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x11, 0x6d, - 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x6a, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, - 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x45, - 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, - 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x22, 0x6c, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, - 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x36, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x30, 0x0a, 0x2e, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x22, 0xfa, 0x01, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, - 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2b, 0x0a, 0x29, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, - 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, - 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, - 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, 0x73, - 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, - 0x61, 0x73, 0x6b, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xba, 0x01, - 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x6d, 0x0a, 0x17, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, - 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, + 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x6f, + 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x88, 0x02, 0x0a, 0x0c, + 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x28, 0x0a, 0x10, + 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x6f, + 0x72, 0x6d, 0x61, 0x74, 0x49, 0x64, 0x12, 0x62, 0x0a, 0x14, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, + 0x63, 0x74, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, - 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x52, 0x15, 0x6d, 0x6f, 0x64, - 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, - 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, - 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xec, 0x1d, 0x0a, 0x0c, 0x4d, - 0x6f, 0x64, 0x65, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xea, 0x01, 0x0a, 0x0b, - 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x33, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, - 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, - 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, - 0x86, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x22, 0x36, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x2a, 0x7d, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x3a, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, - 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x0c, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x6d, 0x6f, 0x64, - 0x65, 0x6c, 0xca, 0x41, 0x33, 0x0a, 0x13, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, 0x64, - 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x55, 0x70, 0x6c, 0x6f, - 0x61, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xa4, 0x01, 0x0a, 0x08, 0x47, 0x65, 0x74, - 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x63, 0x73, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x44, + 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x6a, 0x0a, 0x11, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x22, - 0x3e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, - 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, - 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0xb7, 0x01, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x12, 0x32, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, + 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x44, 0x65, 0x73, 0x74, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xe6, 0x02, 0x0a, 0x1c, 0x45, 0x78, 0x70, 0x6f, 0x72, + 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x64, 0x0a, 0x10, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0f, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x6e, 0x0a, + 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, - 0x2f, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, - 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xd7, 0x01, 0x0a, 0x11, 0x4c, 0x69, - 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x03, 0xe0, 0x41, + 0x03, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x70, 0x0a, + 0x0a, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x33, 0x0a, 0x13, 0x61, + 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x75, + 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x11, 0x61, + 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, + 0x12, 0x2d, 0x0a, 0x10, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, + 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, + 0x0e, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x22, + 0x22, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x15, 0x0a, 0x13, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, + 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xc1, 0x01, 0x0a, 0x1c, 0x49, + 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x06, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, + 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, + 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x60, 0x0a, 0x10, + 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, + 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xe8, + 0x01, 0x0a, 0x27, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, + 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x06, 0x70, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, 0xe0, 0x41, 0x02, 0xfa, + 0x41, 0x2b, 0x0a, 0x29, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x72, 0x0a, 0x17, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, + 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, + 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x42, 0x03, 0xe0, + 0x41, 0x02, 0x52, 0x15, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x22, 0x78, 0x0a, 0x28, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, + 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x20, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x64, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, + 0x03, 0xe0, 0x41, 0x03, 0x52, 0x1d, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, + 0x63, 0x65, 0x73, 0x22, 0x62, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, + 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x45, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x31, + 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2b, 0x0a, 0x29, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xeb, 0x01, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x21, 0x0a, + 0x1f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, + 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x37, 0x0a, 0x09, + 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x72, 0x65, 0x61, + 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xa5, 0x01, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x11, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, + 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6c, 0x0a, + 0x1e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x4a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xe0, + 0x41, 0x02, 0xfa, 0x41, 0x30, 0x0a, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x53, 0x6c, 0x69, 0x63, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xfa, 0x01, 0x0a, 0x20, + 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x49, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x31, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2b, 0x0a, 0x29, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, + 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x08, + 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xba, 0x01, 0x0a, 0x21, 0x4c, 0x69, 0x73, + 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6d, + 0x0a, 0x17, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, + 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x52, 0x15, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, + 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x12, 0x26, 0x0a, + 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xec, 0x1d, 0x0a, 0x0c, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xea, 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x6c, 0x6f, 0x61, + 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4d, + 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, + 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x86, 0x01, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x3b, 0x22, 0x36, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, + 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6d, 0x6f, + 0x64, 0x65, 0x6c, 0x73, 0x3a, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x3a, 0x01, 0x2a, 0xda, 0x41, + 0x0c, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0xca, 0x41, 0x33, + 0x0a, 0x13, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, 0x64, + 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x12, 0xa4, 0x01, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, + 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0x3e, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, + 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, + 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xb7, 0x01, 0x0a, 0x0a, 0x4c, + 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x12, 0xd7, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, + 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, - 0x6c, 0x69, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0xda, 0x41, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0xc4, 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, - 0x64, 0x65, 0x6c, 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x4b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, + 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x6c, 0x69, 0x73, 0x74, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xc4, + 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x33, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, - 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, - 0x22, 0x58, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x32, 0x35, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2f, 0x7b, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, - 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0xda, 0x41, 0x11, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2c, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x12, 0xaa, 0x02, 0x0a, 0x18, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0x58, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x3e, 0x32, 0x35, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, + 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x05, 0x6d, 0x6f, 0x64, 0x65, + 0x6c, 0xda, 0x41, 0x11, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x12, 0xaa, 0x02, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x73, - 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xac, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x4e, 0x22, 0x49, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6d, 0x6f, 0x64, - 0x65, 0x6c, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, - 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x3a, 0x01, 0x2a, 0xda, - 0x41, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0xca, 0x41, 0x4d, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, - 0x61, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, - 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xd4, 0x01, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, + 0x65, 0x74, 0x12, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x78, 0x70, 0x6c, 0x61, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, + 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0xac, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4e, 0x22, 0x49, 0x2f, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x3d, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x05, 0x6d, 0x6f, 0x64, + 0x65, 0x6c, 0xca, 0x41, 0x4d, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x78, 0x70, + 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, + 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, + 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0xd4, 0x01, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, + 0x65, 0x6c, 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x71, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x2a, 0x2f, + 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0xda, + 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x30, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, + 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xf0, 0x01, 0x0a, 0x12, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, - 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x71, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x31, 0x2a, 0x2f, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, + 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x7f, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x3f, 0x2a, 0x3d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, - 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x30, 0x0a, 0x15, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xf0, - 0x01, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x6f, - 0x64, 0x65, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, - 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x22, 0x7f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x2a, 0x3d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, - 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, - 0x30, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x12, 0xe1, 0x01, 0x0a, 0x13, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x65, 0x72, 0x67, - 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0x65, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x22, 0x43, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, - 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, - 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x3a, 0x01, 0x2a, 0xda, 0x41, - 0x14, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x6c, - 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0xf0, 0x01, 0x0a, 0x0b, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, - 0x64, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8c, 0x01, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x3b, 0x22, 0x36, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, - 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, - 0x2f, 0x2a, 0x7d, 0x3a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x12, - 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0xca, 0x41, 0x33, 0x0a, 0x13, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, - 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xf3, 0x01, 0x0a, 0x15, 0x49, 0x6d, 0x70, - 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, - 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x30, 0x0a, 0x15, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, + 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xe1, 0x01, 0x0a, + 0x13, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x69, + 0x61, 0x73, 0x65, 0x73, 0x12, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x69, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x22, 0x44, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, + 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x48, 0x22, 0x43, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, + 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, + 0x2a, 0x7d, 0x3a, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x41, + 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x14, 0x6e, 0x61, 0x6d, 0x65, + 0x2c, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, + 0x12, 0xf0, 0x01, 0x0a, 0x0b, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, + 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, + 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8c, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x22, 0x36, 0x2f, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x65, - 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x69, 0x6d, 0x70, 0x6f, 0x72, - 0x74, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x17, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x6d, 0x6f, - 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0xb7, - 0x02, 0x0a, 0x20, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, - 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, - 0x63, 0x65, 0x73, 0x12, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x70, 0x6f, 0x72, - 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x49, 0x2e, + 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x65, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x12, 0x6e, 0x61, 0x6d, 0x65, 0x2c, + 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0xca, 0x41, 0x33, + 0x0a, 0x13, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, + 0x65, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x12, 0xf3, 0x01, 0x0a, 0x15, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, - 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x57, - 0x22, 0x52, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, - 0x2f, 0x2a, 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, - 0x7d, 0x2f, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, - 0x70, 0x6f, 0x72, 0x74, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x1e, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x2c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x12, 0xd0, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, - 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, - 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4c, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, - 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, - 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, - 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xe3, 0x01, 0x0a, 0x14, - 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, - 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, - 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x4e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x65, 0x76, 0x61, - 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x12, 0xe8, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, - 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x12, 0x3f, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, + 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, + 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x69, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x22, 0x44, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, + 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x3a, 0x01, 0x2a, 0xda, + 0x41, 0x17, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x65, + 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0xb7, 0x02, 0x0a, 0x20, 0x42, 0x61, + 0x74, 0x63, 0x68, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, + 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x12, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x53, 0x6c, 0x69, 0x63, 0x65, 0x22, 0x55, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x12, 0x46, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, + 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x49, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, + 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x7e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x57, 0x22, 0x52, 0x2f, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x76, - 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6c, 0x69, 0x63, - 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xfb, 0x01, 0x0a, - 0x19, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x12, 0x41, 0x2e, 0x67, 0x6f, 0x6f, + 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6c, 0x69, + 0x63, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x3a, + 0x01, 0x2a, 0xda, 0x41, 0x1e, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x6d, 0x6f, 0x64, 0x65, + 0x6c, 0x5f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x6c, 0x69, + 0x63, 0x65, 0x73, 0x12, 0xd0, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, + 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x42, 0x2e, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, + 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, + 0x12, 0x3d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, + 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, + 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0xda, + 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xe3, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x4d, + 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, + 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x57, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x12, 0x46, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x76, 0x61, 0x6c, - 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6c, 0x69, 0x63, 0x65, - 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x1a, 0x4d, 0xca, 0x41, 0x19, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, - 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xee, 0x01, 0x0a, 0x23, 0x63, 0x6f, - 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x42, 0x11, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 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, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0x42, 0x65, - 0x74, 0x61, 0x31, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, - 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, - 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, + 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xe8, 0x01, 0x0a, + 0x17, 0x47, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x12, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, + 0x22, 0x55, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x12, 0x46, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, + 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, + 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xfb, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, + 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x6c, 0x69, 0x63, 0x65, 0x73, 0x12, 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, 0x69, 0x63, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, + 0x6f, 0x64, 0x65, 0x6c, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6c, + 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x57, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x48, 0x12, 0x46, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x6f, + 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0xda, 0x41, 0x06, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x1a, 0x4d, 0xca, 0x41, 0x19, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, + 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xee, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x11, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x49, 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, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, + 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0xaa, 0x02, 0x1f, 0x47, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, + 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, + 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, + 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3005,21 +3070,26 @@ type ModelServiceClient interface { UpdateExplanationDataset(ctx context.Context, in *UpdateExplanationDatasetRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Deletes a Model. // - // A model cannot be deleted if any [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] resource has a - // [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] based on the model in its - // [deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models] field. + // A model cannot be deleted if any + // [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] resource has a + // [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] based on the + // model in its + // [deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models] + // field. DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Deletes a Model version. // // Model version can only be deleted if there are no [DeployedModels][] // created from it. Deleting the only version in the Model is not allowed. Use - // [DeleteModel][google.cloud.aiplatform.v1beta1.ModelService.DeleteModel] for deleting the Model instead. + // [DeleteModel][google.cloud.aiplatform.v1beta1.ModelService.DeleteModel] for + // deleting the Model instead. DeleteModelVersion(ctx context.Context, in *DeleteModelVersionRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Merges a set of aliases for a Model version. MergeVersionAliases(ctx context.Context, in *MergeVersionAliasesRequest, opts ...grpc.CallOption) (*Model, error) // Exports a trained, exportable Model to a location specified by the // user. A Model is considered to be exportable if it has at least one - // [supported export format][google.cloud.aiplatform.v1beta1.Model.supported_export_formats]. + // [supported export + // format][google.cloud.aiplatform.v1beta1.Model.supported_export_formats]. ExportModel(ctx context.Context, in *ExportModelRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Imports an externally generated ModelEvaluation. ImportModelEvaluation(ctx context.Context, in *ImportModelEvaluationRequest, opts ...grpc.CallOption) (*ModelEvaluation, error) @@ -3203,21 +3273,26 @@ type ModelServiceServer interface { UpdateExplanationDataset(context.Context, *UpdateExplanationDatasetRequest) (*longrunning.Operation, error) // Deletes a Model. // - // A model cannot be deleted if any [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] resource has a - // [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] based on the model in its - // [deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models] field. + // A model cannot be deleted if any + // [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] resource has a + // [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] based on the + // model in its + // [deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models] + // field. DeleteModel(context.Context, *DeleteModelRequest) (*longrunning.Operation, error) // Deletes a Model version. // // Model version can only be deleted if there are no [DeployedModels][] // created from it. Deleting the only version in the Model is not allowed. Use - // [DeleteModel][google.cloud.aiplatform.v1beta1.ModelService.DeleteModel] for deleting the Model instead. + // [DeleteModel][google.cloud.aiplatform.v1beta1.ModelService.DeleteModel] for + // deleting the Model instead. DeleteModelVersion(context.Context, *DeleteModelVersionRequest) (*longrunning.Operation, error) // Merges a set of aliases for a Model version. MergeVersionAliases(context.Context, *MergeVersionAliasesRequest) (*Model, error) // Exports a trained, exportable Model to a location specified by the // user. A Model is considered to be exportable if it has at least one - // [supported export format][google.cloud.aiplatform.v1beta1.Model.supported_export_formats]. + // [supported export + // format][google.cloud.aiplatform.v1beta1.Model.supported_export_formats]. ExportModel(context.Context, *ExportModelRequest) (*longrunning.Operation, error) // Imports an externally generated ModelEvaluation. ImportModelEvaluation(context.Context, *ImportModelEvaluationRequest) (*ModelEvaluation, error) diff --git a/aiplatform/apiv1beta1/aiplatformpb/pipeline_job.pb.go b/aiplatform/apiv1beta1/aiplatformpb/pipeline_job.pb.go index 812607f8d32c..18ad66ef7d1b 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/pipeline_job.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/pipeline_job.pb.go @@ -63,7 +63,8 @@ const ( PipelineTaskDetail_SKIPPED PipelineTaskDetail_State = 8 // Specifies that the task was not triggered because the task's trigger // policy is not satisfied. The trigger policy is specified in the - // `condition` field of [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec]. + // `condition` field of + // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec]. PipelineTaskDetail_NOT_TRIGGERED PipelineTaskDetail_State = 9 ) @@ -188,11 +189,13 @@ type PipelineJob struct { // Training or Dataflow job. If left unspecified, the workload is not peered // with any network. Network string `protobuf:"bytes,18,opt,name=network,proto3" json:"network,omitempty"` - // A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec], if empty, will - // be downloaded. + // A template uri from where the + // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec], + // if empty, will be downloaded. TemplateUri string `protobuf:"bytes,19,opt,name=template_uri,json=templateUri,proto3" json:"template_uri,omitempty"` // Output only. Pipeline template metadata. Will fill up fields if - // [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported template registry. + // [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] + // is from supported template registry. TemplateMetadata *PipelineTemplateMetadata `protobuf:"bytes,20,opt,name=template_metadata,json=templateMetadata,proto3" json:"template_metadata,omitempty"` } @@ -347,9 +350,10 @@ func (x *PipelineJob) GetTemplateMetadata() *PipelineTemplateMetadata { return nil } -// Pipeline template metadata if [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is from supported -// template registry. Currently, the only supported registry is Artifact -// Registry. +// Pipeline template metadata if +// [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] +// is from supported template registry. Currently, the only supported registry +// is Artifact Registry. type PipelineTemplateMetadata struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -357,8 +361,9 @@ type PipelineTemplateMetadata struct { // The version_name in artifact registry. // - // Will always be presented in output if the [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] is - // from supported template registry. + // Will always be presented in output if the + // [PipelineJob.template_uri][google.cloud.aiplatform.v1beta1.PipelineJob.template_uri] + // is from supported template registry. // // Format is "sha256:abcdef123456...". Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` @@ -478,8 +483,8 @@ type PipelineTaskDetail struct { // Output only. The system generated ID of the task. TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - // Output only. The id of the parent task if the task is within a component scope. - // Empty if the task is at the root level. + // Output only. The id of the parent task if the task is within a component + // scope. Empty if the task is at the root level. ParentTaskId int64 `protobuf:"varint,12,opt,name=parent_task_id,json=parentTaskId,proto3" json:"parent_task_id,omitempty"` // Output only. The user specified name of the task that is defined in // [PipelineJob.spec][]. @@ -499,8 +504,8 @@ type PipelineTaskDetail struct { // Output only. The error that occurred during task execution. // Only populated when the task's state is FAILED or CANCELLED. Error *status.Status `protobuf:"bytes,9,opt,name=error,proto3" json:"error,omitempty"` - // Output only. A list of task status. This field keeps a record of task status evolving - // over time. + // Output only. A list of task status. This field keeps a record of task + // status evolving over time. PipelineTaskStatus []*PipelineTaskDetail_PipelineTaskStatus `protobuf:"bytes,13,rep,name=pipeline_task_status,json=pipelineTaskStatus,proto3" json:"pipeline_task_status,omitempty"` // Output only. The runtime input artifacts of the task. Inputs map[string]*PipelineTaskDetail_ArtifactList `protobuf:"bytes,10,rep,name=inputs,proto3" json:"inputs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` @@ -724,17 +729,19 @@ type PipelineJob_RuntimeConfig struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Deprecated. Use [RuntimeConfig.parameter_values][google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameter_values] instead. The runtime - // parameters of the PipelineJob. The parameters will be passed into - // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders at runtime. - // This field is used by pipelines built using - // `PipelineJob.pipeline_spec.schema_version` 2.0.0 or lower, such as - // pipelines built using Kubeflow Pipelines SDK 1.8 or lower. + // Deprecated. Use + // [RuntimeConfig.parameter_values][google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameter_values] + // instead. The runtime parameters of the PipelineJob. The parameters will + // be passed into + // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec] + // to replace the placeholders at runtime. This field is used by pipelines + // built using `PipelineJob.pipeline_spec.schema_version` 2.0.0 or lower, + // such as pipelines built using Kubeflow Pipelines SDK 1.8 or lower. // // Deprecated: Do not use. Parameters map[string]*Value `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Required. A path in a Cloud Storage bucket, which will be treated as the root - // output directory of the pipeline. It is used by the system to + // Required. A path in a Cloud Storage bucket, which will be treated as the + // root output directory of the pipeline. It is used by the system to // generate the paths of output artifacts. The artifact paths are generated // with a sub-path pattern `{job_id}/{task_id}/{output_key}` under the // specified output directory. The service account specified in this @@ -742,10 +749,12 @@ type PipelineJob_RuntimeConfig struct { // permissions for this bucket. GcsOutputDirectory string `protobuf:"bytes,2,opt,name=gcs_output_directory,json=gcsOutputDirectory,proto3" json:"gcs_output_directory,omitempty"` // The runtime parameters of the PipelineJob. The parameters will be - // passed into [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec] to replace the placeholders - // at runtime. This field is used by pipelines built using - // `PipelineJob.pipeline_spec.schema_version` 2.1.0, such as pipelines built - // using Kubeflow Pipelines SDK 1.9 or higher and the v2 DSL. + // passed into + // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec] + // to replace the placeholders at runtime. This field is used by pipelines + // built using `PipelineJob.pipeline_spec.schema_version` 2.1.0, such as + // pipelines built using Kubeflow Pipelines SDK 1.9 or higher and the v2 + // DSL. ParameterValues map[string]*structpb.Value `protobuf:"bytes,3,rep,name=parameter_values,json=parameterValues,proto3" json:"parameter_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Represents the failure policy of a pipeline. Currently, the default of a // pipeline is that the pipeline will continue to run until no more tasks @@ -911,12 +920,11 @@ type PipelineTaskDetail_PipelineTaskStatus struct { UpdateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The state of the task. State PipelineTaskDetail_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.aiplatform.v1beta1.PipelineTaskDetail_State" json:"state,omitempty"` - // Output only. The error that occurred during the state. May be set when the state is - // any of the non-final state (PENDING/RUNNING/CANCELLING) or FAILED state. - // If the state is FAILED, the error here is final and not going to be - // retried. - // If the state is a non-final state, the error indicates a system-error - // being retried. + // Output only. The error that occurred during the state. May be set when + // the state is any of the non-final state (PENDING/RUNNING/CANCELLING) or + // FAILED state. If the state is FAILED, the error here is final and not + // going to be retried. If the state is a non-final state, the error + // indicates a system-error being retried. Error *status.Status `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` } @@ -1029,21 +1037,27 @@ type PipelineTaskExecutorDetail_ContainerDetail struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. The name of the [CustomJob][google.cloud.aiplatform.v1beta1.CustomJob] for the main container execution. + // Output only. The name of the + // [CustomJob][google.cloud.aiplatform.v1beta1.CustomJob] for the main + // container execution. MainJob string `protobuf:"bytes,1,opt,name=main_job,json=mainJob,proto3" json:"main_job,omitempty"` - // Output only. The name of the [CustomJob][google.cloud.aiplatform.v1beta1.CustomJob] for the pre-caching-check container - // execution. This job will be available if the - // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec] specifies the `pre_caching_check` hook in - // the lifecycle events. + // Output only. The name of the + // [CustomJob][google.cloud.aiplatform.v1beta1.CustomJob] for the + // pre-caching-check container execution. This job will be available if the + // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec] + // specifies the `pre_caching_check` hook in the lifecycle events. PreCachingCheckJob string `protobuf:"bytes,2,opt,name=pre_caching_check_job,json=preCachingCheckJob,proto3" json:"pre_caching_check_job,omitempty"` - // Output only. The names of the previously failed [CustomJob][google.cloud.aiplatform.v1beta1.CustomJob] for the main container - // executions. The list includes the all attempts in chronological order. + // Output only. The names of the previously failed + // [CustomJob][google.cloud.aiplatform.v1beta1.CustomJob] for the main + // container executions. The list includes the all attempts in chronological + // order. FailedMainJobs []string `protobuf:"bytes,3,rep,name=failed_main_jobs,json=failedMainJobs,proto3" json:"failed_main_jobs,omitempty"` - // Output only. The names of the previously failed [CustomJob][google.cloud.aiplatform.v1beta1.CustomJob] for the + // Output only. The names of the previously failed + // [CustomJob][google.cloud.aiplatform.v1beta1.CustomJob] for the // pre-caching-check container executions. This job will be available if the - // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec] specifies the `pre_caching_check` hook in - // the lifecycle events. - // The list includes the all attempts in chronological order. + // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec] + // specifies the `pre_caching_check` hook in the lifecycle events. The list + // includes the all attempts in chronological order. FailedPreCachingCheckJobs []string `protobuf:"bytes,4,rep,name=failed_pre_caching_check_jobs,json=failedPreCachingCheckJobs,proto3" json:"failed_pre_caching_check_jobs,omitempty"` } @@ -1115,7 +1129,8 @@ type PipelineTaskExecutorDetail_CustomJobDetail struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. The name of the [CustomJob][google.cloud.aiplatform.v1beta1.CustomJob]. + // Output only. The name of the + // [CustomJob][google.cloud.aiplatform.v1beta1.CustomJob]. Job string `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/pipeline_service.pb.go b/aiplatform/apiv1beta1/aiplatformpb/pipeline_service.pb.go index d3a03f7048db..2c195f098f9e 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/pipeline_service.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/pipeline_service.pb.go @@ -43,14 +43,15 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [PipelineService.CreateTrainingPipeline][google.cloud.aiplatform.v1beta1.PipelineService.CreateTrainingPipeline]. +// Request message for +// [PipelineService.CreateTrainingPipeline][google.cloud.aiplatform.v1beta1.PipelineService.CreateTrainingPipeline]. type CreateTrainingPipelineRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Location to create the TrainingPipeline in. - // Format: `projects/{project}/locations/{location}` + // Required. The resource name of the Location to create the TrainingPipeline + // in. Format: `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The TrainingPipeline to create. TrainingPipeline *TrainingPipeline `protobuf:"bytes,2,opt,name=training_pipeline,json=trainingPipeline,proto3" json:"training_pipeline,omitempty"` @@ -102,7 +103,8 @@ func (x *CreateTrainingPipelineRequest) GetTrainingPipeline() *TrainingPipeline return nil } -// Request message for [PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1beta1.PipelineService.GetTrainingPipeline]. +// Request message for +// [PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1beta1.PipelineService.GetTrainingPipeline]. type GetTrainingPipelineRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -153,14 +155,15 @@ func (x *GetTrainingPipelineRequest) GetName() string { return "" } -// Request message for [PipelineService.ListTrainingPipelines][google.cloud.aiplatform.v1beta1.PipelineService.ListTrainingPipelines]. +// Request message for +// [PipelineService.ListTrainingPipelines][google.cloud.aiplatform.v1beta1.PipelineService.ListTrainingPipelines]. type ListTrainingPipelinesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Location to list the TrainingPipelines from. - // Format: `projects/{project}/locations/{location}` + // Required. The resource name of the Location to list the TrainingPipelines + // from. Format: `projects/{project}/locations/{location}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The standard list filter. // @@ -187,8 +190,10 @@ type ListTrainingPipelinesRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListTrainingPipelinesResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.next_page_token] of the previous - // [PipelineService.ListTrainingPipelines][google.cloud.aiplatform.v1beta1.PipelineService.ListTrainingPipelines] call. + // [ListTrainingPipelinesResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse.next_page_token] + // of the previous + // [PipelineService.ListTrainingPipelines][google.cloud.aiplatform.v1beta1.PipelineService.ListTrainingPipelines] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Mask specifying which fields to read. ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -261,7 +266,8 @@ func (x *ListTrainingPipelinesRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [PipelineService.ListTrainingPipelines][google.cloud.aiplatform.v1beta1.PipelineService.ListTrainingPipelines] +// Response message for +// [PipelineService.ListTrainingPipelines][google.cloud.aiplatform.v1beta1.PipelineService.ListTrainingPipelines] type ListTrainingPipelinesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -270,7 +276,9 @@ type ListTrainingPipelinesResponse struct { // List of TrainingPipelines in the requested page. TrainingPipelines []*TrainingPipeline `protobuf:"bytes,1,rep,name=training_pipelines,json=trainingPipelines,proto3" json:"training_pipelines,omitempty"` // A token to retrieve the next page of results. - // Pass to [ListTrainingPipelinesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.page_token] to obtain that page. + // Pass to + // [ListTrainingPipelinesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTrainingPipelinesRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -320,7 +328,8 @@ func (x *ListTrainingPipelinesResponse) GetNextPageToken() string { return "" } -// Request message for [PipelineService.DeleteTrainingPipeline][google.cloud.aiplatform.v1beta1.PipelineService.DeleteTrainingPipeline]. +// Request message for +// [PipelineService.DeleteTrainingPipeline][google.cloud.aiplatform.v1beta1.PipelineService.DeleteTrainingPipeline]. type DeleteTrainingPipelineRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -371,7 +380,8 @@ func (x *DeleteTrainingPipelineRequest) GetName() string { return "" } -// Request message for [PipelineService.CancelTrainingPipeline][google.cloud.aiplatform.v1beta1.PipelineService.CancelTrainingPipeline]. +// Request message for +// [PipelineService.CancelTrainingPipeline][google.cloud.aiplatform.v1beta1.PipelineService.CancelTrainingPipeline]. type CancelTrainingPipelineRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -422,7 +432,8 @@ func (x *CancelTrainingPipelineRequest) GetName() string { return "" } -// Request message for [PipelineService.CreatePipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.CreatePipelineJob]. +// Request message for +// [PipelineService.CreatePipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.CreatePipelineJob]. type CreatePipelineJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -495,7 +506,8 @@ func (x *CreatePipelineJobRequest) GetPipelineJobId() string { return "" } -// Request message for [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJob]. +// Request message for +// [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJob]. type GetPipelineJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -546,7 +558,8 @@ func (x *GetPipelineJobRequest) GetName() string { return "" } -// Request message for [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobs]. +// Request message for +// [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobs]. type ListPipelineJobsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -594,8 +607,10 @@ type ListPipelineJobsRequest struct { PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. // Typically obtained via - // [ListPipelineJobsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.next_page_token] of the previous - // [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobs] call. + // [ListPipelineJobsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse.next_page_token] + // of the previous + // [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobs] + // call. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // A comma-separated list of fields to order by. The default sort order is in // ascending order. Use "desc" after a field name for descending. You can have @@ -689,7 +704,8 @@ func (x *ListPipelineJobsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobs] +// Response message for +// [PipelineService.ListPipelineJobs][google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobs] type ListPipelineJobsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -698,7 +714,9 @@ type ListPipelineJobsResponse struct { // List of PipelineJobs in the requested page. PipelineJobs []*PipelineJob `protobuf:"bytes,1,rep,name=pipeline_jobs,json=pipelineJobs,proto3" json:"pipeline_jobs,omitempty"` // A token to retrieve the next page of results. - // Pass to [ListPipelineJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.page_token] to obtain that page. + // Pass to + // [ListPipelineJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListPipelineJobsRequest.page_token] + // to obtain that page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } @@ -748,7 +766,8 @@ func (x *ListPipelineJobsResponse) GetNextPageToken() string { return "" } -// Request message for [PipelineService.DeletePipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.DeletePipelineJob]. +// Request message for +// [PipelineService.DeletePipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.DeletePipelineJob]. type DeletePipelineJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -799,7 +818,8 @@ func (x *DeletePipelineJobRequest) GetName() string { return "" } -// Request message for [PipelineService.CancelPipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.CancelPipelineJob]. +// Request message for +// [PipelineService.CancelPipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.CancelPipelineJob]. type CancelPipelineJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1419,13 +1439,17 @@ type PipelineServiceClient interface { // Cancels a TrainingPipeline. // Starts asynchronous cancellation on the TrainingPipeline. The server // makes a best effort to cancel the pipeline, but success is not - // guaranteed. Clients can use [PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1beta1.PipelineService.GetTrainingPipeline] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1beta1.PipelineService.GetTrainingPipeline] + // or other methods to check whether the cancellation succeeded or whether the // pipeline completed despite cancellation. On successful cancellation, // the TrainingPipeline is not deleted; instead it becomes a pipeline with - // a [TrainingPipeline.error][google.cloud.aiplatform.v1beta1.TrainingPipeline.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`, and [TrainingPipeline.state][google.cloud.aiplatform.v1beta1.TrainingPipeline.state] is set to - // `CANCELLED`. + // a + // [TrainingPipeline.error][google.cloud.aiplatform.v1beta1.TrainingPipeline.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`, and + // [TrainingPipeline.state][google.cloud.aiplatform.v1beta1.TrainingPipeline.state] + // is set to `CANCELLED`. CancelTrainingPipeline(ctx context.Context, in *CancelTrainingPipelineRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Creates a PipelineJob. A PipelineJob will run immediately when created. CreatePipelineJob(ctx context.Context, in *CreatePipelineJobRequest, opts ...grpc.CallOption) (*PipelineJob, error) @@ -1438,13 +1462,16 @@ type PipelineServiceClient interface { // Cancels a PipelineJob. // Starts asynchronous cancellation on the PipelineJob. The server // makes a best effort to cancel the pipeline, but success is not - // guaranteed. Clients can use [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJob] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJob] + // or other methods to check whether the cancellation succeeded or whether the // pipeline completed despite cancellation. On successful cancellation, // the PipelineJob is not deleted; instead it becomes a pipeline with - // a [PipelineJob.error][google.cloud.aiplatform.v1beta1.PipelineJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`, and [PipelineJob.state][google.cloud.aiplatform.v1beta1.PipelineJob.state] is set to - // `CANCELLED`. + // a [PipelineJob.error][google.cloud.aiplatform.v1beta1.PipelineJob.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`, and + // [PipelineJob.state][google.cloud.aiplatform.v1beta1.PipelineJob.state] is + // set to `CANCELLED`. CancelPipelineJob(ctx context.Context, in *CancelPipelineJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) } @@ -1560,13 +1587,17 @@ type PipelineServiceServer interface { // Cancels a TrainingPipeline. // Starts asynchronous cancellation on the TrainingPipeline. The server // makes a best effort to cancel the pipeline, but success is not - // guaranteed. Clients can use [PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1beta1.PipelineService.GetTrainingPipeline] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1beta1.PipelineService.GetTrainingPipeline] + // or other methods to check whether the cancellation succeeded or whether the // pipeline completed despite cancellation. On successful cancellation, // the TrainingPipeline is not deleted; instead it becomes a pipeline with - // a [TrainingPipeline.error][google.cloud.aiplatform.v1beta1.TrainingPipeline.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`, and [TrainingPipeline.state][google.cloud.aiplatform.v1beta1.TrainingPipeline.state] is set to - // `CANCELLED`. + // a + // [TrainingPipeline.error][google.cloud.aiplatform.v1beta1.TrainingPipeline.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`, and + // [TrainingPipeline.state][google.cloud.aiplatform.v1beta1.TrainingPipeline.state] + // is set to `CANCELLED`. CancelTrainingPipeline(context.Context, *CancelTrainingPipelineRequest) (*emptypb.Empty, error) // Creates a PipelineJob. A PipelineJob will run immediately when created. CreatePipelineJob(context.Context, *CreatePipelineJobRequest) (*PipelineJob, error) @@ -1579,13 +1610,16 @@ type PipelineServiceServer interface { // Cancels a PipelineJob. // Starts asynchronous cancellation on the PipelineJob. The server // makes a best effort to cancel the pipeline, but success is not - // guaranteed. Clients can use [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJob] or - // other methods to check whether the cancellation succeeded or whether the + // guaranteed. Clients can use + // [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJob] + // or other methods to check whether the cancellation succeeded or whether the // pipeline completed despite cancellation. On successful cancellation, // the PipelineJob is not deleted; instead it becomes a pipeline with - // a [PipelineJob.error][google.cloud.aiplatform.v1beta1.PipelineJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`, and [PipelineJob.state][google.cloud.aiplatform.v1beta1.PipelineJob.state] is set to - // `CANCELLED`. + // a [PipelineJob.error][google.cloud.aiplatform.v1beta1.PipelineJob.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`, and + // [PipelineJob.state][google.cloud.aiplatform.v1beta1.PipelineJob.state] is + // set to `CANCELLED`. CancelPipelineJob(context.Context, *CancelPipelineJobRequest) (*emptypb.Empty, error) } diff --git a/aiplatform/apiv1beta1/aiplatformpb/prediction_service.pb.go b/aiplatform/apiv1beta1/aiplatformpb/prediction_service.pb.go index 4e5c45b54924..85d3a51fecd0 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/prediction_service.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/prediction_service.pb.go @@ -42,7 +42,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]. +// Request message for +// [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]. type PredictRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -58,12 +59,14 @@ type PredictRequest struct { // in case of AutoML Models, or, in case of customer created Models, the // behaviour is as documented by that Model. // The schema of any single instance may be specified via Endpoint's - // DeployedModels' [Model's][google.cloud.aiplatform.v1beta1.DeployedModel.model] + // DeployedModels' + // [Model's][google.cloud.aiplatform.v1beta1.DeployedModel.model] // [PredictSchemata's][google.cloud.aiplatform.v1beta1.Model.predict_schemata] // [instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]. Instances []*structpb.Value `protobuf:"bytes,2,rep,name=instances,proto3" json:"instances,omitempty"` // The parameters that govern the prediction. The schema of the parameters may - // be specified via Endpoint's DeployedModels' [Model's ][google.cloud.aiplatform.v1beta1.DeployedModel.model] + // be specified via Endpoint's DeployedModels' [Model's + // ][google.cloud.aiplatform.v1beta1.DeployedModel.model] // [PredictSchemata's][google.cloud.aiplatform.v1beta1.Model.predict_schemata] // [parameters_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.parameters_schema_uri]. Parameters *structpb.Value `protobuf:"bytes,3,opt,name=parameters,proto3" json:"parameters,omitempty"` @@ -122,7 +125,8 @@ func (x *PredictRequest) GetParameters() *structpb.Value { return nil } -// Response message for [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]. +// Response message for +// [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict]. type PredictResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -130,20 +134,22 @@ type PredictResponse struct { // The predictions that are the output of the predictions call. // The schema of any single prediction may be specified via Endpoint's - // DeployedModels' [Model's ][google.cloud.aiplatform.v1beta1.DeployedModel.model] + // DeployedModels' [Model's + // ][google.cloud.aiplatform.v1beta1.DeployedModel.model] // [PredictSchemata's][google.cloud.aiplatform.v1beta1.Model.predict_schemata] // [prediction_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.prediction_schema_uri]. Predictions []*structpb.Value `protobuf:"bytes,1,rep,name=predictions,proto3" json:"predictions,omitempty"` // ID of the Endpoint's DeployedModel that served this prediction. DeployedModelId string `protobuf:"bytes,2,opt,name=deployed_model_id,json=deployedModelId,proto3" json:"deployed_model_id,omitempty"` - // Output only. The resource name of the Model which is deployed as the DeployedModel that - // this prediction hits. + // Output only. The resource name of the Model which is deployed as the + // DeployedModel that this prediction hits. Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"` - // Output only. The version ID of the Model which is deployed as the DeployedModel that - // this prediction hits. + // Output only. The version ID of the Model which is deployed as the + // DeployedModel that this prediction hits. ModelVersionId string `protobuf:"bytes,5,opt,name=model_version_id,json=modelVersionId,proto3" json:"model_version_id,omitempty"` - // Output only. The [display name][google.cloud.aiplatform.v1beta1.Model.display_name] of the Model which is deployed as - // the DeployedModel that this prediction hits. + // Output only. The [display + // name][google.cloud.aiplatform.v1beta1.Model.display_name] of the Model + // which is deployed as the DeployedModel that this prediction hits. ModelDisplayName string `protobuf:"bytes,4,opt,name=model_display_name,json=modelDisplayName,proto3" json:"model_display_name,omitempty"` } @@ -214,7 +220,8 @@ func (x *PredictResponse) GetModelDisplayName() string { return "" } -// Request message for [PredictionService.RawPredict][google.cloud.aiplatform.v1beta1.PredictionService.RawPredict]. +// Request message for +// [PredictionService.RawPredict][google.cloud.aiplatform.v1beta1.PredictionService.RawPredict]. type RawPredictRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -226,17 +233,19 @@ type RawPredictRequest struct { Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // The prediction input. Supports HTTP headers and arbitrary data payload. // - // A [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] may have an upper limit on the number of instances it - // supports per request. When this limit it is exceeded for an AutoML model, - // the [RawPredict][google.cloud.aiplatform.v1beta1.PredictionService.RawPredict] method returns an error. - // When this limit is exceeded for a custom-trained model, the behavior varies - // depending on the model. + // A [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] may have + // an upper limit on the number of instances it supports per request. When + // this limit it is exceeded for an AutoML model, the + // [RawPredict][google.cloud.aiplatform.v1beta1.PredictionService.RawPredict] + // method returns an error. When this limit is exceeded for a custom-trained + // model, the behavior varies depending on the model. // // You can specify the schema for each instance in the // [predict_schemata.instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri] - // field when you create a [Model][google.cloud.aiplatform.v1beta1.Model]. This schema applies when you deploy the - // `Model` as a `DeployedModel` to an [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and use the `RawPredict` - // method. + // field when you create a [Model][google.cloud.aiplatform.v1beta1.Model]. + // This schema applies when you deploy the `Model` as a `DeployedModel` to an + // [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] and use the + // `RawPredict` method. HttpBody *httpbody.HttpBody `protobuf:"bytes,2,opt,name=http_body,json=httpBody,proto3" json:"http_body,omitempty"` } @@ -286,7 +295,8 @@ func (x *RawPredictRequest) GetHttpBody() *httpbody.HttpBody { return nil } -// Request message for [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]. +// Request message for +// [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]. type ExplainRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -302,26 +312,29 @@ type ExplainRequest struct { // in case of AutoML Models, or, in case of customer created Models, the // behaviour is as documented by that Model. // The schema of any single instance may be specified via Endpoint's - // DeployedModels' [Model's][google.cloud.aiplatform.v1beta1.DeployedModel.model] + // DeployedModels' + // [Model's][google.cloud.aiplatform.v1beta1.DeployedModel.model] // [PredictSchemata's][google.cloud.aiplatform.v1beta1.Model.predict_schemata] // [instance_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.instance_schema_uri]. Instances []*structpb.Value `protobuf:"bytes,2,rep,name=instances,proto3" json:"instances,omitempty"` // The parameters that govern the prediction. The schema of the parameters may - // be specified via Endpoint's DeployedModels' [Model's ][google.cloud.aiplatform.v1beta1.DeployedModel.model] + // be specified via Endpoint's DeployedModels' [Model's + // ][google.cloud.aiplatform.v1beta1.DeployedModel.model] // [PredictSchemata's][google.cloud.aiplatform.v1beta1.Model.predict_schemata] // [parameters_schema_uri][google.cloud.aiplatform.v1beta1.PredictSchemata.parameters_schema_uri]. Parameters *structpb.Value `protobuf:"bytes,4,opt,name=parameters,proto3" json:"parameters,omitempty"` // If specified, overrides the - // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] of the DeployedModel. - // Can be used for explaining prediction results with different - // configurations, such as: + // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] + // of the DeployedModel. Can be used for explaining prediction results with + // different configurations, such as: // - Explaining top-5 predictions results as opposed to top-1; // - Increasing path count or step count of the attribution methods to reduce // approximate errors; // - Using different baselines for explaining the prediction results. ExplanationSpecOverride *ExplanationSpecOverride `protobuf:"bytes,5,opt,name=explanation_spec_override,json=explanationSpecOverride,proto3" json:"explanation_spec_override,omitempty"` // If specified, this ExplainRequest will be served by the chosen - // DeployedModel, overriding [Endpoint.traffic_split][google.cloud.aiplatform.v1beta1.Endpoint.traffic_split]. + // DeployedModel, overriding + // [Endpoint.traffic_split][google.cloud.aiplatform.v1beta1.Endpoint.traffic_split]. DeployedModelId string `protobuf:"bytes,3,opt,name=deployed_model_id,json=deployedModelId,proto3" json:"deployed_model_id,omitempty"` } @@ -392,21 +405,25 @@ func (x *ExplainRequest) GetDeployedModelId() string { return "" } -// Response message for [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]. +// Response message for +// [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain]. type ExplainResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The explanations of the Model's [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions]. + // The explanations of the Model's + // [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions]. // - // It has the same number of elements as [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] - // to be explained. + // It has the same number of elements as + // [instances][google.cloud.aiplatform.v1beta1.ExplainRequest.instances] to be + // explained. Explanations []*Explanation `protobuf:"bytes,1,rep,name=explanations,proto3" json:"explanations,omitempty"` // ID of the Endpoint's DeployedModel that served this explanation. DeployedModelId string `protobuf:"bytes,2,opt,name=deployed_model_id,json=deployedModelId,proto3" json:"deployed_model_id,omitempty"` // The predictions that are the output of the predictions call. - // Same as [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions]. + // Same as + // [PredictResponse.predictions][google.cloud.aiplatform.v1beta1.PredictResponse.predictions]. Predictions []*structpb.Value `protobuf:"bytes,3,rep,name=predictions,proto3" json:"predictions,omitempty"` } @@ -779,18 +796,22 @@ type PredictionServiceClient interface { // // The response includes the following HTTP headers: // - // * `X-Vertex-AI-Endpoint-Id`: ID of the [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] that served this + // * `X-Vertex-AI-Endpoint-Id`: ID of the + // [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] that served this // prediction. // - // * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] - // that served this prediction. + // * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's + // [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] that served + // this prediction. RawPredict(ctx context.Context, in *RawPredictRequest, opts ...grpc.CallOption) (*httpbody.HttpBody, error) // Perform an online explanation. // - // If [deployed_model_id][google.cloud.aiplatform.v1beta1.ExplainRequest.deployed_model_id] is specified, - // the corresponding DeployModel must have + // If + // [deployed_model_id][google.cloud.aiplatform.v1beta1.ExplainRequest.deployed_model_id] + // is specified, the corresponding DeployModel must have // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] - // populated. If [deployed_model_id][google.cloud.aiplatform.v1beta1.ExplainRequest.deployed_model_id] + // populated. If + // [deployed_model_id][google.cloud.aiplatform.v1beta1.ExplainRequest.deployed_model_id] // is not specified, all DeployedModels must have // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] // populated. Only deployed AutoML tabular Models have @@ -841,18 +862,22 @@ type PredictionServiceServer interface { // // The response includes the following HTTP headers: // - // * `X-Vertex-AI-Endpoint-Id`: ID of the [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] that served this + // * `X-Vertex-AI-Endpoint-Id`: ID of the + // [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] that served this // prediction. // - // * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] - // that served this prediction. + // * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's + // [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] that served + // this prediction. RawPredict(context.Context, *RawPredictRequest) (*httpbody.HttpBody, error) // Perform an online explanation. // - // If [deployed_model_id][google.cloud.aiplatform.v1beta1.ExplainRequest.deployed_model_id] is specified, - // the corresponding DeployModel must have + // If + // [deployed_model_id][google.cloud.aiplatform.v1beta1.ExplainRequest.deployed_model_id] + // is specified, the corresponding DeployModel must have // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] - // populated. If [deployed_model_id][google.cloud.aiplatform.v1beta1.ExplainRequest.deployed_model_id] + // populated. If + // [deployed_model_id][google.cloud.aiplatform.v1beta1.ExplainRequest.deployed_model_id] // is not specified, all DeployedModels must have // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] // populated. Only deployed AutoML tabular Models have diff --git a/aiplatform/apiv1beta1/aiplatformpb/saved_query.pb.go b/aiplatform/apiv1beta1/aiplatformpb/saved_query.pb.go index 26ed4557b8cd..723177761edb 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/saved_query.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/saved_query.pb.go @@ -78,8 +78,8 @@ type SavedQuery struct { // Used to perform a consistent read-modify-write update. If not set, a blind // "overwrite" update happens. Etag string `protobuf:"bytes,8,opt,name=etag,proto3" json:"etag,omitempty"` - // Output only. If the Annotations belonging to the SavedQuery can be used for AutoML - // training. + // Output only. If the Annotations belonging to the SavedQuery can be used for + // AutoML training. SupportAutomlTraining bool `protobuf:"varint,9,opt,name=support_automl_training,json=supportAutomlTraining,proto3" json:"support_automl_training,omitempty"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/specialist_pool_service.pb.go b/aiplatform/apiv1beta1/aiplatformpb/specialist_pool_service.pb.go index bb0c6d3f7d28..bb61536dc6eb 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/specialist_pool_service.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/specialist_pool_service.pb.go @@ -42,7 +42,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [SpecialistPoolService.CreateSpecialistPool][google.cloud.aiplatform.v1beta1.SpecialistPoolService.CreateSpecialistPool]. +// Request message for +// [SpecialistPoolService.CreateSpecialistPool][google.cloud.aiplatform.v1beta1.SpecialistPoolService.CreateSpecialistPool]. type CreateSpecialistPoolRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -151,7 +152,8 @@ func (x *CreateSpecialistPoolOperationMetadata) GetGenericMetadata() *GenericOpe return nil } -// Request message for [SpecialistPoolService.GetSpecialistPool][google.cloud.aiplatform.v1beta1.SpecialistPoolService.GetSpecialistPool]. +// Request message for +// [SpecialistPoolService.GetSpecialistPool][google.cloud.aiplatform.v1beta1.SpecialistPoolService.GetSpecialistPool]. type GetSpecialistPoolRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -202,7 +204,8 @@ func (x *GetSpecialistPoolRequest) GetName() string { return "" } -// Request message for [SpecialistPoolService.ListSpecialistPools][google.cloud.aiplatform.v1beta1.SpecialistPoolService.ListSpecialistPools]. +// Request message for +// [SpecialistPoolService.ListSpecialistPools][google.cloud.aiplatform.v1beta1.SpecialistPoolService.ListSpecialistPools]. type ListSpecialistPoolsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -214,9 +217,11 @@ type ListSpecialistPoolsRequest struct { // The standard list page size. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The standard list page token. - // Typically obtained by [ListSpecialistPoolsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse.next_page_token] of - // the previous [SpecialistPoolService.ListSpecialistPools][google.cloud.aiplatform.v1beta1.SpecialistPoolService.ListSpecialistPools] call. Return - // first page if empty. + // Typically obtained by + // [ListSpecialistPoolsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse.next_page_token] + // of the previous + // [SpecialistPoolService.ListSpecialistPools][google.cloud.aiplatform.v1beta1.SpecialistPoolService.ListSpecialistPools] + // call. Return first page if empty. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Mask specifying which fields to read. FieldMask represents a set of ReadMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` @@ -282,7 +287,8 @@ func (x *ListSpecialistPoolsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [SpecialistPoolService.ListSpecialistPools][google.cloud.aiplatform.v1beta1.SpecialistPoolService.ListSpecialistPools]. +// Response message for +// [SpecialistPoolService.ListSpecialistPools][google.cloud.aiplatform.v1beta1.SpecialistPoolService.ListSpecialistPools]. type ListSpecialistPoolsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -340,7 +346,8 @@ func (x *ListSpecialistPoolsResponse) GetNextPageToken() string { return "" } -// Request message for [SpecialistPoolService.DeleteSpecialistPool][google.cloud.aiplatform.v1beta1.SpecialistPoolService.DeleteSpecialistPool]. +// Request message for +// [SpecialistPoolService.DeleteSpecialistPool][google.cloud.aiplatform.v1beta1.SpecialistPoolService.DeleteSpecialistPool]. type DeleteSpecialistPoolRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -401,7 +408,8 @@ func (x *DeleteSpecialistPoolRequest) GetForce() bool { return false } -// Request message for [SpecialistPoolService.UpdateSpecialistPool][google.cloud.aiplatform.v1beta1.SpecialistPoolService.UpdateSpecialistPool]. +// Request message for +// [SpecialistPoolService.UpdateSpecialistPool][google.cloud.aiplatform.v1beta1.SpecialistPoolService.UpdateSpecialistPool]. type UpdateSpecialistPoolRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -466,8 +474,8 @@ type UpdateSpecialistPoolOperationMetadata struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. The name of the SpecialistPool to which the specialists are being added. - // Format: + // Output only. The name of the SpecialistPool to which the specialists are + // being added. Format: // `projects/{project_id}/locations/{location_id}/specialistPools/{specialist_pool}` SpecialistPool string `protobuf:"bytes,1,opt,name=specialist_pool,json=specialistPool,proto3" json:"specialist_pool,omitempty"` // The operation generic information. diff --git a/aiplatform/apiv1beta1/aiplatformpb/study.pb.go b/aiplatform/apiv1beta1/aiplatformpb/study.pb.go index ffe57e99a59b..37daddad7e6f 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/study.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/study.pb.go @@ -580,11 +580,12 @@ type Trial struct { Measurements []*Measurement `protobuf:"bytes,6,rep,name=measurements,proto3" json:"measurements,omitempty"` // Output only. Time when the Trial was started. StartTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - // Output only. Time when the Trial's status changed to `SUCCEEDED` or `INFEASIBLE`. + // Output only. Time when the Trial's status changed to `SUCCEEDED` or + // `INFEASIBLE`. EndTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - // Output only. The identifier of the client that originally requested this Trial. - // Each client is identified by a unique client_id. When a client - // asks for a suggestion, Vertex AI Vizier will assign it a Trial. The client + // Output only. The identifier of the client that originally requested this + // Trial. Each client is identified by a unique client_id. When a client asks + // for a suggestion, Vertex AI Vizier will assign it a Trial. The client // should evaluate the Trial, complete it, and report back to Vertex AI // Vizier. If suggestion is asked again by same client_id before the Trial is // completed, the same Trial will be returned. Multiple clients with @@ -600,9 +601,11 @@ type Trial struct { // Output only. URIs for accessing [interactive // shells](https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell) // (one URI for each training node). Only available if this trial is part of - // a [HyperparameterTuningJob][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob] and the job's - // [trial_job_spec.enable_web_access][google.cloud.aiplatform.v1beta1.CustomJobSpec.enable_web_access] field - // is `true`. + // a + // [HyperparameterTuningJob][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob] + // and the job's + // [trial_job_spec.enable_web_access][google.cloud.aiplatform.v1beta1.CustomJobSpec.enable_web_access] + // field is `true`. // // The keys are names of each node used for the trial; for example, // `workerpool0-0` for the primary node, `workerpool1-0` for the first node in @@ -912,13 +915,14 @@ type Measurement struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. Time that the Trial has been running at the point of this Measurement. + // Output only. Time that the Trial has been running at the point of this + // Measurement. ElapsedDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=elapsed_duration,json=elapsedDuration,proto3" json:"elapsed_duration,omitempty"` - // Output only. The number of steps the machine learning model has been trained for. - // Must be non-negative. + // Output only. The number of steps the machine learning model has been + // trained for. Must be non-negative. StepCount int64 `protobuf:"varint,2,opt,name=step_count,json=stepCount,proto3" json:"step_count,omitempty"` - // Output only. A list of metrics got by evaluating the objective functions using suggested - // Parameter values. + // Output only. A list of metrics got by evaluating the objective functions + // using suggested Parameter values. Metrics []*Measurement_Metric `protobuf:"bytes,3,rep,name=metrics,proto3" json:"metrics,omitempty"` } @@ -982,7 +986,8 @@ type Trial_Parameter struct { unknownFields protoimpl.UnknownFields // Output only. The ID of the parameter. The parameter should be defined in - // [StudySpec's Parameters][google.cloud.aiplatform.v1beta1.StudySpec.parameters]. + // [StudySpec's + // Parameters][google.cloud.aiplatform.v1beta1.StudySpec.parameters]. ParameterId string `protobuf:"bytes,1,opt,name=parameter_id,json=parameterId,proto3" json:"parameter_id,omitempty"` // Output only. The value of the parameter. // `number_value` will be set if a parameter defined in StudySpec is @@ -1044,8 +1049,8 @@ type StudySpec_MetricSpec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The ID of the metric. Must not contain whitespaces and must be unique - // amongst all MetricSpecs. + // Required. The ID of the metric. Must not contain whitespaces and must be + // unique amongst all MetricSpecs. MetricId string `protobuf:"bytes,1,opt,name=metric_id,json=metricId,proto3" json:"metric_id,omitempty"` // Required. The optimization goal of the metric. Goal StudySpec_MetricSpec_GoalType `protobuf:"varint,2,opt,name=goal,proto3,enum=google.cloud.aiplatform.v1beta1.StudySpec_MetricSpec_GoalType" json:"goal,omitempty"` @@ -1110,8 +1115,8 @@ type StudySpec_ParameterSpec struct { // *StudySpec_ParameterSpec_CategoricalValueSpec_ // *StudySpec_ParameterSpec_DiscreteValueSpec_ ParameterValueSpec isStudySpec_ParameterSpec_ParameterValueSpec `protobuf_oneof:"parameter_value_spec"` - // Required. The ID of the parameter. Must not contain whitespaces and must be unique - // amongst all ParameterSpecs. + // Required. The ID of the parameter. Must not contain whitespaces and must + // be unique amongst all ParameterSpecs. ParameterId string `protobuf:"bytes,1,opt,name=parameter_id,json=parameterId,proto3" json:"parameter_id,omitempty"` // How the parameter should be scaled. // Leave unset for `CATEGORICAL` parameters. @@ -1255,9 +1260,11 @@ type StudySpec_DecayCurveAutomatedStoppingSpec struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // True if [Measurement.elapsed_duration][google.cloud.aiplatform.v1beta1.Measurement.elapsed_duration] is used as the x-axis of each - // Trials Decay Curve. Otherwise, [Measurement.step_count][google.cloud.aiplatform.v1beta1.Measurement.step_count] will be used - // as the x-axis. + // True if + // [Measurement.elapsed_duration][google.cloud.aiplatform.v1beta1.Measurement.elapsed_duration] + // is used as the x-axis of each Trials Decay Curve. Otherwise, + // [Measurement.step_count][google.cloud.aiplatform.v1beta1.Measurement.step_count] + // will be used as the x-axis. UseElapsedDuration bool `protobuf:"varint,1,opt,name=use_elapsed_duration,json=useElapsedDuration,proto3" json:"use_elapsed_duration,omitempty"` } @@ -1311,9 +1318,10 @@ type StudySpec_MedianAutomatedStoppingSpec struct { unknownFields protoimpl.UnknownFields // True if median automated stopping rule applies on - // [Measurement.elapsed_duration][google.cloud.aiplatform.v1beta1.Measurement.elapsed_duration]. It means that elapsed_duration - // field of latest measurement of current Trial is used to compute median - // objective value for each completed Trials. + // [Measurement.elapsed_duration][google.cloud.aiplatform.v1beta1.Measurement.elapsed_duration]. + // It means that elapsed_duration field of latest measurement of current + // Trial is used to compute median objective value for each completed + // Trials. UseElapsedDuration bool `protobuf:"varint,1,opt,name=use_elapsed_duration,json=useElapsedDuration,proto3" json:"use_elapsed_duration,omitempty"` } @@ -1402,6 +1410,14 @@ type StudySpec_ConvexAutomatedStoppingSpec struct { // min_num_steps are overloaded to contain max_elapsed_seconds and // min_elapsed_seconds. UseElapsedDuration bool `protobuf:"varint,5,opt,name=use_elapsed_duration,json=useElapsedDuration,proto3" json:"use_elapsed_duration,omitempty"` + // ConvexAutomatedStoppingSpec by default only updates the trials that needs + // to be early stopped using a newly trained auto-regressive model. When + // this flag is set to True, all stopped trials from the beginning are + // potentially updated in terms of their `final_measurement`. Also, note + // that the training logic of autoregressive models is different in this + // case. Enabling this option has shown better results and this may be the + // default option in the future. + UpdateAllStoppedTrials *bool `protobuf:"varint,6,opt,name=update_all_stopped_trials,json=updateAllStoppedTrials,proto3,oneof" json:"update_all_stopped_trials,omitempty"` } func (x *StudySpec_ConvexAutomatedStoppingSpec) Reset() { @@ -1471,6 +1487,13 @@ func (x *StudySpec_ConvexAutomatedStoppingSpec) GetUseElapsedDuration() bool { return false } +func (x *StudySpec_ConvexAutomatedStoppingSpec) GetUpdateAllStoppedTrials() bool { + if x != nil && x.UpdateAllStoppedTrials != nil { + return *x.UpdateAllStoppedTrials + } + return false +} + // Configuration for ConvexStopPolicy. // // Deprecated: Do not use. @@ -2138,8 +2161,8 @@ type StudySpec_ParameterSpec_ConditionalParameterSpec_CategoricalValueCondition sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. Matches values of the parent parameter of 'CATEGORICAL' type. - // All values must exist in `categorical_value_spec` of parent + // Required. Matches values of the parent parameter of 'CATEGORICAL' + // type. All values must exist in `categorical_value_spec` of parent // parameter. Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` } @@ -2364,7 +2387,7 @@ var file_google_cloud_aiplatform_v1beta1_study_proto_rawDesc = []byte{ 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x73, 0x74, 0x75, 0x64, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x74, 0x75, 0x64, 0x79, 0x7d, 0x2f, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x73, - 0x2f, 0x7b, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x7d, 0x22, 0xa0, 0x25, 0x0a, 0x09, 0x53, 0x74, 0x75, + 0x2f, 0x7b, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x7d, 0x22, 0xfe, 0x25, 0x0a, 0x09, 0x53, 0x74, 0x75, 0x64, 0x79, 0x53, 0x70, 0x65, 0x63, 0x12, 0x87, 0x01, 0x0a, 0x19, 0x64, 0x65, 0x63, 0x61, 0x79, 0x5f, 0x63, 0x75, 0x72, 0x76, 0x65, 0x5f, 0x73, 0x74, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4a, 0x2e, 0x67, 0x6f, 0x6f, @@ -2603,7 +2626,7 @@ var file_google_cloud_aiplatform_v1beta1_study_proto_rawDesc = []byte{ 0x70, 0x65, 0x63, 0x12, 0x30, 0x0a, 0x14, 0x75, 0x73, 0x65, 0x5f, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x75, 0x73, 0x65, 0x45, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x44, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x90, 0x02, 0x0a, 0x1b, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x78, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xee, 0x02, 0x0a, 0x1b, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x78, 0x41, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x53, 0x70, 0x65, 0x63, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6d, @@ -2620,82 +2643,88 @@ var file_google_cloud_aiplatform_v1beta1_study_proto_rawDesc = []byte{ 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x75, 0x73, 0x65, 0x5f, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x75, 0x73, 0x65, 0x45, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, - 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xf3, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6e, - 0x76, 0x65, 0x78, 0x53, 0x74, 0x6f, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x22, 0x0a, - 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x6e, 0x75, 0x6d, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x4e, 0x75, 0x6d, 0x53, 0x74, 0x65, 0x70, - 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x69, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x5f, 0x73, 0x74, 0x65, - 0x70, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6d, 0x69, 0x6e, 0x4e, 0x75, 0x6d, - 0x53, 0x74, 0x65, 0x70, 0x73, 0x12, 0x31, 0x0a, 0x14, 0x61, 0x75, 0x74, 0x6f, 0x72, 0x65, 0x67, - 0x72, 0x65, 0x73, 0x73, 0x69, 0x76, 0x65, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x13, 0x61, 0x75, 0x74, 0x6f, 0x72, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, - 0x69, 0x76, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x3f, 0x0a, 0x1c, 0x6c, 0x65, 0x61, 0x72, - 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, - 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x19, - 0x6c, 0x65, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x65, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x73, 0x65, - 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, - 0x75, 0x73, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x3a, 0x02, 0x18, 0x01, 0x1a, 0x85, - 0x01, 0x0a, 0x16, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x4c, 0x65, 0x61, 0x72, 0x6e, - 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3a, 0x0a, 0x19, 0x64, 0x69, 0x73, - 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x6c, 0x65, - 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x64, 0x69, - 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x4c, 0x65, 0x61, - 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x2f, 0x0a, 0x11, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x73, - 0x74, 0x75, 0x64, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, - 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x53, 0x74, 0x75, 0x64, - 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x4a, 0x0a, 0x09, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, - 0x74, 0x68, 0x6d, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x4c, 0x47, 0x4f, 0x52, 0x49, 0x54, 0x48, 0x4d, - 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, - 0x0a, 0x0b, 0x47, 0x52, 0x49, 0x44, 0x5f, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x10, 0x02, 0x12, - 0x11, 0x0a, 0x0d, 0x52, 0x41, 0x4e, 0x44, 0x4f, 0x4d, 0x5f, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, - 0x10, 0x03, 0x22, 0x48, 0x0a, 0x10, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x4e, 0x6f, 0x69, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x4f, 0x42, 0x53, 0x45, 0x52, 0x56, - 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x49, 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x4f, 0x57, - 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x49, 0x47, 0x48, 0x10, 0x02, 0x22, 0x72, 0x0a, 0x18, - 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x26, 0x4d, 0x45, 0x41, 0x53, - 0x55, 0x52, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x45, 0x4c, 0x45, 0x43, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x4c, 0x41, 0x53, 0x54, 0x5f, 0x4d, 0x45, 0x41, - 0x53, 0x55, 0x52, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x42, 0x45, - 0x53, 0x54, 0x5f, 0x4d, 0x45, 0x41, 0x53, 0x55, 0x52, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, - 0x42, 0x19, 0x0a, 0x17, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, - 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x22, 0x97, 0x02, 0x0a, 0x0b, - 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x49, 0x0a, 0x10, 0x65, - 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, - 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x44, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0a, 0x73, 0x74, 0x65, 0x70, 0x5f, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, - 0x09, 0x73, 0x74, 0x65, 0x70, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x52, 0x0a, 0x07, 0x6d, 0x65, - 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x65, - 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, - 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x1a, 0x45, - 0x0a, 0x06, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x20, 0x0a, 0x09, 0x6d, 0x65, 0x74, 0x72, - 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, - 0x52, 0x08, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0xe7, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, 0x53, - 0x74, 0x75, 0x64, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 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, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x19, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x74, + 0x72, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x16, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x6c, 0x6c, 0x53, 0x74, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x54, + 0x72, 0x69, 0x61, 0x6c, 0x73, 0x88, 0x01, 0x01, 0x42, 0x1c, 0x0a, 0x1a, 0x5f, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x5f, + 0x74, 0x72, 0x69, 0x61, 0x6c, 0x73, 0x1a, 0xf3, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x76, 0x65, + 0x78, 0x53, 0x74, 0x6f, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x22, 0x0a, 0x0d, 0x6d, + 0x61, 0x78, 0x5f, 0x6e, 0x75, 0x6d, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x4e, 0x75, 0x6d, 0x53, 0x74, 0x65, 0x70, 0x73, 0x12, + 0x22, 0x0a, 0x0d, 0x6d, 0x69, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6d, 0x69, 0x6e, 0x4e, 0x75, 0x6d, 0x53, 0x74, + 0x65, 0x70, 0x73, 0x12, 0x31, 0x0a, 0x14, 0x61, 0x75, 0x74, 0x6f, 0x72, 0x65, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x69, 0x76, 0x65, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x13, 0x61, 0x75, 0x74, 0x6f, 0x72, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x69, 0x76, + 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x3f, 0x0a, 0x1c, 0x6c, 0x65, 0x61, 0x72, 0x6e, 0x69, + 0x6e, 0x67, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x19, 0x6c, 0x65, + 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, + 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x5f, 0x73, + 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x73, + 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x3a, 0x02, 0x18, 0x01, 0x1a, 0x85, 0x01, 0x0a, + 0x16, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x4c, 0x65, 0x61, 0x72, 0x6e, 0x69, 0x6e, + 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3a, 0x0a, 0x19, 0x64, 0x69, 0x73, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x61, 0x72, + 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x64, 0x69, 0x73, 0x61, + 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x4c, 0x65, 0x61, 0x72, 0x6e, + 0x69, 0x6e, 0x67, 0x12, 0x2f, 0x0a, 0x11, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x5f, 0x73, 0x74, 0x75, + 0x64, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, + 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x53, 0x74, 0x75, 0x64, 0x79, 0x4e, + 0x61, 0x6d, 0x65, 0x73, 0x22, 0x4a, 0x0a, 0x09, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, + 0x6d, 0x12, 0x19, 0x0a, 0x15, 0x41, 0x4c, 0x47, 0x4f, 0x52, 0x49, 0x54, 0x48, 0x4d, 0x5f, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, + 0x47, 0x52, 0x49, 0x44, 0x5f, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x10, 0x02, 0x12, 0x11, 0x0a, + 0x0d, 0x52, 0x41, 0x4e, 0x44, 0x4f, 0x4d, 0x5f, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x10, 0x03, + 0x22, 0x48, 0x0a, 0x10, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, + 0x6f, 0x69, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x4f, 0x42, 0x53, 0x45, 0x52, 0x56, 0x41, 0x54, + 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x49, 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x4f, 0x57, 0x10, 0x01, + 0x12, 0x08, 0x0a, 0x04, 0x48, 0x49, 0x47, 0x48, 0x10, 0x02, 0x22, 0x72, 0x0a, 0x18, 0x4d, 0x65, + 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x26, 0x4d, 0x45, 0x41, 0x53, 0x55, 0x52, + 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x45, 0x4c, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x4c, 0x41, 0x53, 0x54, 0x5f, 0x4d, 0x45, 0x41, 0x53, 0x55, + 0x52, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x42, 0x45, 0x53, 0x54, + 0x5f, 0x4d, 0x45, 0x41, 0x53, 0x55, 0x52, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x42, 0x19, + 0x0a, 0x17, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x6f, 0x70, + 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x22, 0x97, 0x02, 0x0a, 0x0b, 0x4d, 0x65, + 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x49, 0x0a, 0x10, 0x65, 0x6c, 0x61, + 0x70, 0x73, 0x65, 0x64, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x42, 0x03, + 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x44, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0a, 0x73, 0x74, 0x65, 0x70, 0x5f, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x73, + 0x74, 0x65, 0x70, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x52, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, + 0x69, 0x63, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4d, 0x65, 0x61, 0x73, + 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x42, 0x03, + 0xe0, 0x41, 0x03, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x1a, 0x45, 0x0a, 0x06, + 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x20, 0x0a, 0x09, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x08, + 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x42, 0xe7, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, 0x53, 0x74, 0x75, + 0x64, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 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, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, + 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, + 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, + 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3059,6 +3088,7 @@ func file_google_cloud_aiplatform_v1beta1_study_proto_init() { (*StudySpec_ParameterSpec_CategoricalValueSpec_)(nil), (*StudySpec_ParameterSpec_DiscreteValueSpec_)(nil), } + file_google_cloud_aiplatform_v1beta1_study_proto_msgTypes[10].OneofWrappers = []interface{}{} file_google_cloud_aiplatform_v1beta1_study_proto_msgTypes[13].OneofWrappers = []interface{}{} file_google_cloud_aiplatform_v1beta1_study_proto_msgTypes[14].OneofWrappers = []interface{}{} file_google_cloud_aiplatform_v1beta1_study_proto_msgTypes[15].OneofWrappers = []interface{}{} diff --git a/aiplatform/apiv1beta1/aiplatformpb/tensorboard.pb.go b/aiplatform/apiv1beta1/aiplatformpb/tensorboard.pb.go index 70f5353f5344..ea078034a926 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/tensorboard.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/tensorboard.pb.go @@ -57,8 +57,8 @@ type Tensorboard struct { // Tensorboard and all sub-resources of this Tensorboard will be secured by // this key. EncryptionSpec *EncryptionSpec `protobuf:"bytes,11,opt,name=encryption_spec,json=encryptionSpec,proto3" json:"encryption_spec,omitempty"` - // Output only. Consumer project Cloud Storage path prefix used to store blob data, which - // can either be a bucket or directory. Does not end with a '/'. + // Output only. Consumer project Cloud Storage path prefix used to store blob + // data, which can either be a bucket or directory. Does not end with a '/'. BlobStoragePathPrefix string `protobuf:"bytes,10,opt,name=blob_storage_path_prefix,json=blobStoragePathPrefix,proto3" json:"blob_storage_path_prefix,omitempty"` // Output only. The number of Runs stored in this Tensorboard. RunCount int32 `protobuf:"varint,5,opt,name=run_count,json=runCount,proto3" json:"run_count,omitempty"` diff --git a/aiplatform/apiv1beta1/aiplatformpb/tensorboard_data.pb.go b/aiplatform/apiv1beta1/aiplatformpb/tensorboard_data.pb.go index ef75cff38aa6..26eea41e4d23 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/tensorboard_data.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/tensorboard_data.pb.go @@ -43,11 +43,11 @@ type TimeSeriesData struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The ID of the TensorboardTimeSeries, which will become the final component - // of the TensorboardTimeSeries' resource name + // Required. The ID of the TensorboardTimeSeries, which will become the final + // component of the TensorboardTimeSeries' resource name TensorboardTimeSeriesId string `protobuf:"bytes,1,opt,name=tensorboard_time_series_id,json=tensorboardTimeSeriesId,proto3" json:"tensorboard_time_series_id,omitempty"` - // Required. Immutable. The value type of this time series. All the values in this time series data - // must match this value type. + // Required. Immutable. The value type of this time series. All the values in + // this time series data must match this value type. ValueType TensorboardTimeSeries_ValueType `protobuf:"varint,2,opt,name=value_type,json=valueType,proto3,enum=google.cloud.aiplatform.v1beta1.TensorboardTimeSeries_ValueType" json:"value_type,omitempty"` // Required. Data points in this time series. Values []*TimeSeriesDataPoint `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` @@ -283,7 +283,8 @@ type TensorboardTensor struct { // Required. Serialized form of // https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/tensor.proto Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - // Optional. Version number of TensorProto used to serialize [value][google.cloud.aiplatform.v1beta1.TensorboardTensor.value]. + // Optional. Version number of TensorProto used to serialize + // [value][google.cloud.aiplatform.v1beta1.TensorboardTensor.value]. VersionNumber int32 `protobuf:"varint,2,opt,name=version_number,json=versionNumber,proto3" json:"version_number,omitempty"` } @@ -389,8 +390,8 @@ type TensorboardBlob struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. A URI safe key uniquely identifying a blob. Can be used to locate the blob - // stored in the Cloud Storage bucket of the consumer project. + // Output only. A URI safe key uniquely identifying a blob. Can be used to + // locate the blob stored in the Cloud Storage bucket of the consumer project. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Optional. The bytes of the blob is not present unless it's returned by the // ReadTensorboardBlobData endpoint. diff --git a/aiplatform/apiv1beta1/aiplatformpb/tensorboard_experiment.pb.go b/aiplatform/apiv1beta1/aiplatformpb/tensorboard_experiment.pb.go index fffde9efccde..97940fe861e0 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/tensorboard_experiment.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/tensorboard_experiment.pb.go @@ -74,7 +74,8 @@ type TensorboardExperiment struct { // Used to perform consistent read-modify-write updates. If not set, a blind // "overwrite" update happens. Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"` - // Immutable. Source of the TensorboardExperiment. Example: a custom training job. + // Immutable. Source of the TensorboardExperiment. Example: a custom training + // job. Source string `protobuf:"bytes,8,opt,name=source,proto3" json:"source,omitempty"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/tensorboard_service.pb.go b/aiplatform/apiv1beta1/aiplatformpb/tensorboard_service.pb.go index 8678cbfd9ed2..e191d97feaf2 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/tensorboard_service.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/tensorboard_service.pb.go @@ -42,7 +42,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [TensorboardService.CreateTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboard]. +// Request message for +// [TensorboardService.CreateTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboard]. type CreateTensorboardRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -101,7 +102,8 @@ func (x *CreateTensorboardRequest) GetTensorboard() *Tensorboard { return nil } -// Request message for [TensorboardService.GetTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboard]. +// Request message for +// [TensorboardService.GetTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboard]. type GetTensorboardRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -152,7 +154,108 @@ func (x *GetTensorboardRequest) GetName() string { return "" } -// Request message for [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards]. +// Request message for [TensorboardService.GetTensorboardUsage][]. +type ReadTensorboardUsageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The name of the Tensorboard resource. + // Format: + // `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + Tensorboard string `protobuf:"bytes,1,opt,name=tensorboard,proto3" json:"tensorboard,omitempty"` +} + +func (x *ReadTensorboardUsageRequest) Reset() { + *x = ReadTensorboardUsageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReadTensorboardUsageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReadTensorboardUsageRequest) ProtoMessage() {} + +func (x *ReadTensorboardUsageRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ReadTensorboardUsageRequest.ProtoReflect.Descriptor instead. +func (*ReadTensorboardUsageRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{2} +} + +func (x *ReadTensorboardUsageRequest) GetTensorboard() string { + if x != nil { + return x.Tensorboard + } + return "" +} + +// Response message for [TensorboardService.GetTensorboardUsage][]. +type ReadTensorboardUsageResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Maps year-month (YYYYMM) string to per month usage data. + MonthlyUsageData map[string]*ReadTensorboardUsageResponse_PerMonthUsageData `protobuf:"bytes,1,rep,name=monthly_usage_data,json=monthlyUsageData,proto3" json:"monthly_usage_data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *ReadTensorboardUsageResponse) Reset() { + *x = ReadTensorboardUsageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReadTensorboardUsageResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReadTensorboardUsageResponse) ProtoMessage() {} + +func (x *ReadTensorboardUsageResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ReadTensorboardUsageResponse.ProtoReflect.Descriptor instead. +func (*ReadTensorboardUsageResponse) Descriptor() ([]byte, []int) { + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{3} +} + +func (x *ReadTensorboardUsageResponse) GetMonthlyUsageData() map[string]*ReadTensorboardUsageResponse_PerMonthUsageData { + if x != nil { + return x.MonthlyUsageData + } + return nil +} + +// Request message for +// [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards]. type ListTensorboardsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -165,17 +268,17 @@ type ListTensorboardsRequest struct { // Lists the Tensorboards that match the filter expression. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // The maximum number of Tensorboards to return. The service may return - // fewer than this value. If unspecified, at most 100 Tensorboards will be - // returned. The maximum value is 100; values above 100 will be coerced to + // fewer than this value. If unspecified, at most 100 Tensorboards are + // returned. The maximum value is 100; values above 100 are coerced to // 100. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] call. - // Provide this to retrieve the subsequent page. + // [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] must - // match the call that provided the page token. + // [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards] + // must match the call that provided the page token. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Field to use to sort the list. OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` @@ -186,7 +289,7 @@ type ListTensorboardsRequest struct { func (x *ListTensorboardsRequest) Reset() { *x = ListTensorboardsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[2] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -199,7 +302,7 @@ func (x *ListTensorboardsRequest) String() string { func (*ListTensorboardsRequest) ProtoMessage() {} func (x *ListTensorboardsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[2] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -212,7 +315,7 @@ func (x *ListTensorboardsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListTensorboardsRequest.ProtoReflect.Descriptor instead. func (*ListTensorboardsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{2} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{4} } func (x *ListTensorboardsRequest) GetParent() string { @@ -257,7 +360,8 @@ func (x *ListTensorboardsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards]. +// Response message for +// [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards]. type ListTensorboardsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -265,7 +369,8 @@ type ListTensorboardsResponse struct { // The Tensorboards mathching the request. Tensorboards []*Tensorboard `protobuf:"bytes,1,rep,name=tensorboards,proto3" json:"tensorboards,omitempty"` - // A token, which can be sent as [ListTensorboardsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.page_token] + // A token, which can be sent as + // [ListTensorboardsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.page_token] // to retrieve the next page. If this field is omitted, there are no // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` @@ -274,7 +379,7 @@ type ListTensorboardsResponse struct { func (x *ListTensorboardsResponse) Reset() { *x = ListTensorboardsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[3] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -287,7 +392,7 @@ func (x *ListTensorboardsResponse) String() string { func (*ListTensorboardsResponse) ProtoMessage() {} func (x *ListTensorboardsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[3] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -300,7 +405,7 @@ func (x *ListTensorboardsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListTensorboardsResponse.ProtoReflect.Descriptor instead. func (*ListTensorboardsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{3} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{5} } func (x *ListTensorboardsResponse) GetTensorboards() []*Tensorboard { @@ -317,7 +422,8 @@ func (x *ListTensorboardsResponse) GetNextPageToken() string { return "" } -// Request message for [TensorboardService.UpdateTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboard]. +// Request message for +// [TensorboardService.UpdateTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboard]. type UpdateTensorboardRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -326,8 +432,8 @@ type UpdateTensorboardRequest struct { // Required. Field mask is used to specify the fields to be overwritten in the // Tensorboard resource by the update. // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then all fields will be overwritten if new + // the full request. A field is overwritten if it's in the mask. If the + // user does not provide a mask then all fields are overwritten if new // values are specified. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The Tensorboard's `name` field is used to identify the @@ -339,7 +445,7 @@ type UpdateTensorboardRequest struct { func (x *UpdateTensorboardRequest) Reset() { *x = UpdateTensorboardRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[4] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -352,7 +458,7 @@ func (x *UpdateTensorboardRequest) String() string { func (*UpdateTensorboardRequest) ProtoMessage() {} func (x *UpdateTensorboardRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[4] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -365,7 +471,7 @@ func (x *UpdateTensorboardRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateTensorboardRequest.ProtoReflect.Descriptor instead. func (*UpdateTensorboardRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{4} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{6} } func (x *UpdateTensorboardRequest) GetUpdateMask() *fieldmaskpb.FieldMask { @@ -382,7 +488,8 @@ func (x *UpdateTensorboardRequest) GetTensorboard() *Tensorboard { return nil } -// Request message for [TensorboardService.DeleteTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboard]. +// Request message for +// [TensorboardService.DeleteTensorboard][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboard]. type DeleteTensorboardRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -397,7 +504,7 @@ type DeleteTensorboardRequest struct { func (x *DeleteTensorboardRequest) Reset() { *x = DeleteTensorboardRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[5] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -410,7 +517,7 @@ func (x *DeleteTensorboardRequest) String() string { func (*DeleteTensorboardRequest) ProtoMessage() {} func (x *DeleteTensorboardRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[5] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -423,7 +530,7 @@ func (x *DeleteTensorboardRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteTensorboardRequest.ProtoReflect.Descriptor instead. func (*DeleteTensorboardRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{5} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{7} } func (x *DeleteTensorboardRequest) GetName() string { @@ -433,20 +540,21 @@ func (x *DeleteTensorboardRequest) GetName() string { return "" } -// Request message for [TensorboardService.CreateTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardExperiment]. +// Request message for +// [TensorboardService.CreateTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardExperiment]. type CreateTensorboardExperimentRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Tensorboard to create the TensorboardExperiment - // in. Format: + // Required. The resource name of the Tensorboard to create the + // TensorboardExperiment in. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The TensorboardExperiment to create. TensorboardExperiment *TensorboardExperiment `protobuf:"bytes,2,opt,name=tensorboard_experiment,json=tensorboardExperiment,proto3" json:"tensorboard_experiment,omitempty"` - // Required. The ID to use for the Tensorboard experiment, which will become the final - // component of the Tensorboard experiment's resource name. + // Required. The ID to use for the Tensorboard experiment, which becomes the + // final component of the Tensorboard experiment's resource name. // // This value should be 1-128 characters, and valid characters // are /[a-z][0-9]-/. @@ -456,7 +564,7 @@ type CreateTensorboardExperimentRequest struct { func (x *CreateTensorboardExperimentRequest) Reset() { *x = CreateTensorboardExperimentRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[6] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -469,7 +577,7 @@ func (x *CreateTensorboardExperimentRequest) String() string { func (*CreateTensorboardExperimentRequest) ProtoMessage() {} func (x *CreateTensorboardExperimentRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[6] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -482,7 +590,7 @@ func (x *CreateTensorboardExperimentRequest) ProtoReflect() protoreflect.Message // Deprecated: Use CreateTensorboardExperimentRequest.ProtoReflect.Descriptor instead. func (*CreateTensorboardExperimentRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{6} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{8} } func (x *CreateTensorboardExperimentRequest) GetParent() string { @@ -506,7 +614,8 @@ func (x *CreateTensorboardExperimentRequest) GetTensorboardExperimentId() string return "" } -// Request message for [TensorboardService.GetTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardExperiment]. +// Request message for +// [TensorboardService.GetTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardExperiment]. type GetTensorboardExperimentRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -521,7 +630,7 @@ type GetTensorboardExperimentRequest struct { func (x *GetTensorboardExperimentRequest) Reset() { *x = GetTensorboardExperimentRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[7] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -534,7 +643,7 @@ func (x *GetTensorboardExperimentRequest) String() string { func (*GetTensorboardExperimentRequest) ProtoMessage() {} func (x *GetTensorboardExperimentRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[7] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -547,7 +656,7 @@ func (x *GetTensorboardExperimentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTensorboardExperimentRequest.ProtoReflect.Descriptor instead. func (*GetTensorboardExperimentRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{7} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{9} } func (x *GetTensorboardExperimentRequest) GetName() string { @@ -557,30 +666,31 @@ func (x *GetTensorboardExperimentRequest) GetName() string { return "" } -// Request message for [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments]. +// Request message for +// [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments]. type ListTensorboardExperimentsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Tensorboard to list TensorboardExperiments. - // Format: + // Required. The resource name of the Tensorboard to list + // TensorboardExperiments. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Lists the TensorboardExperiments that match the filter expression. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // The maximum number of TensorboardExperiments to return. The service may // return fewer than this value. If unspecified, at most 50 - // TensorboardExperiments will be returned. The maximum value is 1000; values - // above 1000 will be coerced to 1000. + // TensorboardExperiments are returned. The maximum value is 1000; values + // above 1000 are coerced to 1000. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] call. - // Provide this to retrieve the subsequent page. + // [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] must - // match the call that provided the page token. + // [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments] + // must match the call that provided the page token. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Field to use to sort the list. OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` @@ -591,7 +701,7 @@ type ListTensorboardExperimentsRequest struct { func (x *ListTensorboardExperimentsRequest) Reset() { *x = ListTensorboardExperimentsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[8] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -604,7 +714,7 @@ func (x *ListTensorboardExperimentsRequest) String() string { func (*ListTensorboardExperimentsRequest) ProtoMessage() {} func (x *ListTensorboardExperimentsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[8] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -617,7 +727,7 @@ func (x *ListTensorboardExperimentsRequest) ProtoReflect() protoreflect.Message // Deprecated: Use ListTensorboardExperimentsRequest.ProtoReflect.Descriptor instead. func (*ListTensorboardExperimentsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{8} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{10} } func (x *ListTensorboardExperimentsRequest) GetParent() string { @@ -662,7 +772,8 @@ func (x *ListTensorboardExperimentsRequest) GetReadMask() *fieldmaskpb.FieldMask return nil } -// Response message for [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments]. +// Response message for +// [TensorboardService.ListTensorboardExperiments][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments]. type ListTensorboardExperimentsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -671,15 +782,16 @@ type ListTensorboardExperimentsResponse struct { // The TensorboardExperiments mathching the request. TensorboardExperiments []*TensorboardExperiment `protobuf:"bytes,1,rep,name=tensorboard_experiments,json=tensorboardExperiments,proto3" json:"tensorboard_experiments,omitempty"` // A token, which can be sent as - // [ListTensorboardExperimentsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.page_token] to retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // [ListTensorboardExperimentsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } func (x *ListTensorboardExperimentsResponse) Reset() { *x = ListTensorboardExperimentsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[9] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -692,7 +804,7 @@ func (x *ListTensorboardExperimentsResponse) String() string { func (*ListTensorboardExperimentsResponse) ProtoMessage() {} func (x *ListTensorboardExperimentsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[9] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -705,7 +817,7 @@ func (x *ListTensorboardExperimentsResponse) ProtoReflect() protoreflect.Message // Deprecated: Use ListTensorboardExperimentsResponse.ProtoReflect.Descriptor instead. func (*ListTensorboardExperimentsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{9} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{11} } func (x *ListTensorboardExperimentsResponse) GetTensorboardExperiments() []*TensorboardExperiment { @@ -722,7 +834,8 @@ func (x *ListTensorboardExperimentsResponse) GetNextPageToken() string { return "" } -// Request message for [TensorboardService.UpdateTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardExperiment]. +// Request message for +// [TensorboardService.UpdateTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardExperiment]. type UpdateTensorboardExperimentRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -731,8 +844,8 @@ type UpdateTensorboardExperimentRequest struct { // Required. Field mask is used to specify the fields to be overwritten in the // TensorboardExperiment resource by the update. // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then all fields will be overwritten if new + // the full request. A field is overwritten if it's in the mask. If the + // user does not provide a mask then all fields are overwritten if new // values are specified. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The TensorboardExperiment's `name` field is used to identify the @@ -744,7 +857,7 @@ type UpdateTensorboardExperimentRequest struct { func (x *UpdateTensorboardExperimentRequest) Reset() { *x = UpdateTensorboardExperimentRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[10] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -757,7 +870,7 @@ func (x *UpdateTensorboardExperimentRequest) String() string { func (*UpdateTensorboardExperimentRequest) ProtoMessage() {} func (x *UpdateTensorboardExperimentRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[10] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -770,7 +883,7 @@ func (x *UpdateTensorboardExperimentRequest) ProtoReflect() protoreflect.Message // Deprecated: Use UpdateTensorboardExperimentRequest.ProtoReflect.Descriptor instead. func (*UpdateTensorboardExperimentRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{10} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{12} } func (x *UpdateTensorboardExperimentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { @@ -787,7 +900,8 @@ func (x *UpdateTensorboardExperimentRequest) GetTensorboardExperiment() *Tensorb return nil } -// Request message for [TensorboardService.DeleteTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardExperiment]. +// Request message for +// [TensorboardService.DeleteTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardExperiment]. type DeleteTensorboardExperimentRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -802,7 +916,7 @@ type DeleteTensorboardExperimentRequest struct { func (x *DeleteTensorboardExperimentRequest) Reset() { *x = DeleteTensorboardExperimentRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[11] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -815,7 +929,7 @@ func (x *DeleteTensorboardExperimentRequest) String() string { func (*DeleteTensorboardExperimentRequest) ProtoMessage() {} func (x *DeleteTensorboardExperimentRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[11] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -828,7 +942,7 @@ func (x *DeleteTensorboardExperimentRequest) ProtoReflect() protoreflect.Message // Deprecated: Use DeleteTensorboardExperimentRequest.ProtoReflect.Descriptor instead. func (*DeleteTensorboardExperimentRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{11} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{13} } func (x *DeleteTensorboardExperimentRequest) GetName() string { @@ -838,7 +952,8 @@ func (x *DeleteTensorboardExperimentRequest) GetName() string { return "" } -// Request message for [TensorboardService.BatchCreateTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardRuns]. +// Request message for +// [TensorboardService.BatchCreateTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardRuns]. type BatchCreateTensorboardRunsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -858,7 +973,7 @@ type BatchCreateTensorboardRunsRequest struct { func (x *BatchCreateTensorboardRunsRequest) Reset() { *x = BatchCreateTensorboardRunsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[12] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -871,7 +986,7 @@ func (x *BatchCreateTensorboardRunsRequest) String() string { func (*BatchCreateTensorboardRunsRequest) ProtoMessage() {} func (x *BatchCreateTensorboardRunsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[12] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -884,7 +999,7 @@ func (x *BatchCreateTensorboardRunsRequest) ProtoReflect() protoreflect.Message // Deprecated: Use BatchCreateTensorboardRunsRequest.ProtoReflect.Descriptor instead. func (*BatchCreateTensorboardRunsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{12} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{14} } func (x *BatchCreateTensorboardRunsRequest) GetParent() string { @@ -901,7 +1016,8 @@ func (x *BatchCreateTensorboardRunsRequest) GetRequests() []*CreateTensorboardRu return nil } -// Response message for [TensorboardService.BatchCreateTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardRuns]. +// Response message for +// [TensorboardService.BatchCreateTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardRuns]. type BatchCreateTensorboardRunsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -914,7 +1030,7 @@ type BatchCreateTensorboardRunsResponse struct { func (x *BatchCreateTensorboardRunsResponse) Reset() { *x = BatchCreateTensorboardRunsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[13] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -927,7 +1043,7 @@ func (x *BatchCreateTensorboardRunsResponse) String() string { func (*BatchCreateTensorboardRunsResponse) ProtoMessage() {} func (x *BatchCreateTensorboardRunsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[13] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -940,7 +1056,7 @@ func (x *BatchCreateTensorboardRunsResponse) ProtoReflect() protoreflect.Message // Deprecated: Use BatchCreateTensorboardRunsResponse.ProtoReflect.Descriptor instead. func (*BatchCreateTensorboardRunsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{13} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{15} } func (x *BatchCreateTensorboardRunsResponse) GetTensorboardRuns() []*TensorboardRun { @@ -950,19 +1066,20 @@ func (x *BatchCreateTensorboardRunsResponse) GetTensorboardRuns() []*Tensorboard return nil } -// Request message for [TensorboardService.CreateTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardRun]. +// Request message for +// [TensorboardService.CreateTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardRun]. type CreateTensorboardRunRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the TensorboardExperiment to create the TensorboardRun - // in. Format: + // Required. The resource name of the TensorboardExperiment to create the + // TensorboardRun in. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The TensorboardRun to create. TensorboardRun *TensorboardRun `protobuf:"bytes,2,opt,name=tensorboard_run,json=tensorboardRun,proto3" json:"tensorboard_run,omitempty"` - // Required. The ID to use for the Tensorboard run, which will become the final + // Required. The ID to use for the Tensorboard run, which becomes the final // component of the Tensorboard run's resource name. // // This value should be 1-128 characters, and valid characters @@ -973,7 +1090,7 @@ type CreateTensorboardRunRequest struct { func (x *CreateTensorboardRunRequest) Reset() { *x = CreateTensorboardRunRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[14] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -986,7 +1103,7 @@ func (x *CreateTensorboardRunRequest) String() string { func (*CreateTensorboardRunRequest) ProtoMessage() {} func (x *CreateTensorboardRunRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[14] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -999,7 +1116,7 @@ func (x *CreateTensorboardRunRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateTensorboardRunRequest.ProtoReflect.Descriptor instead. func (*CreateTensorboardRunRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{14} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{16} } func (x *CreateTensorboardRunRequest) GetParent() string { @@ -1023,7 +1140,8 @@ func (x *CreateTensorboardRunRequest) GetTensorboardRunId() string { return "" } -// Request message for [TensorboardService.GetTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardRun]. +// Request message for +// [TensorboardService.GetTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardRun]. type GetTensorboardRunRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1038,7 +1156,7 @@ type GetTensorboardRunRequest struct { func (x *GetTensorboardRunRequest) Reset() { *x = GetTensorboardRunRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[15] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1051,7 +1169,7 @@ func (x *GetTensorboardRunRequest) String() string { func (*GetTensorboardRunRequest) ProtoMessage() {} func (x *GetTensorboardRunRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[15] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1064,7 +1182,7 @@ func (x *GetTensorboardRunRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTensorboardRunRequest.ProtoReflect.Descriptor instead. func (*GetTensorboardRunRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{15} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{17} } func (x *GetTensorboardRunRequest) GetName() string { @@ -1074,7 +1192,8 @@ func (x *GetTensorboardRunRequest) GetName() string { return "" } -// Request message for [TensorboardService.ReadTensorboardBlobData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData]. +// Request message for +// [TensorboardService.ReadTensorboardBlobData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData]. type ReadTensorboardBlobDataRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1091,7 +1210,7 @@ type ReadTensorboardBlobDataRequest struct { func (x *ReadTensorboardBlobDataRequest) Reset() { *x = ReadTensorboardBlobDataRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[16] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1104,7 +1223,7 @@ func (x *ReadTensorboardBlobDataRequest) String() string { func (*ReadTensorboardBlobDataRequest) ProtoMessage() {} func (x *ReadTensorboardBlobDataRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[16] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1117,7 +1236,7 @@ func (x *ReadTensorboardBlobDataRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ReadTensorboardBlobDataRequest.ProtoReflect.Descriptor instead. func (*ReadTensorboardBlobDataRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{16} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{18} } func (x *ReadTensorboardBlobDataRequest) GetTimeSeries() string { @@ -1134,7 +1253,8 @@ func (x *ReadTensorboardBlobDataRequest) GetBlobIds() []string { return nil } -// Response message for [TensorboardService.ReadTensorboardBlobData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData]. +// Response message for +// [TensorboardService.ReadTensorboardBlobData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData]. type ReadTensorboardBlobDataResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1147,7 +1267,7 @@ type ReadTensorboardBlobDataResponse struct { func (x *ReadTensorboardBlobDataResponse) Reset() { *x = ReadTensorboardBlobDataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[17] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1160,7 +1280,7 @@ func (x *ReadTensorboardBlobDataResponse) String() string { func (*ReadTensorboardBlobDataResponse) ProtoMessage() {} func (x *ReadTensorboardBlobDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[17] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1173,7 +1293,7 @@ func (x *ReadTensorboardBlobDataResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ReadTensorboardBlobDataResponse.ProtoReflect.Descriptor instead. func (*ReadTensorboardBlobDataResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{17} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{19} } func (x *ReadTensorboardBlobDataResponse) GetBlobs() []*TensorboardBlob { @@ -1183,30 +1303,31 @@ func (x *ReadTensorboardBlobDataResponse) GetBlobs() []*TensorboardBlob { return nil } -// Request message for [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns]. +// Request message for +// [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns]. type ListTensorboardRunsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the TensorboardExperiment to list TensorboardRuns. - // Format: + // Required. The resource name of the TensorboardExperiment to list + // TensorboardRuns. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Lists the TensorboardRuns that match the filter expression. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // The maximum number of TensorboardRuns to return. The service may return - // fewer than this value. If unspecified, at most 50 TensorboardRuns will be - // returned. The maximum value is 1000; values above 1000 will be coerced to + // fewer than this value. If unspecified, at most 50 TensorboardRuns are + // returned. The maximum value is 1000; values above 1000 are coerced to // 1000. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] call. - // Provide this to retrieve the subsequent page. + // [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] must - // match the call that provided the page token. + // [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns] + // must match the call that provided the page token. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Field to use to sort the list. OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` @@ -1217,7 +1338,7 @@ type ListTensorboardRunsRequest struct { func (x *ListTensorboardRunsRequest) Reset() { *x = ListTensorboardRunsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[18] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1230,7 +1351,7 @@ func (x *ListTensorboardRunsRequest) String() string { func (*ListTensorboardRunsRequest) ProtoMessage() {} func (x *ListTensorboardRunsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[18] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1243,7 +1364,7 @@ func (x *ListTensorboardRunsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListTensorboardRunsRequest.ProtoReflect.Descriptor instead. func (*ListTensorboardRunsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{18} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{20} } func (x *ListTensorboardRunsRequest) GetParent() string { @@ -1288,7 +1409,8 @@ func (x *ListTensorboardRunsRequest) GetReadMask() *fieldmaskpb.FieldMask { return nil } -// Response message for [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns]. +// Response message for +// [TensorboardService.ListTensorboardRuns][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns]. type ListTensorboardRunsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1296,16 +1418,17 @@ type ListTensorboardRunsResponse struct { // The TensorboardRuns mathching the request. TensorboardRuns []*TensorboardRun `protobuf:"bytes,1,rep,name=tensorboard_runs,json=tensorboardRuns,proto3" json:"tensorboard_runs,omitempty"` - // A token, which can be sent as [ListTensorboardRunsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.page_token] to - // retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // A token, which can be sent as + // [ListTensorboardRunsRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } func (x *ListTensorboardRunsResponse) Reset() { *x = ListTensorboardRunsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[19] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1318,7 +1441,7 @@ func (x *ListTensorboardRunsResponse) String() string { func (*ListTensorboardRunsResponse) ProtoMessage() {} func (x *ListTensorboardRunsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[19] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1331,7 +1454,7 @@ func (x *ListTensorboardRunsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListTensorboardRunsResponse.ProtoReflect.Descriptor instead. func (*ListTensorboardRunsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{19} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{21} } func (x *ListTensorboardRunsResponse) GetTensorboardRuns() []*TensorboardRun { @@ -1348,7 +1471,8 @@ func (x *ListTensorboardRunsResponse) GetNextPageToken() string { return "" } -// Request message for [TensorboardService.UpdateTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardRun]. +// Request message for +// [TensorboardService.UpdateTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardRun]. type UpdateTensorboardRunRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1357,12 +1481,12 @@ type UpdateTensorboardRunRequest struct { // Required. Field mask is used to specify the fields to be overwritten in the // TensorboardRun resource by the update. // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then all fields will be overwritten if new + // the full request. A field is overwritten if it's in the mask. If the + // user does not provide a mask then all fields are overwritten if new // values are specified. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - // Required. The TensorboardRun's `name` field is used to identify the TensorboardRun to - // be updated. Format: + // Required. The TensorboardRun's `name` field is used to identify the + // TensorboardRun to be updated. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` TensorboardRun *TensorboardRun `protobuf:"bytes,2,opt,name=tensorboard_run,json=tensorboardRun,proto3" json:"tensorboard_run,omitempty"` } @@ -1370,7 +1494,7 @@ type UpdateTensorboardRunRequest struct { func (x *UpdateTensorboardRunRequest) Reset() { *x = UpdateTensorboardRunRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[20] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1383,7 +1507,7 @@ func (x *UpdateTensorboardRunRequest) String() string { func (*UpdateTensorboardRunRequest) ProtoMessage() {} func (x *UpdateTensorboardRunRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[20] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1396,7 +1520,7 @@ func (x *UpdateTensorboardRunRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateTensorboardRunRequest.ProtoReflect.Descriptor instead. func (*UpdateTensorboardRunRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{20} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{22} } func (x *UpdateTensorboardRunRequest) GetUpdateMask() *fieldmaskpb.FieldMask { @@ -1413,7 +1537,8 @@ func (x *UpdateTensorboardRunRequest) GetTensorboardRun() *TensorboardRun { return nil } -// Request message for [TensorboardService.DeleteTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardRun]. +// Request message for +// [TensorboardService.DeleteTensorboardRun][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardRun]. type DeleteTensorboardRunRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1428,7 +1553,7 @@ type DeleteTensorboardRunRequest struct { func (x *DeleteTensorboardRunRequest) Reset() { *x = DeleteTensorboardRunRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[21] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1441,7 +1566,7 @@ func (x *DeleteTensorboardRunRequest) String() string { func (*DeleteTensorboardRunRequest) ProtoMessage() {} func (x *DeleteTensorboardRunRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[21] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1454,7 +1579,7 @@ func (x *DeleteTensorboardRunRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteTensorboardRunRequest.ProtoReflect.Descriptor instead. func (*DeleteTensorboardRunRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{21} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{23} } func (x *DeleteTensorboardRunRequest) GetName() string { @@ -1464,7 +1589,8 @@ func (x *DeleteTensorboardRunRequest) GetName() string { return "" } -// Request message for [TensorboardService.BatchCreateTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardTimeSeries]. +// Request message for +// [TensorboardService.BatchCreateTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardTimeSeries]. type BatchCreateTensorboardTimeSeriesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1478,15 +1604,15 @@ type BatchCreateTensorboardTimeSeriesRequest struct { // CreateTensorboardTimeSeriesRequest messages must be sub resources of this // TensorboardExperiment. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The request message specifying the TensorboardTimeSeries to create. - // A maximum of 1000 TensorboardTimeSeries can be created in a batch. + // Required. The request message specifying the TensorboardTimeSeries to + // create. A maximum of 1000 TensorboardTimeSeries can be created in a batch. Requests []*CreateTensorboardTimeSeriesRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"` } func (x *BatchCreateTensorboardTimeSeriesRequest) Reset() { *x = BatchCreateTensorboardTimeSeriesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[22] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1499,7 +1625,7 @@ func (x *BatchCreateTensorboardTimeSeriesRequest) String() string { func (*BatchCreateTensorboardTimeSeriesRequest) ProtoMessage() {} func (x *BatchCreateTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[22] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1512,7 +1638,7 @@ func (x *BatchCreateTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Me // Deprecated: Use BatchCreateTensorboardTimeSeriesRequest.ProtoReflect.Descriptor instead. func (*BatchCreateTensorboardTimeSeriesRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{22} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{24} } func (x *BatchCreateTensorboardTimeSeriesRequest) GetParent() string { @@ -1529,7 +1655,8 @@ func (x *BatchCreateTensorboardTimeSeriesRequest) GetRequests() []*CreateTensorb return nil } -// Response message for [TensorboardService.BatchCreateTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardTimeSeries]. +// Response message for +// [TensorboardService.BatchCreateTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardTimeSeries]. type BatchCreateTensorboardTimeSeriesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1542,7 +1669,7 @@ type BatchCreateTensorboardTimeSeriesResponse struct { func (x *BatchCreateTensorboardTimeSeriesResponse) Reset() { *x = BatchCreateTensorboardTimeSeriesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[23] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1555,7 +1682,7 @@ func (x *BatchCreateTensorboardTimeSeriesResponse) String() string { func (*BatchCreateTensorboardTimeSeriesResponse) ProtoMessage() {} func (x *BatchCreateTensorboardTimeSeriesResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[23] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1568,7 +1695,7 @@ func (x *BatchCreateTensorboardTimeSeriesResponse) ProtoReflect() protoreflect.M // Deprecated: Use BatchCreateTensorboardTimeSeriesResponse.ProtoReflect.Descriptor instead. func (*BatchCreateTensorboardTimeSeriesResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{23} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{25} } func (x *BatchCreateTensorboardTimeSeriesResponse) GetTensorboardTimeSeries() []*TensorboardTimeSeries { @@ -1578,7 +1705,8 @@ func (x *BatchCreateTensorboardTimeSeriesResponse) GetTensorboardTimeSeries() [] return nil } -// Request message for [TensorboardService.CreateTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardTimeSeries]. +// Request message for +// [TensorboardService.CreateTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardTimeSeries]. type CreateTensorboardTimeSeriesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1589,10 +1717,10 @@ type CreateTensorboardTimeSeriesRequest struct { // Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The user specified unique ID to use for the TensorboardTimeSeries, which - // will become the final component of the TensorboardTimeSeries's resource - // name. - // This value should match "[a-z0-9][a-z0-9-]{0, 127}" + // Optional. The user specified unique ID to use for the + // TensorboardTimeSeries, which becomes the final component of the + // TensorboardTimeSeries's resource name. This value should match + // "[a-z0-9][a-z0-9-]{0, 127}" TensorboardTimeSeriesId string `protobuf:"bytes,3,opt,name=tensorboard_time_series_id,json=tensorboardTimeSeriesId,proto3" json:"tensorboard_time_series_id,omitempty"` // Required. The TensorboardTimeSeries to create. TensorboardTimeSeries *TensorboardTimeSeries `protobuf:"bytes,2,opt,name=tensorboard_time_series,json=tensorboardTimeSeries,proto3" json:"tensorboard_time_series,omitempty"` @@ -1601,7 +1729,7 @@ type CreateTensorboardTimeSeriesRequest struct { func (x *CreateTensorboardTimeSeriesRequest) Reset() { *x = CreateTensorboardTimeSeriesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[24] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1614,7 +1742,7 @@ func (x *CreateTensorboardTimeSeriesRequest) String() string { func (*CreateTensorboardTimeSeriesRequest) ProtoMessage() {} func (x *CreateTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[24] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1627,7 +1755,7 @@ func (x *CreateTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message // Deprecated: Use CreateTensorboardTimeSeriesRequest.ProtoReflect.Descriptor instead. func (*CreateTensorboardTimeSeriesRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{24} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{26} } func (x *CreateTensorboardTimeSeriesRequest) GetParent() string { @@ -1651,7 +1779,8 @@ func (x *CreateTensorboardTimeSeriesRequest) GetTensorboardTimeSeries() *Tensorb return nil } -// Request message for [TensorboardService.GetTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardTimeSeries]. +// Request message for +// [TensorboardService.GetTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardTimeSeries]. type GetTensorboardTimeSeriesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1666,7 +1795,7 @@ type GetTensorboardTimeSeriesRequest struct { func (x *GetTensorboardTimeSeriesRequest) Reset() { *x = GetTensorboardTimeSeriesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[25] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1679,7 +1808,7 @@ func (x *GetTensorboardTimeSeriesRequest) String() string { func (*GetTensorboardTimeSeriesRequest) ProtoMessage() {} func (x *GetTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[25] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1692,7 +1821,7 @@ func (x *GetTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTensorboardTimeSeriesRequest.ProtoReflect.Descriptor instead. func (*GetTensorboardTimeSeriesRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{25} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{27} } func (x *GetTensorboardTimeSeriesRequest) GetName() string { @@ -1702,30 +1831,31 @@ func (x *GetTensorboardTimeSeriesRequest) GetName() string { return "" } -// Request message for [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries]. +// Request message for +// [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries]. type ListTensorboardTimeSeriesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the TensorboardRun to list TensorboardTimeSeries. - // Format: + // Required. The resource name of the TensorboardRun to list + // TensorboardTimeSeries. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Lists the TensorboardTimeSeries that match the filter expression. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // The maximum number of TensorboardTimeSeries to return. The service may // return fewer than this value. If unspecified, at most 50 - // TensorboardTimeSeries will be returned. The maximum value is 1000; values - // above 1000 will be coerced to 1000. + // TensorboardTimeSeries are returned. The maximum value is 1000; values + // above 1000 are coerced to 1000. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous - // [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] call. - // Provide this to retrieve the subsequent page. + // [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to - // [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] must - // match the call that provided the page token. + // [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries] + // must match the call that provided the page token. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Field to use to sort the list. OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` @@ -1736,7 +1866,7 @@ type ListTensorboardTimeSeriesRequest struct { func (x *ListTensorboardTimeSeriesRequest) Reset() { *x = ListTensorboardTimeSeriesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[26] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1749,7 +1879,7 @@ func (x *ListTensorboardTimeSeriesRequest) String() string { func (*ListTensorboardTimeSeriesRequest) ProtoMessage() {} func (x *ListTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[26] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1762,7 +1892,7 @@ func (x *ListTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListTensorboardTimeSeriesRequest.ProtoReflect.Descriptor instead. func (*ListTensorboardTimeSeriesRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{26} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{28} } func (x *ListTensorboardTimeSeriesRequest) GetParent() string { @@ -1807,7 +1937,8 @@ func (x *ListTensorboardTimeSeriesRequest) GetReadMask() *fieldmaskpb.FieldMask return nil } -// Response message for [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries]. +// Response message for +// [TensorboardService.ListTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries]. type ListTensorboardTimeSeriesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1816,15 +1947,16 @@ type ListTensorboardTimeSeriesResponse struct { // The TensorboardTimeSeries mathching the request. TensorboardTimeSeries []*TensorboardTimeSeries `protobuf:"bytes,1,rep,name=tensorboard_time_series,json=tensorboardTimeSeries,proto3" json:"tensorboard_time_series,omitempty"` // A token, which can be sent as - // [ListTensorboardTimeSeriesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.page_token] to retrieve the next page. - // If this field is omitted, there are no subsequent pages. + // [ListTensorboardTimeSeriesRequest.page_token][google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } func (x *ListTensorboardTimeSeriesResponse) Reset() { *x = ListTensorboardTimeSeriesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[27] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1837,7 +1969,7 @@ func (x *ListTensorboardTimeSeriesResponse) String() string { func (*ListTensorboardTimeSeriesResponse) ProtoMessage() {} func (x *ListTensorboardTimeSeriesResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[27] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1850,7 +1982,7 @@ func (x *ListTensorboardTimeSeriesResponse) ProtoReflect() protoreflect.Message // Deprecated: Use ListTensorboardTimeSeriesResponse.ProtoReflect.Descriptor instead. func (*ListTensorboardTimeSeriesResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{27} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{29} } func (x *ListTensorboardTimeSeriesResponse) GetTensorboardTimeSeries() []*TensorboardTimeSeries { @@ -1867,7 +1999,8 @@ func (x *ListTensorboardTimeSeriesResponse) GetNextPageToken() string { return "" } -// Request message for [TensorboardService.UpdateTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardTimeSeries]. +// Request message for +// [TensorboardService.UpdateTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardTimeSeries]. type UpdateTensorboardTimeSeriesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1876,8 +2009,8 @@ type UpdateTensorboardTimeSeriesRequest struct { // Required. Field mask is used to specify the fields to be overwritten in the // TensorboardTimeSeries resource by the update. // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then all fields will be overwritten if new + // the full request. A field is overwritten if it's in the mask. If the + // user does not provide a mask then all fields are overwritten if new // values are specified. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. The TensorboardTimeSeries' `name` field is used to identify the @@ -1890,7 +2023,7 @@ type UpdateTensorboardTimeSeriesRequest struct { func (x *UpdateTensorboardTimeSeriesRequest) Reset() { *x = UpdateTensorboardTimeSeriesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[28] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1903,7 +2036,7 @@ func (x *UpdateTensorboardTimeSeriesRequest) String() string { func (*UpdateTensorboardTimeSeriesRequest) ProtoMessage() {} func (x *UpdateTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[28] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1916,7 +2049,7 @@ func (x *UpdateTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message // Deprecated: Use UpdateTensorboardTimeSeriesRequest.ProtoReflect.Descriptor instead. func (*UpdateTensorboardTimeSeriesRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{28} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{30} } func (x *UpdateTensorboardTimeSeriesRequest) GetUpdateMask() *fieldmaskpb.FieldMask { @@ -1933,7 +2066,8 @@ func (x *UpdateTensorboardTimeSeriesRequest) GetTensorboardTimeSeries() *Tensorb return nil } -// Request message for [TensorboardService.DeleteTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardTimeSeries]. +// Request message for +// [TensorboardService.DeleteTensorboardTimeSeries][google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardTimeSeries]. type DeleteTensorboardTimeSeriesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1948,7 +2082,7 @@ type DeleteTensorboardTimeSeriesRequest struct { func (x *DeleteTensorboardTimeSeriesRequest) Reset() { *x = DeleteTensorboardTimeSeriesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[29] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1961,7 +2095,7 @@ func (x *DeleteTensorboardTimeSeriesRequest) String() string { func (*DeleteTensorboardTimeSeriesRequest) ProtoMessage() {} func (x *DeleteTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[29] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1974,7 +2108,7 @@ func (x *DeleteTensorboardTimeSeriesRequest) ProtoReflect() protoreflect.Message // Deprecated: Use DeleteTensorboardTimeSeriesRequest.ProtoReflect.Descriptor instead. func (*DeleteTensorboardTimeSeriesRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{29} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{31} } func (x *DeleteTensorboardTimeSeriesRequest) GetName() string { @@ -1991,13 +2125,15 @@ type BatchReadTensorboardTimeSeriesDataRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the Tensorboard containing TensorboardTimeSeries to - // read data from. Format: + // Required. The resource name of the Tensorboard containing + // TensorboardTimeSeries to read data from. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. - // The TensorboardTimeSeries referenced by [time_series][google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest.time_series] must be sub - // resources of this Tensorboard. + // The TensorboardTimeSeries referenced by + // [time_series][google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest.time_series] + // must be sub resources of this Tensorboard. Tensorboard string `protobuf:"bytes,1,opt,name=tensorboard,proto3" json:"tensorboard,omitempty"` - // Required. The resource names of the TensorboardTimeSeries to read data from. Format: + // Required. The resource names of the TensorboardTimeSeries to read data + // from. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` TimeSeries []string `protobuf:"bytes,2,rep,name=time_series,json=timeSeries,proto3" json:"time_series,omitempty"` } @@ -2005,7 +2141,7 @@ type BatchReadTensorboardTimeSeriesDataRequest struct { func (x *BatchReadTensorboardTimeSeriesDataRequest) Reset() { *x = BatchReadTensorboardTimeSeriesDataRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[30] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2018,7 +2154,7 @@ func (x *BatchReadTensorboardTimeSeriesDataRequest) String() string { func (*BatchReadTensorboardTimeSeriesDataRequest) ProtoMessage() {} func (x *BatchReadTensorboardTimeSeriesDataRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[30] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2031,7 +2167,7 @@ func (x *BatchReadTensorboardTimeSeriesDataRequest) ProtoReflect() protoreflect. // Deprecated: Use BatchReadTensorboardTimeSeriesDataRequest.ProtoReflect.Descriptor instead. func (*BatchReadTensorboardTimeSeriesDataRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{30} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{32} } func (x *BatchReadTensorboardTimeSeriesDataRequest) GetTensorboard() string { @@ -2062,7 +2198,7 @@ type BatchReadTensorboardTimeSeriesDataResponse struct { func (x *BatchReadTensorboardTimeSeriesDataResponse) Reset() { *x = BatchReadTensorboardTimeSeriesDataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[31] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2075,7 +2211,7 @@ func (x *BatchReadTensorboardTimeSeriesDataResponse) String() string { func (*BatchReadTensorboardTimeSeriesDataResponse) ProtoMessage() {} func (x *BatchReadTensorboardTimeSeriesDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[31] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2088,7 +2224,7 @@ func (x *BatchReadTensorboardTimeSeriesDataResponse) ProtoReflect() protoreflect // Deprecated: Use BatchReadTensorboardTimeSeriesDataResponse.ProtoReflect.Descriptor instead. func (*BatchReadTensorboardTimeSeriesDataResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{31} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{33} } func (x *BatchReadTensorboardTimeSeriesDataResponse) GetTimeSeriesData() []*TimeSeriesData { @@ -2098,7 +2234,8 @@ func (x *BatchReadTensorboardTimeSeriesDataResponse) GetTimeSeriesData() []*Time return nil } -// Request message for [TensorboardService.ReadTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardTimeSeriesData]. +// Request message for +// [TensorboardService.ReadTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardTimeSeriesData]. type ReadTensorboardTimeSeriesDataRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2120,7 +2257,7 @@ type ReadTensorboardTimeSeriesDataRequest struct { func (x *ReadTensorboardTimeSeriesDataRequest) Reset() { *x = ReadTensorboardTimeSeriesDataRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[32] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2133,7 +2270,7 @@ func (x *ReadTensorboardTimeSeriesDataRequest) String() string { func (*ReadTensorboardTimeSeriesDataRequest) ProtoMessage() {} func (x *ReadTensorboardTimeSeriesDataRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[32] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2146,7 +2283,7 @@ func (x *ReadTensorboardTimeSeriesDataRequest) ProtoReflect() protoreflect.Messa // Deprecated: Use ReadTensorboardTimeSeriesDataRequest.ProtoReflect.Descriptor instead. func (*ReadTensorboardTimeSeriesDataRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{32} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{34} } func (x *ReadTensorboardTimeSeriesDataRequest) GetTensorboardTimeSeries() string { @@ -2170,7 +2307,8 @@ func (x *ReadTensorboardTimeSeriesDataRequest) GetFilter() string { return "" } -// Response message for [TensorboardService.ReadTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardTimeSeriesData]. +// Response message for +// [TensorboardService.ReadTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardTimeSeriesData]. type ReadTensorboardTimeSeriesDataResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2183,7 +2321,7 @@ type ReadTensorboardTimeSeriesDataResponse struct { func (x *ReadTensorboardTimeSeriesDataResponse) Reset() { *x = ReadTensorboardTimeSeriesDataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[33] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2196,7 +2334,7 @@ func (x *ReadTensorboardTimeSeriesDataResponse) String() string { func (*ReadTensorboardTimeSeriesDataResponse) ProtoMessage() {} func (x *ReadTensorboardTimeSeriesDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[33] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2209,7 +2347,7 @@ func (x *ReadTensorboardTimeSeriesDataResponse) ProtoReflect() protoreflect.Mess // Deprecated: Use ReadTensorboardTimeSeriesDataResponse.ProtoReflect.Descriptor instead. func (*ReadTensorboardTimeSeriesDataResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{33} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{35} } func (x *ReadTensorboardTimeSeriesDataResponse) GetTimeSeriesData() *TimeSeriesData { @@ -2219,7 +2357,8 @@ func (x *ReadTensorboardTimeSeriesDataResponse) GetTimeSeriesData() *TimeSeriesD return nil } -// Request message for [TensorboardService.WriteTensorboardExperimentData][google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardExperimentData]. +// Request message for +// [TensorboardService.WriteTensorboardExperimentData][google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardExperimentData]. type WriteTensorboardExperimentDataRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2236,7 +2375,7 @@ type WriteTensorboardExperimentDataRequest struct { func (x *WriteTensorboardExperimentDataRequest) Reset() { *x = WriteTensorboardExperimentDataRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[34] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2249,7 +2388,7 @@ func (x *WriteTensorboardExperimentDataRequest) String() string { func (*WriteTensorboardExperimentDataRequest) ProtoMessage() {} func (x *WriteTensorboardExperimentDataRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[34] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2262,7 +2401,7 @@ func (x *WriteTensorboardExperimentDataRequest) ProtoReflect() protoreflect.Mess // Deprecated: Use WriteTensorboardExperimentDataRequest.ProtoReflect.Descriptor instead. func (*WriteTensorboardExperimentDataRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{34} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{36} } func (x *WriteTensorboardExperimentDataRequest) GetTensorboardExperiment() string { @@ -2279,7 +2418,8 @@ func (x *WriteTensorboardExperimentDataRequest) GetWriteRunDataRequests() []*Wri return nil } -// Response message for [TensorboardService.WriteTensorboardExperimentData][google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardExperimentData]. +// Response message for +// [TensorboardService.WriteTensorboardExperimentData][google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardExperimentData]. type WriteTensorboardExperimentDataResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2289,7 +2429,7 @@ type WriteTensorboardExperimentDataResponse struct { func (x *WriteTensorboardExperimentDataResponse) Reset() { *x = WriteTensorboardExperimentDataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[35] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2302,7 +2442,7 @@ func (x *WriteTensorboardExperimentDataResponse) String() string { func (*WriteTensorboardExperimentDataResponse) ProtoMessage() {} func (x *WriteTensorboardExperimentDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[35] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2315,10 +2455,11 @@ func (x *WriteTensorboardExperimentDataResponse) ProtoReflect() protoreflect.Mes // Deprecated: Use WriteTensorboardExperimentDataResponse.ProtoReflect.Descriptor instead. func (*WriteTensorboardExperimentDataResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{35} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{37} } -// Request message for [TensorboardService.WriteTensorboardRunData][google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardRunData]. +// Request message for +// [TensorboardService.WriteTensorboardRunData][google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardRunData]. type WriteTensorboardRunDataRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2339,7 +2480,7 @@ type WriteTensorboardRunDataRequest struct { func (x *WriteTensorboardRunDataRequest) Reset() { *x = WriteTensorboardRunDataRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[36] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2352,7 +2493,7 @@ func (x *WriteTensorboardRunDataRequest) String() string { func (*WriteTensorboardRunDataRequest) ProtoMessage() {} func (x *WriteTensorboardRunDataRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[36] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2365,7 +2506,7 @@ func (x *WriteTensorboardRunDataRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WriteTensorboardRunDataRequest.ProtoReflect.Descriptor instead. func (*WriteTensorboardRunDataRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{36} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{38} } func (x *WriteTensorboardRunDataRequest) GetTensorboardRun() string { @@ -2382,7 +2523,8 @@ func (x *WriteTensorboardRunDataRequest) GetTimeSeriesData() []*TimeSeriesData { return nil } -// Response message for [TensorboardService.WriteTensorboardRunData][google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardRunData]. +// Response message for +// [TensorboardService.WriteTensorboardRunData][google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardRunData]. type WriteTensorboardRunDataResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2392,7 +2534,7 @@ type WriteTensorboardRunDataResponse struct { func (x *WriteTensorboardRunDataResponse) Reset() { *x = WriteTensorboardRunDataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[37] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2405,7 +2547,7 @@ func (x *WriteTensorboardRunDataResponse) String() string { func (*WriteTensorboardRunDataResponse) ProtoMessage() {} func (x *WriteTensorboardRunDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[37] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2418,24 +2560,25 @@ func (x *WriteTensorboardRunDataResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WriteTensorboardRunDataResponse.ProtoReflect.Descriptor instead. func (*WriteTensorboardRunDataResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{37} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{39} } -// Request message for [TensorboardService.ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData]. +// Request message for +// [TensorboardService.ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData]. type ExportTensorboardTimeSeriesDataRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The resource name of the TensorboardTimeSeries to export data from. - // Format: + // Required. The resource name of the TensorboardTimeSeries to export data + // from. Format: // `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` TensorboardTimeSeries string `protobuf:"bytes,1,opt,name=tensorboard_time_series,json=tensorboardTimeSeries,proto3" json:"tensorboard_time_series,omitempty"` // Exports the TensorboardTimeSeries' data that match the filter expression. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // The maximum number of data points to return per page. - // The default page_size will be 1000. Values must be between 1 and 10000. - // Values above 10000 will be coerced to 10000. + // The default page_size is 1000. Values must be between 1 and 10000. + // Values above 10000 are coerced to 10000. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous // [TensorboardService.ExportTensorboardTimeSeries][] call. @@ -2446,7 +2589,7 @@ type ExportTensorboardTimeSeriesDataRequest struct { // match the call that provided the page token. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Field to use to sort the TensorboardTimeSeries' data. - // By default, TensorboardTimeSeries' data will be returned in a pseudo random + // By default, TensorboardTimeSeries' data is returned in a pseudo random // order. OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` } @@ -2454,7 +2597,7 @@ type ExportTensorboardTimeSeriesDataRequest struct { func (x *ExportTensorboardTimeSeriesDataRequest) Reset() { *x = ExportTensorboardTimeSeriesDataRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[38] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2467,7 +2610,7 @@ func (x *ExportTensorboardTimeSeriesDataRequest) String() string { func (*ExportTensorboardTimeSeriesDataRequest) ProtoMessage() {} func (x *ExportTensorboardTimeSeriesDataRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[38] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2480,7 +2623,7 @@ func (x *ExportTensorboardTimeSeriesDataRequest) ProtoReflect() protoreflect.Mes // Deprecated: Use ExportTensorboardTimeSeriesDataRequest.ProtoReflect.Descriptor instead. func (*ExportTensorboardTimeSeriesDataRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{38} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{40} } func (x *ExportTensorboardTimeSeriesDataRequest) GetTensorboardTimeSeries() string { @@ -2518,7 +2661,8 @@ func (x *ExportTensorboardTimeSeriesDataRequest) GetOrderBy() string { return "" } -// Response message for [TensorboardService.ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData]. +// Response message for +// [TensorboardService.ExportTensorboardTimeSeriesData][google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData]. type ExportTensorboardTimeSeriesDataResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2535,7 +2679,7 @@ type ExportTensorboardTimeSeriesDataResponse struct { func (x *ExportTensorboardTimeSeriesDataResponse) Reset() { *x = ExportTensorboardTimeSeriesDataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[39] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2548,7 +2692,7 @@ func (x *ExportTensorboardTimeSeriesDataResponse) String() string { func (*ExportTensorboardTimeSeriesDataResponse) ProtoMessage() {} func (x *ExportTensorboardTimeSeriesDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[39] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2561,7 +2705,7 @@ func (x *ExportTensorboardTimeSeriesDataResponse) ProtoReflect() protoreflect.Me // Deprecated: Use ExportTensorboardTimeSeriesDataResponse.ProtoReflect.Descriptor instead. func (*ExportTensorboardTimeSeriesDataResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{39} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{41} } func (x *ExportTensorboardTimeSeriesDataResponse) GetTimeSeriesDataPoints() []*TimeSeriesDataPoint { @@ -2591,7 +2735,7 @@ type CreateTensorboardOperationMetadata struct { func (x *CreateTensorboardOperationMetadata) Reset() { *x = CreateTensorboardOperationMetadata{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[40] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2604,7 +2748,7 @@ func (x *CreateTensorboardOperationMetadata) String() string { func (*CreateTensorboardOperationMetadata) ProtoMessage() {} func (x *CreateTensorboardOperationMetadata) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[40] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2617,7 +2761,7 @@ func (x *CreateTensorboardOperationMetadata) ProtoReflect() protoreflect.Message // Deprecated: Use CreateTensorboardOperationMetadata.ProtoReflect.Descriptor instead. func (*CreateTensorboardOperationMetadata) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{40} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{42} } func (x *CreateTensorboardOperationMetadata) GetGenericMetadata() *GenericOperationMetadata { @@ -2640,7 +2784,7 @@ type UpdateTensorboardOperationMetadata struct { func (x *UpdateTensorboardOperationMetadata) Reset() { *x = UpdateTensorboardOperationMetadata{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[41] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2653,7 +2797,7 @@ func (x *UpdateTensorboardOperationMetadata) String() string { func (*UpdateTensorboardOperationMetadata) ProtoMessage() {} func (x *UpdateTensorboardOperationMetadata) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[41] + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2666,7 +2810,7 @@ func (x *UpdateTensorboardOperationMetadata) ProtoReflect() protoreflect.Message // Deprecated: Use UpdateTensorboardOperationMetadata.ProtoReflect.Descriptor instead. func (*UpdateTensorboardOperationMetadata) Descriptor() ([]byte, []int) { - return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{41} + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{43} } func (x *UpdateTensorboardOperationMetadata) GetGenericMetadata() *GenericOperationMetadata { @@ -2676,6 +2820,113 @@ func (x *UpdateTensorboardOperationMetadata) GetGenericMetadata() *GenericOperat return nil } +// Per user usage data. +type ReadTensorboardUsageResponse_PerUserUsageData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // User's username + Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` + // Number of times the user has read data within the Tensorboard. + ViewCount int64 `protobuf:"varint,2,opt,name=view_count,json=viewCount,proto3" json:"view_count,omitempty"` +} + +func (x *ReadTensorboardUsageResponse_PerUserUsageData) Reset() { + *x = ReadTensorboardUsageResponse_PerUserUsageData{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReadTensorboardUsageResponse_PerUserUsageData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReadTensorboardUsageResponse_PerUserUsageData) ProtoMessage() {} + +func (x *ReadTensorboardUsageResponse_PerUserUsageData) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[44] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ReadTensorboardUsageResponse_PerUserUsageData.ProtoReflect.Descriptor instead. +func (*ReadTensorboardUsageResponse_PerUserUsageData) Descriptor() ([]byte, []int) { + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{3, 0} +} + +func (x *ReadTensorboardUsageResponse_PerUserUsageData) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *ReadTensorboardUsageResponse_PerUserUsageData) GetViewCount() int64 { + if x != nil { + return x.ViewCount + } + return 0 +} + +// Per month usage data +type ReadTensorboardUsageResponse_PerMonthUsageData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Usage data for each user in the given month. + UserUsageData []*ReadTensorboardUsageResponse_PerUserUsageData `protobuf:"bytes,1,rep,name=user_usage_data,json=userUsageData,proto3" json:"user_usage_data,omitempty"` +} + +func (x *ReadTensorboardUsageResponse_PerMonthUsageData) Reset() { + *x = ReadTensorboardUsageResponse_PerMonthUsageData{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReadTensorboardUsageResponse_PerMonthUsageData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReadTensorboardUsageResponse_PerMonthUsageData) ProtoMessage() {} + +func (x *ReadTensorboardUsageResponse_PerMonthUsageData) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[45] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ReadTensorboardUsageResponse_PerMonthUsageData.ProtoReflect.Descriptor instead. +func (*ReadTensorboardUsageResponse_PerMonthUsageData) Descriptor() ([]byte, []int) { + return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP(), []int{3, 1} +} + +func (x *ReadTensorboardUsageResponse_PerMonthUsageData) GetUserUsageData() []*ReadTensorboardUsageResponse_PerUserUsageData { + if x != nil { + return x.UserUsageData + } + return nil +} + var File_google_cloud_aiplatform_v1beta1_tensorboard_service_proto protoreflect.FileDescriptor var file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDesc = []byte{ @@ -2734,973 +2985,1029 @@ var file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDesc = []b 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x88, 0x02, 0x0a, 0x17, - 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x12, - 0x25, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, - 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, - 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, - 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x37, 0x0a, - 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x72, 0x65, - 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x94, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x0c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x6e, 0x0a, 0x1b, 0x52, + 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x55, 0x73, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x0b, 0x74, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x0b, + 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x22, 0x96, 0x04, 0x0a, 0x1c, + 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x55, + 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, + 0x12, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x5f, 0x75, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x53, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x0c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, - 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, - 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xb1, 0x01, - 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, - 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x53, 0x0a, 0x0b, - 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x55, 0x73, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, + 0x55, 0x73, 0x61, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10, + 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x55, 0x73, 0x61, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, + 0x1a, 0x4d, 0x0a, 0x10, 0x50, 0x65, 0x72, 0x55, 0x73, 0x65, 0x72, 0x55, 0x73, 0x61, 0x67, 0x65, + 0x44, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x76, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x1a, + 0x8b, 0x01, 0x0a, 0x11, 0x50, 0x65, 0x72, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x55, 0x73, 0x61, 0x67, + 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x76, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x75, 0x73, + 0x61, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4e, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x65, + 0x72, 0x55, 0x73, 0x65, 0x72, 0x55, 0x73, 0x61, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0d, + 0x75, 0x73, 0x65, 0x72, 0x55, 0x73, 0x61, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x94, 0x01, + 0x0a, 0x15, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x55, 0x73, 0x61, 0x67, 0x65, 0x44, 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, 0x65, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x54, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x65, 0x72, 0x4d, 0x6f, 0x6e, 0x74, 0x68, + 0x55, 0x73, 0x61, 0x67, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x22, 0x88, 0x02, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x45, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x12, 0x25, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, + 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, + 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6f, + 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, + 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, + 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, + 0x94, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x0c, + 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x52, 0x0c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x12, 0x26, + 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, + 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xb1, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, + 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x53, 0x0a, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x74, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x22, 0x5d, 0x0a, 0x18, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xa5, 0x02, 0x0a, 0x22, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x4f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x12, 0x6d, 0x0a, 0x16, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, - 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x22, 0x5d, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, - 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x22, 0xa5, 0x02, 0x0a, 0x22, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, + 0x12, 0x3f, 0x0a, 0x19, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, + 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x49, + 0x64, 0x22, 0x6e, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x22, 0x9c, 0x02, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x12, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x6d, 0x0a, 0x16, 0x74, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, - 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, + 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, + 0x22, 0xbd, 0x01, 0x0a, 0x22, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, - 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3f, 0x0a, 0x19, 0x74, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, - 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x6e, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, - 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, - 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, - 0x6e, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x9c, 0x02, 0x0a, 0x21, 0x4c, 0x69, 0x73, - 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, - 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, - 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x12, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, - 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, - 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, - 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, - 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x37, - 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x72, - 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xbd, 0x01, 0x0a, 0x22, 0x4c, 0x69, 0x73, 0x74, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, - 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, - 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, - 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, - 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x16, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, - 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, - 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xda, 0x01, 0x0a, 0x22, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, - 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, - 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, - 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, - 0x12, 0x72, 0x0a, 0x16, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, - 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, - 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x15, 0x74, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, - 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x71, 0x0a, 0x22, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, - 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, + 0x52, 0x16, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, + 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, + 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x22, 0xda, 0x01, 0x0a, 0x22, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x72, 0x0a, 0x16, 0x74, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, + 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xd3, 0x01, 0x0a, 0x21, 0x42, 0x61, 0x74, 0x63, - 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, - 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, - 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x5d, - 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x03, - 0xe0, 0x41, 0x02, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x80, 0x01, - 0x0a, 0x22, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x10, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, - 0x0f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, - 0x22, 0xf9, 0x01, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x48, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, - 0x75, 0x6e, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x5d, 0x0a, 0x0f, 0x74, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x52, 0x75, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x74, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x31, 0x0a, 0x12, 0x74, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10, 0x74, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x49, 0x64, 0x22, 0x60, 0x0a, 0x18, - 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x44, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, - 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x95, - 0x01, 0x0a, 0x1e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x58, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x71, 0x0a, + 0x22, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x22, 0xd3, 0x01, 0x0a, 0x21, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, - 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x62, - 0x6c, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x62, - 0x6c, 0x6f, 0x62, 0x49, 0x64, 0x73, 0x22, 0x69, 0x0a, 0x1f, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x44, 0x61, 0x74, - 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x05, 0x62, 0x6c, 0x6f, - 0x62, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x62, - 0x73, 0x22, 0x8e, 0x02, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x48, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x12, 0x28, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, - 0x75, 0x6e, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, - 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, - 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, - 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, - 0x73, 0x6b, 0x22, 0xa1, 0x01, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x10, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, + 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x5d, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x80, 0x01, 0x0a, 0x22, 0x42, 0x61, 0x74, 0x63, 0x68, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, + 0x10, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x0f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x22, 0xf9, 0x01, 0x0a, 0x1b, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, + 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x06, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, + 0x2a, 0x0a, 0x28, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x06, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x12, 0x5d, 0x0a, 0x0f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x0f, 0x74, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x26, - 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, - 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xbe, 0x01, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, - 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x5d, 0x0a, 0x0f, 0x74, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x42, 0x03, 0xe0, + 0x41, 0x02, 0x52, 0x0e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, + 0x75, 0x6e, 0x12, 0x31, 0x0a, 0x12, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, + 0xe0, 0x41, 0x02, 0x52, 0x10, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x52, 0x75, 0x6e, 0x49, 0x64, 0x22, 0x60, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x44, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, + 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x95, 0x01, 0x0a, 0x1e, 0x52, 0x65, 0x61, 0x64, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x44, + 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x58, 0x0a, 0x0b, 0x74, 0x69, + 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, + 0x72, 0x69, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x62, 0x49, 0x64, 0x73, 0x22, + 0x69, 0x0a, 0x1f, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x46, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x62, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, - 0x75, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x22, 0x63, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x44, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xe0, 0x01, 0x0a, - 0x27, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, - 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x64, 0x0a, 0x08, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, - 0x9a, 0x01, 0x0a, 0x28, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x17, - 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, + 0x6c, 0x6f, 0x62, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x62, 0x73, 0x22, 0x8e, 0x02, 0x0a, 0x1a, 0x4c, + 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, + 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x06, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, + 0x2a, 0x12, 0x28, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x06, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, + 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, + 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x42, 0x79, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, + 0x6b, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xa1, 0x01, 0x0a, 0x1b, + 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, + 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x10, 0x74, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x0f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, + 0xbe, 0x01, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, + 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, + 0x6b, 0x12, 0x5d, 0x0a, 0x0f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, + 0x52, 0x0e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, + 0x22, 0x63, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x44, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, + 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xe0, 0x01, 0x0a, 0x27, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x4f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x12, 0x64, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x9a, 0x01, 0x0a, 0x28, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x15, + 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, + 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xac, 0x02, 0x0a, 0x22, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xac, 0x02, 0x0a, - 0x22, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x06, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x12, 0x40, 0x0a, 0x1a, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x5f, - 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x17, 0x74, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x49, 0x64, 0x12, 0x73, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, - 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x42, - 0x03, 0xe0, 0x41, 0x02, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x6e, 0x0a, 0x1f, 0x47, - 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, + 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x06, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x9b, 0x02, 0x0a, 0x20, - 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x4f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x12, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, - 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, - 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, - 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, - 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, - 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xbb, 0x01, 0x0a, 0x21, 0x4c, 0x69, - 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x6e, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x40, 0x0a, + 0x1a, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x49, 0x64, 0x12, + 0x73, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, - 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, - 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xdb, 0x01, 0x0a, 0x22, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, - 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, - 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, - 0x12, 0x73, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, - 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x15, - 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x71, 0x0a, 0x22, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, - 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xd6, 0x01, 0x0a, 0x29, 0x42, 0x61, 0x74, - 0x63, 0x68, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, - 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x0b, 0x74, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x58, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x5f, - 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, - 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, - 0x73, 0x22, 0x87, 0x01, 0x0a, 0x2a, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, 0x64, 0x54, + 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x59, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x5f, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0e, 0x74, 0x69, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x22, 0xd7, 0x01, 0x0a, 0x24, - 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x6f, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, + 0x72, 0x69, 0x65, 0x73, 0x22, 0x6e, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x15, - 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x61, 0x74, - 0x61, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, - 0x6d, 0x61, 0x78, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x16, 0x0a, - 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x82, 0x01, 0x0a, 0x25, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x59, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x5f, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x9b, 0x02, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x06, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, + 0x31, 0x12, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, + 0x65, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, + 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, + 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, + 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4d, 0x61, + 0x73, 0x6b, 0x22, 0xbb, 0x01, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, + 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0e, 0x74, 0x69, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x22, 0x94, 0x02, 0x0a, 0x25, 0x57, - 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, - 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x6e, 0x0a, 0x16, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, + 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, + 0x73, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, + 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x22, 0xdb, 0x01, 0x0a, 0x22, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x73, 0x0a, 0x17, 0x74, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, + 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, + 0x65, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x71, + 0x0a, 0x22, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x22, 0xd6, 0x01, 0x0a, 0x29, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, 0x64, 0x54, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, + 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x4f, 0x0a, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x15, 0x74, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, - 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x7b, 0x0a, 0x17, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x72, 0x75, - 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x14, 0x77, 0x72, 0x69, - 0x74, 0x65, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x73, 0x22, 0x28, 0x0a, 0x26, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x44, - 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xdb, 0x01, 0x0a, 0x1e, - 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x59, - 0x0a, 0x0f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x0a, - 0x28, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x0e, 0x74, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x5e, 0x0a, 0x10, 0x74, 0x69, 0x6d, - 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, + 0x61, 0x72, 0x64, 0x52, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x12, 0x58, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, + 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x0a, + 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x87, 0x01, 0x0a, 0x2a, 0x42, + 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, + 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x10, 0x74, 0x69, 0x6d, + 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, - 0x44, 0x61, 0x74, 0x61, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x22, 0x21, 0x0a, 0x1f, 0x57, 0x72, 0x69, - 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, - 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, 0x02, 0x0a, - 0x26, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x44, 0x61, 0x74, 0x61, 0x52, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x44, 0x61, 0x74, 0x61, 0x22, 0xd7, 0x01, 0x0a, 0x24, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, + 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x6f, 0x0a, + 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, + 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, + 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x26, + 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x44, 0x61, 0x74, 0x61, + 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x82, + 0x01, 0x0a, 0x25, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x6f, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, - 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, + 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, + 0x61, 0x74, 0x61, 0x52, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, + 0x61, 0x74, 0x61, 0x22, 0x94, 0x02, 0x0a, 0x25, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, + 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x6e, 0x0a, + 0x16, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, + 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xe0, + 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, + 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x7b, 0x0a, + 0x17, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x14, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6e, 0x44, 0x61, + 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x28, 0x0a, 0x26, 0x57, 0x72, + 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, + 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xdb, 0x01, 0x0a, 0x1e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x59, 0x0a, 0x0f, 0x74, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, + 0x75, 0x6e, 0x52, 0x0e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, + 0x75, 0x6e, 0x12, 0x5e, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, + 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x42, 0x03, 0xe0, + 0x41, 0x02, 0x52, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, + 0x74, 0x61, 0x22, 0x21, 0x0a, 0x1f, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, 0x02, 0x0a, 0x26, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, + 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x6f, 0x0a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x37, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x31, 0x0a, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, - 0x73, 0x52, 0x15, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, - 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0xbe, 0x01, 0x0a, 0x27, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, - 0x73, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, - 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, - 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8a, 0x01, 0x0a, 0x22, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x64, 0x0a, 0x10, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x69, 0x63, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x8a, 0x01, 0x0a, 0x22, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x64, 0x0a, 0x10, - 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x32, 0x93, 0x3e, 0x0a, 0x12, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x83, 0x02, 0x0a, 0x11, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, - 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x93, 0x01, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x44, 0x22, 0x35, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x3a, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0xda, 0x41, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, - 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0xca, 0x41, 0x31, 0x0a, 0x0b, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x22, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, - 0xbc, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x12, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, + 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, + 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, + 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, + 0x22, 0xbe, 0x01, 0x0a, 0x27, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x17, + 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, + 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6f, + 0x69, 0x6e, 0x74, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, + 0x61, 0x74, 0x61, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, + 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x22, 0x8a, 0x01, 0x0a, 0x22, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x64, 0x0a, 0x10, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x22, 0x44, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, - 0x12, 0x35, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, - 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x94, - 0x02, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x12, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, - 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa4, - 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x50, 0x32, 0x41, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6e, - 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x0b, 0x74, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0xda, 0x41, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, - 0x6b, 0xca, 0x41, 0x31, 0x0a, 0x0b, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x12, 0x22, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x4f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0f, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x8a, + 0x01, 0x0a, 0x22, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xcf, 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x12, 0x38, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x46, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x64, 0x0a, 0x10, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, + 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, + 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x32, 0x87, 0x40, 0x0a, 0x12, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x83, 0x02, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, + 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x93, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x22, 0x35, 0x2f, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x73, 0x3a, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0xda, + 0x41, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0xca, 0x41, 0x31, 0x0a, 0x0b, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x12, 0x22, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xbc, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x36, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x22, 0x44, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, - 0x7d, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0xda, 0x41, - 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xe6, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x39, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x77, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x2a, - 0x35, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x30, - 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x12, 0xba, 0x02, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x12, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x7d, + 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xf1, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x61, 0x64, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x55, 0x73, 0x61, 0x67, 0x65, + 0x12, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x9d, 0x01, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5d, 0x22, 0x43, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, - 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, - 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x16, 0x74, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, - 0x65, 0x6e, 0x74, 0xda, 0x41, 0x37, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x74, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, - 0x65, 0x6e, 0x74, 0x2c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, - 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x12, 0xe8, 0x01, - 0x0a, 0x18, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x40, 0x2e, 0x67, 0x6f, 0x6f, + 0x61, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x12, 0x46, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, + 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x3d, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, + 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x61, 0x64, 0x55, 0x73, 0x61, 0x67, 0x65, 0xda, 0x41, 0x0b, + 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x94, 0x02, 0x0a, 0x11, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x12, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, + 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa4, 0x01, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x50, 0x32, 0x41, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, + 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, + 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0xda, 0x41, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0xca, 0x41, + 0x31, 0x0a, 0x0b, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x22, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0xcf, 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x12, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x46, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x12, 0xe6, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, - 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, - 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x52, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, 0x76, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, + 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x77, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x2a, 0x35, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, - 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, - 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xbc, 0x02, 0x0a, 0x1b, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, - 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, + 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x30, 0x0a, 0x15, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xba, 0x02, + 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, - 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x9f, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x74, 0x32, 0x5a, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x9d, 0x01, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x5d, 0x22, 0x43, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x16, 0x74, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, - 0x6e, 0x74, 0xda, 0x41, 0x22, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x12, 0xfb, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, - 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x65, 0x78, 0x70, + 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x3a, 0x16, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, + 0xda, 0x41, 0x37, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, + 0x2c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, + 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x12, 0xe8, 0x01, 0x0a, 0x18, 0x47, + 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, + 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x43, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x54, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, + 0x74, 0x22, 0x52, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, - 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x7d, - 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0xda, 0x41, 0x06, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x89, 0x02, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, + 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xbc, 0x02, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x85, 0x01, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x45, 0x2a, 0x43, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, + 0x6e, 0x74, 0x22, 0x9f, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x74, 0x32, 0x5a, 0x2f, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, - 0x30, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x97, 0x02, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x22, 0x8f, 0x01, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x5d, 0x22, 0x4a, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, - 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x3a, 0x0f, - 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0xda, - 0x41, 0x29, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x2c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x12, 0x9a, 0x02, 0x0a, 0x1a, - 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x42, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x61, 0x74, + 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x16, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0xda, + 0x41, 0x22, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, + 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, + 0x6d, 0x61, 0x73, 0x6b, 0x12, 0xfb, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x12, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x65, 0x78, + 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x12, 0x89, 0x02, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, + 0x6e, 0x74, 0x12, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x85, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x2a, + 0x43, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x30, 0x0a, 0x15, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x97, + 0x02, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x22, 0x8f, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5d, 0x22, + 0x4a, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x3a, 0x0f, 0x74, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0xda, 0x41, 0x29, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x2c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x12, 0x9a, 0x02, 0x0a, 0x1a, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x43, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x73, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5b, 0x22, 0x56, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, - 0x2a, 0x7d, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x0f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0xda, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x39, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, + 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x43, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x61, + 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x73, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5b, 0x22, 0x56, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, + 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, + 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, + 0x72, 0x75, 0x6e, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x0f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0xda, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x39, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x22, 0x59, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4c, 0x12, + 0x4a, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x99, 0x02, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x3c, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x22, 0x59, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x4c, 0x12, 0x4a, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, - 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x99, 0x02, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x3c, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x22, 0x91, 0x01, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6d, 0x32, 0x5a, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, - 0x6e, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, - 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, - 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, - 0x2a, 0x7d, 0x3a, 0x0f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, - 0x72, 0x75, 0x6e, 0xda, 0x41, 0x1b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, - 0x6b, 0x12, 0xed, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x22, 0x91, 0x01, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x6d, 0x32, 0x5a, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x74, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x2e, 0x6e, + 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, + 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, + 0x0f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, + 0xda, 0x41, 0x1b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, + 0x75, 0x6e, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x12, 0xed, + 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x12, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4c, 0x12, 0x4a, 0x2f, 0x76, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x5b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4c, 0x12, 0x4a, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, + 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, + 0x2f, 0x72, 0x75, 0x6e, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x82, + 0x02, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, + 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8c, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4c, 0x2a, 0x4a, 0x2f, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, + 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0xca, 0x41, 0x30, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x12, 0xba, 0x02, 0x0a, 0x20, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x49, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, + 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x80, 0x01, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x68, 0x22, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, + 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x75, + 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3a, + 0x62, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0xda, 0x41, + 0x0f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, + 0x12, 0xb6, 0x02, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x12, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x99, 0x01, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x72, 0x22, 0x57, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, + 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, + 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3a, + 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0xda, 0x41, 0x1e, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x2c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0xfc, 0x01, 0x0a, 0x18, 0x47, 0x65, + 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, + 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x22, 0x66, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x59, 0x12, 0x57, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, + 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, + 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, + 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xd4, 0x02, 0x0a, 0x1b, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, + 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, + 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xb7, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x8a, 0x01, 0x32, + 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, + 0x65, 0x73, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, + 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, + 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, + 0x3a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0xda, 0x41, 0x23, 0x74, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, + 0x69, 0x65, 0x73, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x12, + 0x8c, 0x02, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x41, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, + 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x68, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x59, 0x12, 0x57, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x12, 0x82, 0x02, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8c, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4c, - 0x2a, 0x4a, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, - 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, - 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0xca, 0x41, 0x30, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xba, 0x02, 0x0a, 0x20, 0x42, 0x61, 0x74, 0x63, 0x68, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x48, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x61, - 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x49, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x80, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x68, 0x22, 0x63, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, - 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, - 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x3a, 0x01, - 0x2a, 0xda, 0x41, 0x0f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x73, 0x12, 0xb6, 0x02, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x69, 0x65, 0x73, 0x12, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, - 0x22, 0x99, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x72, 0x22, 0x57, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, - 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, - 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x3a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, - 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0xda, 0x41, 0x1e, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0xfc, 0x01, 0x0a, - 0x18, 0x47, 0x65, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x69, 0x65, 0x73, 0x22, 0x66, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x59, 0x12, 0x57, 0x2f, 0x76, 0x31, + 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, + 0x65, 0x72, 0x69, 0x65, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x9d, + 0x02, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x43, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, + 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, + 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x99, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x59, 0x2a, 0x57, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, - 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xd4, 0x02, 0x0a, 0x1b, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x43, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xb7, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x8a, 0x01, 0x32, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x74, 0x65, - 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, - 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, - 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, - 0x2f, 0x2a, 0x7d, 0x3a, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0xda, 0x41, 0x23, 0x74, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, - 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, - 0x73, 0x6b, 0x12, 0x8c, 0x02, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, - 0x12, 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x68, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x59, 0x12, - 0x57, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x69, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x12, 0x9d, 0x02, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, + 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x30, 0x0a, 0x15, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xbb, + 0x02, 0x0a, 0x22, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, - 0x73, 0x12, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, 0x4a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, + 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, + 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x4b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x99, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x59, 0x2a, 0x57, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, - 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x74, 0x61, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, + 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7c, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x68, 0x12, 0x66, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x3d, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, - 0x30, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x12, 0xbb, 0x02, 0x0a, 0x22, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, 0x64, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, 0x4a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, - 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x4b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, 0x64, - 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x7c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x68, 0x12, 0x66, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x72, 0x69, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, 0x64, 0xda, 0x41, + 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, 0xc2, 0x02, 0x0a, + 0x1d, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, 0x45, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x46, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, + 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x91, 0x01, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x71, 0x12, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, + 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, + 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, + 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2f, + 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x61, 0x64, 0xda, 0x41, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, + 0x73, 0x12, 0xa2, 0x02, 0x0a, 0x17, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x44, 0x61, 0x74, 0x61, 0x12, 0x3f, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, + 0x6c, 0x6f, 0x62, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x40, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, + 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x42, 0x6c, 0x6f, 0x62, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x81, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6d, 0x12, 0x6b, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x61, - 0x64, 0xda, 0x41, 0x0b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x12, - 0xc2, 0x02, 0x0a, 0x1d, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, - 0x61, 0x12, 0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, 0x65, + 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x61, 0x64, 0x42, 0x6c, + 0x6f, 0x62, 0x44, 0x61, 0x74, 0x61, 0xda, 0x41, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, + 0x72, 0x69, 0x65, 0x73, 0x30, 0x01, 0x12, 0xcb, 0x02, 0x0a, 0x1e, 0x57, 0x72, 0x69, 0x74, 0x65, + 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, + 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x46, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, 0x72, 0x69, 0x74, + 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, + 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x47, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, - 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x46, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x91, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x71, 0x12, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3d, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, - 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, - 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x61, 0x64, 0xda, 0x41, 0x17, 0x74, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x12, 0xa2, 0x02, 0x0a, 0x17, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x44, 0x61, 0x74, 0x61, + 0x74, 0x61, 0x31, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x97, 0x01, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x60, 0x22, 0x5b, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x74, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, + 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, + 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, + 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x77, 0x72, 0x69, 0x74, 0x65, + 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, + 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x2c, 0x77, 0x72, 0x69, + 0x74, 0x65, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x73, 0x12, 0xa8, 0x02, 0x0a, 0x17, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, + 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x61, 0x31, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x81, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6d, 0x12, 0x6b, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, - 0x69, 0x65, 0x73, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, - 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, - 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x61, - 0x64, 0x42, 0x6c, 0x6f, 0x62, 0x44, 0x61, 0x74, 0x61, 0xda, 0x41, 0x0b, 0x74, 0x69, 0x6d, 0x65, - 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x30, 0x01, 0x12, 0xcb, 0x02, 0x0a, 0x1e, 0x57, 0x72, - 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, - 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x46, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, - 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, - 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x47, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, - 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x97, 0x01, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x60, 0x22, 0x5b, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, - 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, - 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, - 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x77, 0x72, - 0x69, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x2e, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, - 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x2c, - 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0xa8, 0x02, 0x0a, 0x17, 0x57, 0x72, 0x69, 0x74, - 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x44, - 0x61, 0x74, 0x61, 0x12, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x89, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x60, 0x22, - 0x5b, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, - 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, - 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x77, 0x72, 0x69, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0xda, - 0x41, 0x20, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, - 0x6e, 0x2c, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x5f, 0x64, 0x61, - 0x74, 0x61, 0x12, 0xe4, 0x02, 0x0a, 0x1f, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x65, 0x6e, - 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x12, 0x47, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, - 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, - 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, - 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, - 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xad, 0x01, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x8c, 0x01, 0x22, 0x86, 0x01, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, - 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x74, 0x61, 0x31, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, + 0x6f, 0x61, 0x72, 0x64, 0x52, 0x75, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x89, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x60, 0x22, 0x5b, 0x2f, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, + 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, - 0x2f, 0x2a, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, - 0x3a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, - 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3a, 0x01, 0x2a, 0xda, - 0x41, 0x17, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, - 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x1a, 0x4d, 0xca, 0x41, 0x19, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, - 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xf4, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x42, 0x17, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 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, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x69, 0x70, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2f, 0x2a, 0x7d, 0x3a, 0x77, 0x72, 0x69, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x20, 0x74, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x72, 0x75, 0x6e, 0x2c, 0x74, + 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x12, + 0xe4, 0x02, 0x0a, 0x1f, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, + 0x61, 0x74, 0x61, 0x12, 0x47, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, + 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x48, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x45, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, + 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xad, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x8c, 0x01, + 0x22, 0x86, 0x01, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x74, 0x65, 0x6e, + 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, + 0x72, 0x69, 0x65, 0x73, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x73, 0x2f, 0x2a, 0x2f, 0x65, 0x78, 0x70, 0x65, 0x72, + 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x75, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, + 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x65, 0x78, + 0x70, 0x6f, 0x72, 0x74, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x54, + 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x17, 0x74, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, + 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x1a, 0x4d, 0xca, 0x41, 0x19, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, + 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xf4, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x17, 0x54, + 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 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, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, + 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, + 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, + 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, + 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3715,155 +4022,165 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescGZIP( return file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDescData } -var file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes = make([]protoimpl.MessageInfo, 42) +var file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes = make([]protoimpl.MessageInfo, 47) var file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_goTypes = []interface{}{ - (*CreateTensorboardRequest)(nil), // 0: google.cloud.aiplatform.v1beta1.CreateTensorboardRequest - (*GetTensorboardRequest)(nil), // 1: google.cloud.aiplatform.v1beta1.GetTensorboardRequest - (*ListTensorboardsRequest)(nil), // 2: google.cloud.aiplatform.v1beta1.ListTensorboardsRequest - (*ListTensorboardsResponse)(nil), // 3: google.cloud.aiplatform.v1beta1.ListTensorboardsResponse - (*UpdateTensorboardRequest)(nil), // 4: google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest - (*DeleteTensorboardRequest)(nil), // 5: google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest - (*CreateTensorboardExperimentRequest)(nil), // 6: google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest - (*GetTensorboardExperimentRequest)(nil), // 7: google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest - (*ListTensorboardExperimentsRequest)(nil), // 8: google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest - (*ListTensorboardExperimentsResponse)(nil), // 9: google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse - (*UpdateTensorboardExperimentRequest)(nil), // 10: google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest - (*DeleteTensorboardExperimentRequest)(nil), // 11: google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest - (*BatchCreateTensorboardRunsRequest)(nil), // 12: google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest - (*BatchCreateTensorboardRunsResponse)(nil), // 13: google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsResponse - (*CreateTensorboardRunRequest)(nil), // 14: google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest - (*GetTensorboardRunRequest)(nil), // 15: google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest - (*ReadTensorboardBlobDataRequest)(nil), // 16: google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest - (*ReadTensorboardBlobDataResponse)(nil), // 17: google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse - (*ListTensorboardRunsRequest)(nil), // 18: google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest - (*ListTensorboardRunsResponse)(nil), // 19: google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse - (*UpdateTensorboardRunRequest)(nil), // 20: google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest - (*DeleteTensorboardRunRequest)(nil), // 21: google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest - (*BatchCreateTensorboardTimeSeriesRequest)(nil), // 22: google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest - (*BatchCreateTensorboardTimeSeriesResponse)(nil), // 23: google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesResponse - (*CreateTensorboardTimeSeriesRequest)(nil), // 24: google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest - (*GetTensorboardTimeSeriesRequest)(nil), // 25: google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest - (*ListTensorboardTimeSeriesRequest)(nil), // 26: google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest - (*ListTensorboardTimeSeriesResponse)(nil), // 27: google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse - (*UpdateTensorboardTimeSeriesRequest)(nil), // 28: google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest - (*DeleteTensorboardTimeSeriesRequest)(nil), // 29: google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest - (*BatchReadTensorboardTimeSeriesDataRequest)(nil), // 30: google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest - (*BatchReadTensorboardTimeSeriesDataResponse)(nil), // 31: google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataResponse - (*ReadTensorboardTimeSeriesDataRequest)(nil), // 32: google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest - (*ReadTensorboardTimeSeriesDataResponse)(nil), // 33: google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse - (*WriteTensorboardExperimentDataRequest)(nil), // 34: google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest - (*WriteTensorboardExperimentDataResponse)(nil), // 35: google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataResponse - (*WriteTensorboardRunDataRequest)(nil), // 36: google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest - (*WriteTensorboardRunDataResponse)(nil), // 37: google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse - (*ExportTensorboardTimeSeriesDataRequest)(nil), // 38: google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest - (*ExportTensorboardTimeSeriesDataResponse)(nil), // 39: google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse - (*CreateTensorboardOperationMetadata)(nil), // 40: google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata - (*UpdateTensorboardOperationMetadata)(nil), // 41: google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata - (*Tensorboard)(nil), // 42: google.cloud.aiplatform.v1beta1.Tensorboard - (*fieldmaskpb.FieldMask)(nil), // 43: google.protobuf.FieldMask - (*TensorboardExperiment)(nil), // 44: google.cloud.aiplatform.v1beta1.TensorboardExperiment - (*TensorboardRun)(nil), // 45: google.cloud.aiplatform.v1beta1.TensorboardRun - (*TensorboardBlob)(nil), // 46: google.cloud.aiplatform.v1beta1.TensorboardBlob - (*TensorboardTimeSeries)(nil), // 47: google.cloud.aiplatform.v1beta1.TensorboardTimeSeries - (*TimeSeriesData)(nil), // 48: google.cloud.aiplatform.v1beta1.TimeSeriesData - (*TimeSeriesDataPoint)(nil), // 49: google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint - (*GenericOperationMetadata)(nil), // 50: google.cloud.aiplatform.v1beta1.GenericOperationMetadata - (*longrunning.Operation)(nil), // 51: google.longrunning.Operation + (*CreateTensorboardRequest)(nil), // 0: google.cloud.aiplatform.v1beta1.CreateTensorboardRequest + (*GetTensorboardRequest)(nil), // 1: google.cloud.aiplatform.v1beta1.GetTensorboardRequest + (*ReadTensorboardUsageRequest)(nil), // 2: google.cloud.aiplatform.v1beta1.ReadTensorboardUsageRequest + (*ReadTensorboardUsageResponse)(nil), // 3: google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse + (*ListTensorboardsRequest)(nil), // 4: google.cloud.aiplatform.v1beta1.ListTensorboardsRequest + (*ListTensorboardsResponse)(nil), // 5: google.cloud.aiplatform.v1beta1.ListTensorboardsResponse + (*UpdateTensorboardRequest)(nil), // 6: google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest + (*DeleteTensorboardRequest)(nil), // 7: google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest + (*CreateTensorboardExperimentRequest)(nil), // 8: google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest + (*GetTensorboardExperimentRequest)(nil), // 9: google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest + (*ListTensorboardExperimentsRequest)(nil), // 10: google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest + (*ListTensorboardExperimentsResponse)(nil), // 11: google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse + (*UpdateTensorboardExperimentRequest)(nil), // 12: google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest + (*DeleteTensorboardExperimentRequest)(nil), // 13: google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest + (*BatchCreateTensorboardRunsRequest)(nil), // 14: google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest + (*BatchCreateTensorboardRunsResponse)(nil), // 15: google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsResponse + (*CreateTensorboardRunRequest)(nil), // 16: google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest + (*GetTensorboardRunRequest)(nil), // 17: google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest + (*ReadTensorboardBlobDataRequest)(nil), // 18: google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest + (*ReadTensorboardBlobDataResponse)(nil), // 19: google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse + (*ListTensorboardRunsRequest)(nil), // 20: google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest + (*ListTensorboardRunsResponse)(nil), // 21: google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse + (*UpdateTensorboardRunRequest)(nil), // 22: google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest + (*DeleteTensorboardRunRequest)(nil), // 23: google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest + (*BatchCreateTensorboardTimeSeriesRequest)(nil), // 24: google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest + (*BatchCreateTensorboardTimeSeriesResponse)(nil), // 25: google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesResponse + (*CreateTensorboardTimeSeriesRequest)(nil), // 26: google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest + (*GetTensorboardTimeSeriesRequest)(nil), // 27: google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest + (*ListTensorboardTimeSeriesRequest)(nil), // 28: google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest + (*ListTensorboardTimeSeriesResponse)(nil), // 29: google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse + (*UpdateTensorboardTimeSeriesRequest)(nil), // 30: google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest + (*DeleteTensorboardTimeSeriesRequest)(nil), // 31: google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest + (*BatchReadTensorboardTimeSeriesDataRequest)(nil), // 32: google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest + (*BatchReadTensorboardTimeSeriesDataResponse)(nil), // 33: google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataResponse + (*ReadTensorboardTimeSeriesDataRequest)(nil), // 34: google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest + (*ReadTensorboardTimeSeriesDataResponse)(nil), // 35: google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse + (*WriteTensorboardExperimentDataRequest)(nil), // 36: google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest + (*WriteTensorboardExperimentDataResponse)(nil), // 37: google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataResponse + (*WriteTensorboardRunDataRequest)(nil), // 38: google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest + (*WriteTensorboardRunDataResponse)(nil), // 39: google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse + (*ExportTensorboardTimeSeriesDataRequest)(nil), // 40: google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest + (*ExportTensorboardTimeSeriesDataResponse)(nil), // 41: google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse + (*CreateTensorboardOperationMetadata)(nil), // 42: google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata + (*UpdateTensorboardOperationMetadata)(nil), // 43: google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata + (*ReadTensorboardUsageResponse_PerUserUsageData)(nil), // 44: google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerUserUsageData + (*ReadTensorboardUsageResponse_PerMonthUsageData)(nil), // 45: google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerMonthUsageData + nil, // 46: google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.MonthlyUsageDataEntry + (*Tensorboard)(nil), // 47: google.cloud.aiplatform.v1beta1.Tensorboard + (*fieldmaskpb.FieldMask)(nil), // 48: google.protobuf.FieldMask + (*TensorboardExperiment)(nil), // 49: google.cloud.aiplatform.v1beta1.TensorboardExperiment + (*TensorboardRun)(nil), // 50: google.cloud.aiplatform.v1beta1.TensorboardRun + (*TensorboardBlob)(nil), // 51: google.cloud.aiplatform.v1beta1.TensorboardBlob + (*TensorboardTimeSeries)(nil), // 52: google.cloud.aiplatform.v1beta1.TensorboardTimeSeries + (*TimeSeriesData)(nil), // 53: google.cloud.aiplatform.v1beta1.TimeSeriesData + (*TimeSeriesDataPoint)(nil), // 54: google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint + (*GenericOperationMetadata)(nil), // 55: google.cloud.aiplatform.v1beta1.GenericOperationMetadata + (*longrunning.Operation)(nil), // 56: google.longrunning.Operation } var file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_depIdxs = []int32{ - 42, // 0: google.cloud.aiplatform.v1beta1.CreateTensorboardRequest.tensorboard:type_name -> google.cloud.aiplatform.v1beta1.Tensorboard - 43, // 1: google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.read_mask:type_name -> google.protobuf.FieldMask - 42, // 2: google.cloud.aiplatform.v1beta1.ListTensorboardsResponse.tensorboards:type_name -> google.cloud.aiplatform.v1beta1.Tensorboard - 43, // 3: google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest.update_mask:type_name -> google.protobuf.FieldMask - 42, // 4: google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest.tensorboard:type_name -> google.cloud.aiplatform.v1beta1.Tensorboard - 44, // 5: google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest.tensorboard_experiment:type_name -> google.cloud.aiplatform.v1beta1.TensorboardExperiment - 43, // 6: google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.read_mask:type_name -> google.protobuf.FieldMask - 44, // 7: google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse.tensorboard_experiments:type_name -> google.cloud.aiplatform.v1beta1.TensorboardExperiment - 43, // 8: google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest.update_mask:type_name -> google.protobuf.FieldMask - 44, // 9: google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest.tensorboard_experiment:type_name -> google.cloud.aiplatform.v1beta1.TensorboardExperiment - 14, // 10: google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest.requests:type_name -> google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest - 45, // 11: google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsResponse.tensorboard_runs:type_name -> google.cloud.aiplatform.v1beta1.TensorboardRun - 45, // 12: google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest.tensorboard_run:type_name -> google.cloud.aiplatform.v1beta1.TensorboardRun - 46, // 13: google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse.blobs:type_name -> google.cloud.aiplatform.v1beta1.TensorboardBlob - 43, // 14: google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.read_mask:type_name -> google.protobuf.FieldMask - 45, // 15: google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse.tensorboard_runs:type_name -> google.cloud.aiplatform.v1beta1.TensorboardRun - 43, // 16: google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest.update_mask:type_name -> google.protobuf.FieldMask - 45, // 17: google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest.tensorboard_run:type_name -> google.cloud.aiplatform.v1beta1.TensorboardRun - 24, // 18: google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest.requests:type_name -> google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest - 47, // 19: google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesResponse.tensorboard_time_series:type_name -> google.cloud.aiplatform.v1beta1.TensorboardTimeSeries - 47, // 20: google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest.tensorboard_time_series:type_name -> google.cloud.aiplatform.v1beta1.TensorboardTimeSeries - 43, // 21: google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.read_mask:type_name -> google.protobuf.FieldMask - 47, // 22: google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse.tensorboard_time_series:type_name -> google.cloud.aiplatform.v1beta1.TensorboardTimeSeries - 43, // 23: google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest.update_mask:type_name -> google.protobuf.FieldMask - 47, // 24: google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest.tensorboard_time_series:type_name -> google.cloud.aiplatform.v1beta1.TensorboardTimeSeries - 48, // 25: google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataResponse.time_series_data:type_name -> google.cloud.aiplatform.v1beta1.TimeSeriesData - 48, // 26: google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse.time_series_data:type_name -> google.cloud.aiplatform.v1beta1.TimeSeriesData - 36, // 27: google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest.write_run_data_requests:type_name -> google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest - 48, // 28: google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest.time_series_data:type_name -> google.cloud.aiplatform.v1beta1.TimeSeriesData - 49, // 29: google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse.time_series_data_points:type_name -> google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint - 50, // 30: google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata.generic_metadata:type_name -> google.cloud.aiplatform.v1beta1.GenericOperationMetadata - 50, // 31: google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata.generic_metadata:type_name -> google.cloud.aiplatform.v1beta1.GenericOperationMetadata - 0, // 32: google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboard:input_type -> google.cloud.aiplatform.v1beta1.CreateTensorboardRequest - 1, // 33: google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboard:input_type -> google.cloud.aiplatform.v1beta1.GetTensorboardRequest - 4, // 34: google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboard:input_type -> google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest - 2, // 35: google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards:input_type -> google.cloud.aiplatform.v1beta1.ListTensorboardsRequest - 5, // 36: google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboard:input_type -> google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest - 6, // 37: google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardExperiment:input_type -> google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest - 7, // 38: google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardExperiment:input_type -> google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest - 10, // 39: google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardExperiment:input_type -> google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest - 8, // 40: google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments:input_type -> google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest - 11, // 41: google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardExperiment:input_type -> google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest - 14, // 42: google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardRun:input_type -> google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest - 12, // 43: google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardRuns:input_type -> google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest - 15, // 44: google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardRun:input_type -> google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest - 20, // 45: google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardRun:input_type -> google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest - 18, // 46: google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns:input_type -> google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest - 21, // 47: google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardRun:input_type -> google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest - 22, // 48: google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest - 24, // 49: google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest - 25, // 50: google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest - 28, // 51: google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest - 26, // 52: google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest - 29, // 53: google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest - 30, // 54: google.cloud.aiplatform.v1beta1.TensorboardService.BatchReadTensorboardTimeSeriesData:input_type -> google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest - 32, // 55: google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardTimeSeriesData:input_type -> google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest - 16, // 56: google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData:input_type -> google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest - 34, // 57: google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardExperimentData:input_type -> google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest - 36, // 58: google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardRunData:input_type -> google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest - 38, // 59: google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData:input_type -> google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest - 51, // 60: google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboard:output_type -> google.longrunning.Operation - 42, // 61: google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboard:output_type -> google.cloud.aiplatform.v1beta1.Tensorboard - 51, // 62: google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboard:output_type -> google.longrunning.Operation - 3, // 63: google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards:output_type -> google.cloud.aiplatform.v1beta1.ListTensorboardsResponse - 51, // 64: google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboard:output_type -> google.longrunning.Operation - 44, // 65: google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardExperiment:output_type -> google.cloud.aiplatform.v1beta1.TensorboardExperiment - 44, // 66: google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardExperiment:output_type -> google.cloud.aiplatform.v1beta1.TensorboardExperiment - 44, // 67: google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardExperiment:output_type -> google.cloud.aiplatform.v1beta1.TensorboardExperiment - 9, // 68: google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments:output_type -> google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse - 51, // 69: google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardExperiment:output_type -> google.longrunning.Operation - 45, // 70: google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardRun:output_type -> google.cloud.aiplatform.v1beta1.TensorboardRun - 13, // 71: google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardRuns:output_type -> google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsResponse - 45, // 72: google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardRun:output_type -> google.cloud.aiplatform.v1beta1.TensorboardRun - 45, // 73: google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardRun:output_type -> google.cloud.aiplatform.v1beta1.TensorboardRun - 19, // 74: google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns:output_type -> google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse - 51, // 75: google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardRun:output_type -> google.longrunning.Operation - 23, // 76: google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesResponse - 47, // 77: google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1beta1.TensorboardTimeSeries - 47, // 78: google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1beta1.TensorboardTimeSeries - 47, // 79: google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1beta1.TensorboardTimeSeries - 27, // 80: google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse - 51, // 81: google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardTimeSeries:output_type -> google.longrunning.Operation - 31, // 82: google.cloud.aiplatform.v1beta1.TensorboardService.BatchReadTensorboardTimeSeriesData:output_type -> google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataResponse - 33, // 83: google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardTimeSeriesData:output_type -> google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse - 17, // 84: google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData:output_type -> google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse - 35, // 85: google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardExperimentData:output_type -> google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataResponse - 37, // 86: google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardRunData:output_type -> google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse - 39, // 87: google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData:output_type -> google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse - 60, // [60:88] is the sub-list for method output_type - 32, // [32:60] is the sub-list for method input_type - 32, // [32:32] is the sub-list for extension type_name - 32, // [32:32] is the sub-list for extension extendee - 0, // [0:32] is the sub-list for field type_name + 47, // 0: google.cloud.aiplatform.v1beta1.CreateTensorboardRequest.tensorboard:type_name -> google.cloud.aiplatform.v1beta1.Tensorboard + 46, // 1: google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.monthly_usage_data:type_name -> google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.MonthlyUsageDataEntry + 48, // 2: google.cloud.aiplatform.v1beta1.ListTensorboardsRequest.read_mask:type_name -> google.protobuf.FieldMask + 47, // 3: google.cloud.aiplatform.v1beta1.ListTensorboardsResponse.tensorboards:type_name -> google.cloud.aiplatform.v1beta1.Tensorboard + 48, // 4: google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest.update_mask:type_name -> google.protobuf.FieldMask + 47, // 5: google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest.tensorboard:type_name -> google.cloud.aiplatform.v1beta1.Tensorboard + 49, // 6: google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest.tensorboard_experiment:type_name -> google.cloud.aiplatform.v1beta1.TensorboardExperiment + 48, // 7: google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest.read_mask:type_name -> google.protobuf.FieldMask + 49, // 8: google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse.tensorboard_experiments:type_name -> google.cloud.aiplatform.v1beta1.TensorboardExperiment + 48, // 9: google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest.update_mask:type_name -> google.protobuf.FieldMask + 49, // 10: google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest.tensorboard_experiment:type_name -> google.cloud.aiplatform.v1beta1.TensorboardExperiment + 16, // 11: google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest.requests:type_name -> google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest + 50, // 12: google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsResponse.tensorboard_runs:type_name -> google.cloud.aiplatform.v1beta1.TensorboardRun + 50, // 13: google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest.tensorboard_run:type_name -> google.cloud.aiplatform.v1beta1.TensorboardRun + 51, // 14: google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse.blobs:type_name -> google.cloud.aiplatform.v1beta1.TensorboardBlob + 48, // 15: google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest.read_mask:type_name -> google.protobuf.FieldMask + 50, // 16: google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse.tensorboard_runs:type_name -> google.cloud.aiplatform.v1beta1.TensorboardRun + 48, // 17: google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest.update_mask:type_name -> google.protobuf.FieldMask + 50, // 18: google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest.tensorboard_run:type_name -> google.cloud.aiplatform.v1beta1.TensorboardRun + 26, // 19: google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest.requests:type_name -> google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest + 52, // 20: google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesResponse.tensorboard_time_series:type_name -> google.cloud.aiplatform.v1beta1.TensorboardTimeSeries + 52, // 21: google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest.tensorboard_time_series:type_name -> google.cloud.aiplatform.v1beta1.TensorboardTimeSeries + 48, // 22: google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest.read_mask:type_name -> google.protobuf.FieldMask + 52, // 23: google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse.tensorboard_time_series:type_name -> google.cloud.aiplatform.v1beta1.TensorboardTimeSeries + 48, // 24: google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest.update_mask:type_name -> google.protobuf.FieldMask + 52, // 25: google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest.tensorboard_time_series:type_name -> google.cloud.aiplatform.v1beta1.TensorboardTimeSeries + 53, // 26: google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataResponse.time_series_data:type_name -> google.cloud.aiplatform.v1beta1.TimeSeriesData + 53, // 27: google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse.time_series_data:type_name -> google.cloud.aiplatform.v1beta1.TimeSeriesData + 38, // 28: google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest.write_run_data_requests:type_name -> google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest + 53, // 29: google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest.time_series_data:type_name -> google.cloud.aiplatform.v1beta1.TimeSeriesData + 54, // 30: google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse.time_series_data_points:type_name -> google.cloud.aiplatform.v1beta1.TimeSeriesDataPoint + 55, // 31: google.cloud.aiplatform.v1beta1.CreateTensorboardOperationMetadata.generic_metadata:type_name -> google.cloud.aiplatform.v1beta1.GenericOperationMetadata + 55, // 32: google.cloud.aiplatform.v1beta1.UpdateTensorboardOperationMetadata.generic_metadata:type_name -> google.cloud.aiplatform.v1beta1.GenericOperationMetadata + 44, // 33: google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerMonthUsageData.user_usage_data:type_name -> google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerUserUsageData + 45, // 34: google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.MonthlyUsageDataEntry.value:type_name -> google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse.PerMonthUsageData + 0, // 35: google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboard:input_type -> google.cloud.aiplatform.v1beta1.CreateTensorboardRequest + 1, // 36: google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboard:input_type -> google.cloud.aiplatform.v1beta1.GetTensorboardRequest + 2, // 37: google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardUsage:input_type -> google.cloud.aiplatform.v1beta1.ReadTensorboardUsageRequest + 6, // 38: google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboard:input_type -> google.cloud.aiplatform.v1beta1.UpdateTensorboardRequest + 4, // 39: google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards:input_type -> google.cloud.aiplatform.v1beta1.ListTensorboardsRequest + 7, // 40: google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboard:input_type -> google.cloud.aiplatform.v1beta1.DeleteTensorboardRequest + 8, // 41: google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardExperiment:input_type -> google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest + 9, // 42: google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardExperiment:input_type -> google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest + 12, // 43: google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardExperiment:input_type -> google.cloud.aiplatform.v1beta1.UpdateTensorboardExperimentRequest + 10, // 44: google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments:input_type -> google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsRequest + 13, // 45: google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardExperiment:input_type -> google.cloud.aiplatform.v1beta1.DeleteTensorboardExperimentRequest + 16, // 46: google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardRun:input_type -> google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest + 14, // 47: google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardRuns:input_type -> google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest + 17, // 48: google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardRun:input_type -> google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest + 22, // 49: google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardRun:input_type -> google.cloud.aiplatform.v1beta1.UpdateTensorboardRunRequest + 20, // 50: google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns:input_type -> google.cloud.aiplatform.v1beta1.ListTensorboardRunsRequest + 23, // 51: google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardRun:input_type -> google.cloud.aiplatform.v1beta1.DeleteTensorboardRunRequest + 24, // 52: google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest + 26, // 53: google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest + 27, // 54: google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest + 30, // 55: google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1beta1.UpdateTensorboardTimeSeriesRequest + 28, // 56: google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesRequest + 31, // 57: google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardTimeSeries:input_type -> google.cloud.aiplatform.v1beta1.DeleteTensorboardTimeSeriesRequest + 32, // 58: google.cloud.aiplatform.v1beta1.TensorboardService.BatchReadTensorboardTimeSeriesData:input_type -> google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest + 34, // 59: google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardTimeSeriesData:input_type -> google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest + 18, // 60: google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData:input_type -> google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest + 36, // 61: google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardExperimentData:input_type -> google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest + 38, // 62: google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardRunData:input_type -> google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest + 40, // 63: google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData:input_type -> google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataRequest + 56, // 64: google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboard:output_type -> google.longrunning.Operation + 47, // 65: google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboard:output_type -> google.cloud.aiplatform.v1beta1.Tensorboard + 3, // 66: google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardUsage:output_type -> google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse + 56, // 67: google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboard:output_type -> google.longrunning.Operation + 5, // 68: google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards:output_type -> google.cloud.aiplatform.v1beta1.ListTensorboardsResponse + 56, // 69: google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboard:output_type -> google.longrunning.Operation + 49, // 70: google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardExperiment:output_type -> google.cloud.aiplatform.v1beta1.TensorboardExperiment + 49, // 71: google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardExperiment:output_type -> google.cloud.aiplatform.v1beta1.TensorboardExperiment + 49, // 72: google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardExperiment:output_type -> google.cloud.aiplatform.v1beta1.TensorboardExperiment + 11, // 73: google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments:output_type -> google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse + 56, // 74: google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardExperiment:output_type -> google.longrunning.Operation + 50, // 75: google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardRun:output_type -> google.cloud.aiplatform.v1beta1.TensorboardRun + 15, // 76: google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardRuns:output_type -> google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsResponse + 50, // 77: google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardRun:output_type -> google.cloud.aiplatform.v1beta1.TensorboardRun + 50, // 78: google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardRun:output_type -> google.cloud.aiplatform.v1beta1.TensorboardRun + 21, // 79: google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns:output_type -> google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse + 56, // 80: google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardRun:output_type -> google.longrunning.Operation + 25, // 81: google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesResponse + 52, // 82: google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1beta1.TensorboardTimeSeries + 52, // 83: google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1beta1.TensorboardTimeSeries + 52, // 84: google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1beta1.TensorboardTimeSeries + 29, // 85: google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries:output_type -> google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse + 56, // 86: google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardTimeSeries:output_type -> google.longrunning.Operation + 33, // 87: google.cloud.aiplatform.v1beta1.TensorboardService.BatchReadTensorboardTimeSeriesData:output_type -> google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataResponse + 35, // 88: google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardTimeSeriesData:output_type -> google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse + 19, // 89: google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData:output_type -> google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse + 37, // 90: google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardExperimentData:output_type -> google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataResponse + 39, // 91: google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardRunData:output_type -> google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse + 41, // 92: google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData:output_type -> google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse + 64, // [64:93] is the sub-list for method output_type + 35, // [35:64] is the sub-list for method input_type + 35, // [35:35] is the sub-list for extension type_name + 35, // [35:35] is the sub-list for extension extendee + 0, // [0:35] is the sub-list for field type_name } func init() { file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() } @@ -3903,7 +4220,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTensorboardsRequest); i { + switch v := v.(*ReadTensorboardUsageRequest); i { case 0: return &v.state case 1: @@ -3915,7 +4232,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTensorboardsResponse); i { + switch v := v.(*ReadTensorboardUsageResponse); i { case 0: return &v.state case 1: @@ -3927,7 +4244,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateTensorboardRequest); i { + switch v := v.(*ListTensorboardsRequest); i { case 0: return &v.state case 1: @@ -3939,7 +4256,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTensorboardRequest); i { + switch v := v.(*ListTensorboardsResponse); i { case 0: return &v.state case 1: @@ -3951,7 +4268,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTensorboardExperimentRequest); i { + switch v := v.(*UpdateTensorboardRequest); i { case 0: return &v.state case 1: @@ -3963,7 +4280,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTensorboardExperimentRequest); i { + switch v := v.(*DeleteTensorboardRequest); i { case 0: return &v.state case 1: @@ -3975,7 +4292,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTensorboardExperimentsRequest); i { + switch v := v.(*CreateTensorboardExperimentRequest); i { case 0: return &v.state case 1: @@ -3987,7 +4304,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTensorboardExperimentsResponse); i { + switch v := v.(*GetTensorboardExperimentRequest); i { case 0: return &v.state case 1: @@ -3999,7 +4316,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateTensorboardExperimentRequest); i { + switch v := v.(*ListTensorboardExperimentsRequest); i { case 0: return &v.state case 1: @@ -4011,7 +4328,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTensorboardExperimentRequest); i { + switch v := v.(*ListTensorboardExperimentsResponse); i { case 0: return &v.state case 1: @@ -4023,7 +4340,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchCreateTensorboardRunsRequest); i { + switch v := v.(*UpdateTensorboardExperimentRequest); i { case 0: return &v.state case 1: @@ -4035,7 +4352,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchCreateTensorboardRunsResponse); i { + switch v := v.(*DeleteTensorboardExperimentRequest); i { case 0: return &v.state case 1: @@ -4047,7 +4364,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTensorboardRunRequest); i { + switch v := v.(*BatchCreateTensorboardRunsRequest); i { case 0: return &v.state case 1: @@ -4059,7 +4376,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTensorboardRunRequest); i { + switch v := v.(*BatchCreateTensorboardRunsResponse); i { case 0: return &v.state case 1: @@ -4071,7 +4388,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadTensorboardBlobDataRequest); i { + switch v := v.(*CreateTensorboardRunRequest); i { case 0: return &v.state case 1: @@ -4083,7 +4400,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadTensorboardBlobDataResponse); i { + switch v := v.(*GetTensorboardRunRequest); i { case 0: return &v.state case 1: @@ -4095,7 +4412,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTensorboardRunsRequest); i { + switch v := v.(*ReadTensorboardBlobDataRequest); i { case 0: return &v.state case 1: @@ -4107,7 +4424,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTensorboardRunsResponse); i { + switch v := v.(*ReadTensorboardBlobDataResponse); i { case 0: return &v.state case 1: @@ -4119,7 +4436,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateTensorboardRunRequest); i { + switch v := v.(*ListTensorboardRunsRequest); i { case 0: return &v.state case 1: @@ -4131,7 +4448,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTensorboardRunRequest); i { + switch v := v.(*ListTensorboardRunsResponse); i { case 0: return &v.state case 1: @@ -4143,7 +4460,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchCreateTensorboardTimeSeriesRequest); i { + switch v := v.(*UpdateTensorboardRunRequest); i { case 0: return &v.state case 1: @@ -4155,7 +4472,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchCreateTensorboardTimeSeriesResponse); i { + switch v := v.(*DeleteTensorboardRunRequest); i { case 0: return &v.state case 1: @@ -4167,7 +4484,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTensorboardTimeSeriesRequest); i { + switch v := v.(*BatchCreateTensorboardTimeSeriesRequest); i { case 0: return &v.state case 1: @@ -4179,7 +4496,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTensorboardTimeSeriesRequest); i { + switch v := v.(*BatchCreateTensorboardTimeSeriesResponse); i { case 0: return &v.state case 1: @@ -4191,7 +4508,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTensorboardTimeSeriesRequest); i { + switch v := v.(*CreateTensorboardTimeSeriesRequest); i { case 0: return &v.state case 1: @@ -4203,7 +4520,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListTensorboardTimeSeriesResponse); i { + switch v := v.(*GetTensorboardTimeSeriesRequest); i { case 0: return &v.state case 1: @@ -4215,7 +4532,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateTensorboardTimeSeriesRequest); i { + switch v := v.(*ListTensorboardTimeSeriesRequest); i { case 0: return &v.state case 1: @@ -4227,7 +4544,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTensorboardTimeSeriesRequest); i { + switch v := v.(*ListTensorboardTimeSeriesResponse); i { case 0: return &v.state case 1: @@ -4239,7 +4556,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchReadTensorboardTimeSeriesDataRequest); i { + switch v := v.(*UpdateTensorboardTimeSeriesRequest); i { case 0: return &v.state case 1: @@ -4251,7 +4568,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchReadTensorboardTimeSeriesDataResponse); i { + switch v := v.(*DeleteTensorboardTimeSeriesRequest); i { case 0: return &v.state case 1: @@ -4263,7 +4580,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadTensorboardTimeSeriesDataRequest); i { + switch v := v.(*BatchReadTensorboardTimeSeriesDataRequest); i { case 0: return &v.state case 1: @@ -4275,7 +4592,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReadTensorboardTimeSeriesDataResponse); i { + switch v := v.(*BatchReadTensorboardTimeSeriesDataResponse); i { case 0: return &v.state case 1: @@ -4287,7 +4604,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WriteTensorboardExperimentDataRequest); i { + switch v := v.(*ReadTensorboardTimeSeriesDataRequest); i { case 0: return &v.state case 1: @@ -4299,7 +4616,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WriteTensorboardExperimentDataResponse); i { + switch v := v.(*ReadTensorboardTimeSeriesDataResponse); i { case 0: return &v.state case 1: @@ -4311,7 +4628,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WriteTensorboardRunDataRequest); i { + switch v := v.(*WriteTensorboardExperimentDataRequest); i { case 0: return &v.state case 1: @@ -4323,7 +4640,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WriteTensorboardRunDataResponse); i { + switch v := v.(*WriteTensorboardExperimentDataResponse); i { case 0: return &v.state case 1: @@ -4335,7 +4652,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExportTensorboardTimeSeriesDataRequest); i { + switch v := v.(*WriteTensorboardRunDataRequest); i { case 0: return &v.state case 1: @@ -4347,7 +4664,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExportTensorboardTimeSeriesDataResponse); i { + switch v := v.(*WriteTensorboardRunDataResponse); i { case 0: return &v.state case 1: @@ -4359,7 +4676,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTensorboardOperationMetadata); i { + switch v := v.(*ExportTensorboardTimeSeriesDataRequest); i { case 0: return &v.state case 1: @@ -4371,6 +4688,30 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { } } file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExportTensorboardTimeSeriesDataResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateTensorboardOperationMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateTensorboardOperationMetadata); i { case 0: return &v.state @@ -4382,6 +4723,30 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { return nil } } + file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReadTensorboardUsageResponse_PerUserUsageData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReadTensorboardUsageResponse_PerMonthUsageData); 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{ @@ -4389,7 +4754,7 @@ func file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_google_cloud_aiplatform_v1beta1_tensorboard_service_proto_rawDesc, NumEnums: 0, - NumMessages: 42, + NumMessages: 47, NumExtensions: 0, NumServices: 1, }, @@ -4419,6 +4784,8 @@ type TensorboardServiceClient interface { CreateTensorboard(ctx context.Context, in *CreateTensorboardRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Gets a Tensorboard. GetTensorboard(ctx context.Context, in *GetTensorboardRequest, opts ...grpc.CallOption) (*Tensorboard, error) + // Returns a list of monthly active users for a given TensorBoard instance. + ReadTensorboardUsage(ctx context.Context, in *ReadTensorboardUsageRequest, opts ...grpc.CallOption) (*ReadTensorboardUsageResponse, error) // Updates a Tensorboard. UpdateTensorboard(ctx context.Context, in *UpdateTensorboardRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Lists Tensorboards in a Location. @@ -4461,13 +4828,13 @@ type TensorboardServiceClient interface { DeleteTensorboardTimeSeries(ctx context.Context, in *DeleteTensorboardTimeSeriesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Reads multiple TensorboardTimeSeries' data. The data point number limit is // 1000 for scalars, 100 for tensors and blob references. If the number of - // data points stored is less than the limit, all data will be returned. - // Otherwise, that limit number of data points will be randomly selected from + // data points stored is less than the limit, all data is returned. + // Otherwise, the number limit of data points is randomly selected from // this time series and returned. BatchReadTensorboardTimeSeriesData(ctx context.Context, in *BatchReadTensorboardTimeSeriesDataRequest, opts ...grpc.CallOption) (*BatchReadTensorboardTimeSeriesDataResponse, error) // Reads a TensorboardTimeSeries' data. By default, if the number of data - // points stored is less than 1000, all data will be returned. Otherwise, 1000 - // data points will be randomly selected from this time series and returned. + // points stored is less than 1000, all data is returned. Otherwise, 1000 + // data points is randomly selected from this time series and returned. // This value can be changed by changing max_data_points, which can't be // greater than 10k. ReadTensorboardTimeSeriesData(ctx context.Context, in *ReadTensorboardTimeSeriesDataRequest, opts ...grpc.CallOption) (*ReadTensorboardTimeSeriesDataResponse, error) @@ -4477,12 +4844,10 @@ type TensorboardServiceClient interface { // permission. ReadTensorboardBlobData(ctx context.Context, in *ReadTensorboardBlobDataRequest, opts ...grpc.CallOption) (TensorboardService_ReadTensorboardBlobDataClient, error) // Write time series data points of multiple TensorboardTimeSeries in multiple - // TensorboardRun's. If any data fail to be ingested, an error will be - // returned. + // TensorboardRun's. If any data fail to be ingested, an error is returned. WriteTensorboardExperimentData(ctx context.Context, in *WriteTensorboardExperimentDataRequest, opts ...grpc.CallOption) (*WriteTensorboardExperimentDataResponse, error) // Write time series data points into multiple TensorboardTimeSeries under - // a TensorboardRun. If any data fail to be ingested, an error will be - // returned. + // a TensorboardRun. If any data fail to be ingested, an error is returned. WriteTensorboardRunData(ctx context.Context, in *WriteTensorboardRunDataRequest, opts ...grpc.CallOption) (*WriteTensorboardRunDataResponse, error) // Exports a TensorboardTimeSeries' data. Data is returned in paginated // responses. @@ -4515,6 +4880,15 @@ func (c *tensorboardServiceClient) GetTensorboard(ctx context.Context, in *GetTe return out, nil } +func (c *tensorboardServiceClient) ReadTensorboardUsage(ctx context.Context, in *ReadTensorboardUsageRequest, opts ...grpc.CallOption) (*ReadTensorboardUsageResponse, error) { + out := new(ReadTensorboardUsageResponse) + err := c.cc.Invoke(ctx, "/google.cloud.aiplatform.v1beta1.TensorboardService/ReadTensorboardUsage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *tensorboardServiceClient) UpdateTensorboard(ctx context.Context, in *UpdateTensorboardRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { out := new(longrunning.Operation) err := c.cc.Invoke(ctx, "/google.cloud.aiplatform.v1beta1.TensorboardService/UpdateTensorboard", in, out, opts...) @@ -4778,6 +5152,8 @@ type TensorboardServiceServer interface { CreateTensorboard(context.Context, *CreateTensorboardRequest) (*longrunning.Operation, error) // Gets a Tensorboard. GetTensorboard(context.Context, *GetTensorboardRequest) (*Tensorboard, error) + // Returns a list of monthly active users for a given TensorBoard instance. + ReadTensorboardUsage(context.Context, *ReadTensorboardUsageRequest) (*ReadTensorboardUsageResponse, error) // Updates a Tensorboard. UpdateTensorboard(context.Context, *UpdateTensorboardRequest) (*longrunning.Operation, error) // Lists Tensorboards in a Location. @@ -4820,13 +5196,13 @@ type TensorboardServiceServer interface { DeleteTensorboardTimeSeries(context.Context, *DeleteTensorboardTimeSeriesRequest) (*longrunning.Operation, error) // Reads multiple TensorboardTimeSeries' data. The data point number limit is // 1000 for scalars, 100 for tensors and blob references. If the number of - // data points stored is less than the limit, all data will be returned. - // Otherwise, that limit number of data points will be randomly selected from + // data points stored is less than the limit, all data is returned. + // Otherwise, the number limit of data points is randomly selected from // this time series and returned. BatchReadTensorboardTimeSeriesData(context.Context, *BatchReadTensorboardTimeSeriesDataRequest) (*BatchReadTensorboardTimeSeriesDataResponse, error) // Reads a TensorboardTimeSeries' data. By default, if the number of data - // points stored is less than 1000, all data will be returned. Otherwise, 1000 - // data points will be randomly selected from this time series and returned. + // points stored is less than 1000, all data is returned. Otherwise, 1000 + // data points is randomly selected from this time series and returned. // This value can be changed by changing max_data_points, which can't be // greater than 10k. ReadTensorboardTimeSeriesData(context.Context, *ReadTensorboardTimeSeriesDataRequest) (*ReadTensorboardTimeSeriesDataResponse, error) @@ -4836,12 +5212,10 @@ type TensorboardServiceServer interface { // permission. ReadTensorboardBlobData(*ReadTensorboardBlobDataRequest, TensorboardService_ReadTensorboardBlobDataServer) error // Write time series data points of multiple TensorboardTimeSeries in multiple - // TensorboardRun's. If any data fail to be ingested, an error will be - // returned. + // TensorboardRun's. If any data fail to be ingested, an error is returned. WriteTensorboardExperimentData(context.Context, *WriteTensorboardExperimentDataRequest) (*WriteTensorboardExperimentDataResponse, error) // Write time series data points into multiple TensorboardTimeSeries under - // a TensorboardRun. If any data fail to be ingested, an error will be - // returned. + // a TensorboardRun. If any data fail to be ingested, an error is returned. WriteTensorboardRunData(context.Context, *WriteTensorboardRunDataRequest) (*WriteTensorboardRunDataResponse, error) // Exports a TensorboardTimeSeries' data. Data is returned in paginated // responses. @@ -4858,6 +5232,9 @@ func (*UnimplementedTensorboardServiceServer) CreateTensorboard(context.Context, func (*UnimplementedTensorboardServiceServer) GetTensorboard(context.Context, *GetTensorboardRequest) (*Tensorboard, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTensorboard not implemented") } +func (*UnimplementedTensorboardServiceServer) ReadTensorboardUsage(context.Context, *ReadTensorboardUsageRequest) (*ReadTensorboardUsageResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReadTensorboardUsage not implemented") +} func (*UnimplementedTensorboardServiceServer) UpdateTensorboard(context.Context, *UpdateTensorboardRequest) (*longrunning.Operation, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateTensorboard not implemented") } @@ -4977,6 +5354,24 @@ func _TensorboardService_GetTensorboard_Handler(srv interface{}, ctx context.Con return interceptor(ctx, in, info, handler) } +func _TensorboardService_ReadTensorboardUsage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReadTensorboardUsageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TensorboardServiceServer).ReadTensorboardUsage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.aiplatform.v1beta1.TensorboardService/ReadTensorboardUsage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TensorboardServiceServer).ReadTensorboardUsage(ctx, req.(*ReadTensorboardUsageRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _TensorboardService_UpdateTensorboard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateTensorboardRequest) if err := dec(in); err != nil { @@ -5460,6 +5855,10 @@ var _TensorboardService_serviceDesc = grpc.ServiceDesc{ MethodName: "GetTensorboard", Handler: _TensorboardService_GetTensorboard_Handler, }, + { + MethodName: "ReadTensorboardUsage", + Handler: _TensorboardService_ReadTensorboardUsage_Handler, + }, { MethodName: "UpdateTensorboard", Handler: _TensorboardService_UpdateTensorboard_Handler, diff --git a/aiplatform/apiv1beta1/aiplatformpb/tensorboard_time_series.pb.go b/aiplatform/apiv1beta1/aiplatformpb/tensorboard_time_series.pb.go index 5204f504cc12..5fe240efeacb 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/tensorboard_time_series.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/tensorboard_time_series.pb.go @@ -120,12 +120,13 @@ type TensorboardTimeSeries struct { // Used to perform a consistent read-modify-write updates. If not set, a blind // "overwrite" update happens. Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"` - // Immutable. Name of the plugin this time series pertain to. Such as Scalar, Tensor, - // Blob + // Immutable. Name of the plugin this time series pertain to. Such as Scalar, + // Tensor, Blob PluginName string `protobuf:"bytes,8,opt,name=plugin_name,json=pluginName,proto3" json:"plugin_name,omitempty"` // Data of the current plugin, with the size limited to 65KB. PluginData []byte `protobuf:"bytes,9,opt,name=plugin_data,json=pluginData,proto3" json:"plugin_data,omitempty"` - // Output only. Scalar, Tensor, or Blob metadata for this TensorboardTimeSeries. + // Output only. Scalar, Tensor, or Blob metadata for this + // TensorboardTimeSeries. Metadata *TensorboardTimeSeries_Metadata `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"` } @@ -237,13 +238,14 @@ type TensorboardTimeSeries_Metadata struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. Max step index of all data points within a TensorboardTimeSeries. + // Output only. Max step index of all data points within a + // TensorboardTimeSeries. MaxStep int64 `protobuf:"varint,1,opt,name=max_step,json=maxStep,proto3" json:"max_step,omitempty"` // Output only. Max wall clock timestamp of all data points within a // TensorboardTimeSeries. MaxWallTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=max_wall_time,json=maxWallTime,proto3" json:"max_wall_time,omitempty"` - // Output only. The largest blob sequence length (number of blobs) of all data points in - // this time series, if its ValueType is BLOB_SEQUENCE. + // Output only. The largest blob sequence length (number of blobs) of all + // data points in this time series, if its ValueType is BLOB_SEQUENCE. MaxBlobSequenceLength int64 `protobuf:"varint,3,opt,name=max_blob_sequence_length,json=maxBlobSequenceLength,proto3" json:"max_blob_sequence_length,omitempty"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/training_pipeline.pb.go b/aiplatform/apiv1beta1/aiplatformpb/training_pipeline.pb.go index da82780dbef2..71cd343fecf4 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/training_pipeline.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/training_pipeline.pb.go @@ -42,8 +42,8 @@ const ( // The TrainingPipeline orchestrates tasks associated with training a Model. It // always executes the training task, and optionally may also // export data from Vertex AI's Dataset which becomes the training input, -// [upload][google.cloud.aiplatform.v1beta1.ModelService.UploadModel] the Model to Vertex AI, and evaluate the -// Model. +// [upload][google.cloud.aiplatform.v1beta1.ModelService.UploadModel] the Model +// to Vertex AI, and evaluate the Model. type TrainingPipeline struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -54,42 +54,52 @@ type TrainingPipeline struct { // Required. The user-defined name of this TrainingPipeline. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Specifies Vertex AI owned input data that may be used for training the - // Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make - // clear whether this config is used and if there are any special requirements - // on how it should be filled. If nothing about this config is mentioned in - // the [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition], then it should be assumed that the - // TrainingPipeline does not depend on this configuration. + // Model. The TrainingPipeline's + // [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] + // should make clear whether this config is used and if there are any special + // requirements on how it should be filled. If nothing about this config is + // mentioned in the + // [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition], + // then it should be assumed that the TrainingPipeline does not depend on this + // configuration. InputDataConfig *InputDataConfig `protobuf:"bytes,3,opt,name=input_data_config,json=inputDataConfig,proto3" json:"input_data_config,omitempty"` - // Required. A Google Cloud Storage path to the YAML file that defines the training task - // which is responsible for producing the model artifact, and may also include - // additional auxiliary work. - // The definition files that can be used here are found in + // Required. A Google Cloud Storage path to the YAML file that defines the + // training task which is responsible for producing the model artifact, and + // may also include additional auxiliary work. The definition files that can + // be used here are found in // gs://google-cloud-aiplatform/schema/trainingjob/definition/. // Note: The URI given on output will be immutable and probably different, // including the URI scheme, than the one given on input. The output URI will // point to a location where the user only has a read access. TrainingTaskDefinition string `protobuf:"bytes,4,opt,name=training_task_definition,json=trainingTaskDefinition,proto3" json:"training_task_definition,omitempty"` // Required. The training task's parameter(s), as specified in the - // [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition]'s `inputs`. + // [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition]'s + // `inputs`. TrainingTaskInputs *structpb.Value `protobuf:"bytes,5,opt,name=training_task_inputs,json=trainingTaskInputs,proto3" json:"training_task_inputs,omitempty"` - // Output only. The metadata information as specified in the [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition]'s + // Output only. The metadata information as specified in the + // [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition]'s // `metadata`. This metadata is an auxiliary runtime and final information // about the training task. While the pipeline is running this information is // populated only at a best effort basis. Only present if the - // pipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] contains `metadata` object. + // pipeline's + // [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] + // contains `metadata` object. TrainingTaskMetadata *structpb.Value `protobuf:"bytes,6,opt,name=training_task_metadata,json=trainingTaskMetadata,proto3" json:"training_task_metadata,omitempty"` - // Describes the Model that may be uploaded (via [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel]) + // Describes the Model that may be uploaded (via + // [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel]) // by this TrainingPipeline. The TrainingPipeline's - // [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make clear whether this Model - // description should be populated, and if there are any special requirements - // regarding how it should be filled. If nothing is mentioned in the - // [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition], then it should be assumed that this field - // should not be filled and the training task either uploads the Model without - // a need of this information, or that training task does not support - // uploading a Model as part of the pipeline. - // When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and + // [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] + // should make clear whether this Model description should be populated, and + // if there are any special requirements regarding how it should be filled. If + // nothing is mentioned in the + // [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition], + // then it should be assumed that this field should not be filled and the + // training task either uploads the Model without a need of this information, + // or that training task does not support uploading a Model as part of the + // pipeline. When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and // the trained Model had been uploaded into Vertex AI, then the - // model_to_upload's resource [name][google.cloud.aiplatform.v1beta1.Model.name] is populated. The Model + // model_to_upload's resource + // [name][google.cloud.aiplatform.v1beta1.Model.name] is populated. The Model // is always uploaded into the Project and Location in which this pipeline // is. ModelToUpload *Model `protobuf:"bytes,7,opt,name=model_to_upload,json=modelToUpload,proto3" json:"model_to_upload,omitempty"` @@ -99,21 +109,22 @@ type TrainingPipeline struct { // This value may be up to 63 characters, and valid characters are // `[a-z0-9_-]`. The first character cannot be a number or hyphen. ModelId string `protobuf:"bytes,22,opt,name=model_id,json=modelId,proto3" json:"model_id,omitempty"` - // Optional. When specify this field, the `model_to_upload` will not be uploaded as a - // new model, instead, it will become a new version of this `parent_model`. + // Optional. When specify this field, the `model_to_upload` will not be + // uploaded as a new model, instead, it will become a new version of this + // `parent_model`. ParentModel string `protobuf:"bytes,21,opt,name=parent_model,json=parentModel,proto3" json:"parent_model,omitempty"` // Output only. The detailed state of the pipeline. State PipelineState `protobuf:"varint,9,opt,name=state,proto3,enum=google.cloud.aiplatform.v1beta1.PipelineState" json:"state,omitempty"` - // Output only. Only populated when the pipeline's state is `PIPELINE_STATE_FAILED` or - // `PIPELINE_STATE_CANCELLED`. + // Output only. Only populated when the pipeline's state is + // `PIPELINE_STATE_FAILED` or `PIPELINE_STATE_CANCELLED`. Error *status.Status `protobuf:"bytes,10,opt,name=error,proto3" json:"error,omitempty"` // Output only. Time when the TrainingPipeline was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. Time when the TrainingPipeline for the first time entered the // `PIPELINE_STATE_RUNNING` state. StartTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - // Output only. Time when the TrainingPipeline entered any of the following states: - // `PIPELINE_STATE_SUCCEEDED`, `PIPELINE_STATE_FAILED`, + // Output only. Time when the TrainingPipeline entered any of the following + // states: `PIPELINE_STATE_SUCCEEDED`, `PIPELINE_STATE_FAILED`, // `PIPELINE_STATE_CANCELLED`. EndTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Time when the TrainingPipeline was most recently updated. @@ -130,7 +141,8 @@ type TrainingPipeline struct { // TrainingPipeline will be secured by this key. // // Note: Model trained by this TrainingPipeline is also secured by this key if - // [model_to_upload][google.cloud.aiplatform.v1beta1.TrainingPipeline.encryption_spec] is not set separately. + // [model_to_upload][google.cloud.aiplatform.v1beta1.TrainingPipeline.encryption_spec] + // is not set separately. EncryptionSpec *EncryptionSpec `protobuf:"bytes,18,opt,name=encryption_spec,json=encryptionSpec,proto3" json:"encryption_spec,omitempty"` } @@ -294,7 +306,9 @@ type InputDataConfig struct { // The instructions how the input data should be split between the // training, validation and test sets. - // If no split type is provided, the [fraction_split][google.cloud.aiplatform.v1beta1.InputDataConfig.fraction_split] is used by default. + // If no split type is provided, the + // [fraction_split][google.cloud.aiplatform.v1beta1.InputDataConfig.fraction_split] + // is used by default. // // Types that are assignable to Split: // @@ -325,9 +339,9 @@ type InputDataConfig struct { // *InputDataConfig_GcsDestination // *InputDataConfig_BigqueryDestination Destination isInputDataConfig_Destination `protobuf_oneof:"destination"` - // Required. The ID of the Dataset in the same Project and Location which data will be - // used to train the Model. The Dataset must use schema compatible with - // Model being trained, and what is compatible should be described in the + // Required. The ID of the Dataset in the same Project and Location which data + // will be used to train the Model. The Dataset must use schema compatible + // with Model being trained, and what is compatible should be described in the // used TrainingPipeline's [training_task_definition] // [google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition]. // For tabular Datasets, all their data is exported to training, to pick @@ -340,9 +354,9 @@ type InputDataConfig struct { // are used in respectively training, validation or test role, depending on // the role of the DataItem they are on (for the auto-assigned that role is // decided by Vertex AI). A filter with same syntax as the one used in - // [ListAnnotations][google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotations] may be used, but note - // here it filters across all Annotations of the Dataset, and not just within - // a single DataItem. + // [ListAnnotations][google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotations] + // may be used, but note here it filters across all Annotations of the + // Dataset, and not just within a single DataItem. AnnotationsFilter string `protobuf:"bytes,6,opt,name=annotations_filter,json=annotationsFilter,proto3" json:"annotations_filter,omitempty"` // Applicable only to custom training with Datasets that have DataItems and // Annotations. @@ -353,29 +367,40 @@ type InputDataConfig struct { // The schema files that can be used here are found in // gs://google-cloud-aiplatform/schema/dataset/annotation/ , note that the // chosen schema must be consistent with - // [metadata][google.cloud.aiplatform.v1beta1.Dataset.metadata_schema_uri] of the Dataset specified by + // [metadata][google.cloud.aiplatform.v1beta1.Dataset.metadata_schema_uri] of + // the Dataset specified by // [dataset_id][google.cloud.aiplatform.v1beta1.InputDataConfig.dataset_id]. // // Only Annotations that both match this schema and belong to DataItems not // ignored by the split method are used in respectively training, validation // or test role, depending on the role of the DataItem they are on. // - // When used in conjunction with [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter], the Annotations used - // for training are filtered by both [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter] and + // When used in conjunction with + // [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter], + // the Annotations used for training are filtered by both + // [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter] + // and // [annotation_schema_uri][google.cloud.aiplatform.v1beta1.InputDataConfig.annotation_schema_uri]. AnnotationSchemaUri string `protobuf:"bytes,9,opt,name=annotation_schema_uri,json=annotationSchemaUri,proto3" json:"annotation_schema_uri,omitempty"` // Only applicable to Datasets that have SavedQueries. // // The ID of a SavedQuery (annotation set) under the Dataset specified by - // [dataset_id][google.cloud.aiplatform.v1beta1.InputDataConfig.dataset_id] used for filtering Annotations for training. + // [dataset_id][google.cloud.aiplatform.v1beta1.InputDataConfig.dataset_id] + // used for filtering Annotations for training. // // Only Annotations that are associated with this SavedQuery are used in // respectively training. When used in conjunction with - // [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by - // both [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter]. + // [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter], + // the Annotations used for training are filtered by both + // [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] + // and + // [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter]. // - // Only one of [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1beta1.InputDataConfig.annotation_schema_uri] should be - // specified as both of them represent the same thing: problem type. + // Only one of + // [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] + // and + // [annotation_schema_uri][google.cloud.aiplatform.v1beta1.InputDataConfig.annotation_schema_uri] + // should be specified as both of them represent the same thing: problem type. SavedQueryId string `protobuf:"bytes,7,opt,name=saved_query_id,json=savedQueryId,proto3" json:"saved_query_id,omitempty"` // Whether to persist the ML use assignment to data item system labels. PersistMlUseAssignment bool `protobuf:"varint,11,opt,name=persist_ml_use_assignment,json=persistMlUseAssignment,proto3" json:"persist_ml_use_assignment,omitempty"` @@ -697,24 +722,27 @@ type FilterSplit struct { // Required. A filter on DataItems of the Dataset. DataItems that match // this filter are used to train the Model. A filter with same syntax - // as the one used in [DatasetService.ListDataItems][google.cloud.aiplatform.v1beta1.DatasetService.ListDataItems] may be used. If a - // single DataItem is matched by more than one of the FilterSplit filters, - // then it is assigned to the first set that applies to it in the - // training, validation, test order. + // as the one used in + // [DatasetService.ListDataItems][google.cloud.aiplatform.v1beta1.DatasetService.ListDataItems] + // may be used. If a single DataItem is matched by more than one of the + // FilterSplit filters, then it is assigned to the first set that applies to + // it in the training, validation, test order. TrainingFilter string `protobuf:"bytes,1,opt,name=training_filter,json=trainingFilter,proto3" json:"training_filter,omitempty"` // Required. A filter on DataItems of the Dataset. DataItems that match // this filter are used to validate the Model. A filter with same syntax - // as the one used in [DatasetService.ListDataItems][google.cloud.aiplatform.v1beta1.DatasetService.ListDataItems] may be used. If a - // single DataItem is matched by more than one of the FilterSplit filters, - // then it is assigned to the first set that applies to it in the - // training, validation, test order. + // as the one used in + // [DatasetService.ListDataItems][google.cloud.aiplatform.v1beta1.DatasetService.ListDataItems] + // may be used. If a single DataItem is matched by more than one of the + // FilterSplit filters, then it is assigned to the first set that applies to + // it in the training, validation, test order. ValidationFilter string `protobuf:"bytes,2,opt,name=validation_filter,json=validationFilter,proto3" json:"validation_filter,omitempty"` // Required. A filter on DataItems of the Dataset. DataItems that match // this filter are used to test the Model. A filter with same syntax - // as the one used in [DatasetService.ListDataItems][google.cloud.aiplatform.v1beta1.DatasetService.ListDataItems] may be used. If a - // single DataItem is matched by more than one of the FilterSplit filters, - // then it is assigned to the first set that applies to it in the - // training, validation, test order. + // as the one used in + // [DatasetService.ListDataItems][google.cloud.aiplatform.v1beta1.DatasetService.ListDataItems] + // may be used. If a single DataItem is matched by more than one of the + // FilterSplit filters, then it is assigned to the first set that applies to + // it in the training, validation, test order. TestFilter string `protobuf:"bytes,3,opt,name=test_filter,json=testFilter,proto3" json:"test_filter,omitempty"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/unmanaged_container_model.pb.go b/aiplatform/apiv1beta1/aiplatformpb/unmanaged_container_model.pb.go index 6d7c2641e84e..e4e0e89d3ec0 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/unmanaged_container_model.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/unmanaged_container_model.pb.go @@ -48,8 +48,8 @@ type UnmanagedContainerModel struct { ArtifactUri string `protobuf:"bytes,1,opt,name=artifact_uri,json=artifactUri,proto3" json:"artifact_uri,omitempty"` // Contains the schemata used in Model's predictions and explanations PredictSchemata *PredictSchemata `protobuf:"bytes,2,opt,name=predict_schemata,json=predictSchemata,proto3" json:"predict_schemata,omitempty"` - // Input only. The specification of the container that is to be used when deploying - // this Model. + // Input only. The specification of the container that is to be used when + // deploying this Model. ContainerSpec *ModelContainerSpec `protobuf:"bytes,3,opt,name=container_spec,json=containerSpec,proto3" json:"container_spec,omitempty"` } diff --git a/aiplatform/apiv1beta1/aiplatformpb/vizier_service.pb.go b/aiplatform/apiv1beta1/aiplatformpb/vizier_service.pb.go index 3369a06ba57b..d19284fd8d61 100644 --- a/aiplatform/apiv1beta1/aiplatformpb/vizier_service.pb.go +++ b/aiplatform/apiv1beta1/aiplatformpb/vizier_service.pb.go @@ -43,7 +43,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// Request message for [VizierService.GetStudy][google.cloud.aiplatform.v1beta1.VizierService.GetStudy]. +// Request message for +// [VizierService.GetStudy][google.cloud.aiplatform.v1beta1.VizierService.GetStudy]. type GetStudyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -93,7 +94,8 @@ func (x *GetStudyRequest) GetName() string { return "" } -// Request message for [VizierService.CreateStudy][google.cloud.aiplatform.v1beta1.VizierService.CreateStudy]. +// Request message for +// [VizierService.CreateStudy][google.cloud.aiplatform.v1beta1.VizierService.CreateStudy]. type CreateStudyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -152,7 +154,8 @@ func (x *CreateStudyRequest) GetStudy() *Study { return nil } -// Request message for [VizierService.ListStudies][google.cloud.aiplatform.v1beta1.VizierService.ListStudies]. +// Request message for +// [VizierService.ListStudies][google.cloud.aiplatform.v1beta1.VizierService.ListStudies]. type ListStudiesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -222,7 +225,8 @@ func (x *ListStudiesRequest) GetPageSize() int32 { return 0 } -// Response message for [VizierService.ListStudies][google.cloud.aiplatform.v1beta1.VizierService.ListStudies]. +// Response message for +// [VizierService.ListStudies][google.cloud.aiplatform.v1beta1.VizierService.ListStudies]. type ListStudiesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -282,7 +286,8 @@ func (x *ListStudiesResponse) GetNextPageToken() string { return "" } -// Request message for [VizierService.DeleteStudy][google.cloud.aiplatform.v1beta1.VizierService.DeleteStudy]. +// Request message for +// [VizierService.DeleteStudy][google.cloud.aiplatform.v1beta1.VizierService.DeleteStudy]. type DeleteStudyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -332,7 +337,8 @@ func (x *DeleteStudyRequest) GetName() string { return "" } -// Request message for [VizierService.LookupStudy][google.cloud.aiplatform.v1beta1.VizierService.LookupStudy]. +// Request message for +// [VizierService.LookupStudy][google.cloud.aiplatform.v1beta1.VizierService.LookupStudy]. type LookupStudyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -391,7 +397,8 @@ func (x *LookupStudyRequest) GetDisplayName() string { return "" } -// Request message for [VizierService.SuggestTrials][google.cloud.aiplatform.v1beta1.VizierService.SuggestTrials]. +// Request message for +// [VizierService.SuggestTrials][google.cloud.aiplatform.v1beta1.VizierService.SuggestTrials]. type SuggestTrialsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -463,7 +470,8 @@ func (x *SuggestTrialsRequest) GetClientId() string { return "" } -// Response message for [VizierService.SuggestTrials][google.cloud.aiplatform.v1beta1.VizierService.SuggestTrials]. +// Response message for +// [VizierService.SuggestTrials][google.cloud.aiplatform.v1beta1.VizierService.SuggestTrials]. type SuggestTrialsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -601,7 +609,8 @@ func (x *SuggestTrialsMetadata) GetClientId() string { return "" } -// Request message for [VizierService.CreateTrial][google.cloud.aiplatform.v1beta1.VizierService.CreateTrial]. +// Request message for +// [VizierService.CreateTrial][google.cloud.aiplatform.v1beta1.VizierService.CreateTrial]. type CreateTrialRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -660,7 +669,8 @@ func (x *CreateTrialRequest) GetTrial() *Trial { return nil } -// Request message for [VizierService.GetTrial][google.cloud.aiplatform.v1beta1.VizierService.GetTrial]. +// Request message for +// [VizierService.GetTrial][google.cloud.aiplatform.v1beta1.VizierService.GetTrial]. type GetTrialRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -711,7 +721,8 @@ func (x *GetTrialRequest) GetName() string { return "" } -// Request message for [VizierService.ListTrials][google.cloud.aiplatform.v1beta1.VizierService.ListTrials]. +// Request message for +// [VizierService.ListTrials][google.cloud.aiplatform.v1beta1.VizierService.ListTrials]. type ListTrialsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -781,7 +792,8 @@ func (x *ListTrialsRequest) GetPageSize() int32 { return 0 } -// Response message for [VizierService.ListTrials][google.cloud.aiplatform.v1beta1.VizierService.ListTrials]. +// Response message for +// [VizierService.ListTrials][google.cloud.aiplatform.v1beta1.VizierService.ListTrials]. type ListTrialsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -841,7 +853,8 @@ func (x *ListTrialsResponse) GetNextPageToken() string { return "" } -// Request message for [VizierService.AddTrialMeasurement][google.cloud.aiplatform.v1beta1.VizierService.AddTrialMeasurement]. +// Request message for +// [VizierService.AddTrialMeasurement][google.cloud.aiplatform.v1beta1.VizierService.AddTrialMeasurement]. type AddTrialMeasurementRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -901,7 +914,8 @@ func (x *AddTrialMeasurementRequest) GetMeasurement() *Measurement { return nil } -// Request message for [VizierService.CompleteTrial][google.cloud.aiplatform.v1beta1.VizierService.CompleteTrial]. +// Request message for +// [VizierService.CompleteTrial][google.cloud.aiplatform.v1beta1.VizierService.CompleteTrial]. type CompleteTrialRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -983,7 +997,8 @@ func (x *CompleteTrialRequest) GetInfeasibleReason() string { return "" } -// Request message for [VizierService.DeleteTrial][google.cloud.aiplatform.v1beta1.VizierService.DeleteTrial]. +// Request message for +// [VizierService.DeleteTrial][google.cloud.aiplatform.v1beta1.VizierService.DeleteTrial]. type DeleteTrialRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1034,7 +1049,8 @@ func (x *DeleteTrialRequest) GetName() string { return "" } -// Request message for [VizierService.CheckTrialEarlyStoppingState][google.cloud.aiplatform.v1beta1.VizierService.CheckTrialEarlyStoppingState]. +// Request message for +// [VizierService.CheckTrialEarlyStoppingState][google.cloud.aiplatform.v1beta1.VizierService.CheckTrialEarlyStoppingState]. type CheckTrialEarlyStoppingStateRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1085,7 +1101,8 @@ func (x *CheckTrialEarlyStoppingStateRequest) GetTrialName() string { return "" } -// Response message for [VizierService.CheckTrialEarlyStoppingState][google.cloud.aiplatform.v1beta1.VizierService.CheckTrialEarlyStoppingState]. +// Response message for +// [VizierService.CheckTrialEarlyStoppingState][google.cloud.aiplatform.v1beta1.VizierService.CheckTrialEarlyStoppingState]. type CheckTrialEarlyStoppingStateResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1203,7 +1220,8 @@ func (x *CheckTrialEarlyStoppingStateMetatdata) GetTrial() string { return "" } -// Request message for [VizierService.StopTrial][google.cloud.aiplatform.v1beta1.VizierService.StopTrial]. +// Request message for +// [VizierService.StopTrial][google.cloud.aiplatform.v1beta1.VizierService.StopTrial]. type StopTrialRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1254,7 +1272,8 @@ func (x *StopTrialRequest) GetName() string { return "" } -// Request message for [VizierService.ListOptimalTrials][google.cloud.aiplatform.v1beta1.VizierService.ListOptimalTrials]. +// Request message for +// [VizierService.ListOptimalTrials][google.cloud.aiplatform.v1beta1.VizierService.ListOptimalTrials]. type ListOptimalTrialsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1303,7 +1322,8 @@ func (x *ListOptimalTrialsRequest) GetParent() string { return "" } -// Response message for [VizierService.ListOptimalTrials][google.cloud.aiplatform.v1beta1.VizierService.ListOptimalTrials]. +// Response message for +// [VizierService.ListOptimalTrials][google.cloud.aiplatform.v1beta1.VizierService.ListOptimalTrials]. type ListOptimalTrialsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/aiplatform/apiv1beta1/doc.go b/aiplatform/apiv1beta1/doc.go index ff94afb4f798..81efb8581d50 100644 --- a/aiplatform/apiv1beta1/doc.go +++ b/aiplatform/apiv1beta1/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -81,9 +86,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package aiplatform // import "cloud.google.com/go/aiplatform/apiv1beta1" import ( diff --git a/aiplatform/apiv1beta1/featurestore_online_serving_client.go b/aiplatform/apiv1beta1/featurestore_online_serving_client.go index 6b24958fefcd..528f13ac74b7 100644 --- a/aiplatform/apiv1beta1/featurestore_online_serving_client.go +++ b/aiplatform/apiv1beta1/featurestore_online_serving_client.go @@ -433,6 +433,7 @@ func (c *featurestoreOnlineServingGRPCClient) StreamingReadFeatureValues(ctx con md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "entity_type", url.QueryEscape(req.GetEntityType()))) ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).StreamingReadFeatureValues[0:len((*c.CallOptions).StreamingReadFeatureValues):len((*c.CallOptions).StreamingReadFeatureValues)], opts...) var resp aiplatformpb.FeaturestoreOnlineServingService_StreamingReadFeatureValuesClient err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { var err error diff --git a/aiplatform/apiv1beta1/gapic_metadata.json b/aiplatform/apiv1beta1/gapic_metadata.json index 8f16b8c05d6c..18735b5d5a54 100644 --- a/aiplatform/apiv1beta1/gapic_metadata.json +++ b/aiplatform/apiv1beta1/gapic_metadata.json @@ -3341,6 +3341,11 @@ "ReadTensorboardTimeSeriesData" ] }, + "ReadTensorboardUsage": { + "methods": [ + "ReadTensorboardUsage" + ] + }, "SetIamPolicy": { "methods": [ "SetIamPolicy" @@ -3536,6 +3541,11 @@ "ReadTensorboardTimeSeriesData" ] }, + "ReadTensorboardUsage": { + "methods": [ + "ReadTensorboardUsage" + ] + }, "SetIamPolicy": { "methods": [ "SetIamPolicy" diff --git a/aiplatform/apiv1beta1/index_client.go b/aiplatform/apiv1beta1/index_client.go index dd8a38d1286a..197af6e161da 100644 --- a/aiplatform/apiv1beta1/index_client.go +++ b/aiplatform/apiv1beta1/index_client.go @@ -225,7 +225,8 @@ func (c *IndexClient) UpdateIndexOperation(name string) *UpdateIndexOperation { // DeleteIndex deletes an Index. // An Index can only be deleted when all its -// DeployedIndexes had been undeployed. +// DeployedIndexes +// had been undeployed. func (c *IndexClient) DeleteIndex(ctx context.Context, req *aiplatformpb.DeleteIndexRequest, opts ...gax.CallOption) (*DeleteIndexOperation, error) { return c.internalClient.DeleteIndex(ctx, req, opts...) } @@ -1178,7 +1179,8 @@ func (c *indexRESTClient) UpdateIndex(ctx context.Context, req *aiplatformpb.Upd // DeleteIndex deletes an Index. // An Index can only be deleted when all its -// DeployedIndexes had been undeployed. +// DeployedIndexes +// had been undeployed. func (c *indexRESTClient) DeleteIndex(ctx context.Context, req *aiplatformpb.DeleteIndexRequest, opts ...gax.CallOption) (*DeleteIndexOperation, error) { baseUrl, err := url.Parse(c.endpoint) if err != nil { diff --git a/aiplatform/apiv1beta1/job_client.go b/aiplatform/apiv1beta1/job_client.go index 438e3e302899..a1764865caa5 100644 --- a/aiplatform/apiv1beta1/job_client.go +++ b/aiplatform/apiv1beta1/job_client.go @@ -308,13 +308,16 @@ func (c *JobClient) DeleteCustomJobOperation(name string) *DeleteCustomJobOperat // CancelCustomJob cancels a CustomJob. // Starts asynchronous cancellation on the CustomJob. The server // makes a best effort to cancel the job, but success is not -// guaranteed. Clients can use JobService.GetCustomJob or -// other methods to check whether the cancellation succeeded or whether the +// guaranteed. Clients can use +// JobService.GetCustomJob +// or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On successful cancellation, // the CustomJob is not deleted; instead it becomes a job with -// a CustomJob.error value with a google.rpc.Status.code of 1, -// corresponding to Code.CANCELLED, and CustomJob.state is set to -// CANCELLED. +// a CustomJob.error value +// with a google.rpc.Status.code of 1, corresponding +// to Code.CANCELLED, and +// CustomJob.state is set +// to CANCELLED. func (c *JobClient) CancelCustomJob(ctx context.Context, req *aiplatformpb.CancelCustomJobRequest, opts ...gax.CallOption) error { return c.internalClient.CancelCustomJob(ctx, req, opts...) } @@ -379,13 +382,17 @@ func (c *JobClient) DeleteHyperparameterTuningJobOperation(name string) *DeleteH // CancelHyperparameterTuningJob cancels a HyperparameterTuningJob. // Starts asynchronous cancellation on the HyperparameterTuningJob. The server // makes a best effort to cancel the job, but success is not -// guaranteed. Clients can use JobService.GetHyperparameterTuningJob or -// other methods to check whether the cancellation succeeded or whether the +// guaranteed. Clients can use +// JobService.GetHyperparameterTuningJob +// or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On successful cancellation, // the HyperparameterTuningJob is not deleted; instead it becomes a job with -// a HyperparameterTuningJob.error value with a google.rpc.Status.code -// of 1, corresponding to Code.CANCELLED, and -// HyperparameterTuningJob.state is set to CANCELLED. +// a +// HyperparameterTuningJob.error +// value with a google.rpc.Status.code of 1, +// corresponding to Code.CANCELLED, and +// HyperparameterTuningJob.state +// is set to CANCELLED. func (c *JobClient) CancelHyperparameterTuningJob(ctx context.Context, req *aiplatformpb.CancelHyperparameterTuningJobRequest, opts ...gax.CallOption) error { return c.internalClient.CancelHyperparameterTuningJob(ctx, req, opts...) } @@ -422,12 +429,14 @@ func (c *JobClient) DeleteBatchPredictionJobOperation(name string) *DeleteBatchP // // Starts asynchronous cancellation on the BatchPredictionJob. The server // makes the best effort to cancel the job, but success is not -// guaranteed. Clients can use JobService.GetBatchPredictionJob or -// other methods to check whether the cancellation succeeded or whether the +// guaranteed. Clients can use +// JobService.GetBatchPredictionJob +// or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On a successful cancellation, // the BatchPredictionJob is not deleted;instead its -// BatchPredictionJob.state is set to CANCELLED. Any files already -// outputted by the job are not deleted. +// BatchPredictionJob.state +// is set to CANCELLED. Any files already outputted by the job are not +// deleted. func (c *JobClient) CancelBatchPredictionJob(ctx context.Context, req *aiplatformpb.CancelBatchPredictionJobRequest, opts ...gax.CallOption) error { return c.internalClient.CancelBatchPredictionJob(ctx, req, opts...) } @@ -477,7 +486,8 @@ func (c *JobClient) DeleteModelDeploymentMonitoringJobOperation(name string) *De // PauseModelDeploymentMonitoringJob pauses a ModelDeploymentMonitoringJob. If the job is running, the server // makes a best effort to cancel the job. Will mark -// ModelDeploymentMonitoringJob.state to ‘PAUSED’. +// ModelDeploymentMonitoringJob.state +// to ‘PAUSED’. func (c *JobClient) PauseModelDeploymentMonitoringJob(ctx context.Context, req *aiplatformpb.PauseModelDeploymentMonitoringJobRequest, opts ...gax.CallOption) error { return c.internalClient.PauseModelDeploymentMonitoringJob(ctx, req, opts...) } @@ -1970,13 +1980,16 @@ func (c *jobRESTClient) DeleteCustomJob(ctx context.Context, req *aiplatformpb.D // CancelCustomJob cancels a CustomJob. // Starts asynchronous cancellation on the CustomJob. The server // makes a best effort to cancel the job, but success is not -// guaranteed. Clients can use JobService.GetCustomJob or -// other methods to check whether the cancellation succeeded or whether the +// guaranteed. Clients can use +// JobService.GetCustomJob +// or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On successful cancellation, // the CustomJob is not deleted; instead it becomes a job with -// a CustomJob.error value with a google.rpc.Status.code of 1, -// corresponding to Code.CANCELLED, and CustomJob.state is set to -// CANCELLED. +// a CustomJob.error value +// with a google.rpc.Status.code of 1, corresponding +// to Code.CANCELLED, and +// CustomJob.state is set +// to CANCELLED. func (c *jobRESTClient) CancelCustomJob(ctx context.Context, req *aiplatformpb.CancelCustomJobRequest, opts ...gax.CallOption) error { m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} jsonReq, err := m.Marshal(req) @@ -2598,13 +2611,17 @@ func (c *jobRESTClient) DeleteHyperparameterTuningJob(ctx context.Context, req * // CancelHyperparameterTuningJob cancels a HyperparameterTuningJob. // Starts asynchronous cancellation on the HyperparameterTuningJob. The server // makes a best effort to cancel the job, but success is not -// guaranteed. Clients can use JobService.GetHyperparameterTuningJob or -// other methods to check whether the cancellation succeeded or whether the +// guaranteed. Clients can use +// JobService.GetHyperparameterTuningJob +// or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On successful cancellation, // the HyperparameterTuningJob is not deleted; instead it becomes a job with -// a HyperparameterTuningJob.error value with a google.rpc.Status.code -// of 1, corresponding to Code.CANCELLED, and -// HyperparameterTuningJob.state is set to CANCELLED. +// a +// HyperparameterTuningJob.error +// value with a google.rpc.Status.code of 1, +// corresponding to Code.CANCELLED, and +// HyperparameterTuningJob.state +// is set to CANCELLED. func (c *jobRESTClient) CancelHyperparameterTuningJob(ctx context.Context, req *aiplatformpb.CancelHyperparameterTuningJobRequest, opts ...gax.CallOption) error { m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} jsonReq, err := m.Marshal(req) @@ -2918,12 +2935,14 @@ func (c *jobRESTClient) DeleteBatchPredictionJob(ctx context.Context, req *aipla // // Starts asynchronous cancellation on the BatchPredictionJob. The server // makes the best effort to cancel the job, but success is not -// guaranteed. Clients can use JobService.GetBatchPredictionJob or -// other methods to check whether the cancellation succeeded or whether the +// guaranteed. Clients can use +// JobService.GetBatchPredictionJob +// or other methods to check whether the cancellation succeeded or whether the // job completed despite cancellation. On a successful cancellation, // the BatchPredictionJob is not deleted;instead its -// BatchPredictionJob.state is set to CANCELLED. Any files already -// outputted by the job are not deleted. +// BatchPredictionJob.state +// is set to CANCELLED. Any files already outputted by the job are not +// deleted. func (c *jobRESTClient) CancelBatchPredictionJob(ctx context.Context, req *aiplatformpb.CancelBatchPredictionJobRequest, opts ...gax.CallOption) error { m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} jsonReq, err := m.Marshal(req) @@ -3392,7 +3411,8 @@ func (c *jobRESTClient) DeleteModelDeploymentMonitoringJob(ctx context.Context, // PauseModelDeploymentMonitoringJob pauses a ModelDeploymentMonitoringJob. If the job is running, the server // makes a best effort to cancel the job. Will mark -// ModelDeploymentMonitoringJob.state to ‘PAUSED’. +// ModelDeploymentMonitoringJob.state +// to ‘PAUSED’. func (c *jobRESTClient) PauseModelDeploymentMonitoringJob(ctx context.Context, req *aiplatformpb.PauseModelDeploymentMonitoringJobRequest, opts ...gax.CallOption) error { m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} jsonReq, err := m.Marshal(req) diff --git a/aiplatform/apiv1beta1/model_client.go b/aiplatform/apiv1beta1/model_client.go index ac6a8257645b..7dd0dc8a4e51 100644 --- a/aiplatform/apiv1beta1/model_client.go +++ b/aiplatform/apiv1beta1/model_client.go @@ -273,9 +273,12 @@ func (c *ModelClient) UpdateExplanationDatasetOperation(name string) *UpdateExpl // DeleteModel deletes a Model. // -// A model cannot be deleted if any Endpoint resource has a -// DeployedModel based on the model in its -// deployed_models field. +// A model cannot be deleted if any +// Endpoint resource has a +// DeployedModel based on the +// model in its +// deployed_models +// field. func (c *ModelClient) DeleteModel(ctx context.Context, req *aiplatformpb.DeleteModelRequest, opts ...gax.CallOption) (*DeleteModelOperation, error) { return c.internalClient.DeleteModel(ctx, req, opts...) } @@ -290,7 +293,8 @@ func (c *ModelClient) DeleteModelOperation(name string) *DeleteModelOperation { // // Model version can only be deleted if there are no DeployedModels // created from it. Deleting the only version in the Model is not allowed. Use -// DeleteModel for deleting the Model instead. +// DeleteModel for +// deleting the Model instead. func (c *ModelClient) DeleteModelVersion(ctx context.Context, req *aiplatformpb.DeleteModelVersionRequest, opts ...gax.CallOption) (*DeleteModelVersionOperation, error) { return c.internalClient.DeleteModelVersion(ctx, req, opts...) } @@ -308,7 +312,8 @@ func (c *ModelClient) MergeVersionAliases(ctx context.Context, req *aiplatformpb // ExportModel exports a trained, exportable Model to a location specified by the // user. A Model is considered to be exportable if it has at least one -// [supported export format][google.cloud.aiplatform.v1beta1.Model.supported_export_formats]. +// [supported export +// format][google.cloud.aiplatform.v1beta1.Model.supported_export_formats]. func (c *ModelClient) ExportModel(ctx context.Context, req *aiplatformpb.ExportModelRequest, opts ...gax.CallOption) (*ExportModelOperation, error) { return c.internalClient.ExportModel(ctx, req, opts...) } @@ -1484,6 +1489,9 @@ func (c *modelRESTClient) ListModelVersions(ctx context.Context, req *aiplatform if req.GetFilter() != "" { params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) } + if req.GetOrderBy() != "" { + params.Add("orderBy", fmt.Sprintf("%v", req.GetOrderBy())) + } if req.GetPageSize() != 0 { params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) } @@ -1692,9 +1700,12 @@ func (c *modelRESTClient) UpdateExplanationDataset(ctx context.Context, req *aip // DeleteModel deletes a Model. // -// A model cannot be deleted if any Endpoint resource has a -// DeployedModel based on the model in its -// deployed_models field. +// A model cannot be deleted if any +// Endpoint resource has a +// DeployedModel based on the +// model in its +// deployed_models +// field. func (c *modelRESTClient) DeleteModel(ctx context.Context, req *aiplatformpb.DeleteModelRequest, opts ...gax.CallOption) (*DeleteModelOperation, error) { baseUrl, err := url.Parse(c.endpoint) if err != nil { @@ -1755,7 +1766,8 @@ func (c *modelRESTClient) DeleteModel(ctx context.Context, req *aiplatformpb.Del // // Model version can only be deleted if there are no DeployedModels // created from it. Deleting the only version in the Model is not allowed. Use -// DeleteModel for deleting the Model instead. +// DeleteModel for +// deleting the Model instead. func (c *modelRESTClient) DeleteModelVersion(ctx context.Context, req *aiplatformpb.DeleteModelVersionRequest, opts ...gax.CallOption) (*DeleteModelVersionOperation, error) { baseUrl, err := url.Parse(c.endpoint) if err != nil { @@ -1873,7 +1885,8 @@ func (c *modelRESTClient) MergeVersionAliases(ctx context.Context, req *aiplatfo // ExportModel exports a trained, exportable Model to a location specified by the // user. A Model is considered to be exportable if it has at least one -// [supported export format][google.cloud.aiplatform.v1beta1.Model.supported_export_formats]. +// [supported export +// format][google.cloud.aiplatform.v1beta1.Model.supported_export_formats]. func (c *modelRESTClient) ExportModel(ctx context.Context, req *aiplatformpb.ExportModelRequest, opts ...gax.CallOption) (*ExportModelOperation, error) { m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} jsonReq, err := m.Marshal(req) diff --git a/aiplatform/apiv1beta1/pipeline_client.go b/aiplatform/apiv1beta1/pipeline_client.go index 7a7f60cff66f..4fdb7af05d3c 100644 --- a/aiplatform/apiv1beta1/pipeline_client.go +++ b/aiplatform/apiv1beta1/pipeline_client.go @@ -234,13 +234,17 @@ func (c *PipelineClient) DeleteTrainingPipelineOperation(name string) *DeleteTra // CancelTrainingPipeline cancels a TrainingPipeline. // Starts asynchronous cancellation on the TrainingPipeline. The server // makes a best effort to cancel the pipeline, but success is not -// guaranteed. Clients can use PipelineService.GetTrainingPipeline or -// other methods to check whether the cancellation succeeded or whether the +// guaranteed. Clients can use +// PipelineService.GetTrainingPipeline +// or other methods to check whether the cancellation succeeded or whether the // pipeline completed despite cancellation. On successful cancellation, // the TrainingPipeline is not deleted; instead it becomes a pipeline with -// a TrainingPipeline.error value with a google.rpc.Status.code of 1, -// corresponding to Code.CANCELLED, and TrainingPipeline.state is set to -// CANCELLED. +// a +// TrainingPipeline.error +// value with a google.rpc.Status.code of 1, +// corresponding to Code.CANCELLED, and +// TrainingPipeline.state +// is set to CANCELLED. func (c *PipelineClient) CancelTrainingPipeline(ctx context.Context, req *aiplatformpb.CancelTrainingPipelineRequest, opts ...gax.CallOption) error { return c.internalClient.CancelTrainingPipeline(ctx, req, opts...) } @@ -274,13 +278,16 @@ func (c *PipelineClient) DeletePipelineJobOperation(name string) *DeletePipeline // CancelPipelineJob cancels a PipelineJob. // Starts asynchronous cancellation on the PipelineJob. The server // makes a best effort to cancel the pipeline, but success is not -// guaranteed. Clients can use PipelineService.GetPipelineJob or -// other methods to check whether the cancellation succeeded or whether the +// guaranteed. Clients can use +// PipelineService.GetPipelineJob +// or other methods to check whether the cancellation succeeded or whether the // pipeline completed despite cancellation. On successful cancellation, // the PipelineJob is not deleted; instead it becomes a pipeline with -// a PipelineJob.error value with a google.rpc.Status.code of 1, -// corresponding to Code.CANCELLED, and PipelineJob.state is set to -// CANCELLED. +// a PipelineJob.error +// value with a google.rpc.Status.code of 1, +// corresponding to Code.CANCELLED, and +// PipelineJob.state is +// set to CANCELLED. func (c *PipelineClient) CancelPipelineJob(ctx context.Context, req *aiplatformpb.CancelPipelineJobRequest, opts ...gax.CallOption) error { return c.internalClient.CancelPipelineJob(ctx, req, opts...) } @@ -1270,13 +1277,17 @@ func (c *pipelineRESTClient) DeleteTrainingPipeline(ctx context.Context, req *ai // CancelTrainingPipeline cancels a TrainingPipeline. // Starts asynchronous cancellation on the TrainingPipeline. The server // makes a best effort to cancel the pipeline, but success is not -// guaranteed. Clients can use PipelineService.GetTrainingPipeline or -// other methods to check whether the cancellation succeeded or whether the +// guaranteed. Clients can use +// PipelineService.GetTrainingPipeline +// or other methods to check whether the cancellation succeeded or whether the // pipeline completed despite cancellation. On successful cancellation, // the TrainingPipeline is not deleted; instead it becomes a pipeline with -// a TrainingPipeline.error value with a google.rpc.Status.code of 1, -// corresponding to Code.CANCELLED, and TrainingPipeline.state is set to -// CANCELLED. +// a +// TrainingPipeline.error +// value with a google.rpc.Status.code of 1, +// corresponding to Code.CANCELLED, and +// TrainingPipeline.state +// is set to CANCELLED. func (c *pipelineRESTClient) CancelTrainingPipeline(ctx context.Context, req *aiplatformpb.CancelTrainingPipelineRequest, opts ...gax.CallOption) error { m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} jsonReq, err := m.Marshal(req) @@ -1597,13 +1608,16 @@ func (c *pipelineRESTClient) DeletePipelineJob(ctx context.Context, req *aiplatf // CancelPipelineJob cancels a PipelineJob. // Starts asynchronous cancellation on the PipelineJob. The server // makes a best effort to cancel the pipeline, but success is not -// guaranteed. Clients can use PipelineService.GetPipelineJob or -// other methods to check whether the cancellation succeeded or whether the +// guaranteed. Clients can use +// PipelineService.GetPipelineJob +// or other methods to check whether the cancellation succeeded or whether the // pipeline completed despite cancellation. On successful cancellation, // the PipelineJob is not deleted; instead it becomes a pipeline with -// a PipelineJob.error value with a google.rpc.Status.code of 1, -// corresponding to Code.CANCELLED, and PipelineJob.state is set to -// CANCELLED. +// a PipelineJob.error +// value with a google.rpc.Status.code of 1, +// corresponding to Code.CANCELLED, and +// PipelineJob.state is +// set to CANCELLED. func (c *pipelineRESTClient) CancelPipelineJob(ctx context.Context, req *aiplatformpb.CancelPipelineJobRequest, opts ...gax.CallOption) error { m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} jsonReq, err := m.Marshal(req) diff --git a/aiplatform/apiv1beta1/prediction_client.go b/aiplatform/apiv1beta1/prediction_client.go index 5edfd7323488..883a0f509ebd 100644 --- a/aiplatform/apiv1beta1/prediction_client.go +++ b/aiplatform/apiv1beta1/prediction_client.go @@ -175,21 +175,25 @@ func (c *PredictionClient) Predict(ctx context.Context, req *aiplatformpb.Predic // // The response includes the following HTTP headers: // -// X-Vertex-AI-Endpoint-Id: ID of the Endpoint that served this +// X-Vertex-AI-Endpoint-Id: ID of the +// Endpoint that served this // prediction. // -// X-Vertex-AI-Deployed-Model-Id: ID of the Endpoint’s DeployedModel -// that served this prediction. +// X-Vertex-AI-Deployed-Model-Id: ID of the Endpoint’s +// DeployedModel that served +// this prediction. func (c *PredictionClient) RawPredict(ctx context.Context, req *aiplatformpb.RawPredictRequest, opts ...gax.CallOption) (*httpbodypb.HttpBody, error) { return c.internalClient.RawPredict(ctx, req, opts...) } // Explain perform an online explanation. // -// If deployed_model_id is specified, -// the corresponding DeployModel must have +// If +// deployed_model_id +// is specified, the corresponding DeployModel must have // explanation_spec -// populated. If deployed_model_id +// populated. If +// deployed_model_id // is not specified, all DeployedModels must have // explanation_spec // populated. Only deployed AutoML tabular Models have @@ -759,11 +763,13 @@ func (c *predictionRESTClient) Predict(ctx context.Context, req *aiplatformpb.Pr // // The response includes the following HTTP headers: // -// X-Vertex-AI-Endpoint-Id: ID of the Endpoint that served this +// X-Vertex-AI-Endpoint-Id: ID of the +// Endpoint that served this // prediction. // -// X-Vertex-AI-Deployed-Model-Id: ID of the Endpoint’s DeployedModel -// that served this prediction. +// X-Vertex-AI-Deployed-Model-Id: ID of the Endpoint’s +// DeployedModel that served +// this prediction. func (c *predictionRESTClient) RawPredict(ctx context.Context, req *aiplatformpb.RawPredictRequest, opts ...gax.CallOption) (*httpbodypb.HttpBody, error) { m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} jsonReq, err := m.Marshal(req) @@ -824,10 +830,12 @@ func (c *predictionRESTClient) RawPredict(ctx context.Context, req *aiplatformpb // Explain perform an online explanation. // -// If deployed_model_id is specified, -// the corresponding DeployModel must have +// If +// deployed_model_id +// is specified, the corresponding DeployModel must have // explanation_spec -// populated. If deployed_model_id +// populated. If +// deployed_model_id // is not specified, all DeployedModels must have // explanation_spec // populated. Only deployed AutoML tabular Models have diff --git a/aiplatform/apiv1beta1/tensorboard_client.go b/aiplatform/apiv1beta1/tensorboard_client.go index e72130a8c3f3..d7c5fd361c0e 100644 --- a/aiplatform/apiv1beta1/tensorboard_client.go +++ b/aiplatform/apiv1beta1/tensorboard_client.go @@ -51,6 +51,7 @@ var newTensorboardClientHook clientHook type TensorboardCallOptions struct { CreateTensorboard []gax.CallOption GetTensorboard []gax.CallOption + ReadTensorboardUsage []gax.CallOption UpdateTensorboard []gax.CallOption ListTensorboards []gax.CallOption DeleteTensorboard []gax.CallOption @@ -105,6 +106,7 @@ func defaultTensorboardCallOptions() *TensorboardCallOptions { return &TensorboardCallOptions{ CreateTensorboard: []gax.CallOption{}, GetTensorboard: []gax.CallOption{}, + ReadTensorboardUsage: []gax.CallOption{}, UpdateTensorboard: []gax.CallOption{}, ListTensorboards: []gax.CallOption{}, DeleteTensorboard: []gax.CallOption{}, @@ -148,6 +150,7 @@ func defaultTensorboardRESTCallOptions() *TensorboardCallOptions { return &TensorboardCallOptions{ CreateTensorboard: []gax.CallOption{}, GetTensorboard: []gax.CallOption{}, + ReadTensorboardUsage: []gax.CallOption{}, UpdateTensorboard: []gax.CallOption{}, ListTensorboards: []gax.CallOption{}, DeleteTensorboard: []gax.CallOption{}, @@ -195,6 +198,7 @@ type internalTensorboardClient interface { CreateTensorboard(context.Context, *aiplatformpb.CreateTensorboardRequest, ...gax.CallOption) (*CreateTensorboardOperation, error) CreateTensorboardOperation(name string) *CreateTensorboardOperation GetTensorboard(context.Context, *aiplatformpb.GetTensorboardRequest, ...gax.CallOption) (*aiplatformpb.Tensorboard, error) + ReadTensorboardUsage(context.Context, *aiplatformpb.ReadTensorboardUsageRequest, ...gax.CallOption) (*aiplatformpb.ReadTensorboardUsageResponse, error) UpdateTensorboard(context.Context, *aiplatformpb.UpdateTensorboardRequest, ...gax.CallOption) (*UpdateTensorboardOperation, error) UpdateTensorboardOperation(name string) *UpdateTensorboardOperation ListTensorboards(context.Context, *aiplatformpb.ListTensorboardsRequest, ...gax.CallOption) *TensorboardIterator @@ -294,6 +298,11 @@ func (c *TensorboardClient) GetTensorboard(ctx context.Context, req *aiplatformp return c.internalClient.GetTensorboard(ctx, req, opts...) } +// ReadTensorboardUsage returns a list of monthly active users for a given TensorBoard instance. +func (c *TensorboardClient) ReadTensorboardUsage(ctx context.Context, req *aiplatformpb.ReadTensorboardUsageRequest, opts ...gax.CallOption) (*aiplatformpb.ReadTensorboardUsageResponse, error) { + return c.internalClient.ReadTensorboardUsage(ctx, req, opts...) +} + // UpdateTensorboard updates a Tensorboard. func (c *TensorboardClient) UpdateTensorboard(ctx context.Context, req *aiplatformpb.UpdateTensorboardRequest, opts ...gax.CallOption) (*UpdateTensorboardOperation, error) { return c.internalClient.UpdateTensorboard(ctx, req, opts...) @@ -426,16 +435,16 @@ func (c *TensorboardClient) DeleteTensorboardTimeSeriesOperation(name string) *D // BatchReadTensorboardTimeSeriesData reads multiple TensorboardTimeSeries’ data. The data point number limit is // 1000 for scalars, 100 for tensors and blob references. If the number of -// data points stored is less than the limit, all data will be returned. -// Otherwise, that limit number of data points will be randomly selected from +// data points stored is less than the limit, all data is returned. +// Otherwise, the number limit of data points is randomly selected from // this time series and returned. func (c *TensorboardClient) BatchReadTensorboardTimeSeriesData(ctx context.Context, req *aiplatformpb.BatchReadTensorboardTimeSeriesDataRequest, opts ...gax.CallOption) (*aiplatformpb.BatchReadTensorboardTimeSeriesDataResponse, error) { return c.internalClient.BatchReadTensorboardTimeSeriesData(ctx, req, opts...) } // ReadTensorboardTimeSeriesData reads a TensorboardTimeSeries’ data. By default, if the number of data -// points stored is less than 1000, all data will be returned. Otherwise, 1000 -// data points will be randomly selected from this time series and returned. +// points stored is less than 1000, all data is returned. Otherwise, 1000 +// data points is randomly selected from this time series and returned. // This value can be changed by changing max_data_points, which can’t be // greater than 10k. func (c *TensorboardClient) ReadTensorboardTimeSeriesData(ctx context.Context, req *aiplatformpb.ReadTensorboardTimeSeriesDataRequest, opts ...gax.CallOption) (*aiplatformpb.ReadTensorboardTimeSeriesDataResponse, error) { @@ -451,15 +460,13 @@ func (c *TensorboardClient) ReadTensorboardBlobData(ctx context.Context, req *ai } // WriteTensorboardExperimentData write time series data points of multiple TensorboardTimeSeries in multiple -// TensorboardRun’s. If any data fail to be ingested, an error will be -// returned. +// TensorboardRun’s. If any data fail to be ingested, an error is returned. func (c *TensorboardClient) WriteTensorboardExperimentData(ctx context.Context, req *aiplatformpb.WriteTensorboardExperimentDataRequest, opts ...gax.CallOption) (*aiplatformpb.WriteTensorboardExperimentDataResponse, error) { return c.internalClient.WriteTensorboardExperimentData(ctx, req, opts...) } // WriteTensorboardRunData write time series data points into multiple TensorboardTimeSeries under -// a TensorboardRun. If any data fail to be ingested, an error will be -// returned. +// a TensorboardRun. If any data fail to be ingested, an error is returned. func (c *TensorboardClient) WriteTensorboardRunData(ctx context.Context, req *aiplatformpb.WriteTensorboardRunDataRequest, opts ...gax.CallOption) (*aiplatformpb.WriteTensorboardRunDataResponse, error) { return c.internalClient.WriteTensorboardRunData(ctx, req, opts...) } @@ -756,6 +763,23 @@ func (c *tensorboardGRPCClient) GetTensorboard(ctx context.Context, req *aiplatf return resp, nil } +func (c *tensorboardGRPCClient) ReadTensorboardUsage(ctx context.Context, req *aiplatformpb.ReadTensorboardUsageRequest, opts ...gax.CallOption) (*aiplatformpb.ReadTensorboardUsageResponse, error) { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "tensorboard", url.QueryEscape(req.GetTensorboard()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).ReadTensorboardUsage[0:len((*c.CallOptions).ReadTensorboardUsage):len((*c.CallOptions).ReadTensorboardUsage)], opts...) + var resp *aiplatformpb.ReadTensorboardUsageResponse + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.tensorboardClient.ReadTensorboardUsage(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return resp, nil +} + func (c *tensorboardGRPCClient) UpdateTensorboard(ctx context.Context, req *aiplatformpb.UpdateTensorboardRequest, opts ...gax.CallOption) (*UpdateTensorboardOperation, error) { md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "tensorboard.name", url.QueryEscape(req.GetTensorboard().GetName()))) @@ -1256,6 +1280,7 @@ func (c *tensorboardGRPCClient) ReadTensorboardBlobData(ctx context.Context, req md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "time_series", url.QueryEscape(req.GetTimeSeries()))) ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).ReadTensorboardBlobData[0:len((*c.CallOptions).ReadTensorboardBlobData):len((*c.CallOptions).ReadTensorboardBlobData)], opts...) var resp aiplatformpb.TensorboardService_ReadTensorboardBlobDataClient err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { var err error @@ -1682,6 +1707,59 @@ func (c *tensorboardRESTClient) GetTensorboard(ctx context.Context, req *aiplatf return resp, nil } +// ReadTensorboardUsage returns a list of monthly active users for a given TensorBoard instance. +func (c *tensorboardRESTClient) ReadTensorboardUsage(ctx context.Context, req *aiplatformpb.ReadTensorboardUsageRequest, opts ...gax.CallOption) (*aiplatformpb.ReadTensorboardUsageResponse, error) { + baseUrl, err := url.Parse(c.endpoint) + if err != nil { + return nil, err + } + baseUrl.Path += fmt.Sprintf("/v1beta1/%v:readUsage", req.GetTensorboard()) + + // Build HTTP headers from client and context metadata. + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "tensorboard", url.QueryEscape(req.GetTensorboard()))) + + headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) + opts = append((*c.CallOptions).ReadTensorboardUsage[0:len((*c.CallOptions).ReadTensorboardUsage):len((*c.CallOptions).ReadTensorboardUsage)], opts...) + unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} + resp := &aiplatformpb.ReadTensorboardUsageResponse{} + e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + if settings.Path != "" { + baseUrl.Path = settings.Path + } + httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) + if err != nil { + return err + } + httpReq = httpReq.WithContext(ctx) + httpReq.Header = headers + + httpRsp, err := c.httpClient.Do(httpReq) + if err != nil { + return err + } + defer httpRsp.Body.Close() + + if err = googleapi.CheckResponse(httpRsp); err != nil { + return err + } + + buf, err := ioutil.ReadAll(httpRsp.Body) + if err != nil { + return err + } + + if err := unm.Unmarshal(buf, resp); err != nil { + return maybeUnknownEnum(err) + } + + return nil + }, opts...) + if e != nil { + return nil, e + } + return resp, nil +} + // UpdateTensorboard updates a Tensorboard. func (c *tensorboardRESTClient) UpdateTensorboard(ctx context.Context, req *aiplatformpb.UpdateTensorboardRequest, opts ...gax.CallOption) (*UpdateTensorboardOperation, error) { m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} @@ -3074,8 +3152,8 @@ func (c *tensorboardRESTClient) DeleteTensorboardTimeSeries(ctx context.Context, // BatchReadTensorboardTimeSeriesData reads multiple TensorboardTimeSeries’ data. The data point number limit is // 1000 for scalars, 100 for tensors and blob references. If the number of -// data points stored is less than the limit, all data will be returned. -// Otherwise, that limit number of data points will be randomly selected from +// data points stored is less than the limit, all data is returned. +// Otherwise, the number limit of data points is randomly selected from // this time series and returned. func (c *tensorboardRESTClient) BatchReadTensorboardTimeSeriesData(ctx context.Context, req *aiplatformpb.BatchReadTensorboardTimeSeriesDataRequest, opts ...gax.CallOption) (*aiplatformpb.BatchReadTensorboardTimeSeriesDataResponse, error) { baseUrl, err := url.Parse(c.endpoint) @@ -3139,8 +3217,8 @@ func (c *tensorboardRESTClient) BatchReadTensorboardTimeSeriesData(ctx context.C } // ReadTensorboardTimeSeriesData reads a TensorboardTimeSeries’ data. By default, if the number of data -// points stored is less than 1000, all data will be returned. Otherwise, 1000 -// data points will be randomly selected from this time series and returned. +// points stored is less than 1000, all data is returned. Otherwise, 1000 +// data points is randomly selected from this time series and returned. // This value can be changed by changing max_data_points, which can’t be // greater than 10k. func (c *tensorboardRESTClient) ReadTensorboardTimeSeriesData(ctx context.Context, req *aiplatformpb.ReadTensorboardTimeSeriesDataRequest, opts ...gax.CallOption) (*aiplatformpb.ReadTensorboardTimeSeriesDataResponse, error) { @@ -3311,8 +3389,7 @@ func (c *readTensorboardBlobDataRESTClient) RecvMsg(m interface{}) error { } // WriteTensorboardExperimentData write time series data points of multiple TensorboardTimeSeries in multiple -// TensorboardRun’s. If any data fail to be ingested, an error will be -// returned. +// TensorboardRun’s. If any data fail to be ingested, an error is returned. func (c *tensorboardRESTClient) WriteTensorboardExperimentData(ctx context.Context, req *aiplatformpb.WriteTensorboardExperimentDataRequest, opts ...gax.CallOption) (*aiplatformpb.WriteTensorboardExperimentDataResponse, error) { m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} jsonReq, err := m.Marshal(req) @@ -3372,8 +3449,7 @@ func (c *tensorboardRESTClient) WriteTensorboardExperimentData(ctx context.Conte } // WriteTensorboardRunData write time series data points into multiple TensorboardTimeSeries under -// a TensorboardRun. If any data fail to be ingested, an error will be -// returned. +// a TensorboardRun. If any data fail to be ingested, an error is returned. func (c *tensorboardRESTClient) WriteTensorboardRunData(ctx context.Context, req *aiplatformpb.WriteTensorboardRunDataRequest, opts ...gax.CallOption) (*aiplatformpb.WriteTensorboardRunDataResponse, error) { m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} jsonReq, err := m.Marshal(req) diff --git a/aiplatform/apiv1beta1/tensorboard_client_example_test.go b/aiplatform/apiv1beta1/tensorboard_client_example_test.go index 0e3b03215ca6..df07d1deff97 100644 --- a/aiplatform/apiv1beta1/tensorboard_client_example_test.go +++ b/aiplatform/apiv1beta1/tensorboard_client_example_test.go @@ -116,6 +116,31 @@ func ExampleTensorboardClient_GetTensorboard() { _ = resp } +func ExampleTensorboardClient_ReadTensorboardUsage() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := aiplatform.NewTensorboardClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ReadTensorboardUsageRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb#ReadTensorboardUsageRequest. + } + resp, err := c.ReadTensorboardUsage(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + func ExampleTensorboardClient_UpdateTensorboard() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. diff --git a/aiplatform/go.mod b/aiplatform/go.mod index ceaf07997392..57c7aad1bcc2 100644 --- a/aiplatform/go.mod +++ b/aiplatform/go.mod @@ -5,24 +5,25 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.13.0 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/aiplatform/go.sum b/aiplatform/go.sum index 84ed9a231d59..299518b5132c 100644 --- a/aiplatform/go.sum +++ b/aiplatform/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.13.0 h1:AYrLkB8NPdDRslNp4Jxmzrhdr03fUAIDbiGFjLWowoU= -cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd h1:OjndDrsik+Gt+e6fs45z9AxiewiKyLKYpA45W5Kpkks= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/analytics/admin/apiv1alpha/doc.go b/analytics/admin/apiv1alpha/doc.go index 5defdcba5dd6..3284b9b3da02 100644 --- a/analytics/admin/apiv1alpha/doc.go +++ b/analytics/admin/apiv1alpha/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in alpha. It is not stable, and is likely to change. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package admin // import "cloud.google.com/go/analytics/admin/apiv1alpha" import ( diff --git a/analytics/go.mod b/analytics/go.mod index ae78921d89b8..2cf64a93b667 100644 --- a/analytics/go.mod +++ b/analytics/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/analytics/go.sum b/analytics/go.sum index b197d3308493..067d9e20ab06 100644 --- a/analytics/go.sum +++ b/analytics/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/apigateway/apiv1/doc.go b/apigateway/apiv1/doc.go index 3fc3f013a9f6..9c0ce783bb10 100644 --- a/apigateway/apiv1/doc.go +++ b/apigateway/apiv1/doc.go @@ -17,6 +17,11 @@ // Package apigateway is an auto-generated package for the // API Gateway API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -77,9 +82,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package apigateway // import "cloud.google.com/go/apigateway/apiv1" import ( diff --git a/apigateway/go.mod b/apigateway/go.mod index d3f7071c53b1..13358377799d 100644 --- a/apigateway/go.mod +++ b/apigateway/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/apigateway/go.sum b/apigateway/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/apigateway/go.sum +++ b/apigateway/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/apigeeconnect/apiv1/doc.go b/apigeeconnect/apiv1/doc.go index 231868da5e88..ea6c9aaa26bd 100644 --- a/apigeeconnect/apiv1/doc.go +++ b/apigeeconnect/apiv1/doc.go @@ -17,6 +17,11 @@ // Package apigeeconnect is an auto-generated package for the // Apigee Connect API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -77,9 +82,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package apigeeconnect // import "cloud.google.com/go/apigeeconnect/apiv1" import ( diff --git a/apigeeconnect/go.mod b/apigeeconnect/go.mod index 330640fa9b19..59ba072ffed6 100644 --- a/apigeeconnect/go.mod +++ b/apigeeconnect/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/apigeeconnect/go.sum b/apigeeconnect/go.sum index b197d3308493..067d9e20ab06 100644 --- a/apigeeconnect/go.sum +++ b/apigeeconnect/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/apigeeregistry/apiv1/doc.go b/apigeeregistry/apiv1/doc.go index 25d050f4808c..e1169d4508b1 100644 --- a/apigeeregistry/apiv1/doc.go +++ b/apigeeregistry/apiv1/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -78,9 +83,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package apigeeregistry // import "cloud.google.com/go/apigeeregistry/apiv1" import ( diff --git a/apigeeregistry/go.mod b/apigeeregistry/go.mod index 5c9d1132929d..ab80506f1063 100644 --- a/apigeeregistry/go.mod +++ b/apigeeregistry/go.mod @@ -5,24 +5,25 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/apigeeregistry/go.sum b/apigeeregistry/go.sum index 54d1dd38beb2..299518b5132c 100644 --- a/apigeeregistry/go.sum +++ b/apigeeregistry/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c h1:QgY/XxIAIeccR+Ca/rDdKubLIU9rcJ3xfy1DC/Wd2Oo= -google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c/go.mod h1:CGI5F/G+E5bKwmfYo09AXuVN4dD894kIKUFmVbP2/Fo= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/apikeys/apiv2/doc.go b/apikeys/apiv2/doc.go index f25a8f81b331..e032ba289cdb 100644 --- a/apikeys/apiv2/doc.go +++ b/apikeys/apiv2/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package apikeys // import "cloud.google.com/go/apikeys/apiv2" import ( diff --git a/apikeys/go.mod b/apikeys/go.mod index d0661b5472b9..1d2a79fb8102 100644 --- a/apikeys/go.mod +++ b/apikeys/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/apikeys/go.sum b/apikeys/go.sum index 54d1dd38beb2..b629d3d5cb73 100644 --- a/apikeys/go.sum +++ b/apikeys/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c h1:QgY/XxIAIeccR+Ca/rDdKubLIU9rcJ3xfy1DC/Wd2Oo= -google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c/go.mod h1:CGI5F/G+E5bKwmfYo09AXuVN4dD894kIKUFmVbP2/Fo= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/appengine/apiv1/doc.go b/appengine/apiv1/doc.go index 5d7e2ae58295..6f3662e858c7 100644 --- a/appengine/apiv1/doc.go +++ b/appengine/apiv1/doc.go @@ -19,6 +19,11 @@ // // Provisions and manages developers’ App Engine applications. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package appengine // import "cloud.google.com/go/appengine/apiv1" import ( diff --git a/appengine/go.mod b/appengine/go.mod index 0f1c11bcd27f..bf298bd89532 100644 --- a/appengine/go.mod +++ b/appengine/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/appengine/go.sum b/appengine/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/appengine/go.sum +++ b/appengine/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/area120/go.mod b/area120/go.mod index 7bea62c70cbc..ab927f7b60b5 100644 --- a/area120/go.mod +++ b/area120/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/area120/go.sum b/area120/go.sum index b197d3308493..067d9e20ab06 100644 --- a/area120/go.sum +++ b/area120/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/area120/tables/apiv1alpha1/doc.go b/area120/tables/apiv1alpha1/doc.go index 36a89bfb1ac3..15d10f9f1217 100644 --- a/area120/tables/apiv1alpha1/doc.go +++ b/area120/tables/apiv1alpha1/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in alpha. It is not stable, and is likely to change. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package tables // import "cloud.google.com/go/area120/tables/apiv1alpha1" import ( diff --git a/artifactregistry/apiv1/doc.go b/artifactregistry/apiv1/doc.go index a5c21280b28a..1e3e7a83af0a 100644 --- a/artifactregistry/apiv1/doc.go +++ b/artifactregistry/apiv1/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -82,9 +87,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package artifactregistry // import "cloud.google.com/go/artifactregistry/apiv1" import ( diff --git a/artifactregistry/apiv1beta2/doc.go b/artifactregistry/apiv1beta2/doc.go index 510a3e358207..ba071b6e285d 100644 --- a/artifactregistry/apiv1beta2/doc.go +++ b/artifactregistry/apiv1beta2/doc.go @@ -20,6 +20,11 @@ // Store and manage build artifacts in a scalable and integrated service // built on Google infrastructure. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package artifactregistry // import "cloud.google.com/go/artifactregistry/apiv1beta2" import ( diff --git a/artifactregistry/go.mod b/artifactregistry/go.mod index 946dd690ad93..968f4507fcfb 100644 --- a/artifactregistry/go.mod +++ b/artifactregistry/go.mod @@ -5,24 +5,25 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/artifactregistry/go.sum b/artifactregistry/go.sum index 1957b0c5def1..299518b5132c 100644 --- a/artifactregistry/go.sum +++ b/artifactregistry/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/asset/apiv1/doc.go b/asset/apiv1/doc.go index 7b868797f718..f28d501eb609 100644 --- a/asset/apiv1/doc.go +++ b/asset/apiv1/doc.go @@ -19,6 +19,11 @@ // // The cloud asset API manages the history and inventory of cloud resources. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -78,9 +83,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package asset // import "cloud.google.com/go/asset/apiv1" import ( diff --git a/asset/apiv1p2beta1/doc.go b/asset/apiv1p2beta1/doc.go index e96f30bb674e..b06cb6c2d0fa 100644 --- a/asset/apiv1p2beta1/doc.go +++ b/asset/apiv1p2beta1/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package asset // import "cloud.google.com/go/asset/apiv1p2beta1" import ( diff --git a/asset/apiv1p5beta1/doc.go b/asset/apiv1p5beta1/doc.go index 03c9992f6b57..816e28ef848b 100644 --- a/asset/apiv1p5beta1/doc.go +++ b/asset/apiv1p5beta1/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -81,9 +86,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package asset // import "cloud.google.com/go/asset/apiv1p5beta1" import ( diff --git a/asset/go.mod b/asset/go.mod index 0b211baf6737..63d6af2e4b60 100644 --- a/asset/go.mod +++ b/asset/go.mod @@ -5,8 +5,8 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) @@ -14,17 +14,18 @@ require ( require ( cloud.google.com/go v0.105.0 // indirect cloud.google.com/go/accesscontextmanager v1.4.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect cloud.google.com/go/osconfig v1.10.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/asset/go.sum b/asset/go.sum index dca7b68de553..fbc1e50117ee 100644 --- a/asset/go.sum +++ b/asset/go.sum @@ -3,10 +3,12 @@ cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= cloud.google.com/go/accesscontextmanager v1.4.0 h1:CFhNhU7pcD11cuDkQdrE6PQJgv0EXNKNv06jIzbLlCU= cloud.google.com/go/accesscontextmanager v1.4.0/go.mod h1:/Kjh7BBu/Gh83sv+K60vN9QE5NJcd80sU33vIe2IFPE= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= cloud.google.com/go/osconfig v1.10.0 h1:NO0RouqCOM7M2S85Eal6urMSSipWwHU8evzwS+siqUI= @@ -48,8 +50,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -92,16 +94,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -109,8 +111,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/assuredworkloads/apiv1/doc.go b/assuredworkloads/apiv1/doc.go index 274c4f6a2032..6a42fefaa1c1 100644 --- a/assuredworkloads/apiv1/doc.go +++ b/assuredworkloads/apiv1/doc.go @@ -17,6 +17,11 @@ // Package assuredworkloads is an auto-generated package for the // Assured Workloads API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package assuredworkloads // import "cloud.google.com/go/assuredworkloads/apiv1" import ( diff --git a/assuredworkloads/apiv1beta1/doc.go b/assuredworkloads/apiv1beta1/doc.go index f41b83e03e01..c0975bd85636 100644 --- a/assuredworkloads/apiv1beta1/doc.go +++ b/assuredworkloads/apiv1beta1/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -78,9 +83,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package assuredworkloads // import "cloud.google.com/go/assuredworkloads/apiv1beta1" import ( diff --git a/assuredworkloads/go.mod b/assuredworkloads/go.mod index c2c8dbceef79..59ae9e76439b 100644 --- a/assuredworkloads/go.mod +++ b/assuredworkloads/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/assuredworkloads/go.sum b/assuredworkloads/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/assuredworkloads/go.sum +++ b/assuredworkloads/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/automl/apiv1/doc.go b/automl/apiv1/doc.go index 36c10b7f99fb..31c2f8644d15 100644 --- a/automl/apiv1/doc.go +++ b/automl/apiv1/doc.go @@ -20,6 +20,11 @@ // Train high-quality custom machine learning models with minimum effort and // machine learning expertise. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package automl // import "cloud.google.com/go/automl/apiv1" import ( diff --git a/automl/apiv1beta1/doc.go b/automl/apiv1beta1/doc.go index 0f0cdc1ff186..15e768d1c018 100644 --- a/automl/apiv1beta1/doc.go +++ b/automl/apiv1beta1/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package automl // import "cloud.google.com/go/automl/apiv1beta1" import ( diff --git a/automl/go.mod b/automl/go.mod index 9bae91c8f806..cf116c135ff7 100644 --- a/automl/go.mod +++ b/automl/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/automl/go.sum b/automl/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/automl/go.sum +++ b/automl/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/baremetalsolution/apiv2/doc.go b/baremetalsolution/apiv2/doc.go index 146114052631..14bc8307824b 100644 --- a/baremetalsolution/apiv2/doc.go +++ b/baremetalsolution/apiv2/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -82,9 +87,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package baremetalsolution // import "cloud.google.com/go/baremetalsolution/apiv2" import ( diff --git a/baremetalsolution/go.mod b/baremetalsolution/go.mod index 731e848e4f90..391f00e35ccf 100644 --- a/baremetalsolution/go.mod +++ b/baremetalsolution/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/baremetalsolution/go.sum b/baremetalsolution/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/baremetalsolution/go.sum +++ b/baremetalsolution/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/batch/apiv1/doc.go b/batch/apiv1/doc.go index 915c7e53107e..d333636cb4d7 100644 --- a/batch/apiv1/doc.go +++ b/batch/apiv1/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package batch // import "cloud.google.com/go/batch/apiv1" import ( diff --git a/batch/go.mod b/batch/go.mod index 8c5e3a6f87a3..d95e9fec559c 100644 --- a/batch/go.mod +++ b/batch/go.mod @@ -5,24 +5,25 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/batch/go.sum b/batch/go.sum index 1957b0c5def1..299518b5132c 100644 --- a/batch/go.sum +++ b/batch/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/beyondcorp/appconnections/apiv1/doc.go b/beyondcorp/appconnections/apiv1/doc.go index bdc016ac9771..891fb23c6d63 100644 --- a/beyondcorp/appconnections/apiv1/doc.go +++ b/beyondcorp/appconnections/apiv1/doc.go @@ -24,6 +24,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -84,9 +89,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package appconnections // import "cloud.google.com/go/beyondcorp/appconnections/apiv1" import ( diff --git a/beyondcorp/appconnectors/apiv1/doc.go b/beyondcorp/appconnectors/apiv1/doc.go index c6a960ad0916..cfe8fc7aaf23 100644 --- a/beyondcorp/appconnectors/apiv1/doc.go +++ b/beyondcorp/appconnectors/apiv1/doc.go @@ -24,6 +24,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -84,9 +89,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package appconnectors // import "cloud.google.com/go/beyondcorp/appconnectors/apiv1" import ( diff --git a/beyondcorp/appgateways/apiv1/doc.go b/beyondcorp/appgateways/apiv1/doc.go index 71603aaedfa9..a127ed5245b2 100644 --- a/beyondcorp/appgateways/apiv1/doc.go +++ b/beyondcorp/appgateways/apiv1/doc.go @@ -24,6 +24,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -84,9 +89,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package appgateways // import "cloud.google.com/go/beyondcorp/appgateways/apiv1" import ( diff --git a/beyondcorp/clientconnectorservices/apiv1/doc.go b/beyondcorp/clientconnectorservices/apiv1/doc.go index 10245b9edf75..9462c23c67f9 100644 --- a/beyondcorp/clientconnectorservices/apiv1/doc.go +++ b/beyondcorp/clientconnectorservices/apiv1/doc.go @@ -24,6 +24,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -84,9 +89,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package clientconnectorservices // import "cloud.google.com/go/beyondcorp/clientconnectorservices/apiv1" import ( diff --git a/beyondcorp/clientgateways/apiv1/doc.go b/beyondcorp/clientgateways/apiv1/doc.go index 9c1123f42189..6fbaef0a025c 100644 --- a/beyondcorp/clientgateways/apiv1/doc.go +++ b/beyondcorp/clientgateways/apiv1/doc.go @@ -24,6 +24,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -84,9 +89,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package clientgateways // import "cloud.google.com/go/beyondcorp/clientgateways/apiv1" import ( diff --git a/beyondcorp/go.mod b/beyondcorp/go.mod index 9c223cfd61c7..004520d70bfc 100644 --- a/beyondcorp/go.mod +++ b/beyondcorp/go.mod @@ -5,24 +5,25 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/beyondcorp/go.sum b/beyondcorp/go.sum index 1957b0c5def1..299518b5132c 100644 --- a/beyondcorp/go.sum +++ b/beyondcorp/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/bigquery/analyticshub/apiv1/doc.go b/bigquery/analyticshub/apiv1/doc.go index 8ad25c7806a4..f0016f0c54b0 100644 --- a/bigquery/analyticshub/apiv1/doc.go +++ b/bigquery/analyticshub/apiv1/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -81,9 +86,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package analyticshub // import "cloud.google.com/go/bigquery/analyticshub/apiv1" import ( diff --git a/bigquery/connection/apiv1/doc.go b/bigquery/connection/apiv1/doc.go index bf692ecef729..9e6773e22ad3 100644 --- a/bigquery/connection/apiv1/doc.go +++ b/bigquery/connection/apiv1/doc.go @@ -19,6 +19,11 @@ // // Allows users to manage BigQuery connections to external data sources. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package connection // import "cloud.google.com/go/bigquery/connection/apiv1" import ( diff --git a/bigquery/connection/apiv1beta1/doc.go b/bigquery/connection/apiv1beta1/doc.go index 16270beccd9b..b137332f2a3a 100644 --- a/bigquery/connection/apiv1beta1/doc.go +++ b/bigquery/connection/apiv1beta1/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package connection // import "cloud.google.com/go/bigquery/connection/apiv1beta1" import ( diff --git a/bigquery/dataexchange/apiv1beta1/doc.go b/bigquery/dataexchange/apiv1beta1/doc.go index fc31c2055bd8..76447876c5f9 100644 --- a/bigquery/dataexchange/apiv1beta1/doc.go +++ b/bigquery/dataexchange/apiv1beta1/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -81,9 +86,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package dataexchange // import "cloud.google.com/go/bigquery/dataexchange/apiv1beta1" import ( diff --git a/bigquery/datapolicies/apiv1/doc.go b/bigquery/datapolicies/apiv1/doc.go index bcbf3ecae4e5..b01afcc1b2a7 100644 --- a/bigquery/datapolicies/apiv1/doc.go +++ b/bigquery/datapolicies/apiv1/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package datapolicies // import "cloud.google.com/go/bigquery/datapolicies/apiv1" import ( diff --git a/bigquery/datapolicies/apiv1beta1/doc.go b/bigquery/datapolicies/apiv1beta1/doc.go index e12730545852..116bbb711cf2 100644 --- a/bigquery/datapolicies/apiv1beta1/doc.go +++ b/bigquery/datapolicies/apiv1beta1/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package datapolicies // import "cloud.google.com/go/bigquery/datapolicies/apiv1beta1" import ( diff --git a/bigquery/datatransfer/apiv1/doc.go b/bigquery/datatransfer/apiv1/doc.go index 784886609d45..cd6ef40acb66 100644 --- a/bigquery/datatransfer/apiv1/doc.go +++ b/bigquery/datatransfer/apiv1/doc.go @@ -20,6 +20,11 @@ // Schedule queries or transfer external data from SaaS applications to // Google BigQuery on a regular basis. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package datatransfer // import "cloud.google.com/go/bigquery/datatransfer/apiv1" import ( diff --git a/bigquery/go.mod b/bigquery/go.mod index 00478d430424..af7875490b30 100644 --- a/bigquery/go.mod +++ b/bigquery/go.mod @@ -14,7 +14,7 @@ require ( golang.org/x/sync v0.1.0 golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 google.golang.org/api v0.106.0 - google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) diff --git a/bigquery/go.sum b/bigquery/go.sum index 1265f925f8dd..5aa62a6b9524 100644 --- a/bigquery/go.sum +++ b/bigquery/go.sum @@ -125,8 +125,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6 h1:uUn6GsgKK2eCI0bWeRMgRCcqDaQXYDuB+5tXA5Xeg/8= -google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/bigquery/migration/apiv2/doc.go b/bigquery/migration/apiv2/doc.go index fc4b5adac6f1..cebf5069ad7a 100644 --- a/bigquery/migration/apiv2/doc.go +++ b/bigquery/migration/apiv2/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package migration // import "cloud.google.com/go/bigquery/migration/apiv2" import ( diff --git a/bigquery/migration/apiv2alpha/doc.go b/bigquery/migration/apiv2alpha/doc.go index 707d1eda5317..b013828ab7a9 100644 --- a/bigquery/migration/apiv2alpha/doc.go +++ b/bigquery/migration/apiv2alpha/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in alpha. It is not stable, and is likely to change. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package migration // import "cloud.google.com/go/bigquery/migration/apiv2alpha" import ( diff --git a/bigquery/reservation/apiv1/doc.go b/bigquery/reservation/apiv1/doc.go index ecae67806860..9559a0f0f5e3 100644 --- a/bigquery/reservation/apiv1/doc.go +++ b/bigquery/reservation/apiv1/doc.go @@ -19,6 +19,11 @@ // // A service to modify your BigQuery flat-rate reservations. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package reservation // import "cloud.google.com/go/bigquery/reservation/apiv1" import ( diff --git a/bigquery/storage/apiv1/big_query_read_client.go b/bigquery/storage/apiv1/big_query_read_client.go index 6dd6f9fbd182..a9955922c77d 100644 --- a/bigquery/storage/apiv1/big_query_read_client.go +++ b/bigquery/storage/apiv1/big_query_read_client.go @@ -300,6 +300,7 @@ func (c *bigQueryReadGRPCClient) ReadRows(ctx context.Context, req *storagepb.Re md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "read_stream", url.QueryEscape(req.GetReadStream()))) ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).ReadRows[0:len((*c.CallOptions).ReadRows):len((*c.CallOptions).ReadRows)], opts...) var resp storagepb.BigQueryRead_ReadRowsClient err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { var err error diff --git a/bigquery/storage/apiv1/doc.go b/bigquery/storage/apiv1/doc.go index 61ffb9b617ea..85f9ace32cb2 100644 --- a/bigquery/storage/apiv1/doc.go +++ b/bigquery/storage/apiv1/doc.go @@ -17,6 +17,11 @@ // Package storage is an auto-generated package for the // BigQuery Storage API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -71,9 +76,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package storage // import "cloud.google.com/go/bigquery/storage/apiv1" import ( diff --git a/bigquery/storage/apiv1beta1/big_query_storage_client.go b/bigquery/storage/apiv1beta1/big_query_storage_client.go index 5cea19ce71b1..2c64f883b0c6 100644 --- a/bigquery/storage/apiv1beta1/big_query_storage_client.go +++ b/bigquery/storage/apiv1beta1/big_query_storage_client.go @@ -484,6 +484,7 @@ func (c *bigQueryStorageGRPCClient) ReadRows(ctx context.Context, req *storagepb md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "read_position.stream.name", url.QueryEscape(req.GetReadPosition().GetStream().GetName()))) ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).ReadRows[0:len((*c.CallOptions).ReadRows):len((*c.CallOptions).ReadRows)], opts...) var resp storagepb.BigQueryStorage_ReadRowsClient err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { var err error diff --git a/bigquery/storage/apiv1beta1/doc.go b/bigquery/storage/apiv1beta1/doc.go index c2109505a4dc..c7b20404ac23 100644 --- a/bigquery/storage/apiv1beta1/doc.go +++ b/bigquery/storage/apiv1beta1/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package storage // import "cloud.google.com/go/bigquery/storage/apiv1beta1" import ( diff --git a/bigquery/storage/apiv1beta2/big_query_read_client.go b/bigquery/storage/apiv1beta2/big_query_read_client.go index 6e6d8578f577..b4423ca9dcb5 100644 --- a/bigquery/storage/apiv1beta2/big_query_read_client.go +++ b/bigquery/storage/apiv1beta2/big_query_read_client.go @@ -422,6 +422,7 @@ func (c *bigQueryReadGRPCClient) ReadRows(ctx context.Context, req *storagepb.Re md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "read_stream", url.QueryEscape(req.GetReadStream()))) ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).ReadRows[0:len((*c.CallOptions).ReadRows):len((*c.CallOptions).ReadRows)], opts...) var resp storagepb.BigQueryRead_ReadRowsClient err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { var err error diff --git a/bigquery/storage/apiv1beta2/doc.go b/bigquery/storage/apiv1beta2/doc.go index b99f400330a5..ba4b98b6ca8f 100644 --- a/bigquery/storage/apiv1beta2/doc.go +++ b/bigquery/storage/apiv1beta2/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package storage // import "cloud.google.com/go/bigquery/storage/apiv1beta2" import ( diff --git a/billing/apiv1/doc.go b/billing/apiv1/doc.go index b12e6f340370..eb14cb76b804 100644 --- a/billing/apiv1/doc.go +++ b/billing/apiv1/doc.go @@ -20,6 +20,11 @@ // Allows developers to manage billing for their Google Cloud Platform // projects programmatically. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package billing // import "cloud.google.com/go/billing/apiv1" import ( diff --git a/billing/budgets/apiv1/doc.go b/billing/budgets/apiv1/doc.go index 5e377040ae21..6dbaf2f81963 100644 --- a/billing/budgets/apiv1/doc.go +++ b/billing/budgets/apiv1/doc.go @@ -21,6 +21,11 @@ // budget plan and the rules to execute as spend is tracked against that // plan. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package budgets // import "cloud.google.com/go/billing/budgets/apiv1" import ( diff --git a/billing/budgets/apiv1beta1/doc.go b/billing/budgets/apiv1beta1/doc.go index 7053da310563..8b9db5c4d7b1 100644 --- a/billing/budgets/apiv1beta1/doc.go +++ b/billing/budgets/apiv1beta1/doc.go @@ -23,6 +23,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -77,9 +82,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package budgets // import "cloud.google.com/go/billing/budgets/apiv1beta1" import ( diff --git a/billing/go.mod b/billing/go.mod index 2cf5da2ef143..c6b77b03f68a 100644 --- a/billing/go.mod +++ b/billing/go.mod @@ -4,23 +4,24 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/billing/go.sum b/billing/go.sum index b197d3308493..475f34dc59b9 100644 --- a/billing/go.sum +++ b/billing/go.sum @@ -1,9 +1,11 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/binaryauthorization/apiv1/doc.go b/binaryauthorization/apiv1/doc.go index 9279ac3a8ff9..bcfab8e68f9a 100644 --- a/binaryauthorization/apiv1/doc.go +++ b/binaryauthorization/apiv1/doc.go @@ -21,6 +21,11 @@ // policy control for images deployed to Kubernetes Engine clusters, Anthos // clusters on VMware, and Cloud Run. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package binaryauthorization // import "cloud.google.com/go/binaryauthorization/apiv1" import ( diff --git a/binaryauthorization/apiv1beta1/doc.go b/binaryauthorization/apiv1beta1/doc.go index c97d8f4a8901..501c9fb5745c 100644 --- a/binaryauthorization/apiv1beta1/doc.go +++ b/binaryauthorization/apiv1beta1/doc.go @@ -23,6 +23,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -77,9 +82,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package binaryauthorization // import "cloud.google.com/go/binaryauthorization/apiv1beta1" import ( diff --git a/binaryauthorization/go.mod b/binaryauthorization/go.mod index 021485d62bd8..894ab9a2f556 100644 --- a/binaryauthorization/go.mod +++ b/binaryauthorization/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/binaryauthorization/go.sum b/binaryauthorization/go.sum index b197d3308493..067d9e20ab06 100644 --- a/binaryauthorization/go.sum +++ b/binaryauthorization/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/certificatemanager/apiv1/doc.go b/certificatemanager/apiv1/doc.go index 48e1edac3e91..54f9af183a09 100644 --- a/certificatemanager/apiv1/doc.go +++ b/certificatemanager/apiv1/doc.go @@ -17,6 +17,11 @@ // Package certificatemanager is an auto-generated package for the // Certificate Manager API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -77,9 +82,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package certificatemanager // import "cloud.google.com/go/certificatemanager/apiv1" import ( diff --git a/certificatemanager/go.mod b/certificatemanager/go.mod index e778ccdb137a..0ed4dc146fb5 100644 --- a/certificatemanager/go.mod +++ b/certificatemanager/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/certificatemanager/go.sum b/certificatemanager/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/certificatemanager/go.sum +++ b/certificatemanager/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/channel/apiv1/doc.go b/channel/apiv1/doc.go index 20e4935942e1..52ce03b85853 100644 --- a/channel/apiv1/doc.go +++ b/channel/apiv1/doc.go @@ -21,6 +21,11 @@ // unified resale platform and APIs across all of Google Cloud including GCP, // Workspace, Maps and Chrome. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package channel // import "cloud.google.com/go/channel/apiv1" import ( diff --git a/channel/go.mod b/channel/go.mod index 0b99f05eded5..8be1cc8d94c4 100644 --- a/channel/go.mod +++ b/channel/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/channel/go.sum b/channel/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/channel/go.sum +++ b/channel/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/cloudbuild/apiv1/v2/doc.go b/cloudbuild/apiv1/v2/doc.go index 1758e862e770..e81480ba0da3 100644 --- a/cloudbuild/apiv1/v2/doc.go +++ b/cloudbuild/apiv1/v2/doc.go @@ -19,6 +19,11 @@ // // Creates and manages builds on Google Cloud Platform. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -78,9 +83,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package cloudbuild // import "cloud.google.com/go/cloudbuild/apiv1/v2" import ( diff --git a/cloudbuild/go.mod b/cloudbuild/go.mod index f26f4eb01906..d96232f7a04f 100644 --- a/cloudbuild/go.mod +++ b/cloudbuild/go.mod @@ -6,23 +6,23 @@ require ( cloud.google.com/go/longrunning v0.3.0 github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/cloudbuild/go.sum b/cloudbuild/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/cloudbuild/go.sum +++ b/cloudbuild/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/clouddms/apiv1/doc.go b/clouddms/apiv1/doc.go index d98bad4c76b6..e8de669bab7e 100644 --- a/clouddms/apiv1/doc.go +++ b/clouddms/apiv1/doc.go @@ -20,6 +20,11 @@ // Manage Cloud Database Migration Service resources on Google Cloud // Platform. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package clouddms // import "cloud.google.com/go/clouddms/apiv1" import ( diff --git a/clouddms/go.mod b/clouddms/go.mod index ef9076a0aeda..16b16c474894 100644 --- a/clouddms/go.mod +++ b/clouddms/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/clouddms/go.sum b/clouddms/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/clouddms/go.sum +++ b/clouddms/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/cloudtasks/apiv2/doc.go b/cloudtasks/apiv2/doc.go index f8df41b8eef8..8d2331d57a16 100644 --- a/cloudtasks/apiv2/doc.go +++ b/cloudtasks/apiv2/doc.go @@ -19,6 +19,11 @@ // // Manages the execution of large numbers of distributed requests. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package cloudtasks // import "cloud.google.com/go/cloudtasks/apiv2" import ( diff --git a/cloudtasks/apiv2beta2/doc.go b/cloudtasks/apiv2beta2/doc.go index e0e9d249446e..311aa036b91b 100644 --- a/cloudtasks/apiv2beta2/doc.go +++ b/cloudtasks/apiv2beta2/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -81,9 +86,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package cloudtasks // import "cloud.google.com/go/cloudtasks/apiv2beta2" import ( diff --git a/cloudtasks/apiv2beta3/doc.go b/cloudtasks/apiv2beta3/doc.go index 626adf775f33..0002b3c88078 100644 --- a/cloudtasks/apiv2beta3/doc.go +++ b/cloudtasks/apiv2beta3/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -81,9 +86,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package cloudtasks // import "cloud.google.com/go/cloudtasks/apiv2beta3" import ( diff --git a/cloudtasks/go.mod b/cloudtasks/go.mod index 8a2408ab6cb2..f8c749507009 100644 --- a/cloudtasks/go.mod +++ b/cloudtasks/go.mod @@ -4,23 +4,24 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/cloudtasks/go.sum b/cloudtasks/go.sum index b197d3308493..475f34dc59b9 100644 --- a/cloudtasks/go.sum +++ b/cloudtasks/go.sum @@ -1,9 +1,11 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/compute/apiv1/computepb/compute.pb.go b/compute/apiv1/computepb/compute.pb.go index 0655ac399e3b..3aaf7368c2f1 100644 --- a/compute/apiv1/computepb/compute.pb.go +++ b/compute/apiv1/computepb/compute.pb.go @@ -21,7 +21,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.21.12 +// protoc v3.21.9 // source: google/cloud/compute/v1/compute.proto package computepb diff --git a/compute/go.mod b/compute/go.mod index 6e3b9c8cf4b6..64b849898f4d 100644 --- a/compute/go.mod +++ b/compute/go.mod @@ -5,22 +5,22 @@ go 1.19 require ( cloud.google.com/go v0.107.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/compute/go.sum b/compute/go.sum index 6aac00656126..176737165364 100644 --- a/compute/go.sum +++ b/compute/go.sum @@ -1,8 +1,8 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd h1:OjndDrsik+Gt+e6fs45z9AxiewiKyLKYpA45W5Kpkks= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/contactcenterinsights/apiv1/doc.go b/contactcenterinsights/apiv1/doc.go index b39d41ecf7e5..1f09ed0e4f38 100644 --- a/contactcenterinsights/apiv1/doc.go +++ b/contactcenterinsights/apiv1/doc.go @@ -17,6 +17,11 @@ // Package contactcenterinsights is an auto-generated package for the // Contact Center AI Insights API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -71,9 +76,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package contactcenterinsights // import "cloud.google.com/go/contactcenterinsights/apiv1" import ( diff --git a/contactcenterinsights/go.mod b/contactcenterinsights/go.mod index da1fb91b51a3..0ddd15b1ee72 100644 --- a/contactcenterinsights/go.mod +++ b/contactcenterinsights/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/contactcenterinsights/go.sum b/contactcenterinsights/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/contactcenterinsights/go.sum +++ b/contactcenterinsights/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/container/apiv1/doc.go b/container/apiv1/doc.go index 090caa2d86a7..0f3ff51a1ce2 100644 --- a/container/apiv1/doc.go +++ b/container/apiv1/doc.go @@ -20,6 +20,11 @@ // Builds and manages container-based applications, powered by the open // source Kubernetes technology. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package container // import "cloud.google.com/go/container/apiv1" import ( diff --git a/container/go.mod b/container/go.mod index 315cb257cd92..448a0a747ad0 100644 --- a/container/go.mod +++ b/container/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go v0.107.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/google/uuid v1.3.0 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/container/go.sum b/container/go.sum index 00b8c2db3b92..0b18ec65ae3c 100644 --- a/container/go.sum +++ b/container/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -45,8 +45,8 @@ github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -89,17 +89,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -107,8 +106,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/containeranalysis/apiv1beta1/doc.go b/containeranalysis/apiv1beta1/doc.go index 44e42ca77d8c..2502975a9039 100644 --- a/containeranalysis/apiv1beta1/doc.go +++ b/containeranalysis/apiv1beta1/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package containeranalysis // import "cloud.google.com/go/containeranalysis/apiv1beta1" import ( diff --git a/containeranalysis/go.mod b/containeranalysis/go.mod index ca83131d6f3c..d72972266b42 100644 --- a/containeranalysis/go.mod +++ b/containeranalysis/go.mod @@ -6,23 +6,24 @@ require ( cloud.google.com/go v0.107.0 cloud.google.com/go/grafeas v0.2.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/containeranalysis/go.sum b/containeranalysis/go.sum index 9cea88666d88..510e213a6919 100644 --- a/containeranalysis/go.sum +++ b/containeranalysis/go.sum @@ -36,14 +36,16 @@ cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUM cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= cloud.google.com/go/grafeas v0.2.0 h1:CYjC+xzdPvbV65gi6Dr4YowKcmLo045pm18L0DhdELM= cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI+M+ByZHc= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= @@ -160,8 +162,8 @@ github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLe github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= @@ -374,8 +376,8 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -466,8 +468,8 @@ google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdr google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -538,8 +540,8 @@ google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ6 google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/datacatalog/apiv1/doc.go b/datacatalog/apiv1/doc.go index f8681557b2af..1eb011726319 100644 --- a/datacatalog/apiv1/doc.go +++ b/datacatalog/apiv1/doc.go @@ -20,6 +20,11 @@ // A fully managed and highly scalable data discovery and metadata management // service. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package datacatalog // import "cloud.google.com/go/datacatalog/apiv1" import ( diff --git a/datacatalog/apiv1beta1/doc.go b/datacatalog/apiv1beta1/doc.go index f48c6d25f493..ae6cdb21af31 100644 --- a/datacatalog/apiv1beta1/doc.go +++ b/datacatalog/apiv1beta1/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -82,9 +87,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package datacatalog // import "cloud.google.com/go/datacatalog/apiv1beta1" import ( diff --git a/datacatalog/go.mod b/datacatalog/go.mod index f677c28a054a..f108ba5667ab 100644 --- a/datacatalog/go.mod +++ b/datacatalog/go.mod @@ -4,23 +4,24 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/datacatalog/go.sum b/datacatalog/go.sum index b197d3308493..475f34dc59b9 100644 --- a/datacatalog/go.sum +++ b/datacatalog/go.sum @@ -1,9 +1,11 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/dataflow/apiv1beta3/doc.go b/dataflow/apiv1beta3/doc.go index 9b677d774086..ca8bfb992853 100644 --- a/dataflow/apiv1beta3/doc.go +++ b/dataflow/apiv1beta3/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package dataflow // import "cloud.google.com/go/dataflow/apiv1beta3" import ( diff --git a/dataflow/go.mod b/dataflow/go.mod index c3469d72b747..86f8f918b6e5 100644 --- a/dataflow/go.mod +++ b/dataflow/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/dataflow/go.sum b/dataflow/go.sum index b197d3308493..067d9e20ab06 100644 --- a/dataflow/go.sum +++ b/dataflow/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/dataform/apiv1alpha2/doc.go b/dataform/apiv1alpha2/doc.go index df858fe47463..6c0f3b99c6ca 100644 --- a/dataform/apiv1alpha2/doc.go +++ b/dataform/apiv1alpha2/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in alpha. It is not stable, and is likely to change. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package dataform // import "cloud.google.com/go/dataform/apiv1alpha2" import ( diff --git a/dataform/apiv1beta1/doc.go b/dataform/apiv1beta1/doc.go index 005de3af87fd..040612e8c297 100644 --- a/dataform/apiv1beta1/doc.go +++ b/dataform/apiv1beta1/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package dataform // import "cloud.google.com/go/dataform/apiv1beta1" import ( diff --git a/dataform/go.mod b/dataform/go.mod index b69c74c49273..1224e614b413 100644 --- a/dataform/go.mod +++ b/dataform/go.mod @@ -4,23 +4,24 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/dataform/go.sum b/dataform/go.sum index b197d3308493..475f34dc59b9 100644 --- a/dataform/go.sum +++ b/dataform/go.sum @@ -1,9 +1,11 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/datafusion/apiv1/doc.go b/datafusion/apiv1/doc.go index 40e0fbc40afe..d793ebb09fc6 100644 --- a/datafusion/apiv1/doc.go +++ b/datafusion/apiv1/doc.go @@ -25,6 +25,11 @@ // prepare, blend, transfer and transform data without having to wrestle with // infrastructure. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -85,9 +90,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package datafusion // import "cloud.google.com/go/datafusion/apiv1" import ( diff --git a/datafusion/go.mod b/datafusion/go.mod index 0cef74d48d06..b5fcbc1d42f4 100644 --- a/datafusion/go.mod +++ b/datafusion/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/datafusion/go.sum b/datafusion/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/datafusion/go.sum +++ b/datafusion/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/datalabeling/apiv1beta1/doc.go b/datalabeling/apiv1beta1/doc.go index 962b79c717bf..61dc62b07ae4 100644 --- a/datalabeling/apiv1beta1/doc.go +++ b/datalabeling/apiv1beta1/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package datalabeling // import "cloud.google.com/go/datalabeling/apiv1beta1" import ( diff --git a/datalabeling/go.mod b/datalabeling/go.mod index 1812863ee2e1..e4fee22ccbc2 100644 --- a/datalabeling/go.mod +++ b/datalabeling/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/datalabeling/go.sum b/datalabeling/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/datalabeling/go.sum +++ b/datalabeling/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/dataplex/apiv1/doc.go b/dataplex/apiv1/doc.go index c4e520fc6cc7..d9220f43ce21 100644 --- a/dataplex/apiv1/doc.go +++ b/dataplex/apiv1/doc.go @@ -19,6 +19,11 @@ // // Dataplex API is used to manage the lifecycle of data lakes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package dataplex // import "cloud.google.com/go/dataplex/apiv1" import ( diff --git a/dataplex/go.mod b/dataplex/go.mod index 4d569f3c0491..cd99a224a27f 100644 --- a/dataplex/go.mod +++ b/dataplex/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 google.golang.org/api v0.106.0 - google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) diff --git a/dataplex/go.sum b/dataplex/go.sum index d08ae846384d..299518b5132c 100644 --- a/dataplex/go.sum +++ b/dataplex/go.sum @@ -107,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6 h1:uUn6GsgKK2eCI0bWeRMgRCcqDaQXYDuB+5tXA5Xeg/8= -google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/dataproc/apiv1/doc.go b/dataproc/apiv1/doc.go index 19d400a44923..7577a1c2eab6 100644 --- a/dataproc/apiv1/doc.go +++ b/dataproc/apiv1/doc.go @@ -19,6 +19,11 @@ // // Manages Hadoop-based clusters and jobs on Google Cloud Platform. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package dataproc // import "cloud.google.com/go/dataproc/apiv1" import ( diff --git a/dataproc/go.mod b/dataproc/go.mod index 12cfca1e6e43..0e5c9a4faab2 100644 --- a/dataproc/go.mod +++ b/dataproc/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/dataproc/go.sum b/dataproc/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/dataproc/go.sum +++ b/dataproc/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/dataqna/apiv1alpha/doc.go b/dataqna/apiv1alpha/doc.go index 13343c948380..ad75cd409380 100644 --- a/dataqna/apiv1alpha/doc.go +++ b/dataqna/apiv1alpha/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in alpha. It is not stable, and is likely to change. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package dataqna // import "cloud.google.com/go/dataqna/apiv1alpha" import ( diff --git a/dataqna/go.mod b/dataqna/go.mod index a5b211e69033..bdd9b1280f54 100644 --- a/dataqna/go.mod +++ b/dataqna/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/dataqna/go.sum b/dataqna/go.sum index b197d3308493..067d9e20ab06 100644 --- a/dataqna/go.sum +++ b/dataqna/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/datastore/admin/apiv1/doc.go b/datastore/admin/apiv1/doc.go index 1c99f76fa2e6..4b01aff36ab1 100644 --- a/datastore/admin/apiv1/doc.go +++ b/datastore/admin/apiv1/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in alpha. It is not stable, and is likely to change. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -81,9 +86,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package admin // import "cloud.google.com/go/datastore/admin/apiv1" import ( diff --git a/datastore/go.mod b/datastore/go.mod index e8675f57b541..30aac0c4ada5 100644 --- a/datastore/go.mod +++ b/datastore/go.mod @@ -8,22 +8,22 @@ require ( github.com/golang/protobuf v1.5.2 github.com/google/go-cmp v0.5.9 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.13.0 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/datastore/go.sum b/datastore/go.sum index 1f393501756d..a217bb696468 100644 --- a/datastore/go.sum +++ b/datastore/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute v1.13.0 h1:AYrLkB8NPdDRslNp4Jxmzrhdr03fUAIDbiGFjLWowoU= -cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -45,8 +45,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -89,8 +89,8 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= @@ -99,8 +99,8 @@ golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBn golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -108,8 +108,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd h1:OjndDrsik+Gt+e6fs45z9AxiewiKyLKYpA45W5Kpkks= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/datastream/apiv1/doc.go b/datastream/apiv1/doc.go index bbba96d3eeeb..66fedf13cdb7 100644 --- a/datastream/apiv1/doc.go +++ b/datastream/apiv1/doc.go @@ -17,6 +17,11 @@ // Package datastream is an auto-generated package for the // Datastream API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -77,9 +82,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package datastream // import "cloud.google.com/go/datastream/apiv1" import ( diff --git a/datastream/apiv1alpha1/doc.go b/datastream/apiv1alpha1/doc.go index e85a77a8d017..8440de363c02 100644 --- a/datastream/apiv1alpha1/doc.go +++ b/datastream/apiv1alpha1/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in alpha. It is not stable, and is likely to change. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package datastream // import "cloud.google.com/go/datastream/apiv1alpha1" import ( diff --git a/datastream/go.mod b/datastream/go.mod index 9662c96ceb16..07d925d64387 100644 --- a/datastream/go.mod +++ b/datastream/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/datastream/go.sum b/datastream/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/datastream/go.sum +++ b/datastream/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/debugger/apiv2/doc.go b/debugger/apiv2/doc.go index 81ff1e85b44f..00f5b8b5b41a 100644 --- a/debugger/apiv2/doc.go +++ b/debugger/apiv2/doc.go @@ -20,6 +20,11 @@ // Examines the call stack and variables of a running application without // stopping or slowing it down. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package debugger // import "cloud.google.com/go/debugger/apiv2" import ( diff --git a/deploy/apiv1/doc.go b/deploy/apiv1/doc.go index 1203e493c456..d81ac10889af 100644 --- a/deploy/apiv1/doc.go +++ b/deploy/apiv1/doc.go @@ -17,6 +17,11 @@ // Package deploy is an auto-generated package for the // Google Cloud Deploy API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -77,9 +82,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package deploy // import "cloud.google.com/go/deploy/apiv1" import ( diff --git a/deploy/go.mod b/deploy/go.mod index 3f684ea53d4d..e9c38c32593d 100644 --- a/deploy/go.mod +++ b/deploy/go.mod @@ -5,24 +5,25 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/deploy/go.sum b/deploy/go.sum index 1957b0c5def1..299518b5132c 100644 --- a/deploy/go.sum +++ b/deploy/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/dialogflow/apiv2/doc.go b/dialogflow/apiv2/doc.go index 1ebf17560947..58024929eb32 100644 --- a/dialogflow/apiv2/doc.go +++ b/dialogflow/apiv2/doc.go @@ -20,6 +20,11 @@ // Builds conversational interfaces (for example, chatbots, and voice-powered // apps and devices). // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package dialogflow // import "cloud.google.com/go/dialogflow/apiv2" import ( diff --git a/dialogflow/apiv2beta1/doc.go b/dialogflow/apiv2beta1/doc.go index 7bf77859f916..591b4c5f08ca 100644 --- a/dialogflow/apiv2beta1/doc.go +++ b/dialogflow/apiv2beta1/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package dialogflow // import "cloud.google.com/go/dialogflow/apiv2beta1" import ( diff --git a/dialogflow/cx/apiv3/doc.go b/dialogflow/cx/apiv3/doc.go index 6eef68240448..60e2e767f0ed 100644 --- a/dialogflow/cx/apiv3/doc.go +++ b/dialogflow/cx/apiv3/doc.go @@ -20,6 +20,11 @@ // Builds conversational interfaces (for example, chatbots, and voice-powered // apps and devices). // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package cx // import "cloud.google.com/go/dialogflow/cx/apiv3" import ( diff --git a/dialogflow/cx/apiv3beta1/doc.go b/dialogflow/cx/apiv3beta1/doc.go index 72c7e0e5d339..0a4071656d43 100644 --- a/dialogflow/cx/apiv3beta1/doc.go +++ b/dialogflow/cx/apiv3beta1/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -82,9 +87,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package cx // import "cloud.google.com/go/dialogflow/cx/apiv3beta1" import ( diff --git a/dialogflow/go.mod b/dialogflow/go.mod index c4ced3a29c69..91ac22d8d352 100644 --- a/dialogflow/go.mod +++ b/dialogflow/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201204527-e3fa12d562f3 + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/dialogflow/go.sum b/dialogflow/go.sum index b6c630acda3b..b629d3d5cb73 100644 --- a/dialogflow/go.sum +++ b/dialogflow/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201204527-e3fa12d562f3 h1:BCcW+lhENGqZ2R2MsM9oty220E8vY9E4QC1Tq05hN1E= -google.golang.org/genproto v0.0.0-20221201204527-e3fa12d562f3/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/dlp/apiv2/doc.go b/dlp/apiv2/doc.go index 7cbc70f0ab7d..736c4833eafe 100644 --- a/dlp/apiv2/doc.go +++ b/dlp/apiv2/doc.go @@ -21,6 +21,11 @@ // privacy-sensitive fragments in text, images, and Google Cloud Platform // storage repositories. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package dlp // import "cloud.google.com/go/dlp/apiv2" import ( diff --git a/dlp/go.mod b/dlp/go.mod index 4e0c79d43b66..f3446b1c2380 100644 --- a/dlp/go.mod +++ b/dlp/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/dlp/go.sum b/dlp/go.sum index b197d3308493..067d9e20ab06 100644 --- a/dlp/go.sum +++ b/dlp/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/documentai/apiv1/doc.go b/documentai/apiv1/doc.go index 7bcbf0e16820..7652200097cd 100644 --- a/documentai/apiv1/doc.go +++ b/documentai/apiv1/doc.go @@ -21,6 +21,11 @@ // semi-structured documents using state-of-the-art Google AI such as natural // language, computer vision, translation, and AutoML. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package documentai // import "cloud.google.com/go/documentai/apiv1" import ( diff --git a/documentai/apiv1beta3/doc.go b/documentai/apiv1beta3/doc.go index c4058176f530..381958cb9d36 100644 --- a/documentai/apiv1beta3/doc.go +++ b/documentai/apiv1beta3/doc.go @@ -23,6 +23,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -77,9 +82,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package documentai // import "cloud.google.com/go/documentai/apiv1beta3" import ( diff --git a/documentai/go.mod b/documentai/go.mod index 05e199f9bf7a..e0193dfa3219 100644 --- a/documentai/go.mod +++ b/documentai/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/documentai/go.sum b/documentai/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/documentai/go.sum +++ b/documentai/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/domains/apiv1beta1/doc.go b/domains/apiv1beta1/doc.go index cf6e8e43ecac..c3cddd3b62a5 100644 --- a/domains/apiv1beta1/doc.go +++ b/domains/apiv1beta1/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package domains // import "cloud.google.com/go/domains/apiv1beta1" import ( diff --git a/domains/go.mod b/domains/go.mod index 97014a814214..2b64fbe2d8c1 100644 --- a/domains/go.mod +++ b/domains/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/domains/go.sum b/domains/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/domains/go.sum +++ b/domains/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/edgecontainer/apiv1/doc.go b/edgecontainer/apiv1/doc.go index 13129bfc5ee3..7276d5e3d0e5 100644 --- a/edgecontainer/apiv1/doc.go +++ b/edgecontainer/apiv1/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package edgecontainer // import "cloud.google.com/go/edgecontainer/apiv1" import ( diff --git a/edgecontainer/go.mod b/edgecontainer/go.mod index 66c3bc03aca2..05fa9d4e0058 100644 --- a/edgecontainer/go.mod +++ b/edgecontainer/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/edgecontainer/go.sum b/edgecontainer/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/edgecontainer/go.sum +++ b/edgecontainer/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/errorreporting/apiv1beta1/doc.go b/errorreporting/apiv1beta1/doc.go index e69732a7c479..1824bb439584 100644 --- a/errorreporting/apiv1beta1/doc.go +++ b/errorreporting/apiv1beta1/doc.go @@ -23,6 +23,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -77,9 +82,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package errorreporting // import "cloud.google.com/go/errorreporting/apiv1beta1" import ( diff --git a/errorreporting/go.mod b/errorreporting/go.mod index 30e5e1dbeb5d..fd8801addac0 100644 --- a/errorreporting/go.mod +++ b/errorreporting/go.mod @@ -6,23 +6,23 @@ require ( cloud.google.com/go v0.107.0 github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.13.0 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sync v0.1.0 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/errorreporting/go.sum b/errorreporting/go.sum index 42ab73a6b7fb..9b2a481c3866 100644 --- a/errorreporting/go.sum +++ b/errorreporting/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute v1.13.0 h1:AYrLkB8NPdDRslNp4Jxmzrhdr03fUAIDbiGFjLWowoU= -cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -90,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -107,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd h1:OjndDrsik+Gt+e6fs45z9AxiewiKyLKYpA45W5Kpkks= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/essentialcontacts/apiv1/doc.go b/essentialcontacts/apiv1/doc.go index 2c86554274de..e456ed2602db 100644 --- a/essentialcontacts/apiv1/doc.go +++ b/essentialcontacts/apiv1/doc.go @@ -17,6 +17,11 @@ // Package essentialcontacts is an auto-generated package for the // Essential Contacts API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -71,9 +76,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package essentialcontacts // import "cloud.google.com/go/essentialcontacts/apiv1" import ( diff --git a/essentialcontacts/go.mod b/essentialcontacts/go.mod index e54854607df2..60b5c7797148 100644 --- a/essentialcontacts/go.mod +++ b/essentialcontacts/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/essentialcontacts/go.sum b/essentialcontacts/go.sum index b197d3308493..067d9e20ab06 100644 --- a/essentialcontacts/go.sum +++ b/essentialcontacts/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/eventarc/apiv1/doc.go b/eventarc/apiv1/doc.go index 7a92687d2a9c..4979e61cd470 100644 --- a/eventarc/apiv1/doc.go +++ b/eventarc/apiv1/doc.go @@ -19,6 +19,11 @@ // // Build event-driven applications on Google Cloud Platform. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package eventarc // import "cloud.google.com/go/eventarc/apiv1" import ( diff --git a/eventarc/go.mod b/eventarc/go.mod index 454a1c316403..0549bca3da9e 100644 --- a/eventarc/go.mod +++ b/eventarc/go.mod @@ -5,24 +5,25 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/eventarc/go.sum b/eventarc/go.sum index 1957b0c5def1..299518b5132c 100644 --- a/eventarc/go.sum +++ b/eventarc/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/eventarc/publishing/apiv1/doc.go b/eventarc/publishing/apiv1/doc.go index 3738e325a9a1..7652616b8440 100644 --- a/eventarc/publishing/apiv1/doc.go +++ b/eventarc/publishing/apiv1/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package publishing // import "cloud.google.com/go/eventarc/publishing/apiv1" import ( diff --git a/filestore/apiv1/doc.go b/filestore/apiv1/doc.go index 6658b1eb8409..29b76fb2c4d5 100644 --- a/filestore/apiv1/doc.go +++ b/filestore/apiv1/doc.go @@ -20,6 +20,11 @@ // The Cloud Filestore API is used for creating and managing cloud file // servers. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package filestore // import "cloud.google.com/go/filestore/apiv1" import ( diff --git a/filestore/go.mod b/filestore/go.mod index 4d42ae6e05e1..4bd9d9b062fd 100644 --- a/filestore/go.mod +++ b/filestore/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/filestore/go.sum b/filestore/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/filestore/go.sum +++ b/filestore/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/firestore/apiv1/admin/doc.go b/firestore/apiv1/admin/doc.go index b71fddc91a59..22ccbacebc07 100644 --- a/firestore/apiv1/admin/doc.go +++ b/firestore/apiv1/admin/doc.go @@ -20,6 +20,11 @@ // Accesses the NoSQL document database built for automatic scaling, high // performance, and ease of application development. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package apiv1 // import "cloud.google.com/go/firestore/apiv1/admin" import ( diff --git a/firestore/apiv1/doc.go b/firestore/apiv1/doc.go index dec2d5cbb3ef..1ecbfb77b318 100644 --- a/firestore/apiv1/doc.go +++ b/firestore/apiv1/doc.go @@ -20,6 +20,11 @@ // Accesses the NoSQL document database built for automatic scaling, high // performance, and ease of application development. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package firestore // import "cloud.google.com/go/firestore/apiv1" import ( diff --git a/firestore/apiv1/firestore_client.go b/firestore/apiv1/firestore_client.go index a5d0d73c27a6..3a5747800253 100644 --- a/firestore/apiv1/firestore_client.go +++ b/firestore/apiv1/firestore_client.go @@ -960,6 +960,7 @@ func (c *gRPCClient) BatchGetDocuments(ctx context.Context, req *firestorepb.Bat md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "database", url.QueryEscape(req.GetDatabase()))) ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).BatchGetDocuments[0:len((*c.CallOptions).BatchGetDocuments):len((*c.CallOptions).BatchGetDocuments)], opts...) var resp firestorepb.Firestore_BatchGetDocumentsClient err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { var err error @@ -1038,6 +1039,7 @@ func (c *gRPCClient) RunQuery(ctx context.Context, req *firestorepb.RunQueryRequ md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).RunQuery[0:len((*c.CallOptions).RunQuery):len((*c.CallOptions).RunQuery)], opts...) var resp firestorepb.Firestore_RunQueryClient err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { var err error @@ -1054,6 +1056,7 @@ func (c *gRPCClient) RunAggregationQuery(ctx context.Context, req *firestorepb.R md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).RunAggregationQuery[0:len((*c.CallOptions).RunAggregationQuery):len((*c.CallOptions).RunAggregationQuery)], opts...) var resp firestorepb.Firestore_RunAggregationQueryClient err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { var err error diff --git a/firestore/go.mod b/firestore/go.mod index 6ed6738eabd2..c4e0e17f6770 100644 --- a/firestore/go.mod +++ b/firestore/go.mod @@ -9,23 +9,23 @@ require ( github.com/google/go-cmp v0.5.9 github.com/googleapis/gax-go/v2 v2.7.0 golang.org/x/time v0.3.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.13.0 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sync v0.1.0 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/firestore/go.sum b/firestore/go.sum index d04113a791d5..114cff2eaa84 100644 --- a/firestore/go.sum +++ b/firestore/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute v1.13.0 h1:AYrLkB8NPdDRslNp4Jxmzrhdr03fUAIDbiGFjLWowoU= -cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -45,8 +45,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -91,8 +91,8 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4= golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -103,8 +103,8 @@ golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBn golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -112,8 +112,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd h1:OjndDrsik+Gt+e6fs45z9AxiewiKyLKYpA45W5Kpkks= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/functions/apiv1/doc.go b/functions/apiv1/doc.go index defa51203a3f..5fc79115ae0f 100644 --- a/functions/apiv1/doc.go +++ b/functions/apiv1/doc.go @@ -20,6 +20,11 @@ // Manages lightweight user-provided functions executed in response to // events. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package functions // import "cloud.google.com/go/functions/apiv1" import ( diff --git a/functions/apiv2/doc.go b/functions/apiv2/doc.go index 672ff48c5fcd..9d38b1aec0a5 100644 --- a/functions/apiv2/doc.go +++ b/functions/apiv2/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package functions // import "cloud.google.com/go/functions/apiv2" import ( diff --git a/functions/apiv2beta/doc.go b/functions/apiv2beta/doc.go index 6a6481e47b97..cff9e2548b32 100644 --- a/functions/apiv2beta/doc.go +++ b/functions/apiv2beta/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package functions // import "cloud.google.com/go/functions/apiv2beta" import ( diff --git a/functions/go.mod b/functions/go.mod index 4b5d008d7528..33fe2d97de60 100644 --- a/functions/go.mod +++ b/functions/go.mod @@ -6,23 +6,24 @@ require ( cloud.google.com/go/longrunning v0.3.0 github.com/google/go-cmp v0.5.9 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/functions/go.sum b/functions/go.sum index 1957b0c5def1..299518b5132c 100644 --- a/functions/go.sum +++ b/functions/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/gaming/apiv1/doc.go b/gaming/apiv1/doc.go index db38edbaa7aa..b3977fd8a8fa 100644 --- a/gaming/apiv1/doc.go +++ b/gaming/apiv1/doc.go @@ -20,6 +20,11 @@ // Deploy and manage infrastructure for global multiplayer gaming // experiences. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package gaming // import "cloud.google.com/go/gaming/apiv1" import ( diff --git a/gaming/apiv1beta/doc.go b/gaming/apiv1beta/doc.go index da9298e6fd2c..fd98dc8c6385 100644 --- a/gaming/apiv1beta/doc.go +++ b/gaming/apiv1beta/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -82,9 +87,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package gaming // import "cloud.google.com/go/gaming/apiv1beta" import ( diff --git a/gaming/go.mod b/gaming/go.mod index a45a31a23a17..cd501affd723 100644 --- a/gaming/go.mod +++ b/gaming/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/gaming/go.sum b/gaming/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/gaming/go.sum +++ b/gaming/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/gkebackup/apiv1/doc.go b/gkebackup/apiv1/doc.go index 06f16a9ebe1d..46814216d437 100644 --- a/gkebackup/apiv1/doc.go +++ b/gkebackup/apiv1/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -81,9 +86,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package gkebackup // import "cloud.google.com/go/gkebackup/apiv1" import ( diff --git a/gkebackup/go.mod b/gkebackup/go.mod index abfb150ffe58..b961b9ed045a 100644 --- a/gkebackup/go.mod +++ b/gkebackup/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/gkebackup/go.sum b/gkebackup/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/gkebackup/go.sum +++ b/gkebackup/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/gkeconnect/gateway/apiv1beta1/doc.go b/gkeconnect/gateway/apiv1beta1/doc.go index c39f5918e4ca..1db8c88071c4 100644 --- a/gkeconnect/gateway/apiv1beta1/doc.go +++ b/gkeconnect/gateway/apiv1beta1/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package gateway // import "cloud.google.com/go/gkeconnect/gateway/apiv1beta1" import ( diff --git a/gkeconnect/go.mod b/gkeconnect/go.mod index e3fcffb338ca..b89d03483a53 100644 --- a/gkeconnect/go.mod +++ b/gkeconnect/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/gkeconnect/go.sum b/gkeconnect/go.sum index b197d3308493..067d9e20ab06 100644 --- a/gkeconnect/go.sum +++ b/gkeconnect/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/gkehub/apiv1beta1/doc.go b/gkehub/apiv1beta1/doc.go index caea2f9b9a07..528ac7a383a0 100644 --- a/gkehub/apiv1beta1/doc.go +++ b/gkehub/apiv1beta1/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package gkehub // import "cloud.google.com/go/gkehub/apiv1beta1" import ( diff --git a/gkehub/go.mod b/gkehub/go.mod index 0ca575b7d5a8..b9988323d720 100644 --- a/gkehub/go.mod +++ b/gkehub/go.mod @@ -5,24 +5,25 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/gkehub/go.sum b/gkehub/go.sum index 1957b0c5def1..299518b5132c 100644 --- a/gkehub/go.sum +++ b/gkehub/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/gkemulticloud/apiv1/doc.go b/gkemulticloud/apiv1/doc.go index 9cbf1e33f610..c742dbbb0caf 100644 --- a/gkemulticloud/apiv1/doc.go +++ b/gkemulticloud/apiv1/doc.go @@ -27,6 +27,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -86,9 +91,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package gkemulticloud // import "cloud.google.com/go/gkemulticloud/apiv1" import ( diff --git a/gkemulticloud/go.mod b/gkemulticloud/go.mod index 785c43f72fb2..f3020ff0b3a0 100644 --- a/gkemulticloud/go.mod +++ b/gkemulticloud/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/gkemulticloud/go.sum b/gkemulticloud/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/gkemulticloud/go.sum +++ b/gkemulticloud/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/go.mod b/go.mod index 4ebb08f2c59a..b76669c0fdca 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 google.golang.org/api v0.106.0 - google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) diff --git a/go.sum b/go.sum index cb5489b52dc5..fb0453929a97 100644 --- a/go.sum +++ b/go.sum @@ -119,8 +119,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6 h1:uUn6GsgKK2eCI0bWeRMgRCcqDaQXYDuB+5tXA5Xeg/8= -google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/gsuiteaddons/apiv1/doc.go b/gsuiteaddons/apiv1/doc.go index 0ca283e56acc..190c3e5a0514 100644 --- a/gsuiteaddons/apiv1/doc.go +++ b/gsuiteaddons/apiv1/doc.go @@ -17,6 +17,11 @@ // Package gsuiteaddons is an auto-generated package for the // Google Workspace Add-ons API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -71,9 +76,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package gsuiteaddons // import "cloud.google.com/go/gsuiteaddons/apiv1" import ( diff --git a/gsuiteaddons/go.mod b/gsuiteaddons/go.mod index ca3b9b93cbce..f68a0cf08e70 100644 --- a/gsuiteaddons/go.mod +++ b/gsuiteaddons/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/gsuiteaddons/go.sum b/gsuiteaddons/go.sum index b197d3308493..067d9e20ab06 100644 --- a/gsuiteaddons/go.sum +++ b/gsuiteaddons/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/iam/apiv1/doc.go b/iam/apiv1/doc.go index b724d862274b..b20c1fd2469e 100644 --- a/iam/apiv1/doc.go +++ b/iam/apiv1/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package iam // import "cloud.google.com/go/iam/apiv1" import ( diff --git a/iam/apiv2/doc.go b/iam/apiv2/doc.go index 3b66863d08cc..4b7a47d56a0f 100644 --- a/iam/apiv2/doc.go +++ b/iam/apiv2/doc.go @@ -23,6 +23,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -83,9 +88,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package iam // import "cloud.google.com/go/iam/apiv2" import ( diff --git a/iam/credentials/apiv1/doc.go b/iam/credentials/apiv1/doc.go index d09f2859a442..7493aa3221c9 100644 --- a/iam/credentials/apiv1/doc.go +++ b/iam/credentials/apiv1/doc.go @@ -20,6 +20,11 @@ // Creates short-lived, limited-privilege credentials for IAM service // accounts. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package credentials // import "cloud.google.com/go/iam/credentials/apiv1" import ( diff --git a/iam/go.mod b/iam/go.mod index c2605e2d92db..8bed14232953 100644 --- a/iam/go.mod +++ b/iam/go.mod @@ -7,22 +7,22 @@ require ( cloud.google.com/go/longrunning v0.3.0 github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221205194025-8222ab48f5fc + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.13.0 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/iam/go.sum b/iam/go.sum index 3d8cf7363f89..271a0755e3ee 100644 --- a/iam/go.sum +++ b/iam/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute v1.13.0 h1:AYrLkB8NPdDRslNp4Jxmzrhdr03fUAIDbiGFjLWowoU= -cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -45,8 +45,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -89,16 +89,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -106,8 +106,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221205194025-8222ab48f5fc h1:nUKKji0AarrQKh6XpFEpG3p1TNztxhe7C8TcUvDgXqw= -google.golang.org/genproto v0.0.0-20221205194025-8222ab48f5fc/go.mod h1:1dOng4TWOomJrDGhpXjfCD35wQC6jnC7HpRmOFRqEV0= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/iap/apiv1/doc.go b/iap/apiv1/doc.go index 56639ab3224f..4a859b29fcd3 100644 --- a/iap/apiv1/doc.go +++ b/iap/apiv1/doc.go @@ -19,6 +19,11 @@ // // Controls access to cloud applications running on Google Cloud Platform. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package iap // import "cloud.google.com/go/iap/apiv1" import ( diff --git a/iap/go.mod b/iap/go.mod index a42331bd1f51..12e901887f0d 100644 --- a/iap/go.mod +++ b/iap/go.mod @@ -4,23 +4,24 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/iap/go.sum b/iap/go.sum index b197d3308493..475f34dc59b9 100644 --- a/iap/go.sum +++ b/iap/go.sum @@ -1,9 +1,11 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/ids/apiv1/doc.go b/ids/apiv1/doc.go index 629b5043420f..313e4cc2033e 100644 --- a/ids/apiv1/doc.go +++ b/ids/apiv1/doc.go @@ -23,6 +23,11 @@ // When you use this product, your organization name and consumption levels // will be shared with Palo Alto Networks. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -83,9 +88,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package ids // import "cloud.google.com/go/ids/apiv1" import ( diff --git a/ids/go.mod b/ids/go.mod index ad19336fb44a..806052a1c277 100644 --- a/ids/go.mod +++ b/ids/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/ids/go.sum b/ids/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/ids/go.sum +++ b/ids/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ReadTensorboardUsage/main.go b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ReadTensorboardUsage/main.go new file mode 100644 index 000000000000..d3e94f6a0d04 --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1/TensorboardClient/ReadTensorboardUsage/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START aiplatform_v1_generated_TensorboardService_ReadTensorboardUsage_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1" + aiplatformpb "cloud.google.com/go/aiplatform/apiv1/aiplatformpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := aiplatform.NewTensorboardClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ReadTensorboardUsageRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/aiplatform/apiv1/aiplatformpb#ReadTensorboardUsageRequest. + } + resp, err := c.ReadTensorboardUsage(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1_generated_TensorboardService_ReadTensorboardUsage_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1/snippet_metadata.google.cloud.aiplatform.v1.json b/internal/generated/snippets/aiplatform/apiv1/snippet_metadata.google.cloud.aiplatform.v1.json index 67bcc5e23072..a9f19b824569 100644 --- a/internal/generated/snippets/aiplatform/apiv1/snippet_metadata.google.cloud.aiplatform.v1.json +++ b/internal/generated/snippets/aiplatform/apiv1/snippet_metadata.google.cloud.aiplatform.v1.json @@ -3868,7 +3868,7 @@ { "regionTag": "aiplatform_v1_generated_IndexService_DeleteIndex_sync", "title": "aiplatform DeleteIndex Sample", - "description": "DeleteIndex deletes an Index.\nAn Index can only be deleted when all its\nDeployedIndexes had been undeployed.", + "description": "DeleteIndex deletes an Index.\nAn Index can only be deleted when all its\nDeployedIndexes had\nbeen undeployed.", "file": "IndexClient/DeleteIndex/main.go", "language": "GO", "clientMethod": { @@ -5383,7 +5383,7 @@ { "regionTag": "aiplatform_v1_generated_JobService_CancelBatchPredictionJob_sync", "title": "aiplatform CancelBatchPredictionJob Sample", - "description": "CancelBatchPredictionJob cancels a BatchPredictionJob.\n\nStarts asynchronous cancellation on the BatchPredictionJob. The server\nmakes the best effort to cancel the job, but success is not\nguaranteed. Clients can use JobService.GetBatchPredictionJob or\nother methods to check whether the cancellation succeeded or whether the\njob completed despite cancellation. On a successful cancellation,\nthe BatchPredictionJob is not deleted;instead its\nBatchPredictionJob.state is set to CANCELLED. Any files already\noutputted by the job are not deleted.", + "description": "CancelBatchPredictionJob cancels a BatchPredictionJob.\n\nStarts asynchronous cancellation on the BatchPredictionJob. The server\nmakes the best effort to cancel the job, but success is not\nguaranteed. Clients can use\nJobService.GetBatchPredictionJob\nor other methods to check whether the cancellation succeeded or whether the\njob completed despite cancellation. On a successful cancellation,\nthe BatchPredictionJob is not deleted;instead its\nBatchPredictionJob.state\nis set to CANCELLED. Any files already outputted by the job are not\ndeleted.", "file": "JobClient/CancelBatchPredictionJob/main.go", "language": "GO", "clientMethod": { @@ -5428,7 +5428,7 @@ { "regionTag": "aiplatform_v1_generated_JobService_CancelCustomJob_sync", "title": "aiplatform CancelCustomJob Sample", - "description": "CancelCustomJob cancels a CustomJob.\nStarts asynchronous cancellation on the CustomJob. The server\nmakes a best effort to cancel the job, but success is not\nguaranteed. Clients can use JobService.GetCustomJob or\nother methods to check whether the cancellation succeeded or whether the\njob completed despite cancellation. On successful cancellation,\nthe CustomJob is not deleted; instead it becomes a job with\na CustomJob.error value with a google.rpc.Status.code of 1,\ncorresponding to Code.CANCELLED, and CustomJob.state is set to\nCANCELLED.", + "description": "CancelCustomJob cancels a CustomJob.\nStarts asynchronous cancellation on the CustomJob. The server\nmakes a best effort to cancel the job, but success is not\nguaranteed. Clients can use\nJobService.GetCustomJob\nor other methods to check whether the cancellation succeeded or whether the\njob completed despite cancellation. On successful cancellation,\nthe CustomJob is not deleted; instead it becomes a job with\na CustomJob.error value with\na google.rpc.Status.code of 1, corresponding to\nCode.CANCELLED, and\nCustomJob.state is set to\nCANCELLED.", "file": "JobClient/CancelCustomJob/main.go", "language": "GO", "clientMethod": { @@ -5518,7 +5518,7 @@ { "regionTag": "aiplatform_v1_generated_JobService_CancelHyperparameterTuningJob_sync", "title": "aiplatform CancelHyperparameterTuningJob Sample", - "description": "CancelHyperparameterTuningJob cancels a HyperparameterTuningJob.\nStarts asynchronous cancellation on the HyperparameterTuningJob. The server\nmakes a best effort to cancel the job, but success is not\nguaranteed. Clients can use JobService.GetHyperparameterTuningJob or\nother methods to check whether the cancellation succeeded or whether the\njob completed despite cancellation. On successful cancellation,\nthe HyperparameterTuningJob is not deleted; instead it becomes a job with\na HyperparameterTuningJob.error value with a google.rpc.Status.code\nof 1, corresponding to Code.CANCELLED, and\nHyperparameterTuningJob.state is set to CANCELLED.", + "description": "CancelHyperparameterTuningJob cancels a HyperparameterTuningJob.\nStarts asynchronous cancellation on the HyperparameterTuningJob. The server\nmakes a best effort to cancel the job, but success is not\nguaranteed. Clients can use\nJobService.GetHyperparameterTuningJob\nor other methods to check whether the cancellation succeeded or whether the\njob completed despite cancellation. On successful cancellation,\nthe HyperparameterTuningJob is not deleted; instead it becomes a job with\na\nHyperparameterTuningJob.error\nvalue with a google.rpc.Status.code of 1,\ncorresponding to Code.CANCELLED, and\nHyperparameterTuningJob.state\nis set to CANCELLED.", "file": "JobClient/CancelHyperparameterTuningJob/main.go", "language": "GO", "clientMethod": { @@ -6803,7 +6803,7 @@ { "regionTag": "aiplatform_v1_generated_JobService_PauseModelDeploymentMonitoringJob_sync", "title": "aiplatform PauseModelDeploymentMonitoringJob Sample", - "description": "PauseModelDeploymentMonitoringJob pauses a ModelDeploymentMonitoringJob. If the job is running, the server\nmakes a best effort to cancel the job. Will mark\nModelDeploymentMonitoringJob.state to ‘PAUSED’.", + "description": "PauseModelDeploymentMonitoringJob pauses a ModelDeploymentMonitoringJob. If the job is running, the server\nmakes a best effort to cancel the job. Will mark\nModelDeploymentMonitoringJob.state\nto ‘PAUSED’.", "file": "JobClient/PauseModelDeploymentMonitoringJob/main.go", "language": "GO", "clientMethod": { @@ -9694,7 +9694,7 @@ { "regionTag": "aiplatform_v1_generated_ModelService_DeleteModel_sync", "title": "aiplatform DeleteModel Sample", - "description": "DeleteModel deletes a Model.\n\nA model cannot be deleted if any Endpoint resource has a\nDeployedModel based on the model in its\ndeployed_models field.", + "description": "DeleteModel deletes a Model.\n\nA model cannot be deleted if any\nEndpoint resource has a\nDeployedModel based on the\nmodel in its\ndeployed_models\nfield.", "file": "ModelClient/DeleteModel/main.go", "language": "GO", "clientMethod": { @@ -9740,7 +9740,7 @@ { "regionTag": "aiplatform_v1_generated_ModelService_DeleteModelVersion_sync", "title": "aiplatform DeleteModelVersion Sample", - "description": "DeleteModelVersion deletes a Model version.\n\nModel version can only be deleted if there are no DeployedModels\ncreated from it. Deleting the only version in the Model is not allowed. Use\nDeleteModel for deleting the Model instead.", + "description": "DeleteModelVersion deletes a Model version.\n\nModel version can only be deleted if there are no DeployedModels\ncreated from it. Deleting the only version in the Model is not allowed. Use\nDeleteModel for\ndeleting the Model instead.", "file": "ModelClient/DeleteModelVersion/main.go", "language": "GO", "clientMethod": { @@ -9831,7 +9831,7 @@ { "regionTag": "aiplatform_v1_generated_ModelService_ExportModel_sync", "title": "aiplatform ExportModel Sample", - "description": "ExportModel exports a trained, exportable Model to a location specified by the\nuser. A Model is considered to be exportable if it has at least one\n[supported export format][google.cloud.aiplatform.v1.Model.supported_export_formats].", + "description": "ExportModel exports a trained, exportable Model to a location specified by the\nuser. A Model is considered to be exportable if it has at least one\n[supported export\nformat][google.cloud.aiplatform.v1.Model.supported_export_formats].", "file": "ModelClient/ExportModel/main.go", "language": "GO", "clientMethod": { @@ -10796,7 +10796,7 @@ { "regionTag": "aiplatform_v1_generated_PipelineService_CancelPipelineJob_sync", "title": "aiplatform CancelPipelineJob Sample", - "description": "CancelPipelineJob cancels a PipelineJob.\nStarts asynchronous cancellation on the PipelineJob. The server\nmakes a best effort to cancel the pipeline, but success is not\nguaranteed. Clients can use PipelineService.GetPipelineJob or\nother methods to check whether the cancellation succeeded or whether the\npipeline completed despite cancellation. On successful cancellation,\nthe PipelineJob is not deleted; instead it becomes a pipeline with\na PipelineJob.error value with a google.rpc.Status.code of 1,\ncorresponding to Code.CANCELLED, and PipelineJob.state is set to\nCANCELLED.", + "description": "CancelPipelineJob cancels a PipelineJob.\nStarts asynchronous cancellation on the PipelineJob. The server\nmakes a best effort to cancel the pipeline, but success is not\nguaranteed. Clients can use\nPipelineService.GetPipelineJob\nor other methods to check whether the cancellation succeeded or whether the\npipeline completed despite cancellation. On successful cancellation,\nthe PipelineJob is not deleted; instead it becomes a pipeline with\na PipelineJob.error value\nwith a google.rpc.Status.code of 1, corresponding\nto Code.CANCELLED, and\nPipelineJob.state is set to\nCANCELLED.", "file": "PipelineClient/CancelPipelineJob/main.go", "language": "GO", "clientMethod": { @@ -10841,7 +10841,7 @@ { "regionTag": "aiplatform_v1_generated_PipelineService_CancelTrainingPipeline_sync", "title": "aiplatform CancelTrainingPipeline Sample", - "description": "CancelTrainingPipeline cancels a TrainingPipeline.\nStarts asynchronous cancellation on the TrainingPipeline. The server\nmakes a best effort to cancel the pipeline, but success is not\nguaranteed. Clients can use PipelineService.GetTrainingPipeline or\nother methods to check whether the cancellation succeeded or whether the\npipeline completed despite cancellation. On successful cancellation,\nthe TrainingPipeline is not deleted; instead it becomes a pipeline with\na TrainingPipeline.error value with a google.rpc.Status.code of 1,\ncorresponding to Code.CANCELLED, and TrainingPipeline.state is set to\nCANCELLED.", + "description": "CancelTrainingPipeline cancels a TrainingPipeline.\nStarts asynchronous cancellation on the TrainingPipeline. The server\nmakes a best effort to cancel the pipeline, but success is not\nguaranteed. Clients can use\nPipelineService.GetTrainingPipeline\nor other methods to check whether the cancellation succeeded or whether the\npipeline completed despite cancellation. On successful cancellation,\nthe TrainingPipeline is not deleted; instead it becomes a pipeline with\na\nTrainingPipeline.error\nvalue with a google.rpc.Status.code of 1,\ncorresponding to Code.CANCELLED, and\nTrainingPipeline.state\nis set to CANCELLED.", "file": "PipelineClient/CancelTrainingPipeline/main.go", "language": "GO", "clientMethod": { @@ -11757,7 +11757,7 @@ { "regionTag": "aiplatform_v1_generated_PredictionService_Explain_sync", "title": "aiplatform Explain Sample", - "description": "Explain perform an online explanation.\n\nIf deployed_model_id is specified,\nthe corresponding DeployModel must have\nexplanation_spec\npopulated. If deployed_model_id\nis not specified, all DeployedModels must have\nexplanation_spec\npopulated. Only deployed AutoML tabular Models have\nexplanation_spec.", + "description": "Explain perform an online explanation.\n\nIf\ndeployed_model_id\nis specified, the corresponding DeployModel must have\nexplanation_spec\npopulated. If\ndeployed_model_id\nis not specified, all DeployedModels must have\nexplanation_spec\npopulated. Only deployed AutoML tabular Models have\nexplanation_spec.", "file": "PredictionClient/Explain/main.go", "language": "GO", "clientMethod": { @@ -12079,7 +12079,7 @@ { "regionTag": "aiplatform_v1_generated_PredictionService_RawPredict_sync", "title": "aiplatform RawPredict Sample", - "description": "RawPredict perform an online prediction with an arbitrary HTTP payload.\n\nThe response includes the following HTTP headers: \n\n\tX-Vertex-AI-Endpoint-Id: ID of the Endpoint that served this\n\tprediction.\n\n\tX-Vertex-AI-Deployed-Model-Id: ID of the Endpoint’s DeployedModel\n\tthat served this prediction.", + "description": "RawPredict perform an online prediction with an arbitrary HTTP payload.\n\nThe response includes the following HTTP headers: \n\n\tX-Vertex-AI-Endpoint-Id: ID of the\n\tEndpoint that served this\n\tprediction.\n\n\tX-Vertex-AI-Deployed-Model-Id: ID of the Endpoint’s\n\tDeployedModel that served this\n\tprediction.", "file": "PredictionClient/RawPredict/main.go", "language": "GO", "clientMethod": { @@ -13043,7 +13043,7 @@ { "regionTag": "aiplatform_v1_generated_TensorboardService_BatchReadTensorboardTimeSeriesData_sync", "title": "aiplatform BatchReadTensorboardTimeSeriesData Sample", - "description": "BatchReadTensorboardTimeSeriesData reads multiple TensorboardTimeSeries’ data. The data point number limit is\n1000 for scalars, 100 for tensors and blob references. If the number of\ndata points stored is less than the limit, all data will be returned.\nOtherwise, that limit number of data points will be randomly selected from\nthis time series and returned.", + "description": "BatchReadTensorboardTimeSeriesData reads multiple TensorboardTimeSeries’ data. The data point number limit is\n1000 for scalars, 100 for tensors and blob references. If the number of\ndata points stored is less than the limit, all data is returned.\nOtherwise, the number limit of data points is randomly selected from\nthis time series and returned.", "file": "TensorboardClient/BatchReadTensorboardTimeSeriesData/main.go", "language": "GO", "clientMethod": { @@ -14236,7 +14236,7 @@ { "regionTag": "aiplatform_v1_generated_TensorboardService_ReadTensorboardTimeSeriesData_sync", "title": "aiplatform ReadTensorboardTimeSeriesData Sample", - "description": "ReadTensorboardTimeSeriesData reads a TensorboardTimeSeries’ data. By default, if the number of data\npoints stored is less than 1000, all data will be returned. Otherwise, 1000\ndata points will be randomly selected from this time series and returned.\nThis value can be changed by changing max_data_points, which can’t be\ngreater than 10k.", + "description": "ReadTensorboardTimeSeriesData reads a TensorboardTimeSeries’ data. By default, if the number of data\npoints stored is less than 1000, all data is returned. Otherwise, 1000\ndata points is randomly selected from this time series and returned.\nThis value can be changed by changing max_data_points, which can’t be\ngreater than 10k.", "file": "TensorboardClient/ReadTensorboardTimeSeriesData/main.go", "language": "GO", "clientMethod": { @@ -14279,6 +14279,52 @@ } ] }, + { + "regionTag": "aiplatform_v1_generated_TensorboardService_ReadTensorboardUsage_sync", + "title": "aiplatform ReadTensorboardUsage Sample", + "description": "ReadTensorboardUsage returns a list of monthly active users for a given TensorBoard instance.", + "file": "TensorboardClient/ReadTensorboardUsage/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReadTensorboardUsage", + "fullName": "google.cloud.aiplatform.v1.TensorboardClient.ReadTensorboardUsage", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "aiplatformpb.ReadTensorboardUsageRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "aiplatformpb.ReadTensorboardUsageResponse", + "client": { + "shortName": "TensorboardClient", + "fullName": "google.cloud.aiplatform.v1.TensorboardClient" + }, + "method": { + "shortName": "ReadTensorboardUsage", + "fullName": "google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsage", + "service": { + "shortName": "TensorboardService", + "fullName": "google.cloud.aiplatform.v1.TensorboardService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, { "regionTag": "aiplatform_v1_generated_TensorboardService_SetIamPolicy_sync", "title": "aiplatform SetIamPolicy Sample", @@ -14604,7 +14650,7 @@ { "regionTag": "aiplatform_v1_generated_TensorboardService_WriteTensorboardExperimentData_sync", "title": "aiplatform WriteTensorboardExperimentData Sample", - "description": "WriteTensorboardExperimentData write time series data points of multiple TensorboardTimeSeries in multiple\nTensorboardRun’s. If any data fail to be ingested, an error will be\nreturned.", + "description": "WriteTensorboardExperimentData write time series data points of multiple TensorboardTimeSeries in multiple\nTensorboardRun’s. If any data fail to be ingested, an error is returned.", "file": "TensorboardClient/WriteTensorboardExperimentData/main.go", "language": "GO", "clientMethod": { @@ -14650,7 +14696,7 @@ { "regionTag": "aiplatform_v1_generated_TensorboardService_WriteTensorboardRunData_sync", "title": "aiplatform WriteTensorboardRunData Sample", - "description": "WriteTensorboardRunData write time series data points into multiple TensorboardTimeSeries under\na TensorboardRun. If any data fail to be ingested, an error will be\nreturned.", + "description": "WriteTensorboardRunData write time series data points into multiple TensorboardTimeSeries under\na TensorboardRun. If any data fail to be ingested, an error is returned.", "file": "TensorboardClient/WriteTensorboardRunData/main.go", "language": "GO", "clientMethod": { diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ReadTensorboardUsage/main.go b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ReadTensorboardUsage/main.go new file mode 100644 index 000000000000..fd850c0bb6fd --- /dev/null +++ b/internal/generated/snippets/aiplatform/apiv1beta1/TensorboardClient/ReadTensorboardUsage/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardUsage_sync] + +package main + +import ( + "context" + + aiplatform "cloud.google.com/go/aiplatform/apiv1beta1" + aiplatformpb "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := aiplatform.NewTensorboardClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &aiplatformpb.ReadTensorboardUsageRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb#ReadTensorboardUsageRequest. + } + resp, err := c.ReadTensorboardUsage(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardUsage_sync] diff --git a/internal/generated/snippets/aiplatform/apiv1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json b/internal/generated/snippets/aiplatform/apiv1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json index cb9963d85b87..864653c4f606 100644 --- a/internal/generated/snippets/aiplatform/apiv1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json +++ b/internal/generated/snippets/aiplatform/apiv1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json @@ -4602,7 +4602,7 @@ { "regionTag": "aiplatform_v1beta1_generated_IndexService_DeleteIndex_sync", "title": "aiplatform DeleteIndex Sample", - "description": "DeleteIndex deletes an Index.\nAn Index can only be deleted when all its\nDeployedIndexes had been undeployed.", + "description": "DeleteIndex deletes an Index.\nAn Index can only be deleted when all its\nDeployedIndexes\nhad been undeployed.", "file": "IndexClient/DeleteIndex/main.go", "language": "GO", "clientMethod": { @@ -6117,7 +6117,7 @@ { "regionTag": "aiplatform_v1beta1_generated_JobService_CancelBatchPredictionJob_sync", "title": "aiplatform CancelBatchPredictionJob Sample", - "description": "CancelBatchPredictionJob cancels a BatchPredictionJob.\n\nStarts asynchronous cancellation on the BatchPredictionJob. The server\nmakes the best effort to cancel the job, but success is not\nguaranteed. Clients can use JobService.GetBatchPredictionJob or\nother methods to check whether the cancellation succeeded or whether the\njob completed despite cancellation. On a successful cancellation,\nthe BatchPredictionJob is not deleted;instead its\nBatchPredictionJob.state is set to CANCELLED. Any files already\noutputted by the job are not deleted.", + "description": "CancelBatchPredictionJob cancels a BatchPredictionJob.\n\nStarts asynchronous cancellation on the BatchPredictionJob. The server\nmakes the best effort to cancel the job, but success is not\nguaranteed. Clients can use\nJobService.GetBatchPredictionJob\nor other methods to check whether the cancellation succeeded or whether the\njob completed despite cancellation. On a successful cancellation,\nthe BatchPredictionJob is not deleted;instead its\nBatchPredictionJob.state\nis set to CANCELLED. Any files already outputted by the job are not\ndeleted.", "file": "JobClient/CancelBatchPredictionJob/main.go", "language": "GO", "clientMethod": { @@ -6162,7 +6162,7 @@ { "regionTag": "aiplatform_v1beta1_generated_JobService_CancelCustomJob_sync", "title": "aiplatform CancelCustomJob Sample", - "description": "CancelCustomJob cancels a CustomJob.\nStarts asynchronous cancellation on the CustomJob. The server\nmakes a best effort to cancel the job, but success is not\nguaranteed. Clients can use JobService.GetCustomJob or\nother methods to check whether the cancellation succeeded or whether the\njob completed despite cancellation. On successful cancellation,\nthe CustomJob is not deleted; instead it becomes a job with\na CustomJob.error value with a google.rpc.Status.code of 1,\ncorresponding to Code.CANCELLED, and CustomJob.state is set to\nCANCELLED.", + "description": "CancelCustomJob cancels a CustomJob.\nStarts asynchronous cancellation on the CustomJob. The server\nmakes a best effort to cancel the job, but success is not\nguaranteed. Clients can use\nJobService.GetCustomJob\nor other methods to check whether the cancellation succeeded or whether the\njob completed despite cancellation. On successful cancellation,\nthe CustomJob is not deleted; instead it becomes a job with\na CustomJob.error value\nwith a google.rpc.Status.code of 1, corresponding\nto Code.CANCELLED, and\nCustomJob.state is set\nto CANCELLED.", "file": "JobClient/CancelCustomJob/main.go", "language": "GO", "clientMethod": { @@ -6252,7 +6252,7 @@ { "regionTag": "aiplatform_v1beta1_generated_JobService_CancelHyperparameterTuningJob_sync", "title": "aiplatform CancelHyperparameterTuningJob Sample", - "description": "CancelHyperparameterTuningJob cancels a HyperparameterTuningJob.\nStarts asynchronous cancellation on the HyperparameterTuningJob. The server\nmakes a best effort to cancel the job, but success is not\nguaranteed. Clients can use JobService.GetHyperparameterTuningJob or\nother methods to check whether the cancellation succeeded or whether the\njob completed despite cancellation. On successful cancellation,\nthe HyperparameterTuningJob is not deleted; instead it becomes a job with\na HyperparameterTuningJob.error value with a google.rpc.Status.code\nof 1, corresponding to Code.CANCELLED, and\nHyperparameterTuningJob.state is set to CANCELLED.", + "description": "CancelHyperparameterTuningJob cancels a HyperparameterTuningJob.\nStarts asynchronous cancellation on the HyperparameterTuningJob. The server\nmakes a best effort to cancel the job, but success is not\nguaranteed. Clients can use\nJobService.GetHyperparameterTuningJob\nor other methods to check whether the cancellation succeeded or whether the\njob completed despite cancellation. On successful cancellation,\nthe HyperparameterTuningJob is not deleted; instead it becomes a job with\na\nHyperparameterTuningJob.error\nvalue with a google.rpc.Status.code of 1,\ncorresponding to Code.CANCELLED, and\nHyperparameterTuningJob.state\nis set to CANCELLED.", "file": "JobClient/CancelHyperparameterTuningJob/main.go", "language": "GO", "clientMethod": { @@ -7537,7 +7537,7 @@ { "regionTag": "aiplatform_v1beta1_generated_JobService_PauseModelDeploymentMonitoringJob_sync", "title": "aiplatform PauseModelDeploymentMonitoringJob Sample", - "description": "PauseModelDeploymentMonitoringJob pauses a ModelDeploymentMonitoringJob. If the job is running, the server\nmakes a best effort to cancel the job. Will mark\nModelDeploymentMonitoringJob.state to ‘PAUSED’.", + "description": "PauseModelDeploymentMonitoringJob pauses a ModelDeploymentMonitoringJob. If the job is running, the server\nmakes a best effort to cancel the job. Will mark\nModelDeploymentMonitoringJob.state\nto ‘PAUSED’.", "file": "JobClient/PauseModelDeploymentMonitoringJob/main.go", "language": "GO", "clientMethod": { @@ -10428,7 +10428,7 @@ { "regionTag": "aiplatform_v1beta1_generated_ModelService_DeleteModel_sync", "title": "aiplatform DeleteModel Sample", - "description": "DeleteModel deletes a Model.\n\nA model cannot be deleted if any Endpoint resource has a\nDeployedModel based on the model in its\ndeployed_models field.", + "description": "DeleteModel deletes a Model.\n\nA model cannot be deleted if any\nEndpoint resource has a\nDeployedModel based on the\nmodel in its\ndeployed_models\nfield.", "file": "ModelClient/DeleteModel/main.go", "language": "GO", "clientMethod": { @@ -10474,7 +10474,7 @@ { "regionTag": "aiplatform_v1beta1_generated_ModelService_DeleteModelVersion_sync", "title": "aiplatform DeleteModelVersion Sample", - "description": "DeleteModelVersion deletes a Model version.\n\nModel version can only be deleted if there are no DeployedModels\ncreated from it. Deleting the only version in the Model is not allowed. Use\nDeleteModel for deleting the Model instead.", + "description": "DeleteModelVersion deletes a Model version.\n\nModel version can only be deleted if there are no DeployedModels\ncreated from it. Deleting the only version in the Model is not allowed. Use\nDeleteModel for\ndeleting the Model instead.", "file": "ModelClient/DeleteModelVersion/main.go", "language": "GO", "clientMethod": { @@ -10565,7 +10565,7 @@ { "regionTag": "aiplatform_v1beta1_generated_ModelService_ExportModel_sync", "title": "aiplatform ExportModel Sample", - "description": "ExportModel exports a trained, exportable Model to a location specified by the\nuser. A Model is considered to be exportable if it has at least one\n[supported export format][google.cloud.aiplatform.v1beta1.Model.supported_export_formats].", + "description": "ExportModel exports a trained, exportable Model to a location specified by the\nuser. A Model is considered to be exportable if it has at least one\n[supported export\nformat][google.cloud.aiplatform.v1beta1.Model.supported_export_formats].", "file": "ModelClient/ExportModel/main.go", "language": "GO", "clientMethod": { @@ -11576,7 +11576,7 @@ { "regionTag": "aiplatform_v1beta1_generated_PipelineService_CancelPipelineJob_sync", "title": "aiplatform CancelPipelineJob Sample", - "description": "CancelPipelineJob cancels a PipelineJob.\nStarts asynchronous cancellation on the PipelineJob. The server\nmakes a best effort to cancel the pipeline, but success is not\nguaranteed. Clients can use PipelineService.GetPipelineJob or\nother methods to check whether the cancellation succeeded or whether the\npipeline completed despite cancellation. On successful cancellation,\nthe PipelineJob is not deleted; instead it becomes a pipeline with\na PipelineJob.error value with a google.rpc.Status.code of 1,\ncorresponding to Code.CANCELLED, and PipelineJob.state is set to\nCANCELLED.", + "description": "CancelPipelineJob cancels a PipelineJob.\nStarts asynchronous cancellation on the PipelineJob. The server\nmakes a best effort to cancel the pipeline, but success is not\nguaranteed. Clients can use\nPipelineService.GetPipelineJob\nor other methods to check whether the cancellation succeeded or whether the\npipeline completed despite cancellation. On successful cancellation,\nthe PipelineJob is not deleted; instead it becomes a pipeline with\na PipelineJob.error\nvalue with a google.rpc.Status.code of 1,\ncorresponding to Code.CANCELLED, and\nPipelineJob.state is\nset to CANCELLED.", "file": "PipelineClient/CancelPipelineJob/main.go", "language": "GO", "clientMethod": { @@ -11621,7 +11621,7 @@ { "regionTag": "aiplatform_v1beta1_generated_PipelineService_CancelTrainingPipeline_sync", "title": "aiplatform CancelTrainingPipeline Sample", - "description": "CancelTrainingPipeline cancels a TrainingPipeline.\nStarts asynchronous cancellation on the TrainingPipeline. The server\nmakes a best effort to cancel the pipeline, but success is not\nguaranteed. Clients can use PipelineService.GetTrainingPipeline or\nother methods to check whether the cancellation succeeded or whether the\npipeline completed despite cancellation. On successful cancellation,\nthe TrainingPipeline is not deleted; instead it becomes a pipeline with\na TrainingPipeline.error value with a google.rpc.Status.code of 1,\ncorresponding to Code.CANCELLED, and TrainingPipeline.state is set to\nCANCELLED.", + "description": "CancelTrainingPipeline cancels a TrainingPipeline.\nStarts asynchronous cancellation on the TrainingPipeline. The server\nmakes a best effort to cancel the pipeline, but success is not\nguaranteed. Clients can use\nPipelineService.GetTrainingPipeline\nor other methods to check whether the cancellation succeeded or whether the\npipeline completed despite cancellation. On successful cancellation,\nthe TrainingPipeline is not deleted; instead it becomes a pipeline with\na\nTrainingPipeline.error\nvalue with a google.rpc.Status.code of 1,\ncorresponding to Code.CANCELLED, and\nTrainingPipeline.state\nis set to CANCELLED.", "file": "PipelineClient/CancelTrainingPipeline/main.go", "language": "GO", "clientMethod": { @@ -12537,7 +12537,7 @@ { "regionTag": "aiplatform_v1beta1_generated_PredictionService_Explain_sync", "title": "aiplatform Explain Sample", - "description": "Explain perform an online explanation.\n\nIf deployed_model_id is specified,\nthe corresponding DeployModel must have\nexplanation_spec\npopulated. If deployed_model_id\nis not specified, all DeployedModels must have\nexplanation_spec\npopulated. Only deployed AutoML tabular Models have\nexplanation_spec.", + "description": "Explain perform an online explanation.\n\nIf\ndeployed_model_id\nis specified, the corresponding DeployModel must have\nexplanation_spec\npopulated. If\ndeployed_model_id\nis not specified, all DeployedModels must have\nexplanation_spec\npopulated. Only deployed AutoML tabular Models have\nexplanation_spec.", "file": "PredictionClient/Explain/main.go", "language": "GO", "clientMethod": { @@ -12859,7 +12859,7 @@ { "regionTag": "aiplatform_v1beta1_generated_PredictionService_RawPredict_sync", "title": "aiplatform RawPredict Sample", - "description": "RawPredict perform an online prediction with an arbitrary HTTP payload.\n\nThe response includes the following HTTP headers: \n\n\tX-Vertex-AI-Endpoint-Id: ID of the Endpoint that served this\n\tprediction.\n\n\tX-Vertex-AI-Deployed-Model-Id: ID of the Endpoint’s DeployedModel\n\tthat served this prediction.", + "description": "RawPredict perform an online prediction with an arbitrary HTTP payload.\n\nThe response includes the following HTTP headers: \n\n\tX-Vertex-AI-Endpoint-Id: ID of the\n\tEndpoint that served this\n\tprediction.\n\n\tX-Vertex-AI-Deployed-Model-Id: ID of the Endpoint’s\n\tDeployedModel that served\n\tthis prediction.", "file": "PredictionClient/RawPredict/main.go", "language": "GO", "clientMethod": { @@ -13823,7 +13823,7 @@ { "regionTag": "aiplatform_v1beta1_generated_TensorboardService_BatchReadTensorboardTimeSeriesData_sync", "title": "aiplatform BatchReadTensorboardTimeSeriesData Sample", - "description": "BatchReadTensorboardTimeSeriesData reads multiple TensorboardTimeSeries’ data. The data point number limit is\n1000 for scalars, 100 for tensors and blob references. If the number of\ndata points stored is less than the limit, all data will be returned.\nOtherwise, that limit number of data points will be randomly selected from\nthis time series and returned.", + "description": "BatchReadTensorboardTimeSeriesData reads multiple TensorboardTimeSeries’ data. The data point number limit is\n1000 for scalars, 100 for tensors and blob references. If the number of\ndata points stored is less than the limit, all data is returned.\nOtherwise, the number limit of data points is randomly selected from\nthis time series and returned.", "file": "TensorboardClient/BatchReadTensorboardTimeSeriesData/main.go", "language": "GO", "clientMethod": { @@ -15016,7 +15016,7 @@ { "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardTimeSeriesData_sync", "title": "aiplatform ReadTensorboardTimeSeriesData Sample", - "description": "ReadTensorboardTimeSeriesData reads a TensorboardTimeSeries’ data. By default, if the number of data\npoints stored is less than 1000, all data will be returned. Otherwise, 1000\ndata points will be randomly selected from this time series and returned.\nThis value can be changed by changing max_data_points, which can’t be\ngreater than 10k.", + "description": "ReadTensorboardTimeSeriesData reads a TensorboardTimeSeries’ data. By default, if the number of data\npoints stored is less than 1000, all data is returned. Otherwise, 1000\ndata points is randomly selected from this time series and returned.\nThis value can be changed by changing max_data_points, which can’t be\ngreater than 10k.", "file": "TensorboardClient/ReadTensorboardTimeSeriesData/main.go", "language": "GO", "clientMethod": { @@ -15059,6 +15059,52 @@ } ] }, + { + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardUsage_sync", + "title": "aiplatform ReadTensorboardUsage Sample", + "description": "ReadTensorboardUsage returns a list of monthly active users for a given TensorBoard instance.", + "file": "TensorboardClient/ReadTensorboardUsage/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReadTensorboardUsage", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardClient.ReadTensorboardUsage", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "aiplatformpb.ReadTensorboardUsageRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "aiplatformpb.ReadTensorboardUsageResponse", + "client": { + "shortName": "TensorboardClient", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardClient" + }, + "method": { + "shortName": "ReadTensorboardUsage", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardUsage", + "service": { + "shortName": "TensorboardService", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, { "regionTag": "aiplatform_v1beta1_generated_TensorboardService_SetIamPolicy_sync", "title": "aiplatform SetIamPolicy Sample", @@ -15384,7 +15430,7 @@ { "regionTag": "aiplatform_v1beta1_generated_TensorboardService_WriteTensorboardExperimentData_sync", "title": "aiplatform WriteTensorboardExperimentData Sample", - "description": "WriteTensorboardExperimentData write time series data points of multiple TensorboardTimeSeries in multiple\nTensorboardRun’s. If any data fail to be ingested, an error will be\nreturned.", + "description": "WriteTensorboardExperimentData write time series data points of multiple TensorboardTimeSeries in multiple\nTensorboardRun’s. If any data fail to be ingested, an error is returned.", "file": "TensorboardClient/WriteTensorboardExperimentData/main.go", "language": "GO", "clientMethod": { @@ -15430,7 +15476,7 @@ { "regionTag": "aiplatform_v1beta1_generated_TensorboardService_WriteTensorboardRunData_sync", "title": "aiplatform WriteTensorboardRunData Sample", - "description": "WriteTensorboardRunData write time series data points into multiple TensorboardTimeSeries under\na TensorboardRun. If any data fail to be ingested, an error will be\nreturned.", + "description": "WriteTensorboardRunData write time series data points into multiple TensorboardTimeSeries under\na TensorboardRun. If any data fail to be ingested, an error is returned.", "file": "TensorboardClient/WriteTensorboardRunData/main.go", "language": "GO", "clientMethod": { diff --git a/internal/generated/snippets/compute/apiv1/snippet_metadata.google.cloud.compute.v1.json b/internal/generated/snippets/compute/apiv1/snippet_metadata.google.cloud.compute.v1.json index f448b5738751..fa08b47179b5 100644 --- a/internal/generated/snippets/compute/apiv1/snippet_metadata.google.cloud.compute.v1.json +++ b/internal/generated/snippets/compute/apiv1/snippet_metadata.google.cloud.compute.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/compute/apiv1", - "version": "1.15.0", + "version": "1.15.1", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/dataplex/apiv1/snippet_metadata.google.cloud.dataplex.v1.json b/internal/generated/snippets/dataplex/apiv1/snippet_metadata.google.cloud.dataplex.v1.json index 915a72f3a4c5..549a27b2a129 100644 --- a/internal/generated/snippets/dataplex/apiv1/snippet_metadata.google.cloud.dataplex.v1.json +++ b/internal/generated/snippets/dataplex/apiv1/snippet_metadata.google.cloud.dataplex.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/dataplex/apiv1", - "version": "1.5.0", + "version": "1.5.1", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/go.mod b/internal/generated/snippets/go.mod index 78fb9aee0f8c..9485c1beae68 100644 --- a/internal/generated/snippets/go.mod +++ b/internal/generated/snippets/go.mod @@ -124,13 +124,18 @@ require ( cloud.google.com/go/workflows v1.9.0 github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect google.golang.org/api v0.106.0 - google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f +) + +require ( + cloud.google.com/go/maps v0.1.0 + cloud.google.com/go/recaptchaenterprise/v2 v2.5.0 + cloud.google.com/go/vision/v2 v2.5.0 + cloud.google.com/go/vmwareengine v0.1.0 ) require ( cloud.google.com/go/compute/metadata v0.2.3 // indirect - cloud.google.com/go/recaptchaenterprise/v2 v2.5.0 // indirect - cloud.google.com/go/vision/v2 v2.5.0 // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect diff --git a/internal/generated/snippets/go.sum b/internal/generated/snippets/go.sum index cd7a86acbbe7..4ab1d56636cb 100644 --- a/internal/generated/snippets/go.sum +++ b/internal/generated/snippets/go.sum @@ -234,13 +234,9 @@ google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljW google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqwhZAwq4wsRUaVG555sVgsNmIjRtO7t/JH29U= google.golang.org/genproto v0.0.0-20221024183307-1bc688fe9f3e/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c/go.mod h1:CGI5F/G+E5bKwmfYo09AXuVN4dD894kIKUFmVbP2/Fo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= -google.golang.org/genproto v0.0.0-20221201204527-e3fa12d562f3/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE= -google.golang.org/genproto v0.0.0-20221205194025-8222ab48f5fc/go.mod h1:1dOng4TWOomJrDGhpXjfCD35wQC6jnC7HpRmOFRqEV0= google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= -google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6 h1:uUn6GsgKK2eCI0bWeRMgRCcqDaQXYDuB+5tXA5Xeg/8= -google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/internal/generated/snippets/gsuiteaddons/apiv1/Client/CreateDeployment/main.go b/internal/generated/snippets/gsuiteaddons/apiv1/Client/CreateDeployment/main.go index f76787994a45..9e438c401414 100644 --- a/internal/generated/snippets/gsuiteaddons/apiv1/Client/CreateDeployment/main.go +++ b/internal/generated/snippets/gsuiteaddons/apiv1/Client/CreateDeployment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" gsuiteaddons "cloud.google.com/go/gsuiteaddons/apiv1" - gsuiteaddonspb "google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1" + gsuiteaddonspb "cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &gsuiteaddonspb.CreateDeploymentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1#CreateDeploymentRequest. + // See https://pkg.go.dev/cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb#CreateDeploymentRequest. } resp, err := c.CreateDeployment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/gsuiteaddons/apiv1/Client/DeleteDeployment/main.go b/internal/generated/snippets/gsuiteaddons/apiv1/Client/DeleteDeployment/main.go index c4d4c42da494..5d9f65c4a064 100644 --- a/internal/generated/snippets/gsuiteaddons/apiv1/Client/DeleteDeployment/main.go +++ b/internal/generated/snippets/gsuiteaddons/apiv1/Client/DeleteDeployment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" gsuiteaddons "cloud.google.com/go/gsuiteaddons/apiv1" - gsuiteaddonspb "google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1" + gsuiteaddonspb "cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &gsuiteaddonspb.DeleteDeploymentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1#DeleteDeploymentRequest. + // See https://pkg.go.dev/cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb#DeleteDeploymentRequest. } err = c.DeleteDeployment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/gsuiteaddons/apiv1/Client/GetAuthorization/main.go b/internal/generated/snippets/gsuiteaddons/apiv1/Client/GetAuthorization/main.go index dfb536d791b1..646057d3e613 100644 --- a/internal/generated/snippets/gsuiteaddons/apiv1/Client/GetAuthorization/main.go +++ b/internal/generated/snippets/gsuiteaddons/apiv1/Client/GetAuthorization/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" gsuiteaddons "cloud.google.com/go/gsuiteaddons/apiv1" - gsuiteaddonspb "google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1" + gsuiteaddonspb "cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &gsuiteaddonspb.GetAuthorizationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1#GetAuthorizationRequest. + // See https://pkg.go.dev/cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb#GetAuthorizationRequest. } resp, err := c.GetAuthorization(ctx, req) if err != nil { diff --git a/internal/generated/snippets/gsuiteaddons/apiv1/Client/GetDeployment/main.go b/internal/generated/snippets/gsuiteaddons/apiv1/Client/GetDeployment/main.go index 4423c9eebb0e..f86c3ba2cfd8 100644 --- a/internal/generated/snippets/gsuiteaddons/apiv1/Client/GetDeployment/main.go +++ b/internal/generated/snippets/gsuiteaddons/apiv1/Client/GetDeployment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" gsuiteaddons "cloud.google.com/go/gsuiteaddons/apiv1" - gsuiteaddonspb "google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1" + gsuiteaddonspb "cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &gsuiteaddonspb.GetDeploymentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1#GetDeploymentRequest. + // See https://pkg.go.dev/cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb#GetDeploymentRequest. } resp, err := c.GetDeployment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/gsuiteaddons/apiv1/Client/GetInstallStatus/main.go b/internal/generated/snippets/gsuiteaddons/apiv1/Client/GetInstallStatus/main.go index a01c6f804e2f..fbcbdb6f2a40 100644 --- a/internal/generated/snippets/gsuiteaddons/apiv1/Client/GetInstallStatus/main.go +++ b/internal/generated/snippets/gsuiteaddons/apiv1/Client/GetInstallStatus/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" gsuiteaddons "cloud.google.com/go/gsuiteaddons/apiv1" - gsuiteaddonspb "google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1" + gsuiteaddonspb "cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &gsuiteaddonspb.GetInstallStatusRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1#GetInstallStatusRequest. + // See https://pkg.go.dev/cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb#GetInstallStatusRequest. } resp, err := c.GetInstallStatus(ctx, req) if err != nil { diff --git a/internal/generated/snippets/gsuiteaddons/apiv1/Client/InstallDeployment/main.go b/internal/generated/snippets/gsuiteaddons/apiv1/Client/InstallDeployment/main.go index ad8f9ea5882a..a0f0950c2f4f 100644 --- a/internal/generated/snippets/gsuiteaddons/apiv1/Client/InstallDeployment/main.go +++ b/internal/generated/snippets/gsuiteaddons/apiv1/Client/InstallDeployment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" gsuiteaddons "cloud.google.com/go/gsuiteaddons/apiv1" - gsuiteaddonspb "google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1" + gsuiteaddonspb "cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &gsuiteaddonspb.InstallDeploymentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1#InstallDeploymentRequest. + // See https://pkg.go.dev/cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb#InstallDeploymentRequest. } err = c.InstallDeployment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/gsuiteaddons/apiv1/Client/ListDeployments/main.go b/internal/generated/snippets/gsuiteaddons/apiv1/Client/ListDeployments/main.go index 185c3cc249ba..56522243a5c2 100644 --- a/internal/generated/snippets/gsuiteaddons/apiv1/Client/ListDeployments/main.go +++ b/internal/generated/snippets/gsuiteaddons/apiv1/Client/ListDeployments/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" gsuiteaddons "cloud.google.com/go/gsuiteaddons/apiv1" + gsuiteaddonspb "cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb" "google.golang.org/api/iterator" - gsuiteaddonspb "google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &gsuiteaddonspb.ListDeploymentsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1#ListDeploymentsRequest. + // See https://pkg.go.dev/cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb#ListDeploymentsRequest. } it := c.ListDeployments(ctx, req) for { diff --git a/internal/generated/snippets/gsuiteaddons/apiv1/Client/ReplaceDeployment/main.go b/internal/generated/snippets/gsuiteaddons/apiv1/Client/ReplaceDeployment/main.go index f97e6550c040..1dd73e07cb9f 100644 --- a/internal/generated/snippets/gsuiteaddons/apiv1/Client/ReplaceDeployment/main.go +++ b/internal/generated/snippets/gsuiteaddons/apiv1/Client/ReplaceDeployment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" gsuiteaddons "cloud.google.com/go/gsuiteaddons/apiv1" - gsuiteaddonspb "google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1" + gsuiteaddonspb "cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &gsuiteaddonspb.ReplaceDeploymentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1#ReplaceDeploymentRequest. + // See https://pkg.go.dev/cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb#ReplaceDeploymentRequest. } resp, err := c.ReplaceDeployment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/gsuiteaddons/apiv1/Client/UninstallDeployment/main.go b/internal/generated/snippets/gsuiteaddons/apiv1/Client/UninstallDeployment/main.go index 18512932ddc8..73c319a0eaa7 100644 --- a/internal/generated/snippets/gsuiteaddons/apiv1/Client/UninstallDeployment/main.go +++ b/internal/generated/snippets/gsuiteaddons/apiv1/Client/UninstallDeployment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" gsuiteaddons "cloud.google.com/go/gsuiteaddons/apiv1" - gsuiteaddonspb "google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1" + gsuiteaddonspb "cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := gsuiteaddons.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &gsuiteaddonspb.UninstallDeploymentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1#UninstallDeploymentRequest. + // See https://pkg.go.dev/cloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb#UninstallDeploymentRequest. } err = c.UninstallDeployment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/gsuiteaddons/apiv1/snippet_metadata.google.cloud.gsuiteaddons.v1.json b/internal/generated/snippets/gsuiteaddons/apiv1/snippet_metadata.google.cloud.gsuiteaddons.v1.json new file mode 100644 index 000000000000..93cb1351348f --- /dev/null +++ b/internal/generated/snippets/gsuiteaddons/apiv1/snippet_metadata.google.cloud.gsuiteaddons.v1.json @@ -0,0 +1,426 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/gsuiteaddons/apiv1", + "version": "1.5.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.gsuiteaddons.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_CreateDeployment_sync", + "title": "gsuiteaddons CreateDeployment Sample", + "description": "CreateDeployment creates a deployment with the specified name and configuration.", + "file": "Client/CreateDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.Client.CreateDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "gsuiteaddonspb.CreateDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "gsuiteaddonspb.Deployment", + "client": { + "shortName": "Client", + "fullName": "google.cloud.gsuiteaddons.v1.Client" + }, + "method": { + "shortName": "CreateDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.CreateDeployment", + "service": { + "shortName": "GSuiteAddOns", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_DeleteDeployment_sync", + "title": "gsuiteaddons DeleteDeployment Sample", + "description": "DeleteDeployment deletes the deployment with the given name.", + "file": "Client/DeleteDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.Client.DeleteDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "gsuiteaddonspb.DeleteDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.gsuiteaddons.v1.Client" + }, + "method": { + "shortName": "DeleteDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.DeleteDeployment", + "service": { + "shortName": "GSuiteAddOns", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_GetAuthorization_sync", + "title": "gsuiteaddons GetAuthorization Sample", + "description": "GetAuthorization gets the authorization information for deployments in a given project.", + "file": "Client/GetAuthorization/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetAuthorization", + "fullName": "google.cloud.gsuiteaddons.v1.Client.GetAuthorization", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "gsuiteaddonspb.GetAuthorizationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "gsuiteaddonspb.Authorization", + "client": { + "shortName": "Client", + "fullName": "google.cloud.gsuiteaddons.v1.Client" + }, + "method": { + "shortName": "GetAuthorization", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetAuthorization", + "service": { + "shortName": "GSuiteAddOns", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_GetDeployment_sync", + "title": "gsuiteaddons GetDeployment Sample", + "description": "GetDeployment gets the deployment with the specified name.", + "file": "Client/GetDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.Client.GetDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "gsuiteaddonspb.GetDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "gsuiteaddonspb.Deployment", + "client": { + "shortName": "Client", + "fullName": "google.cloud.gsuiteaddons.v1.Client" + }, + "method": { + "shortName": "GetDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetDeployment", + "service": { + "shortName": "GSuiteAddOns", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_GetInstallStatus_sync", + "title": "gsuiteaddons GetInstallStatus Sample", + "description": "GetInstallStatus fetches the install status of a developer mode deployment.", + "file": "Client/GetInstallStatus/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInstallStatus", + "fullName": "google.cloud.gsuiteaddons.v1.Client.GetInstallStatus", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "gsuiteaddonspb.GetInstallStatusRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "gsuiteaddonspb.InstallStatus", + "client": { + "shortName": "Client", + "fullName": "google.cloud.gsuiteaddons.v1.Client" + }, + "method": { + "shortName": "GetInstallStatus", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetInstallStatus", + "service": { + "shortName": "GSuiteAddOns", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_InstallDeployment_sync", + "title": "gsuiteaddons InstallDeployment Sample", + "description": "InstallDeployment installs a deployment in developer mode.\nSee: \nhttps: //developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons (at https: //developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons).", + "file": "Client/InstallDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "InstallDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.Client.InstallDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "gsuiteaddonspb.InstallDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.gsuiteaddons.v1.Client" + }, + "method": { + "shortName": "InstallDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.InstallDeployment", + "service": { + "shortName": "GSuiteAddOns", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_ListDeployments_sync", + "title": "gsuiteaddons ListDeployments Sample", + "description": "ListDeployments lists all deployments in a particular project.", + "file": "Client/ListDeployments/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListDeployments", + "fullName": "google.cloud.gsuiteaddons.v1.Client.ListDeployments", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "gsuiteaddonspb.ListDeploymentsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeploymentIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.gsuiteaddons.v1.Client" + }, + "method": { + "shortName": "ListDeployments", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.ListDeployments", + "service": { + "shortName": "GSuiteAddOns", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_ReplaceDeployment_sync", + "title": "gsuiteaddons ReplaceDeployment Sample", + "description": "ReplaceDeployment creates or replaces a deployment with the specified name.", + "file": "Client/ReplaceDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReplaceDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.Client.ReplaceDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "gsuiteaddonspb.ReplaceDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "gsuiteaddonspb.Deployment", + "client": { + "shortName": "Client", + "fullName": "google.cloud.gsuiteaddons.v1.Client" + }, + "method": { + "shortName": "ReplaceDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.ReplaceDeployment", + "service": { + "shortName": "GSuiteAddOns", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_UninstallDeployment_sync", + "title": "gsuiteaddons UninstallDeployment Sample", + "description": "UninstallDeployment uninstalls a developer mode deployment.\nSee: \nhttps: //developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons (at https: //developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons).", + "file": "Client/UninstallDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UninstallDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.Client.UninstallDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "gsuiteaddonspb.UninstallDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.gsuiteaddons.v1.Client" + }, + "method": { + "shortName": "UninstallDeployment", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.UninstallDeployment", + "service": { + "shortName": "GSuiteAddOns", + "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/iam/apiv1/IamPolicyClient/GetIamPolicy/main.go b/internal/generated/snippets/iam/apiv1/IamPolicyClient/GetIamPolicy/main.go new file mode 100644 index 000000000000..6cbbf660ddc2 --- /dev/null +++ b/internal/generated/snippets/iam/apiv1/IamPolicyClient/GetIamPolicy/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START iam-meta-api_v1_generated_IAMPolicy_GetIamPolicy_sync] + +package main + +import ( + "context" + + iam "cloud.google.com/go/iam/apiv1" + iampb "cloud.google.com/go/iam/apiv1/iampb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := iam.NewIamPolicyClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.GetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END iam-meta-api_v1_generated_IAMPolicy_GetIamPolicy_sync] diff --git a/internal/generated/snippets/iam/apiv1/IamPolicyClient/SetIamPolicy/main.go b/internal/generated/snippets/iam/apiv1/IamPolicyClient/SetIamPolicy/main.go new file mode 100644 index 000000000000..e06f59a961c6 --- /dev/null +++ b/internal/generated/snippets/iam/apiv1/IamPolicyClient/SetIamPolicy/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START iam-meta-api_v1_generated_IAMPolicy_SetIamPolicy_sync] + +package main + +import ( + "context" + + iam "cloud.google.com/go/iam/apiv1" + iampb "cloud.google.com/go/iam/apiv1/iampb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := iam.NewIamPolicyClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.SetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END iam-meta-api_v1_generated_IAMPolicy_SetIamPolicy_sync] diff --git a/internal/generated/snippets/iam/apiv1/IamPolicyClient/TestIamPermissions/main.go b/internal/generated/snippets/iam/apiv1/IamPolicyClient/TestIamPermissions/main.go new file mode 100644 index 000000000000..8ad0fa113ba2 --- /dev/null +++ b/internal/generated/snippets/iam/apiv1/IamPolicyClient/TestIamPermissions/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START iam-meta-api_v1_generated_IAMPolicy_TestIamPermissions_sync] + +package main + +import ( + "context" + + iam "cloud.google.com/go/iam/apiv1" + iampb "cloud.google.com/go/iam/apiv1/iampb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := iam.NewIamPolicyClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.TestIamPermissionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END iam-meta-api_v1_generated_IAMPolicy_TestIamPermissions_sync] diff --git a/internal/generated/snippets/iam/apiv1/snippet_metadata.google.iam.v1.json b/internal/generated/snippets/iam/apiv1/snippet_metadata.google.iam.v1.json new file mode 100644 index 000000000000..3d6d52fc21d9 --- /dev/null +++ b/internal/generated/snippets/iam/apiv1/snippet_metadata.google.iam.v1.json @@ -0,0 +1,153 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/iam/apiv1", + "version": "0.10.0", + "language": "GO", + "apis": [ + { + "id": "google.iam.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "iam-meta-api_v1_generated_IAMPolicy_GetIamPolicy_sync", + "title": "iam-meta-api GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.", + "file": "IamPolicyClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.iam.v1.IamPolicyClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "IamPolicyClient", + "fullName": "google.iam.v1.IamPolicyClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.iam.v1.IAMPolicy.GetIamPolicy", + "service": { + "shortName": "IAMPolicy", + "fullName": "google.iam.v1.IAMPolicy" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "iam-meta-api_v1_generated_IAMPolicy_SetIamPolicy_sync", + "title": "iam-meta-api SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any\nexisting policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + "file": "IamPolicyClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.iam.v1.IamPolicyClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "IamPolicyClient", + "fullName": "google.iam.v1.IamPolicyClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.iam.v1.IAMPolicy.SetIamPolicy", + "service": { + "shortName": "IAMPolicy", + "fullName": "google.iam.v1.IAMPolicy" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "iam-meta-api_v1_generated_IAMPolicy_TestIamPermissions_sync", + "title": "iam-meta-api TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building permission-aware\nUIs and command-line tools, not for authorization checking. This operation\nmay “fail open” without warning.", + "file": "IamPolicyClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.iam.v1.IamPolicyClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "IamPolicyClient", + "fullName": "google.iam.v1.IamPolicyClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.iam.v1.IAMPolicy.TestIamPermissions", + "service": { + "shortName": "IAMPolicy", + "fullName": "google.iam.v1.IAMPolicy" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/iam/apiv2/PoliciesClient/CreatePolicy/main.go b/internal/generated/snippets/iam/apiv2/PoliciesClient/CreatePolicy/main.go new file mode 100644 index 000000000000..6b8acb57cb0f --- /dev/null +++ b/internal/generated/snippets/iam/apiv2/PoliciesClient/CreatePolicy/main.go @@ -0,0 +1,59 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START iam_v2_generated_Policies_CreatePolicy_sync] + +package main + +import ( + "context" + + iam "cloud.google.com/go/iam/apiv2" + + iampb "google.golang.org/genproto/googleapis/iam/v2" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := iam.NewPoliciesClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.CreatePolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v2#CreatePolicyRequest. + } + op, err := c.CreatePolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END iam_v2_generated_Policies_CreatePolicy_sync] diff --git a/internal/generated/snippets/iam/apiv2/PoliciesClient/DeletePolicy/main.go b/internal/generated/snippets/iam/apiv2/PoliciesClient/DeletePolicy/main.go new file mode 100644 index 000000000000..0919747a698d --- /dev/null +++ b/internal/generated/snippets/iam/apiv2/PoliciesClient/DeletePolicy/main.go @@ -0,0 +1,59 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START iam_v2_generated_Policies_DeletePolicy_sync] + +package main + +import ( + "context" + + iam "cloud.google.com/go/iam/apiv2" + + iampb "google.golang.org/genproto/googleapis/iam/v2" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := iam.NewPoliciesClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.DeletePolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v2#DeletePolicyRequest. + } + op, err := c.DeletePolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END iam_v2_generated_Policies_DeletePolicy_sync] diff --git a/internal/generated/snippets/iam/apiv2/PoliciesClient/GetOperation/main.go b/internal/generated/snippets/iam/apiv2/PoliciesClient/GetOperation/main.go new file mode 100644 index 000000000000..e101887bc2e9 --- /dev/null +++ b/internal/generated/snippets/iam/apiv2/PoliciesClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START iam_v2_generated_Policies_GetOperation_sync] + +package main + +import ( + "context" + + iam "cloud.google.com/go/iam/apiv2" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := iam.NewPoliciesClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END iam_v2_generated_Policies_GetOperation_sync] diff --git a/internal/generated/snippets/iam/apiv2/PoliciesClient/GetPolicy/main.go b/internal/generated/snippets/iam/apiv2/PoliciesClient/GetPolicy/main.go new file mode 100644 index 000000000000..427fc0bbb240 --- /dev/null +++ b/internal/generated/snippets/iam/apiv2/PoliciesClient/GetPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START iam_v2_generated_Policies_GetPolicy_sync] + +package main + +import ( + "context" + + iam "cloud.google.com/go/iam/apiv2" + + iampb "google.golang.org/genproto/googleapis/iam/v2" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := iam.NewPoliciesClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.GetPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v2#GetPolicyRequest. + } + resp, err := c.GetPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END iam_v2_generated_Policies_GetPolicy_sync] diff --git a/internal/generated/snippets/iam/apiv2/PoliciesClient/ListPolicies/main.go b/internal/generated/snippets/iam/apiv2/PoliciesClient/ListPolicies/main.go new file mode 100644 index 000000000000..69ed13010731 --- /dev/null +++ b/internal/generated/snippets/iam/apiv2/PoliciesClient/ListPolicies/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START iam_v2_generated_Policies_ListPolicies_sync] + +package main + +import ( + "context" + + iam "cloud.google.com/go/iam/apiv2" + "google.golang.org/api/iterator" + + iampb "google.golang.org/genproto/googleapis/iam/v2" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := iam.NewPoliciesClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.ListPoliciesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v2#ListPoliciesRequest. + } + it := c.ListPolicies(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END iam_v2_generated_Policies_ListPolicies_sync] diff --git a/internal/generated/snippets/iam/apiv2/PoliciesClient/UpdatePolicy/main.go b/internal/generated/snippets/iam/apiv2/PoliciesClient/UpdatePolicy/main.go new file mode 100644 index 000000000000..677fb9974010 --- /dev/null +++ b/internal/generated/snippets/iam/apiv2/PoliciesClient/UpdatePolicy/main.go @@ -0,0 +1,59 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START iam_v2_generated_Policies_UpdatePolicy_sync] + +package main + +import ( + "context" + + iam "cloud.google.com/go/iam/apiv2" + + iampb "google.golang.org/genproto/googleapis/iam/v2" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := iam.NewPoliciesClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.UpdatePolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v2#UpdatePolicyRequest. + } + op, err := c.UpdatePolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END iam_v2_generated_Policies_UpdatePolicy_sync] diff --git a/internal/generated/snippets/iam/apiv2/snippet_metadata.google.iam.v2.json b/internal/generated/snippets/iam/apiv2/snippet_metadata.google.iam.v2.json new file mode 100644 index 000000000000..e6b7cac379e6 --- /dev/null +++ b/internal/generated/snippets/iam/apiv2/snippet_metadata.google.iam.v2.json @@ -0,0 +1,291 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/iam/apiv2", + "version": "0.10.0", + "language": "GO", + "apis": [ + { + "id": "google.iam.v2", + "version": "v2" + } + ] + }, + "snippets": [ + { + "regionTag": "iam_v2_generated_Policies_CreatePolicy_sync", + "title": "iam CreatePolicy Sample", + "description": "CreatePolicy creates a policy.", + "file": "PoliciesClient/CreatePolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreatePolicy", + "fullName": "google.iam.v2.PoliciesClient.CreatePolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.CreatePolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreatePolicyOperation", + "client": { + "shortName": "PoliciesClient", + "fullName": "google.iam.v2.PoliciesClient" + }, + "method": { + "shortName": "CreatePolicy", + "fullName": "google.iam.v2.Policies.CreatePolicy", + "service": { + "shortName": "Policies", + "fullName": "google.iam.v2.Policies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 59, + "type": "FULL" + } + ] + }, + { + "regionTag": "iam_v2_generated_Policies_DeletePolicy_sync", + "title": "iam DeletePolicy Sample", + "description": "DeletePolicy deletes a policy. This action is permanent.", + "file": "PoliciesClient/DeletePolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeletePolicy", + "fullName": "google.iam.v2.PoliciesClient.DeletePolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.DeletePolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeletePolicyOperation", + "client": { + "shortName": "PoliciesClient", + "fullName": "google.iam.v2.PoliciesClient" + }, + "method": { + "shortName": "DeletePolicy", + "fullName": "google.iam.v2.Policies.DeletePolicy", + "service": { + "shortName": "Policies", + "fullName": "google.iam.v2.Policies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 59, + "type": "FULL" + } + ] + }, + { + "regionTag": "iam_v2_generated_Policies_GetOperation_sync", + "title": "iam GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "PoliciesClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.iam.v2.PoliciesClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "PoliciesClient", + "fullName": "google.iam.v2.PoliciesClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.iam.v2.Policies.GetOperation", + "service": { + "shortName": "Policies", + "fullName": "google.iam.v2.Policies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "iam_v2_generated_Policies_GetPolicy_sync", + "title": "iam GetPolicy Sample", + "description": "GetPolicy gets a policy.", + "file": "PoliciesClient/GetPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetPolicy", + "fullName": "google.iam.v2.PoliciesClient.GetPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "PoliciesClient", + "fullName": "google.iam.v2.PoliciesClient" + }, + "method": { + "shortName": "GetPolicy", + "fullName": "google.iam.v2.Policies.GetPolicy", + "service": { + "shortName": "Policies", + "fullName": "google.iam.v2.Policies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "iam_v2_generated_Policies_ListPolicies_sync", + "title": "iam ListPolicies Sample", + "description": "ListPolicies retrieves the policies of the specified kind that are attached to a\nresource.\n\nThe response lists only policy metadata. In particular, policy rules are\nomitted.", + "file": "PoliciesClient/ListPolicies/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListPolicies", + "fullName": "google.iam.v2.PoliciesClient.ListPolicies", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.ListPoliciesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PolicyIterator", + "client": { + "shortName": "PoliciesClient", + "fullName": "google.iam.v2.PoliciesClient" + }, + "method": { + "shortName": "ListPolicies", + "fullName": "google.iam.v2.Policies.ListPolicies", + "service": { + "shortName": "Policies", + "fullName": "google.iam.v2.Policies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "iam_v2_generated_Policies_UpdatePolicy_sync", + "title": "iam UpdatePolicy Sample", + "description": "UpdatePolicy updates the specified policy.\n\nYou can update only the rules and the display name for the policy.\n\nTo update a policy, you should use a read-modify-write loop: \n\nUse GetPolicy to read the current version of the policy.\n\nModify the policy as needed.\n\nUse UpdatePolicy to write the updated policy.\n\nThis pattern helps prevent conflicts between concurrent updates.", + "file": "PoliciesClient/UpdatePolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdatePolicy", + "fullName": "google.iam.v2.PoliciesClient.UpdatePolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.UpdatePolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdatePolicyOperation", + "client": { + "shortName": "PoliciesClient", + "fullName": "google.iam.v2.PoliciesClient" + }, + "method": { + "shortName": "UpdatePolicy", + "fullName": "google.iam.v2.Policies.UpdatePolicy", + "service": { + "shortName": "Policies", + "fullName": "google.iam.v2.Policies" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 59, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/GenerateAccessToken/main.go b/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/GenerateAccessToken/main.go index 274e28919108..9f41f5eb2104 100644 --- a/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/GenerateAccessToken/main.go +++ b/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/GenerateAccessToken/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" credentials "cloud.google.com/go/iam/credentials/apiv1" - credentialspb "google.golang.org/genproto/googleapis/iam/credentials/v1" + credentialspb "cloud.google.com/go/iam/credentials/apiv1/credentialspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := credentials.NewIamCredentialsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &credentialspb.GenerateAccessTokenRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/credentials/v1#GenerateAccessTokenRequest. + // See https://pkg.go.dev/cloud.google.com/go/iam/credentials/apiv1/credentialspb#GenerateAccessTokenRequest. } resp, err := c.GenerateAccessToken(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/GenerateIdToken/main.go b/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/GenerateIdToken/main.go index 5ee50927d7cb..98279d6bebd2 100644 --- a/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/GenerateIdToken/main.go +++ b/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/GenerateIdToken/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" credentials "cloud.google.com/go/iam/credentials/apiv1" - credentialspb "google.golang.org/genproto/googleapis/iam/credentials/v1" + credentialspb "cloud.google.com/go/iam/credentials/apiv1/credentialspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := credentials.NewIamCredentialsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &credentialspb.GenerateIdTokenRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/credentials/v1#GenerateIdTokenRequest. + // See https://pkg.go.dev/cloud.google.com/go/iam/credentials/apiv1/credentialspb#GenerateIdTokenRequest. } resp, err := c.GenerateIdToken(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/SignBlob/main.go b/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/SignBlob/main.go index 67d902f32acd..a5e5a760866e 100644 --- a/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/SignBlob/main.go +++ b/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/SignBlob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" credentials "cloud.google.com/go/iam/credentials/apiv1" - credentialspb "google.golang.org/genproto/googleapis/iam/credentials/v1" + credentialspb "cloud.google.com/go/iam/credentials/apiv1/credentialspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := credentials.NewIamCredentialsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &credentialspb.SignBlobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/credentials/v1#SignBlobRequest. + // See https://pkg.go.dev/cloud.google.com/go/iam/credentials/apiv1/credentialspb#SignBlobRequest. } resp, err := c.SignBlob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/SignJwt/main.go b/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/SignJwt/main.go index 9b328eeb65f6..6d10173312c3 100644 --- a/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/SignJwt/main.go +++ b/internal/generated/snippets/iam/credentials/apiv1/IamCredentialsClient/SignJwt/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" credentials "cloud.google.com/go/iam/credentials/apiv1" - credentialspb "google.golang.org/genproto/googleapis/iam/credentials/v1" + credentialspb "cloud.google.com/go/iam/credentials/apiv1/credentialspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := credentials.NewIamCredentialsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &credentialspb.SignJwtRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/credentials/v1#SignJwtRequest. + // See https://pkg.go.dev/cloud.google.com/go/iam/credentials/apiv1/credentialspb#SignJwtRequest. } resp, err := c.SignJwt(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iam/credentials/apiv1/snippet_metadata.google.iam.credentials.v1.json b/internal/generated/snippets/iam/credentials/apiv1/snippet_metadata.google.iam.credentials.v1.json new file mode 100644 index 000000000000..0ef0e91e8ac6 --- /dev/null +++ b/internal/generated/snippets/iam/credentials/apiv1/snippet_metadata.google.iam.credentials.v1.json @@ -0,0 +1,199 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/iam/credentials/apiv1", + "version": "0.10.0", + "language": "GO", + "apis": [ + { + "id": "google.iam.credentials.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "iamcredentials_v1_generated_IAMCredentials_GenerateAccessToken_sync", + "title": "iamcredentials GenerateAccessToken Sample", + "description": "GenerateAccessToken generates an OAuth 2.0 access token for a service account.", + "file": "IamCredentialsClient/GenerateAccessToken/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GenerateAccessToken", + "fullName": "google.iam.credentials.v1.IamCredentialsClient.GenerateAccessToken", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "credentialspb.GenerateAccessTokenRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "credentialspb.GenerateAccessTokenResponse", + "client": { + "shortName": "IamCredentialsClient", + "fullName": "google.iam.credentials.v1.IamCredentialsClient" + }, + "method": { + "shortName": "GenerateAccessToken", + "fullName": "google.iam.credentials.v1.IAMCredentials.GenerateAccessToken", + "service": { + "shortName": "IAMCredentials", + "fullName": "google.iam.credentials.v1.IAMCredentials" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "iamcredentials_v1_generated_IAMCredentials_GenerateIdToken_sync", + "title": "iamcredentials GenerateIdToken Sample", + "description": "GenerateIdToken generates an OpenID Connect ID token for a service account.", + "file": "IamCredentialsClient/GenerateIdToken/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GenerateIdToken", + "fullName": "google.iam.credentials.v1.IamCredentialsClient.GenerateIdToken", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "credentialspb.GenerateIdTokenRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "credentialspb.GenerateIdTokenResponse", + "client": { + "shortName": "IamCredentialsClient", + "fullName": "google.iam.credentials.v1.IamCredentialsClient" + }, + "method": { + "shortName": "GenerateIdToken", + "fullName": "google.iam.credentials.v1.IAMCredentials.GenerateIdToken", + "service": { + "shortName": "IAMCredentials", + "fullName": "google.iam.credentials.v1.IAMCredentials" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "iamcredentials_v1_generated_IAMCredentials_SignBlob_sync", + "title": "iamcredentials SignBlob Sample", + "description": "SignBlob signs a blob using a service account’s system-managed private key.", + "file": "IamCredentialsClient/SignBlob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SignBlob", + "fullName": "google.iam.credentials.v1.IamCredentialsClient.SignBlob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "credentialspb.SignBlobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "credentialspb.SignBlobResponse", + "client": { + "shortName": "IamCredentialsClient", + "fullName": "google.iam.credentials.v1.IamCredentialsClient" + }, + "method": { + "shortName": "SignBlob", + "fullName": "google.iam.credentials.v1.IAMCredentials.SignBlob", + "service": { + "shortName": "IAMCredentials", + "fullName": "google.iam.credentials.v1.IAMCredentials" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "iamcredentials_v1_generated_IAMCredentials_SignJwt_sync", + "title": "iamcredentials SignJwt Sample", + "description": "SignJwt signs a JWT using a service account’s system-managed private key.", + "file": "IamCredentialsClient/SignJwt/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SignJwt", + "fullName": "google.iam.credentials.v1.IamCredentialsClient.SignJwt", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "credentialspb.SignJwtRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "credentialspb.SignJwtResponse", + "client": { + "shortName": "IamCredentialsClient", + "fullName": "google.iam.credentials.v1.IamCredentialsClient" + }, + "method": { + "shortName": "SignJwt", + "fullName": "google.iam.credentials.v1.IAMCredentials.SignJwt", + "service": { + "shortName": "IAMCredentials", + "fullName": "google.iam.credentials.v1.IAMCredentials" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/CreateTunnelDestGroup/main.go b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/CreateTunnelDestGroup/main.go new file mode 100644 index 000000000000..99fe74d73af4 --- /dev/null +++ b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/CreateTunnelDestGroup/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START iap_v1_generated_IdentityAwareProxyAdminService_CreateTunnelDestGroup_sync] + +package main + +import ( + "context" + + iap "cloud.google.com/go/iap/apiv1" + iappb "cloud.google.com/go/iap/apiv1/iappb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := iap.NewIdentityAwareProxyAdminClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iappb.CreateTunnelDestGroupRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/iap/apiv1/iappb#CreateTunnelDestGroupRequest. + } + resp, err := c.CreateTunnelDestGroup(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END iap_v1_generated_IdentityAwareProxyAdminService_CreateTunnelDestGroup_sync] diff --git a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/DeleteTunnelDestGroup/main.go b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/DeleteTunnelDestGroup/main.go new file mode 100644 index 000000000000..2f385003d9a6 --- /dev/null +++ b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/DeleteTunnelDestGroup/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START iap_v1_generated_IdentityAwareProxyAdminService_DeleteTunnelDestGroup_sync] + +package main + +import ( + "context" + + iap "cloud.google.com/go/iap/apiv1" + iappb "cloud.google.com/go/iap/apiv1/iappb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := iap.NewIdentityAwareProxyAdminClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iappb.DeleteTunnelDestGroupRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/iap/apiv1/iappb#DeleteTunnelDestGroupRequest. + } + err = c.DeleteTunnelDestGroup(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END iap_v1_generated_IdentityAwareProxyAdminService_DeleteTunnelDestGroup_sync] diff --git a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/GetIamPolicy/main.go b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/GetIamPolicy/main.go index 3be9dbb817da..a58b1b855791 100644 --- a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" iap "cloud.google.com/go/iap/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/GetIapSettings/main.go b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/GetIapSettings/main.go index 8767ded521a4..a4bc56337e65 100644 --- a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/GetIapSettings/main.go +++ b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/GetIapSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iap "cloud.google.com/go/iap/apiv1" - iappb "google.golang.org/genproto/googleapis/cloud/iap/v1" + iappb "cloud.google.com/go/iap/apiv1/iappb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iappb.GetIapSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iap/v1#GetIapSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/iap/apiv1/iappb#GetIapSettingsRequest. } resp, err := c.GetIapSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/GetTunnelDestGroup/main.go b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/GetTunnelDestGroup/main.go new file mode 100644 index 000000000000..76df734e8c11 --- /dev/null +++ b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/GetTunnelDestGroup/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START iap_v1_generated_IdentityAwareProxyAdminService_GetTunnelDestGroup_sync] + +package main + +import ( + "context" + + iap "cloud.google.com/go/iap/apiv1" + iappb "cloud.google.com/go/iap/apiv1/iappb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := iap.NewIdentityAwareProxyAdminClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iappb.GetTunnelDestGroupRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/iap/apiv1/iappb#GetTunnelDestGroupRequest. + } + resp, err := c.GetTunnelDestGroup(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END iap_v1_generated_IdentityAwareProxyAdminService_GetTunnelDestGroup_sync] diff --git a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/ListTunnelDestGroups/main.go b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/ListTunnelDestGroups/main.go new file mode 100644 index 000000000000..164b14bc930e --- /dev/null +++ b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/ListTunnelDestGroups/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START iap_v1_generated_IdentityAwareProxyAdminService_ListTunnelDestGroups_sync] + +package main + +import ( + "context" + + iap "cloud.google.com/go/iap/apiv1" + iappb "cloud.google.com/go/iap/apiv1/iappb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := iap.NewIdentityAwareProxyAdminClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iappb.ListTunnelDestGroupsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/iap/apiv1/iappb#ListTunnelDestGroupsRequest. + } + it := c.ListTunnelDestGroups(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END iap_v1_generated_IdentityAwareProxyAdminService_ListTunnelDestGroups_sync] diff --git a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/SetIamPolicy/main.go b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/SetIamPolicy/main.go index 7cb695512236..15c15d4d8215 100644 --- a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" iap "cloud.google.com/go/iap/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/TestIamPermissions/main.go b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/TestIamPermissions/main.go index fe092a848a92..a80d2172d040 100644 --- a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" iap "cloud.google.com/go/iap/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/UpdateIapSettings/main.go b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/UpdateIapSettings/main.go index 30db9d175093..23cebf6db928 100644 --- a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/UpdateIapSettings/main.go +++ b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/UpdateIapSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iap "cloud.google.com/go/iap/apiv1" - iappb "google.golang.org/genproto/googleapis/cloud/iap/v1" + iappb "cloud.google.com/go/iap/apiv1/iappb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iappb.UpdateIapSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iap/v1#UpdateIapSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/iap/apiv1/iappb#UpdateIapSettingsRequest. } resp, err := c.UpdateIapSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/UpdateTunnelDestGroup/main.go b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/UpdateTunnelDestGroup/main.go new file mode 100644 index 000000000000..204bab13d297 --- /dev/null +++ b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyAdminClient/UpdateTunnelDestGroup/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START iap_v1_generated_IdentityAwareProxyAdminService_UpdateTunnelDestGroup_sync] + +package main + +import ( + "context" + + iap "cloud.google.com/go/iap/apiv1" + iappb "cloud.google.com/go/iap/apiv1/iappb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := iap.NewIdentityAwareProxyAdminClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iappb.UpdateTunnelDestGroupRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/iap/apiv1/iappb#UpdateTunnelDestGroupRequest. + } + resp, err := c.UpdateTunnelDestGroup(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END iap_v1_generated_IdentityAwareProxyAdminService_UpdateTunnelDestGroup_sync] diff --git a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/CreateBrand/main.go b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/CreateBrand/main.go index 7aece3e5096d..11f1370fc6ba 100644 --- a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/CreateBrand/main.go +++ b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/CreateBrand/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iap "cloud.google.com/go/iap/apiv1" - iappb "google.golang.org/genproto/googleapis/cloud/iap/v1" + iappb "cloud.google.com/go/iap/apiv1/iappb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyOAuthClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iappb.CreateBrandRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iap/v1#CreateBrandRequest. + // See https://pkg.go.dev/cloud.google.com/go/iap/apiv1/iappb#CreateBrandRequest. } resp, err := c.CreateBrand(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/CreateIdentityAwareProxyClient/main.go b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/CreateIdentityAwareProxyClient/main.go index 0852d3fb48a4..a9c451b213a6 100644 --- a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/CreateIdentityAwareProxyClient/main.go +++ b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/CreateIdentityAwareProxyClient/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iap "cloud.google.com/go/iap/apiv1" - iappb "google.golang.org/genproto/googleapis/cloud/iap/v1" + iappb "cloud.google.com/go/iap/apiv1/iappb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyOAuthClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iappb.CreateIdentityAwareProxyClientRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iap/v1#CreateIdentityAwareProxyClientRequest. + // See https://pkg.go.dev/cloud.google.com/go/iap/apiv1/iappb#CreateIdentityAwareProxyClientRequest. } resp, err := c.CreateIdentityAwareProxyClient(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/DeleteIdentityAwareProxyClient/main.go b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/DeleteIdentityAwareProxyClient/main.go index 456a1e0187b5..92b4675bc0cb 100644 --- a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/DeleteIdentityAwareProxyClient/main.go +++ b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/DeleteIdentityAwareProxyClient/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iap "cloud.google.com/go/iap/apiv1" - iappb "google.golang.org/genproto/googleapis/cloud/iap/v1" + iappb "cloud.google.com/go/iap/apiv1/iappb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyOAuthClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iappb.DeleteIdentityAwareProxyClientRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iap/v1#DeleteIdentityAwareProxyClientRequest. + // See https://pkg.go.dev/cloud.google.com/go/iap/apiv1/iappb#DeleteIdentityAwareProxyClientRequest. } err = c.DeleteIdentityAwareProxyClient(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/GetBrand/main.go b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/GetBrand/main.go index 0b2056abdad9..c84154ec5550 100644 --- a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/GetBrand/main.go +++ b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/GetBrand/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iap "cloud.google.com/go/iap/apiv1" - iappb "google.golang.org/genproto/googleapis/cloud/iap/v1" + iappb "cloud.google.com/go/iap/apiv1/iappb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyOAuthClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iappb.GetBrandRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iap/v1#GetBrandRequest. + // See https://pkg.go.dev/cloud.google.com/go/iap/apiv1/iappb#GetBrandRequest. } resp, err := c.GetBrand(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/GetIdentityAwareProxyClient/main.go b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/GetIdentityAwareProxyClient/main.go index 2eb0ebf32bd9..e9bd90ef3967 100644 --- a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/GetIdentityAwareProxyClient/main.go +++ b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/GetIdentityAwareProxyClient/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iap "cloud.google.com/go/iap/apiv1" - iappb "google.golang.org/genproto/googleapis/cloud/iap/v1" + iappb "cloud.google.com/go/iap/apiv1/iappb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyOAuthClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iappb.GetIdentityAwareProxyClientRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iap/v1#GetIdentityAwareProxyClientRequest. + // See https://pkg.go.dev/cloud.google.com/go/iap/apiv1/iappb#GetIdentityAwareProxyClientRequest. } resp, err := c.GetIdentityAwareProxyClient(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/ListBrands/main.go b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/ListBrands/main.go index 267d8d06dc6a..01e63dc1bc66 100644 --- a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/ListBrands/main.go +++ b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/ListBrands/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iap "cloud.google.com/go/iap/apiv1" - iappb "google.golang.org/genproto/googleapis/cloud/iap/v1" + iappb "cloud.google.com/go/iap/apiv1/iappb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyOAuthClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iappb.ListBrandsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iap/v1#ListBrandsRequest. + // See https://pkg.go.dev/cloud.google.com/go/iap/apiv1/iappb#ListBrandsRequest. } resp, err := c.ListBrands(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/ListIdentityAwareProxyClients/main.go b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/ListIdentityAwareProxyClients/main.go index f115386db682..8064deca8232 100644 --- a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/ListIdentityAwareProxyClients/main.go +++ b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/ListIdentityAwareProxyClients/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" iap "cloud.google.com/go/iap/apiv1" + iappb "cloud.google.com/go/iap/apiv1/iappb" "google.golang.org/api/iterator" - iappb "google.golang.org/genproto/googleapis/cloud/iap/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyOAuthClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &iappb.ListIdentityAwareProxyClientsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iap/v1#ListIdentityAwareProxyClientsRequest. + // See https://pkg.go.dev/cloud.google.com/go/iap/apiv1/iappb#ListIdentityAwareProxyClientsRequest. } it := c.ListIdentityAwareProxyClients(ctx, req) for { diff --git a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/ResetIdentityAwareProxyClientSecret/main.go b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/ResetIdentityAwareProxyClientSecret/main.go index 2cbce3285575..7154db3c5b33 100644 --- a/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/ResetIdentityAwareProxyClientSecret/main.go +++ b/internal/generated/snippets/iap/apiv1/IdentityAwareProxyOAuthClient/ResetIdentityAwareProxyClientSecret/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iap "cloud.google.com/go/iap/apiv1" - iappb "google.golang.org/genproto/googleapis/cloud/iap/v1" + iappb "cloud.google.com/go/iap/apiv1/iappb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iap.NewIdentityAwareProxyOAuthClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iappb.ResetIdentityAwareProxyClientSecretRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iap/v1#ResetIdentityAwareProxyClientSecretRequest. + // See https://pkg.go.dev/cloud.google.com/go/iap/apiv1/iappb#ResetIdentityAwareProxyClientSecretRequest. } resp, err := c.ResetIdentityAwareProxyClientSecret(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iap/apiv1/snippet_metadata.google.cloud.iap.v1.json b/internal/generated/snippets/iap/apiv1/snippet_metadata.google.cloud.iap.v1.json new file mode 100644 index 000000000000..3a2c111a0830 --- /dev/null +++ b/internal/generated/snippets/iap/apiv1/snippet_metadata.google.cloud.iap.v1.json @@ -0,0 +1,841 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/iap/apiv1", + "version": "1.6.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.iap.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_CreateTunnelDestGroup_sync", + "title": "iap CreateTunnelDestGroup Sample", + "description": "CreateTunnelDestGroup creates a new TunnelDestGroup.", + "file": "IdentityAwareProxyAdminClient/CreateTunnelDestGroup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateTunnelDestGroup", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient.CreateTunnelDestGroup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iappb.CreateTunnelDestGroupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iappb.TunnelDestGroup", + "client": { + "shortName": "IdentityAwareProxyAdminClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient" + }, + "method": { + "shortName": "CreateTunnelDestGroup", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.CreateTunnelDestGroup", + "service": { + "shortName": "IdentityAwareProxyAdminService", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_DeleteTunnelDestGroup_sync", + "title": "iap DeleteTunnelDestGroup Sample", + "description": "DeleteTunnelDestGroup deletes a TunnelDestGroup.", + "file": "IdentityAwareProxyAdminClient/DeleteTunnelDestGroup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteTunnelDestGroup", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient.DeleteTunnelDestGroup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iappb.DeleteTunnelDestGroupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "IdentityAwareProxyAdminClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient" + }, + "method": { + "shortName": "DeleteTunnelDestGroup", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.DeleteTunnelDestGroup", + "service": { + "shortName": "IdentityAwareProxyAdminService", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_GetIamPolicy_sync", + "title": "iap GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for an Identity-Aware Proxy protected\nresource.\nMore information about managing access via IAP can be found at: \nhttps: //cloud.google.com/iap/docs/managing-access#managing_access_via_the_api (at https: //cloud.google.com/iap/docs/managing-access#managing_access_via_the_api)", + "file": "IdentityAwareProxyAdminClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "IdentityAwareProxyAdminClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.GetIamPolicy", + "service": { + "shortName": "IdentityAwareProxyAdminService", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_GetIapSettings_sync", + "title": "iap GetIapSettings Sample", + "description": "GetIapSettings gets the IAP settings on a particular IAP protected resource.", + "file": "IdentityAwareProxyAdminClient/GetIapSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIapSettings", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient.GetIapSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iappb.GetIapSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iappb.IapSettings", + "client": { + "shortName": "IdentityAwareProxyAdminClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient" + }, + "method": { + "shortName": "GetIapSettings", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.GetIapSettings", + "service": { + "shortName": "IdentityAwareProxyAdminService", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_GetTunnelDestGroup_sync", + "title": "iap GetTunnelDestGroup Sample", + "description": "GetTunnelDestGroup retrieves an existing TunnelDestGroup.", + "file": "IdentityAwareProxyAdminClient/GetTunnelDestGroup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetTunnelDestGroup", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient.GetTunnelDestGroup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iappb.GetTunnelDestGroupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iappb.TunnelDestGroup", + "client": { + "shortName": "IdentityAwareProxyAdminClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient" + }, + "method": { + "shortName": "GetTunnelDestGroup", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.GetTunnelDestGroup", + "service": { + "shortName": "IdentityAwareProxyAdminService", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_ListTunnelDestGroups_sync", + "title": "iap ListTunnelDestGroups Sample", + "description": "ListTunnelDestGroups lists the existing TunnelDestGroups. To group across all locations, use a\n- as the location ID. For example: \n/v1/projects/123/iap_tunnel/locations/-/destGroups", + "file": "IdentityAwareProxyAdminClient/ListTunnelDestGroups/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListTunnelDestGroups", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient.ListTunnelDestGroups", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iappb.ListTunnelDestGroupsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "TunnelDestGroupIterator", + "client": { + "shortName": "IdentityAwareProxyAdminClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient" + }, + "method": { + "shortName": "ListTunnelDestGroups", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.ListTunnelDestGroups", + "service": { + "shortName": "IdentityAwareProxyAdminService", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_SetIamPolicy_sync", + "title": "iap SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy for an Identity-Aware Proxy protected\nresource. Replaces any existing policy.\nMore information about managing access via IAP can be found at: \nhttps: //cloud.google.com/iap/docs/managing-access#managing_access_via_the_api (at https: //cloud.google.com/iap/docs/managing-access#managing_access_via_the_api)", + "file": "IdentityAwareProxyAdminClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "IdentityAwareProxyAdminClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.SetIamPolicy", + "service": { + "shortName": "IdentityAwareProxyAdminService", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_TestIamPermissions_sync", + "title": "iap TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the Identity-Aware Proxy protected\nresource.\nMore information about managing access via IAP can be found at: \nhttps: //cloud.google.com/iap/docs/managing-access#managing_access_via_the_api (at https: //cloud.google.com/iap/docs/managing-access#managing_access_via_the_api)", + "file": "IdentityAwareProxyAdminClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "IdentityAwareProxyAdminClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.TestIamPermissions", + "service": { + "shortName": "IdentityAwareProxyAdminService", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_UpdateIapSettings_sync", + "title": "iap UpdateIapSettings Sample", + "description": "UpdateIapSettings updates the IAP settings on a particular IAP protected resource. It\nreplaces all fields unless the update_mask is set.", + "file": "IdentityAwareProxyAdminClient/UpdateIapSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateIapSettings", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient.UpdateIapSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iappb.UpdateIapSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iappb.IapSettings", + "client": { + "shortName": "IdentityAwareProxyAdminClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient" + }, + "method": { + "shortName": "UpdateIapSettings", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.UpdateIapSettings", + "service": { + "shortName": "IdentityAwareProxyAdminService", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_UpdateTunnelDestGroup_sync", + "title": "iap UpdateTunnelDestGroup Sample", + "description": "UpdateTunnelDestGroup updates a TunnelDestGroup.", + "file": "IdentityAwareProxyAdminClient/UpdateTunnelDestGroup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateTunnelDestGroup", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient.UpdateTunnelDestGroup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iappb.UpdateTunnelDestGroupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iappb.TunnelDestGroup", + "client": { + "shortName": "IdentityAwareProxyAdminClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminClient" + }, + "method": { + "shortName": "UpdateTunnelDestGroup", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.UpdateTunnelDestGroup", + "service": { + "shortName": "IdentityAwareProxyAdminService", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "iap_v1_generated_IdentityAwareProxyOAuthService_CreateBrand_sync", + "title": "iap CreateBrand Sample", + "description": "CreateBrand constructs a new OAuth brand for the project if one does not exist.\nThe created brand is “internal only”, meaning that OAuth clients created\nunder it only accept requests from users who belong to the same Google\nWorkspace organization as the project. The brand is created in an\nun-reviewed status. NOTE: The “internal only” status can be manually\nchanged in the Google Cloud Console. Requires that a brand does not already\nexist for the project, and that the specified support email is owned by the\ncaller.", + "file": "IdentityAwareProxyOAuthClient/CreateBrand/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateBrand", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthClient.CreateBrand", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iappb.CreateBrandRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iappb.Brand", + "client": { + "shortName": "IdentityAwareProxyOAuthClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthClient" + }, + "method": { + "shortName": "CreateBrand", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.CreateBrand", + "service": { + "shortName": "IdentityAwareProxyOAuthService", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "iap_v1_generated_IdentityAwareProxyOAuthService_CreateIdentityAwareProxyClient_sync", + "title": "iap CreateIdentityAwareProxyClient Sample", + "description": "CreateIdentityAwareProxyClient creates an Identity Aware Proxy (IAP) OAuth client. The client is owned\nby IAP. Requires that the brand for the project exists and that it is\nset for internal-only use.", + "file": "IdentityAwareProxyOAuthClient/CreateIdentityAwareProxyClient/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateIdentityAwareProxyClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthClient.CreateIdentityAwareProxyClient", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iappb.CreateIdentityAwareProxyClientRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iappb.IdentityAwareProxyClient", + "client": { + "shortName": "IdentityAwareProxyOAuthClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthClient" + }, + "method": { + "shortName": "CreateIdentityAwareProxyClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.CreateIdentityAwareProxyClient", + "service": { + "shortName": "IdentityAwareProxyOAuthService", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "iap_v1_generated_IdentityAwareProxyOAuthService_DeleteIdentityAwareProxyClient_sync", + "title": "iap DeleteIdentityAwareProxyClient Sample", + "description": "DeleteIdentityAwareProxyClient deletes an Identity Aware Proxy (IAP) OAuth client. Useful for removing\nobsolete clients, managing the number of clients in a given project, and\ncleaning up after tests. Requires that the client is owned by IAP.", + "file": "IdentityAwareProxyOAuthClient/DeleteIdentityAwareProxyClient/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteIdentityAwareProxyClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthClient.DeleteIdentityAwareProxyClient", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iappb.DeleteIdentityAwareProxyClientRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "IdentityAwareProxyOAuthClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthClient" + }, + "method": { + "shortName": "DeleteIdentityAwareProxyClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.DeleteIdentityAwareProxyClient", + "service": { + "shortName": "IdentityAwareProxyOAuthService", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "iap_v1_generated_IdentityAwareProxyOAuthService_GetBrand_sync", + "title": "iap GetBrand Sample", + "description": "GetBrand retrieves the OAuth brand of the project.", + "file": "IdentityAwareProxyOAuthClient/GetBrand/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetBrand", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthClient.GetBrand", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iappb.GetBrandRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iappb.Brand", + "client": { + "shortName": "IdentityAwareProxyOAuthClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthClient" + }, + "method": { + "shortName": "GetBrand", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.GetBrand", + "service": { + "shortName": "IdentityAwareProxyOAuthService", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "iap_v1_generated_IdentityAwareProxyOAuthService_GetIdentityAwareProxyClient_sync", + "title": "iap GetIdentityAwareProxyClient Sample", + "description": "GetIdentityAwareProxyClient retrieves an Identity Aware Proxy (IAP) OAuth client.\nRequires that the client is owned by IAP.", + "file": "IdentityAwareProxyOAuthClient/GetIdentityAwareProxyClient/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIdentityAwareProxyClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthClient.GetIdentityAwareProxyClient", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iappb.GetIdentityAwareProxyClientRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iappb.IdentityAwareProxyClient", + "client": { + "shortName": "IdentityAwareProxyOAuthClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthClient" + }, + "method": { + "shortName": "GetIdentityAwareProxyClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.GetIdentityAwareProxyClient", + "service": { + "shortName": "IdentityAwareProxyOAuthService", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "iap_v1_generated_IdentityAwareProxyOAuthService_ListBrands_sync", + "title": "iap ListBrands Sample", + "description": "ListBrands lists the existing brands for the project.", + "file": "IdentityAwareProxyOAuthClient/ListBrands/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListBrands", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthClient.ListBrands", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iappb.ListBrandsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iappb.ListBrandsResponse", + "client": { + "shortName": "IdentityAwareProxyOAuthClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthClient" + }, + "method": { + "shortName": "ListBrands", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.ListBrands", + "service": { + "shortName": "IdentityAwareProxyOAuthService", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "iap_v1_generated_IdentityAwareProxyOAuthService_ListIdentityAwareProxyClients_sync", + "title": "iap ListIdentityAwareProxyClients Sample", + "description": "ListIdentityAwareProxyClients lists the existing clients for the brand.", + "file": "IdentityAwareProxyOAuthClient/ListIdentityAwareProxyClients/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListIdentityAwareProxyClients", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthClient.ListIdentityAwareProxyClients", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iappb.ListIdentityAwareProxyClientsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "IdentityAwareProxyClientIterator", + "client": { + "shortName": "IdentityAwareProxyOAuthClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthClient" + }, + "method": { + "shortName": "ListIdentityAwareProxyClients", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.ListIdentityAwareProxyClients", + "service": { + "shortName": "IdentityAwareProxyOAuthService", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "iap_v1_generated_IdentityAwareProxyOAuthService_ResetIdentityAwareProxyClientSecret_sync", + "title": "iap ResetIdentityAwareProxyClientSecret Sample", + "description": "ResetIdentityAwareProxyClientSecret resets an Identity Aware Proxy (IAP) OAuth client secret. Useful if the\nsecret was compromised. Requires that the client is owned by IAP.", + "file": "IdentityAwareProxyOAuthClient/ResetIdentityAwareProxyClientSecret/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResetIdentityAwareProxyClientSecret", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthClient.ResetIdentityAwareProxyClientSecret", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iappb.ResetIdentityAwareProxyClientSecretRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iappb.IdentityAwareProxyClient", + "client": { + "shortName": "IdentityAwareProxyOAuthClient", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthClient" + }, + "method": { + "shortName": "ResetIdentityAwareProxyClientSecret", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.ResetIdentityAwareProxyClientSecret", + "service": { + "shortName": "IdentityAwareProxyOAuthService", + "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/ids/apiv1/Client/CreateEndpoint/main.go b/internal/generated/snippets/ids/apiv1/Client/CreateEndpoint/main.go index c84e8488cf10..e76aa18d04f5 100644 --- a/internal/generated/snippets/ids/apiv1/Client/CreateEndpoint/main.go +++ b/internal/generated/snippets/ids/apiv1/Client/CreateEndpoint/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" ids "cloud.google.com/go/ids/apiv1" - idspb "google.golang.org/genproto/googleapis/cloud/ids/v1" + idspb "cloud.google.com/go/ids/apiv1/idspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := ids.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &idspb.CreateEndpointRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/ids/v1#CreateEndpointRequest. + // See https://pkg.go.dev/cloud.google.com/go/ids/apiv1/idspb#CreateEndpointRequest. } op, err := c.CreateEndpoint(ctx, req) if err != nil { diff --git a/internal/generated/snippets/ids/apiv1/Client/DeleteEndpoint/main.go b/internal/generated/snippets/ids/apiv1/Client/DeleteEndpoint/main.go index df02a0168716..07a88e9b7288 100644 --- a/internal/generated/snippets/ids/apiv1/Client/DeleteEndpoint/main.go +++ b/internal/generated/snippets/ids/apiv1/Client/DeleteEndpoint/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" ids "cloud.google.com/go/ids/apiv1" - idspb "google.golang.org/genproto/googleapis/cloud/ids/v1" + idspb "cloud.google.com/go/ids/apiv1/idspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := ids.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &idspb.DeleteEndpointRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/ids/v1#DeleteEndpointRequest. + // See https://pkg.go.dev/cloud.google.com/go/ids/apiv1/idspb#DeleteEndpointRequest. } op, err := c.DeleteEndpoint(ctx, req) if err != nil { diff --git a/internal/generated/snippets/ids/apiv1/Client/GetEndpoint/main.go b/internal/generated/snippets/ids/apiv1/Client/GetEndpoint/main.go index 8c736ed67107..871b8f70f117 100644 --- a/internal/generated/snippets/ids/apiv1/Client/GetEndpoint/main.go +++ b/internal/generated/snippets/ids/apiv1/Client/GetEndpoint/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" ids "cloud.google.com/go/ids/apiv1" - idspb "google.golang.org/genproto/googleapis/cloud/ids/v1" + idspb "cloud.google.com/go/ids/apiv1/idspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := ids.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &idspb.GetEndpointRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/ids/v1#GetEndpointRequest. + // See https://pkg.go.dev/cloud.google.com/go/ids/apiv1/idspb#GetEndpointRequest. } resp, err := c.GetEndpoint(ctx, req) if err != nil { diff --git a/internal/generated/snippets/ids/apiv1/Client/ListEndpoints/main.go b/internal/generated/snippets/ids/apiv1/Client/ListEndpoints/main.go index 9191ae595602..a0ad5175ec42 100644 --- a/internal/generated/snippets/ids/apiv1/Client/ListEndpoints/main.go +++ b/internal/generated/snippets/ids/apiv1/Client/ListEndpoints/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" ids "cloud.google.com/go/ids/apiv1" + idspb "cloud.google.com/go/ids/apiv1/idspb" "google.golang.org/api/iterator" - idspb "google.golang.org/genproto/googleapis/cloud/ids/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := ids.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &idspb.ListEndpointsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/ids/v1#ListEndpointsRequest. + // See https://pkg.go.dev/cloud.google.com/go/ids/apiv1/idspb#ListEndpointsRequest. } it := c.ListEndpoints(ctx, req) for { diff --git a/internal/generated/snippets/ids/apiv1/snippet_metadata.google.cloud.ids.v1.json b/internal/generated/snippets/ids/apiv1/snippet_metadata.google.cloud.ids.v1.json new file mode 100644 index 000000000000..bc895bfcc697 --- /dev/null +++ b/internal/generated/snippets/ids/apiv1/snippet_metadata.google.cloud.ids.v1.json @@ -0,0 +1,199 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/ids/apiv1", + "version": "1.3.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.ids.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "ids_v1_generated_IDS_CreateEndpoint_sync", + "title": "ids CreateEndpoint Sample", + "description": "CreateEndpoint creates a new Endpoint in a given project and location.", + "file": "Client/CreateEndpoint/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateEndpoint", + "fullName": "google.cloud.ids.v1.Client.CreateEndpoint", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "idspb.CreateEndpointRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateEndpointOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.ids.v1.Client" + }, + "method": { + "shortName": "CreateEndpoint", + "fullName": "google.cloud.ids.v1.IDS.CreateEndpoint", + "service": { + "shortName": "IDS", + "fullName": "google.cloud.ids.v1.IDS" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "ids_v1_generated_IDS_DeleteEndpoint_sync", + "title": "ids DeleteEndpoint Sample", + "description": "DeleteEndpoint deletes a single Endpoint.", + "file": "Client/DeleteEndpoint/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteEndpoint", + "fullName": "google.cloud.ids.v1.Client.DeleteEndpoint", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "idspb.DeleteEndpointRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteEndpointOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.ids.v1.Client" + }, + "method": { + "shortName": "DeleteEndpoint", + "fullName": "google.cloud.ids.v1.IDS.DeleteEndpoint", + "service": { + "shortName": "IDS", + "fullName": "google.cloud.ids.v1.IDS" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "ids_v1_generated_IDS_GetEndpoint_sync", + "title": "ids GetEndpoint Sample", + "description": "GetEndpoint gets details of a single Endpoint.", + "file": "Client/GetEndpoint/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetEndpoint", + "fullName": "google.cloud.ids.v1.Client.GetEndpoint", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "idspb.GetEndpointRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "idspb.Endpoint", + "client": { + "shortName": "Client", + "fullName": "google.cloud.ids.v1.Client" + }, + "method": { + "shortName": "GetEndpoint", + "fullName": "google.cloud.ids.v1.IDS.GetEndpoint", + "service": { + "shortName": "IDS", + "fullName": "google.cloud.ids.v1.IDS" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "ids_v1_generated_IDS_ListEndpoints_sync", + "title": "ids ListEndpoints Sample", + "description": "ListEndpoints lists Endpoints in a given project and location.", + "file": "Client/ListEndpoints/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListEndpoints", + "fullName": "google.cloud.ids.v1.Client.ListEndpoints", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "idspb.ListEndpointsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "EndpointIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.ids.v1.Client" + }, + "method": { + "shortName": "ListEndpoints", + "fullName": "google.cloud.ids.v1.IDS.ListEndpoints", + "service": { + "shortName": "IDS", + "fullName": "google.cloud.ids.v1.IDS" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/BindDeviceToGateway/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/BindDeviceToGateway/main.go index ff1033ea2698..bda889eb677c 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/BindDeviceToGateway/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/BindDeviceToGateway/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" - iotpb "google.golang.org/genproto/googleapis/cloud/iot/v1" + iotpb "cloud.google.com/go/iot/apiv1/iotpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iotpb.BindDeviceToGatewayRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iot/v1#BindDeviceToGatewayRequest. + // See https://pkg.go.dev/cloud.google.com/go/iot/apiv1/iotpb#BindDeviceToGatewayRequest. } resp, err := c.BindDeviceToGateway(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/CreateDevice/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/CreateDevice/main.go index 63e764f49dba..f86bb63ab06b 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/CreateDevice/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/CreateDevice/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" - iotpb "google.golang.org/genproto/googleapis/cloud/iot/v1" + iotpb "cloud.google.com/go/iot/apiv1/iotpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iotpb.CreateDeviceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iot/v1#CreateDeviceRequest. + // See https://pkg.go.dev/cloud.google.com/go/iot/apiv1/iotpb#CreateDeviceRequest. } resp, err := c.CreateDevice(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/CreateDeviceRegistry/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/CreateDeviceRegistry/main.go index 54ce5185d9b0..dae645261c52 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/CreateDeviceRegistry/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/CreateDeviceRegistry/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" - iotpb "google.golang.org/genproto/googleapis/cloud/iot/v1" + iotpb "cloud.google.com/go/iot/apiv1/iotpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iotpb.CreateDeviceRegistryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iot/v1#CreateDeviceRegistryRequest. + // See https://pkg.go.dev/cloud.google.com/go/iot/apiv1/iotpb#CreateDeviceRegistryRequest. } resp, err := c.CreateDeviceRegistry(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/DeleteDevice/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/DeleteDevice/main.go index d1b4bc2a83fe..59544e013793 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/DeleteDevice/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/DeleteDevice/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" - iotpb "google.golang.org/genproto/googleapis/cloud/iot/v1" + iotpb "cloud.google.com/go/iot/apiv1/iotpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iotpb.DeleteDeviceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iot/v1#DeleteDeviceRequest. + // See https://pkg.go.dev/cloud.google.com/go/iot/apiv1/iotpb#DeleteDeviceRequest. } err = c.DeleteDevice(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/DeleteDeviceRegistry/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/DeleteDeviceRegistry/main.go index 539dc5bacefa..fedf5333572a 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/DeleteDeviceRegistry/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/DeleteDeviceRegistry/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" - iotpb "google.golang.org/genproto/googleapis/cloud/iot/v1" + iotpb "cloud.google.com/go/iot/apiv1/iotpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iotpb.DeleteDeviceRegistryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iot/v1#DeleteDeviceRegistryRequest. + // See https://pkg.go.dev/cloud.google.com/go/iot/apiv1/iotpb#DeleteDeviceRegistryRequest. } err = c.DeleteDeviceRegistry(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetDevice/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetDevice/main.go index 89b4a2710d4b..31c22279f783 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetDevice/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetDevice/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" - iotpb "google.golang.org/genproto/googleapis/cloud/iot/v1" + iotpb "cloud.google.com/go/iot/apiv1/iotpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iotpb.GetDeviceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iot/v1#GetDeviceRequest. + // See https://pkg.go.dev/cloud.google.com/go/iot/apiv1/iotpb#GetDeviceRequest. } resp, err := c.GetDevice(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetDeviceRegistry/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetDeviceRegistry/main.go index 76891ecbec7d..00d9681105c7 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetDeviceRegistry/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetDeviceRegistry/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" - iotpb "google.golang.org/genproto/googleapis/cloud/iot/v1" + iotpb "cloud.google.com/go/iot/apiv1/iotpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iotpb.GetDeviceRegistryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iot/v1#GetDeviceRegistryRequest. + // See https://pkg.go.dev/cloud.google.com/go/iot/apiv1/iotpb#GetDeviceRegistryRequest. } resp, err := c.GetDeviceRegistry(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetIamPolicy/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetIamPolicy/main.go index 32a358e1fa4d..a649978727ee 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceConfigVersions/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceConfigVersions/main.go index 52d6792aaade..0d6be0179f93 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceConfigVersions/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceConfigVersions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" - iotpb "google.golang.org/genproto/googleapis/cloud/iot/v1" + iotpb "cloud.google.com/go/iot/apiv1/iotpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iotpb.ListDeviceConfigVersionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iot/v1#ListDeviceConfigVersionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/iot/apiv1/iotpb#ListDeviceConfigVersionsRequest. } resp, err := c.ListDeviceConfigVersions(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceRegistries/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceRegistries/main.go index 656d2bc3cbcc..0b9419b33d98 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceRegistries/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceRegistries/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" + iotpb "cloud.google.com/go/iot/apiv1/iotpb" "google.golang.org/api/iterator" - iotpb "google.golang.org/genproto/googleapis/cloud/iot/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &iotpb.ListDeviceRegistriesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iot/v1#ListDeviceRegistriesRequest. + // See https://pkg.go.dev/cloud.google.com/go/iot/apiv1/iotpb#ListDeviceRegistriesRequest. } it := c.ListDeviceRegistries(ctx, req) for { diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceStates/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceStates/main.go index 47ded6c00223..6d1b25870ab0 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceStates/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDeviceStates/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" - iotpb "google.golang.org/genproto/googleapis/cloud/iot/v1" + iotpb "cloud.google.com/go/iot/apiv1/iotpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iotpb.ListDeviceStatesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iot/v1#ListDeviceStatesRequest. + // See https://pkg.go.dev/cloud.google.com/go/iot/apiv1/iotpb#ListDeviceStatesRequest. } resp, err := c.ListDeviceStates(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDevices/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDevices/main.go index e6563c819497..874fd303c18d 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDevices/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ListDevices/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" + iotpb "cloud.google.com/go/iot/apiv1/iotpb" "google.golang.org/api/iterator" - iotpb "google.golang.org/genproto/googleapis/cloud/iot/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &iotpb.ListDevicesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iot/v1#ListDevicesRequest. + // See https://pkg.go.dev/cloud.google.com/go/iot/apiv1/iotpb#ListDevicesRequest. } it := c.ListDevices(ctx, req) for { diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ModifyCloudToDeviceConfig/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ModifyCloudToDeviceConfig/main.go index d0ed8bc3c30f..362dfa81e32c 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ModifyCloudToDeviceConfig/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/ModifyCloudToDeviceConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" - iotpb "google.golang.org/genproto/googleapis/cloud/iot/v1" + iotpb "cloud.google.com/go/iot/apiv1/iotpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iotpb.ModifyCloudToDeviceConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iot/v1#ModifyCloudToDeviceConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/iot/apiv1/iotpb#ModifyCloudToDeviceConfigRequest. } resp, err := c.ModifyCloudToDeviceConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/SendCommandToDevice/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/SendCommandToDevice/main.go index e39700d17af8..890aa9ec3a73 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/SendCommandToDevice/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/SendCommandToDevice/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" - iotpb "google.golang.org/genproto/googleapis/cloud/iot/v1" + iotpb "cloud.google.com/go/iot/apiv1/iotpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iotpb.SendCommandToDeviceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iot/v1#SendCommandToDeviceRequest. + // See https://pkg.go.dev/cloud.google.com/go/iot/apiv1/iotpb#SendCommandToDeviceRequest. } resp, err := c.SendCommandToDevice(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/SetIamPolicy/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/SetIamPolicy/main.go index bc33d22dfefd..e3984810d33a 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/TestIamPermissions/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/TestIamPermissions/main.go index 642fecf05525..ad91dbc3596f 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UnbindDeviceFromGateway/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UnbindDeviceFromGateway/main.go index 564b22999660..293ba1ab8305 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UnbindDeviceFromGateway/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UnbindDeviceFromGateway/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" - iotpb "google.golang.org/genproto/googleapis/cloud/iot/v1" + iotpb "cloud.google.com/go/iot/apiv1/iotpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iotpb.UnbindDeviceFromGatewayRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iot/v1#UnbindDeviceFromGatewayRequest. + // See https://pkg.go.dev/cloud.google.com/go/iot/apiv1/iotpb#UnbindDeviceFromGatewayRequest. } resp, err := c.UnbindDeviceFromGateway(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UpdateDevice/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UpdateDevice/main.go index a4c75db3c172..17d4b473c1a1 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UpdateDevice/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UpdateDevice/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" - iotpb "google.golang.org/genproto/googleapis/cloud/iot/v1" + iotpb "cloud.google.com/go/iot/apiv1/iotpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iotpb.UpdateDeviceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iot/v1#UpdateDeviceRequest. + // See https://pkg.go.dev/cloud.google.com/go/iot/apiv1/iotpb#UpdateDeviceRequest. } resp, err := c.UpdateDevice(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UpdateDeviceRegistry/main.go b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UpdateDeviceRegistry/main.go index 2752a299cf51..228b7681f7ce 100644 --- a/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UpdateDeviceRegistry/main.go +++ b/internal/generated/snippets/iot/apiv1/DeviceManagerClient/UpdateDeviceRegistry/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" iot "cloud.google.com/go/iot/apiv1" - iotpb "google.golang.org/genproto/googleapis/cloud/iot/v1" + iotpb "cloud.google.com/go/iot/apiv1/iotpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := iot.NewDeviceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &iotpb.UpdateDeviceRegistryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/iot/v1#UpdateDeviceRegistryRequest. + // See https://pkg.go.dev/cloud.google.com/go/iot/apiv1/iotpb#UpdateDeviceRegistryRequest. } resp, err := c.UpdateDeviceRegistry(ctx, req) if err != nil { diff --git a/internal/generated/snippets/iot/apiv1/snippet_metadata.google.cloud.iot.v1.json b/internal/generated/snippets/iot/apiv1/snippet_metadata.google.cloud.iot.v1.json new file mode 100644 index 000000000000..2ff296d2ccfb --- /dev/null +++ b/internal/generated/snippets/iot/apiv1/snippet_metadata.google.cloud.iot.v1.json @@ -0,0 +1,887 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/iot/apiv1", + "version": "1.5.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.iot.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "cloudiot_v1_generated_DeviceManager_BindDeviceToGateway_sync", + "title": "cloudiot BindDeviceToGateway Sample", + "description": "BindDeviceToGateway associates the device with the gateway.", + "file": "DeviceManagerClient/BindDeviceToGateway/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BindDeviceToGateway", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.BindDeviceToGateway", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iotpb.BindDeviceToGatewayRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iotpb.BindDeviceToGatewayResponse", + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "BindDeviceToGateway", + "fullName": "google.cloud.iot.v1.DeviceManager.BindDeviceToGateway", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudiot_v1_generated_DeviceManager_CreateDevice_sync", + "title": "cloudiot CreateDevice Sample", + "description": "CreateDevice creates a device in a device registry.", + "file": "DeviceManagerClient/CreateDevice/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateDevice", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.CreateDevice", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iotpb.CreateDeviceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iotpb.Device", + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "CreateDevice", + "fullName": "google.cloud.iot.v1.DeviceManager.CreateDevice", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudiot_v1_generated_DeviceManager_CreateDeviceRegistry_sync", + "title": "cloudiot CreateDeviceRegistry Sample", + "description": "CreateDeviceRegistry creates a device registry that contains devices.", + "file": "DeviceManagerClient/CreateDeviceRegistry/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateDeviceRegistry", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.CreateDeviceRegistry", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iotpb.CreateDeviceRegistryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iotpb.DeviceRegistry", + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "CreateDeviceRegistry", + "fullName": "google.cloud.iot.v1.DeviceManager.CreateDeviceRegistry", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudiot_v1_generated_DeviceManager_DeleteDevice_sync", + "title": "cloudiot DeleteDevice Sample", + "description": "DeleteDevice deletes a device.", + "file": "DeviceManagerClient/DeleteDevice/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteDevice", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.DeleteDevice", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iotpb.DeleteDeviceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "DeleteDevice", + "fullName": "google.cloud.iot.v1.DeviceManager.DeleteDevice", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudiot_v1_generated_DeviceManager_DeleteDeviceRegistry_sync", + "title": "cloudiot DeleteDeviceRegistry Sample", + "description": "DeleteDeviceRegistry deletes a device registry configuration.", + "file": "DeviceManagerClient/DeleteDeviceRegistry/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteDeviceRegistry", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.DeleteDeviceRegistry", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iotpb.DeleteDeviceRegistryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "DeleteDeviceRegistry", + "fullName": "google.cloud.iot.v1.DeviceManager.DeleteDeviceRegistry", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudiot_v1_generated_DeviceManager_GetDevice_sync", + "title": "cloudiot GetDevice Sample", + "description": "GetDevice gets details about a device.", + "file": "DeviceManagerClient/GetDevice/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetDevice", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.GetDevice", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iotpb.GetDeviceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iotpb.Device", + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "GetDevice", + "fullName": "google.cloud.iot.v1.DeviceManager.GetDevice", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudiot_v1_generated_DeviceManager_GetDeviceRegistry_sync", + "title": "cloudiot GetDeviceRegistry Sample", + "description": "GetDeviceRegistry gets a device registry configuration.", + "file": "DeviceManagerClient/GetDeviceRegistry/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetDeviceRegistry", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.GetDeviceRegistry", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iotpb.GetDeviceRegistryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iotpb.DeviceRegistry", + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "GetDeviceRegistry", + "fullName": "google.cloud.iot.v1.DeviceManager.GetDeviceRegistry", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudiot_v1_generated_DeviceManager_GetIamPolicy_sync", + "title": "cloudiot GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource.\nReturns an empty policy if the resource exists and does not have a policy\nset.", + "file": "DeviceManagerClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.iot.v1.DeviceManager.GetIamPolicy", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudiot_v1_generated_DeviceManager_ListDeviceConfigVersions_sync", + "title": "cloudiot ListDeviceConfigVersions Sample", + "description": "ListDeviceConfigVersions lists the last few versions of the device configuration in descending\norder (i.e.: newest first).", + "file": "DeviceManagerClient/ListDeviceConfigVersions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListDeviceConfigVersions", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.ListDeviceConfigVersions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iotpb.ListDeviceConfigVersionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iotpb.ListDeviceConfigVersionsResponse", + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "ListDeviceConfigVersions", + "fullName": "google.cloud.iot.v1.DeviceManager.ListDeviceConfigVersions", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudiot_v1_generated_DeviceManager_ListDeviceRegistries_sync", + "title": "cloudiot ListDeviceRegistries Sample", + "description": "ListDeviceRegistries lists device registries.", + "file": "DeviceManagerClient/ListDeviceRegistries/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListDeviceRegistries", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.ListDeviceRegistries", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iotpb.ListDeviceRegistriesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeviceRegistryIterator", + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "ListDeviceRegistries", + "fullName": "google.cloud.iot.v1.DeviceManager.ListDeviceRegistries", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudiot_v1_generated_DeviceManager_ListDeviceStates_sync", + "title": "cloudiot ListDeviceStates Sample", + "description": "ListDeviceStates lists the last few versions of the device state in descending order (i.e.: \nnewest first).", + "file": "DeviceManagerClient/ListDeviceStates/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListDeviceStates", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.ListDeviceStates", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iotpb.ListDeviceStatesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iotpb.ListDeviceStatesResponse", + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "ListDeviceStates", + "fullName": "google.cloud.iot.v1.DeviceManager.ListDeviceStates", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudiot_v1_generated_DeviceManager_ListDevices_sync", + "title": "cloudiot ListDevices Sample", + "description": "ListDevices list devices in a device registry.", + "file": "DeviceManagerClient/ListDevices/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListDevices", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.ListDevices", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iotpb.ListDevicesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeviceIterator", + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "ListDevices", + "fullName": "google.cloud.iot.v1.DeviceManager.ListDevices", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudiot_v1_generated_DeviceManager_ModifyCloudToDeviceConfig_sync", + "title": "cloudiot ModifyCloudToDeviceConfig Sample", + "description": "ModifyCloudToDeviceConfig modifies the configuration for the device, which is eventually sent from\nthe Cloud IoT Core servers. Returns the modified configuration version and\nits metadata.", + "file": "DeviceManagerClient/ModifyCloudToDeviceConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ModifyCloudToDeviceConfig", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.ModifyCloudToDeviceConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iotpb.ModifyCloudToDeviceConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iotpb.DeviceConfig", + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "ModifyCloudToDeviceConfig", + "fullName": "google.cloud.iot.v1.DeviceManager.ModifyCloudToDeviceConfig", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudiot_v1_generated_DeviceManager_SendCommandToDevice_sync", + "title": "cloudiot SendCommandToDevice Sample", + "description": "SendCommandToDevice sends a command to the specified device. In order for a device to be able\nto receive commands, it must: \n\nbe connected to Cloud IoT Core using the MQTT protocol, and\n\nbe subscribed to the group of MQTT topics specified by\n/devices/{device-id}/commands/#. This subscription will receive commands\nat the top-level topic /devices/{device-id}/commands as well as commands\nfor subfolders, like /devices/{device-id}/commands/subfolder.\nNote that subscribing to specific subfolders is not supported.\nIf the command could not be delivered to the device, this method will\nreturn an error; in particular, if the device is not subscribed, this\nmethod will return FAILED_PRECONDITION. Otherwise, this method will\nreturn OK. If the subscription is QoS 1, at least once delivery will be\nguaranteed; for QoS 0, no acknowledgment will be expected from the device.", + "file": "DeviceManagerClient/SendCommandToDevice/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SendCommandToDevice", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.SendCommandToDevice", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iotpb.SendCommandToDeviceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iotpb.SendCommandToDeviceResponse", + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "SendCommandToDevice", + "fullName": "google.cloud.iot.v1.DeviceManager.SendCommandToDevice", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudiot_v1_generated_DeviceManager_SetIamPolicy_sync", + "title": "cloudiot SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces any\nexisting policy.", + "file": "DeviceManagerClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.iot.v1.DeviceManager.SetIamPolicy", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudiot_v1_generated_DeviceManager_TestIamPermissions_sync", + "title": "cloudiot TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource.\nIf the resource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.", + "file": "DeviceManagerClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.iot.v1.DeviceManager.TestIamPermissions", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudiot_v1_generated_DeviceManager_UnbindDeviceFromGateway_sync", + "title": "cloudiot UnbindDeviceFromGateway Sample", + "description": "UnbindDeviceFromGateway deletes the association between the device and the gateway.", + "file": "DeviceManagerClient/UnbindDeviceFromGateway/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UnbindDeviceFromGateway", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.UnbindDeviceFromGateway", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iotpb.UnbindDeviceFromGatewayRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iotpb.UnbindDeviceFromGatewayResponse", + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "UnbindDeviceFromGateway", + "fullName": "google.cloud.iot.v1.DeviceManager.UnbindDeviceFromGateway", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudiot_v1_generated_DeviceManager_UpdateDevice_sync", + "title": "cloudiot UpdateDevice Sample", + "description": "UpdateDevice updates a device.", + "file": "DeviceManagerClient/UpdateDevice/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateDevice", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.UpdateDevice", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iotpb.UpdateDeviceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iotpb.Device", + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "UpdateDevice", + "fullName": "google.cloud.iot.v1.DeviceManager.UpdateDevice", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudiot_v1_generated_DeviceManager_UpdateDeviceRegistry_sync", + "title": "cloudiot UpdateDeviceRegistry Sample", + "description": "UpdateDeviceRegistry updates a device registry configuration.", + "file": "DeviceManagerClient/UpdateDeviceRegistry/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateDeviceRegistry", + "fullName": "google.cloud.iot.v1.DeviceManagerClient.UpdateDeviceRegistry", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iotpb.UpdateDeviceRegistryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iotpb.DeviceRegistry", + "client": { + "shortName": "DeviceManagerClient", + "fullName": "google.cloud.iot.v1.DeviceManagerClient" + }, + "method": { + "shortName": "UpdateDeviceRegistry", + "fullName": "google.cloud.iot.v1.DeviceManager.UpdateDeviceRegistry", + "service": { + "shortName": "DeviceManager", + "fullName": "google.cloud.iot.v1.DeviceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/kms/apiv1/EkmClient/CreateEkmConnection/main.go b/internal/generated/snippets/kms/apiv1/EkmClient/CreateEkmConnection/main.go index 045d569f8bb2..2ceb34fc2013 100644 --- a/internal/generated/snippets/kms/apiv1/EkmClient/CreateEkmConnection/main.go +++ b/internal/generated/snippets/kms/apiv1/EkmClient/CreateEkmConnection/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewEkmClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.CreateEkmConnectionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#CreateEkmConnectionRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#CreateEkmConnectionRequest. } resp, err := c.CreateEkmConnection(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/EkmClient/GetEkmConnection/main.go b/internal/generated/snippets/kms/apiv1/EkmClient/GetEkmConnection/main.go index 90cd04ccede9..ea45a1eee90d 100644 --- a/internal/generated/snippets/kms/apiv1/EkmClient/GetEkmConnection/main.go +++ b/internal/generated/snippets/kms/apiv1/EkmClient/GetEkmConnection/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewEkmClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.GetEkmConnectionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#GetEkmConnectionRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#GetEkmConnectionRequest. } resp, err := c.GetEkmConnection(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/EkmClient/GetIamPolicy/main.go b/internal/generated/snippets/kms/apiv1/EkmClient/GetIamPolicy/main.go index fa1c555cbeb1..358fa96de974 100644 --- a/internal/generated/snippets/kms/apiv1/EkmClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/kms/apiv1/EkmClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewEkmClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/kms/apiv1/EkmClient/GetLocation/main.go b/internal/generated/snippets/kms/apiv1/EkmClient/GetLocation/main.go new file mode 100644 index 000000000000..eb012e9338e0 --- /dev/null +++ b/internal/generated/snippets/kms/apiv1/EkmClient/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START cloudkms_v1_generated_EkmService_GetLocation_sync] + +package main + +import ( + "context" + + kms "cloud.google.com/go/kms/apiv1" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := kms.NewEkmClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END cloudkms_v1_generated_EkmService_GetLocation_sync] diff --git a/internal/generated/snippets/kms/apiv1/EkmClient/ListEkmConnections/main.go b/internal/generated/snippets/kms/apiv1/EkmClient/ListEkmConnections/main.go index 09dd4726df52..c21b6823883c 100644 --- a/internal/generated/snippets/kms/apiv1/EkmClient/ListEkmConnections/main.go +++ b/internal/generated/snippets/kms/apiv1/EkmClient/ListEkmConnections/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" "google.golang.org/api/iterator" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewEkmClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &kmspb.ListEkmConnectionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#ListEkmConnectionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#ListEkmConnectionsRequest. } it := c.ListEkmConnections(ctx, req) for { diff --git a/internal/generated/snippets/kms/apiv1/EkmClient/ListLocations/main.go b/internal/generated/snippets/kms/apiv1/EkmClient/ListLocations/main.go new file mode 100644 index 000000000000..155cc5dabe56 --- /dev/null +++ b/internal/generated/snippets/kms/apiv1/EkmClient/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START cloudkms_v1_generated_EkmService_ListLocations_sync] + +package main + +import ( + "context" + + kms "cloud.google.com/go/kms/apiv1" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := kms.NewEkmClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END cloudkms_v1_generated_EkmService_ListLocations_sync] diff --git a/internal/generated/snippets/kms/apiv1/EkmClient/SetIamPolicy/main.go b/internal/generated/snippets/kms/apiv1/EkmClient/SetIamPolicy/main.go index 8c9fe59dbae3..42244195eb76 100644 --- a/internal/generated/snippets/kms/apiv1/EkmClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/kms/apiv1/EkmClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewEkmClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/kms/apiv1/EkmClient/TestIamPermissions/main.go b/internal/generated/snippets/kms/apiv1/EkmClient/TestIamPermissions/main.go index f9ed0bd597bf..55d083abe428 100644 --- a/internal/generated/snippets/kms/apiv1/EkmClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/kms/apiv1/EkmClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewEkmClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/kms/apiv1/EkmClient/UpdateEkmConnection/main.go b/internal/generated/snippets/kms/apiv1/EkmClient/UpdateEkmConnection/main.go index 8326c4198053..df054465984b 100644 --- a/internal/generated/snippets/kms/apiv1/EkmClient/UpdateEkmConnection/main.go +++ b/internal/generated/snippets/kms/apiv1/EkmClient/UpdateEkmConnection/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewEkmClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.UpdateEkmConnectionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#UpdateEkmConnectionRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#UpdateEkmConnectionRequest. } resp, err := c.UpdateEkmConnection(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/AsymmetricDecrypt/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/AsymmetricDecrypt/main.go index e3a952f6fd6e..3c052a36eac9 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/AsymmetricDecrypt/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/AsymmetricDecrypt/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.AsymmetricDecryptRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#AsymmetricDecryptRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#AsymmetricDecryptRequest. } resp, err := c.AsymmetricDecrypt(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/AsymmetricSign/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/AsymmetricSign/main.go index eb906636a42e..1d61c9fae707 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/AsymmetricSign/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/AsymmetricSign/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.AsymmetricSignRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#AsymmetricSignRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#AsymmetricSignRequest. } resp, err := c.AsymmetricSign(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateCryptoKey/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateCryptoKey/main.go index 57a8a3c328ed..475a9133c023 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateCryptoKey/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateCryptoKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.CreateCryptoKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#CreateCryptoKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#CreateCryptoKeyRequest. } resp, err := c.CreateCryptoKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateCryptoKeyVersion/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateCryptoKeyVersion/main.go index 2cf61f6a654e..4eab070c872f 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateCryptoKeyVersion/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateCryptoKeyVersion/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.CreateCryptoKeyVersionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#CreateCryptoKeyVersionRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#CreateCryptoKeyVersionRequest. } resp, err := c.CreateCryptoKeyVersion(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateImportJob/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateImportJob/main.go index 7af07b4aa6eb..e6adc1caee96 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateImportJob/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateImportJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.CreateImportJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#CreateImportJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#CreateImportJobRequest. } resp, err := c.CreateImportJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateKeyRing/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateKeyRing/main.go index 881a4a12748d..169a552cbe4e 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateKeyRing/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/CreateKeyRing/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.CreateKeyRingRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#CreateKeyRingRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#CreateKeyRingRequest. } resp, err := c.CreateKeyRing(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/Decrypt/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/Decrypt/main.go index cdb1d0b49499..d930a2296207 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/Decrypt/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/Decrypt/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.DecryptRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#DecryptRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#DecryptRequest. } resp, err := c.Decrypt(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/DestroyCryptoKeyVersion/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/DestroyCryptoKeyVersion/main.go index 8be2a3d656e9..a57a73f2127b 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/DestroyCryptoKeyVersion/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/DestroyCryptoKeyVersion/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.DestroyCryptoKeyVersionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#DestroyCryptoKeyVersionRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#DestroyCryptoKeyVersionRequest. } resp, err := c.DestroyCryptoKeyVersion(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/Encrypt/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/Encrypt/main.go index 7b1c4c11ff09..422235d00ea8 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/Encrypt/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/Encrypt/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.EncryptRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#EncryptRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#EncryptRequest. } resp, err := c.Encrypt(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GenerateRandomBytes/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GenerateRandomBytes/main.go index eca2d915b03d..0d804a82f2a0 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GenerateRandomBytes/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GenerateRandomBytes/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.GenerateRandomBytesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#GenerateRandomBytesRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#GenerateRandomBytesRequest. } resp, err := c.GenerateRandomBytes(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetCryptoKey/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetCryptoKey/main.go index dbcef684a58e..727ed7215a66 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetCryptoKey/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetCryptoKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.GetCryptoKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#GetCryptoKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#GetCryptoKeyRequest. } resp, err := c.GetCryptoKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetCryptoKeyVersion/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetCryptoKeyVersion/main.go index 6fd801a38692..0cf283987df8 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetCryptoKeyVersion/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetCryptoKeyVersion/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.GetCryptoKeyVersionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#GetCryptoKeyVersionRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#GetCryptoKeyVersionRequest. } resp, err := c.GetCryptoKeyVersion(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetIamPolicy/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetIamPolicy/main.go index d1faffd2f3cb..5fcaf2a6174d 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetImportJob/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetImportJob/main.go index f81feaef9419..c37aa87b22f4 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetImportJob/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetImportJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.GetImportJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#GetImportJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#GetImportJobRequest. } resp, err := c.GetImportJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetKeyRing/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetKeyRing/main.go index 83610c2ee793..e4582b91ba22 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetKeyRing/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetKeyRing/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.GetKeyRingRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#GetKeyRingRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#GetKeyRingRequest. } resp, err := c.GetKeyRing(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetLocation/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetLocation/main.go new file mode 100644 index 000000000000..cc2012455d9e --- /dev/null +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START cloudkms_v1_generated_KeyManagementService_GetLocation_sync] + +package main + +import ( + "context" + + kms "cloud.google.com/go/kms/apiv1" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := kms.NewKeyManagementClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END cloudkms_v1_generated_KeyManagementService_GetLocation_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetPublicKey/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetPublicKey/main.go index f153e0e5a41a..b632ff0edbde 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetPublicKey/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/GetPublicKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.GetPublicKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#GetPublicKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#GetPublicKeyRequest. } resp, err := c.GetPublicKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ImportCryptoKeyVersion/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ImportCryptoKeyVersion/main.go index 82218121ca36..99df886d65bb 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ImportCryptoKeyVersion/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ImportCryptoKeyVersion/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.ImportCryptoKeyVersionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#ImportCryptoKeyVersionRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#ImportCryptoKeyVersionRequest. } resp, err := c.ImportCryptoKeyVersion(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListCryptoKeyVersions/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListCryptoKeyVersions/main.go index 789f82fc7bdc..f5c7f6cbea0c 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListCryptoKeyVersions/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListCryptoKeyVersions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" "google.golang.org/api/iterator" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &kmspb.ListCryptoKeyVersionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#ListCryptoKeyVersionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#ListCryptoKeyVersionsRequest. } it := c.ListCryptoKeyVersions(ctx, req) for { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListCryptoKeys/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListCryptoKeys/main.go index 1aef28d55334..db3103ad0a81 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListCryptoKeys/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListCryptoKeys/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" "google.golang.org/api/iterator" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &kmspb.ListCryptoKeysRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#ListCryptoKeysRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#ListCryptoKeysRequest. } it := c.ListCryptoKeys(ctx, req) for { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListImportJobs/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListImportJobs/main.go index c89bcb8286ea..f7a3238fa04f 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListImportJobs/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListImportJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" "google.golang.org/api/iterator" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &kmspb.ListImportJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#ListImportJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#ListImportJobsRequest. } it := c.ListImportJobs(ctx, req) for { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListKeyRings/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListKeyRings/main.go index 4cef29782783..84dc7b15cb57 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListKeyRings/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListKeyRings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" "google.golang.org/api/iterator" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &kmspb.ListKeyRingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#ListKeyRingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#ListKeyRingsRequest. } it := c.ListKeyRings(ctx, req) for { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListLocations/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListLocations/main.go new file mode 100644 index 000000000000..d98795126cd2 --- /dev/null +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START cloudkms_v1_generated_KeyManagementService_ListLocations_sync] + +package main + +import ( + "context" + + kms "cloud.google.com/go/kms/apiv1" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := kms.NewKeyManagementClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END cloudkms_v1_generated_KeyManagementService_ListLocations_sync] diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/MacSign/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/MacSign/main.go index 5c8c5b3ed90d..d0d4843e1aad 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/MacSign/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/MacSign/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.MacSignRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#MacSignRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#MacSignRequest. } resp, err := c.MacSign(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/MacVerify/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/MacVerify/main.go index 23f7757854db..5f80aeb17789 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/MacVerify/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/MacVerify/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.MacVerifyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#MacVerifyRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#MacVerifyRequest. } resp, err := c.MacVerify(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/RestoreCryptoKeyVersion/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/RestoreCryptoKeyVersion/main.go index 37fdc62a1019..ce9817663267 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/RestoreCryptoKeyVersion/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/RestoreCryptoKeyVersion/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.RestoreCryptoKeyVersionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#RestoreCryptoKeyVersionRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#RestoreCryptoKeyVersionRequest. } resp, err := c.RestoreCryptoKeyVersion(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/SetIamPolicy/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/SetIamPolicy/main.go index 80562e01bca2..a8c59178b8a3 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/TestIamPermissions/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/TestIamPermissions/main.go index 1eaf079d6876..b19c4c1bf3b9 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKey/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKey/main.go index bd82f7ce6bf2..a01c93d61641 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKey/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.UpdateCryptoKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#UpdateCryptoKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#UpdateCryptoKeyRequest. } resp, err := c.UpdateCryptoKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKeyPrimaryVersion/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKeyPrimaryVersion/main.go index b97df4a4948b..922c92e94407 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKeyPrimaryVersion/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKeyPrimaryVersion/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.UpdateCryptoKeyPrimaryVersionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#UpdateCryptoKeyPrimaryVersionRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#UpdateCryptoKeyPrimaryVersionRequest. } resp, err := c.UpdateCryptoKeyPrimaryVersion(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKeyVersion/main.go b/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKeyVersion/main.go index dd30edfd911c..0c6a2fa57b7e 100644 --- a/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKeyVersion/main.go +++ b/internal/generated/snippets/kms/apiv1/KeyManagementClient/UpdateCryptoKeyVersion/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" kms "cloud.google.com/go/kms/apiv1" - kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1" + kmspb "cloud.google.com/go/kms/apiv1/kmspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := kms.NewKeyManagementClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &kmspb.UpdateCryptoKeyVersionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/kms/v1#UpdateCryptoKeyVersionRequest. + // See https://pkg.go.dev/cloud.google.com/go/kms/apiv1/kmspb#UpdateCryptoKeyVersionRequest. } resp, err := c.UpdateCryptoKeyVersion(ctx, req) if err != nil { diff --git a/internal/generated/snippets/kms/apiv1/snippet_metadata.google.cloud.kms.v1.json b/internal/generated/snippets/kms/apiv1/snippet_metadata.google.cloud.kms.v1.json new file mode 100644 index 000000000000..6a12a769113d --- /dev/null +++ b/internal/generated/snippets/kms/apiv1/snippet_metadata.google.cloud.kms.v1.json @@ -0,0 +1,1855 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/kms/apiv1", + "version": "1.8.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.kms.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "cloudkms_v1_generated_EkmService_CreateEkmConnection_sync", + "title": "cloudkms CreateEkmConnection Sample", + "description": "CreateEkmConnection creates a new EkmConnection in a given\nProject and Location.", + "file": "EkmClient/CreateEkmConnection/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateEkmConnection", + "fullName": "google.cloud.kms.v1.EkmClient.CreateEkmConnection", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.CreateEkmConnectionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.EkmConnection", + "client": { + "shortName": "EkmClient", + "fullName": "google.cloud.kms.v1.EkmClient" + }, + "method": { + "shortName": "CreateEkmConnection", + "fullName": "google.cloud.kms.v1.EkmService.CreateEkmConnection", + "service": { + "shortName": "EkmService", + "fullName": "google.cloud.kms.v1.EkmService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_EkmService_GetEkmConnection_sync", + "title": "cloudkms GetEkmConnection Sample", + "description": "GetEkmConnection returns metadata for a given\nEkmConnection.", + "file": "EkmClient/GetEkmConnection/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetEkmConnection", + "fullName": "google.cloud.kms.v1.EkmClient.GetEkmConnection", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.GetEkmConnectionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.EkmConnection", + "client": { + "shortName": "EkmClient", + "fullName": "google.cloud.kms.v1.EkmClient" + }, + "method": { + "shortName": "GetEkmConnection", + "fullName": "google.cloud.kms.v1.EkmService.GetEkmConnection", + "service": { + "shortName": "EkmService", + "fullName": "google.cloud.kms.v1.EkmService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_EkmService_GetIamPolicy_sync", + "title": "cloudkms GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "EkmClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.kms.v1.EkmClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "EkmClient", + "fullName": "google.cloud.kms.v1.EkmClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.kms.v1.EkmService.GetIamPolicy", + "service": { + "shortName": "EkmService", + "fullName": "google.cloud.kms.v1.EkmService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_EkmService_GetLocation_sync", + "title": "cloudkms GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "EkmClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.kms.v1.EkmClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "EkmClient", + "fullName": "google.cloud.kms.v1.EkmClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.kms.v1.EkmService.GetLocation", + "service": { + "shortName": "EkmService", + "fullName": "google.cloud.kms.v1.EkmService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_EkmService_ListEkmConnections_sync", + "title": "cloudkms ListEkmConnections Sample", + "description": "ListEkmConnections lists EkmConnections.", + "file": "EkmClient/ListEkmConnections/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListEkmConnections", + "fullName": "google.cloud.kms.v1.EkmClient.ListEkmConnections", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.ListEkmConnectionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "EkmConnectionIterator", + "client": { + "shortName": "EkmClient", + "fullName": "google.cloud.kms.v1.EkmClient" + }, + "method": { + "shortName": "ListEkmConnections", + "fullName": "google.cloud.kms.v1.EkmService.ListEkmConnections", + "service": { + "shortName": "EkmService", + "fullName": "google.cloud.kms.v1.EkmService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_EkmService_ListLocations_sync", + "title": "cloudkms ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "EkmClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.kms.v1.EkmClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "EkmClient", + "fullName": "google.cloud.kms.v1.EkmClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.kms.v1.EkmService.ListLocations", + "service": { + "shortName": "EkmService", + "fullName": "google.cloud.kms.v1.EkmService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_EkmService_SetIamPolicy_sync", + "title": "cloudkms SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "EkmClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.kms.v1.EkmClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "EkmClient", + "fullName": "google.cloud.kms.v1.EkmClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.kms.v1.EkmService.SetIamPolicy", + "service": { + "shortName": "EkmService", + "fullName": "google.cloud.kms.v1.EkmService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_EkmService_TestIamPermissions_sync", + "title": "cloudkms TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "EkmClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.kms.v1.EkmClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "EkmClient", + "fullName": "google.cloud.kms.v1.EkmClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.kms.v1.EkmService.TestIamPermissions", + "service": { + "shortName": "EkmService", + "fullName": "google.cloud.kms.v1.EkmService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_EkmService_UpdateEkmConnection_sync", + "title": "cloudkms UpdateEkmConnection Sample", + "description": "UpdateEkmConnection updates an EkmConnection's metadata.", + "file": "EkmClient/UpdateEkmConnection/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateEkmConnection", + "fullName": "google.cloud.kms.v1.EkmClient.UpdateEkmConnection", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.UpdateEkmConnectionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.EkmConnection", + "client": { + "shortName": "EkmClient", + "fullName": "google.cloud.kms.v1.EkmClient" + }, + "method": { + "shortName": "UpdateEkmConnection", + "fullName": "google.cloud.kms.v1.EkmService.UpdateEkmConnection", + "service": { + "shortName": "EkmService", + "fullName": "google.cloud.kms.v1.EkmService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_AsymmetricDecrypt_sync", + "title": "cloudkms AsymmetricDecrypt Sample", + "description": "AsymmetricDecrypt decrypts data that was encrypted with a public key retrieved from\nGetPublicKey\ncorresponding to a CryptoKeyVersion\nwith CryptoKey.purpose\nASYMMETRIC_DECRYPT.", + "file": "KeyManagementClient/AsymmetricDecrypt/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AsymmetricDecrypt", + "fullName": "google.cloud.kms.v1.KeyManagementClient.AsymmetricDecrypt", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.AsymmetricDecryptRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.AsymmetricDecryptResponse", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "AsymmetricDecrypt", + "fullName": "google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_AsymmetricSign_sync", + "title": "cloudkms AsymmetricSign Sample", + "description": "AsymmetricSign signs data using a CryptoKeyVersion\nwith CryptoKey.purpose\nASYMMETRIC_SIGN, producing a signature that can be verified with the public\nkey retrieved from\nGetPublicKey.", + "file": "KeyManagementClient/AsymmetricSign/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AsymmetricSign", + "fullName": "google.cloud.kms.v1.KeyManagementClient.AsymmetricSign", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.AsymmetricSignRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.AsymmetricSignResponse", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "AsymmetricSign", + "fullName": "google.cloud.kms.v1.KeyManagementService.AsymmetricSign", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_CreateCryptoKey_sync", + "title": "cloudkms CreateCryptoKey Sample", + "description": "CreateCryptoKey create a new CryptoKey within a\nKeyRing.\n\nCryptoKey.purpose and\nCryptoKey.version_template.algorithm\nare required.", + "file": "KeyManagementClient/CreateCryptoKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateCryptoKey", + "fullName": "google.cloud.kms.v1.KeyManagementClient.CreateCryptoKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.CreateCryptoKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.CryptoKey", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "CreateCryptoKey", + "fullName": "google.cloud.kms.v1.KeyManagementService.CreateCryptoKey", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_CreateCryptoKeyVersion_sync", + "title": "cloudkms CreateCryptoKeyVersion Sample", + "description": "CreateCryptoKeyVersion create a new CryptoKeyVersion in a\nCryptoKey.\n\nThe server will assign the next sequential id. If unset,\nstate will be set to\nENABLED.", + "file": "KeyManagementClient/CreateCryptoKeyVersion/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateCryptoKeyVersion", + "fullName": "google.cloud.kms.v1.KeyManagementClient.CreateCryptoKeyVersion", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.CreateCryptoKeyVersionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.CryptoKeyVersion", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "CreateCryptoKeyVersion", + "fullName": "google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_CreateImportJob_sync", + "title": "cloudkms CreateImportJob Sample", + "description": "CreateImportJob create a new ImportJob within a\nKeyRing.\n\nImportJob.import_method is\nrequired.", + "file": "KeyManagementClient/CreateImportJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateImportJob", + "fullName": "google.cloud.kms.v1.KeyManagementClient.CreateImportJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.CreateImportJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.ImportJob", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "CreateImportJob", + "fullName": "google.cloud.kms.v1.KeyManagementService.CreateImportJob", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_CreateKeyRing_sync", + "title": "cloudkms CreateKeyRing Sample", + "description": "CreateKeyRing create a new KeyRing in a given Project and\nLocation.", + "file": "KeyManagementClient/CreateKeyRing/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateKeyRing", + "fullName": "google.cloud.kms.v1.KeyManagementClient.CreateKeyRing", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.CreateKeyRingRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.KeyRing", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "CreateKeyRing", + "fullName": "google.cloud.kms.v1.KeyManagementService.CreateKeyRing", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_Decrypt_sync", + "title": "cloudkms Decrypt Sample", + "description": "Decrypt decrypts data that was protected by\nEncrypt. The\nCryptoKey.purpose must be\nENCRYPT_DECRYPT.", + "file": "KeyManagementClient/Decrypt/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Decrypt", + "fullName": "google.cloud.kms.v1.KeyManagementClient.Decrypt", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.DecryptRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.DecryptResponse", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "Decrypt", + "fullName": "google.cloud.kms.v1.KeyManagementService.Decrypt", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_DestroyCryptoKeyVersion_sync", + "title": "cloudkms DestroyCryptoKeyVersion Sample", + "description": "DestroyCryptoKeyVersion schedule a CryptoKeyVersion for\ndestruction.\n\nUpon calling this method,\nCryptoKeyVersion.state will\nbe set to\nDESTROY_SCHEDULED,\nand destroy_time will\nbe set to the time\ndestroy_scheduled_duration\nin the future. At that time, the\nstate will automatically\nchange to\nDESTROYED,\nand the key material will be irrevocably destroyed.\n\nBefore the\ndestroy_time is\nreached,\nRestoreCryptoKeyVersion\nmay be called to reverse the process.", + "file": "KeyManagementClient/DestroyCryptoKeyVersion/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DestroyCryptoKeyVersion", + "fullName": "google.cloud.kms.v1.KeyManagementClient.DestroyCryptoKeyVersion", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.DestroyCryptoKeyVersionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.CryptoKeyVersion", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "DestroyCryptoKeyVersion", + "fullName": "google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_Encrypt_sync", + "title": "cloudkms Encrypt Sample", + "description": "Encrypt encrypts data, so that it can only be recovered by a call to\nDecrypt. The\nCryptoKey.purpose must be\nENCRYPT_DECRYPT.", + "file": "KeyManagementClient/Encrypt/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Encrypt", + "fullName": "google.cloud.kms.v1.KeyManagementClient.Encrypt", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.EncryptRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.EncryptResponse", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "Encrypt", + "fullName": "google.cloud.kms.v1.KeyManagementService.Encrypt", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_GenerateRandomBytes_sync", + "title": "cloudkms GenerateRandomBytes Sample", + "description": "GenerateRandomBytes generate random bytes using the Cloud KMS randomness source in the provided\nlocation.", + "file": "KeyManagementClient/GenerateRandomBytes/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GenerateRandomBytes", + "fullName": "google.cloud.kms.v1.KeyManagementClient.GenerateRandomBytes", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.GenerateRandomBytesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.GenerateRandomBytesResponse", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "GenerateRandomBytes", + "fullName": "google.cloud.kms.v1.KeyManagementService.GenerateRandomBytes", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_GetCryptoKey_sync", + "title": "cloudkms GetCryptoKey Sample", + "description": "GetCryptoKey returns metadata for a given CryptoKey, as\nwell as its primary\nCryptoKeyVersion.", + "file": "KeyManagementClient/GetCryptoKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCryptoKey", + "fullName": "google.cloud.kms.v1.KeyManagementClient.GetCryptoKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.GetCryptoKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.CryptoKey", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "GetCryptoKey", + "fullName": "google.cloud.kms.v1.KeyManagementService.GetCryptoKey", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_GetCryptoKeyVersion_sync", + "title": "cloudkms GetCryptoKeyVersion Sample", + "description": "GetCryptoKeyVersion returns metadata for a given\nCryptoKeyVersion.", + "file": "KeyManagementClient/GetCryptoKeyVersion/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCryptoKeyVersion", + "fullName": "google.cloud.kms.v1.KeyManagementClient.GetCryptoKeyVersion", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.GetCryptoKeyVersionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.CryptoKeyVersion", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "GetCryptoKeyVersion", + "fullName": "google.cloud.kms.v1.KeyManagementService.GetCryptoKeyVersion", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_GetIamPolicy_sync", + "title": "cloudkms GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "KeyManagementClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.kms.v1.KeyManagementClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.kms.v1.KeyManagementService.GetIamPolicy", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_GetImportJob_sync", + "title": "cloudkms GetImportJob Sample", + "description": "GetImportJob returns metadata for a given ImportJob.", + "file": "KeyManagementClient/GetImportJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetImportJob", + "fullName": "google.cloud.kms.v1.KeyManagementClient.GetImportJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.GetImportJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.ImportJob", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "GetImportJob", + "fullName": "google.cloud.kms.v1.KeyManagementService.GetImportJob", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_GetKeyRing_sync", + "title": "cloudkms GetKeyRing Sample", + "description": "GetKeyRing returns metadata for a given KeyRing.", + "file": "KeyManagementClient/GetKeyRing/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetKeyRing", + "fullName": "google.cloud.kms.v1.KeyManagementClient.GetKeyRing", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.GetKeyRingRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.KeyRing", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "GetKeyRing", + "fullName": "google.cloud.kms.v1.KeyManagementService.GetKeyRing", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_GetLocation_sync", + "title": "cloudkms GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "KeyManagementClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.kms.v1.KeyManagementClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.kms.v1.KeyManagementService.GetLocation", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_GetPublicKey_sync", + "title": "cloudkms GetPublicKey Sample", + "description": "GetPublicKey returns the public key for the given\nCryptoKeyVersion. The\nCryptoKey.purpose must be\nASYMMETRIC_SIGN\nor\nASYMMETRIC_DECRYPT.", + "file": "KeyManagementClient/GetPublicKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetPublicKey", + "fullName": "google.cloud.kms.v1.KeyManagementClient.GetPublicKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.GetPublicKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.PublicKey", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "GetPublicKey", + "fullName": "google.cloud.kms.v1.KeyManagementService.GetPublicKey", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_ImportCryptoKeyVersion_sync", + "title": "cloudkms ImportCryptoKeyVersion Sample", + "description": "ImportCryptoKeyVersion import wrapped key material into a\nCryptoKeyVersion.\n\nAll requests must specify a CryptoKey. If\na CryptoKeyVersion is additionally\nspecified in the request, key material will be reimported into that\nversion. Otherwise, a new version will be created, and will be assigned the\nnext sequential id within the CryptoKey.", + "file": "KeyManagementClient/ImportCryptoKeyVersion/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ImportCryptoKeyVersion", + "fullName": "google.cloud.kms.v1.KeyManagementClient.ImportCryptoKeyVersion", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.ImportCryptoKeyVersionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.CryptoKeyVersion", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "ImportCryptoKeyVersion", + "fullName": "google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_ListCryptoKeyVersions_sync", + "title": "cloudkms ListCryptoKeyVersions Sample", + "description": "ListCryptoKeyVersions lists CryptoKeyVersions.", + "file": "KeyManagementClient/ListCryptoKeyVersions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCryptoKeyVersions", + "fullName": "google.cloud.kms.v1.KeyManagementClient.ListCryptoKeyVersions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.ListCryptoKeyVersionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CryptoKeyVersionIterator", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "ListCryptoKeyVersions", + "fullName": "google.cloud.kms.v1.KeyManagementService.ListCryptoKeyVersions", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_ListCryptoKeys_sync", + "title": "cloudkms ListCryptoKeys Sample", + "description": "ListCryptoKeys lists CryptoKeys.", + "file": "KeyManagementClient/ListCryptoKeys/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCryptoKeys", + "fullName": "google.cloud.kms.v1.KeyManagementClient.ListCryptoKeys", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.ListCryptoKeysRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CryptoKeyIterator", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "ListCryptoKeys", + "fullName": "google.cloud.kms.v1.KeyManagementService.ListCryptoKeys", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_ListImportJobs_sync", + "title": "cloudkms ListImportJobs Sample", + "description": "ListImportJobs lists ImportJobs.", + "file": "KeyManagementClient/ListImportJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListImportJobs", + "fullName": "google.cloud.kms.v1.KeyManagementClient.ListImportJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.ListImportJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ImportJobIterator", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "ListImportJobs", + "fullName": "google.cloud.kms.v1.KeyManagementService.ListImportJobs", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_ListKeyRings_sync", + "title": "cloudkms ListKeyRings Sample", + "description": "ListKeyRings lists KeyRings.", + "file": "KeyManagementClient/ListKeyRings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListKeyRings", + "fullName": "google.cloud.kms.v1.KeyManagementClient.ListKeyRings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.ListKeyRingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "KeyRingIterator", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "ListKeyRings", + "fullName": "google.cloud.kms.v1.KeyManagementService.ListKeyRings", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_ListLocations_sync", + "title": "cloudkms ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "KeyManagementClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.kms.v1.KeyManagementClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.kms.v1.KeyManagementService.ListLocations", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_MacSign_sync", + "title": "cloudkms MacSign Sample", + "description": "MacSign signs data using a CryptoKeyVersion\nwith CryptoKey.purpose MAC,\nproducing a tag that can be verified by another source with the same key.", + "file": "KeyManagementClient/MacSign/main.go", + "language": "GO", + "clientMethod": { + "shortName": "MacSign", + "fullName": "google.cloud.kms.v1.KeyManagementClient.MacSign", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.MacSignRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.MacSignResponse", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "MacSign", + "fullName": "google.cloud.kms.v1.KeyManagementService.MacSign", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_MacVerify_sync", + "title": "cloudkms MacVerify Sample", + "description": "MacVerify verifies MAC tag using a\nCryptoKeyVersion with\nCryptoKey.purpose MAC, and returns\na response that indicates whether or not the verification was successful.", + "file": "KeyManagementClient/MacVerify/main.go", + "language": "GO", + "clientMethod": { + "shortName": "MacVerify", + "fullName": "google.cloud.kms.v1.KeyManagementClient.MacVerify", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.MacVerifyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.MacVerifyResponse", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "MacVerify", + "fullName": "google.cloud.kms.v1.KeyManagementService.MacVerify", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_RestoreCryptoKeyVersion_sync", + "title": "cloudkms RestoreCryptoKeyVersion Sample", + "description": "RestoreCryptoKeyVersion restore a CryptoKeyVersion in the\nDESTROY_SCHEDULED\nstate.\n\nUpon restoration of the CryptoKeyVersion,\nstate will be set to\nDISABLED,\nand destroy_time will\nbe cleared.", + "file": "KeyManagementClient/RestoreCryptoKeyVersion/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RestoreCryptoKeyVersion", + "fullName": "google.cloud.kms.v1.KeyManagementClient.RestoreCryptoKeyVersion", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.RestoreCryptoKeyVersionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.CryptoKeyVersion", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "RestoreCryptoKeyVersion", + "fullName": "google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_SetIamPolicy_sync", + "title": "cloudkms SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "KeyManagementClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.kms.v1.KeyManagementClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.kms.v1.KeyManagementService.SetIamPolicy", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_TestIamPermissions_sync", + "title": "cloudkms TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "KeyManagementClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.kms.v1.KeyManagementClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.kms.v1.KeyManagementService.TestIamPermissions", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_UpdateCryptoKey_sync", + "title": "cloudkms UpdateCryptoKey Sample", + "description": "UpdateCryptoKey update a CryptoKey.", + "file": "KeyManagementClient/UpdateCryptoKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCryptoKey", + "fullName": "google.cloud.kms.v1.KeyManagementClient.UpdateCryptoKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.UpdateCryptoKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.CryptoKey", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "UpdateCryptoKey", + "fullName": "google.cloud.kms.v1.KeyManagementService.UpdateCryptoKey", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_UpdateCryptoKeyPrimaryVersion_sync", + "title": "cloudkms UpdateCryptoKeyPrimaryVersion Sample", + "description": "UpdateCryptoKeyPrimaryVersion update the version of a CryptoKey that\nwill be used in\nEncrypt.\n\nReturns an error if called on a key whose purpose is not\nENCRYPT_DECRYPT.", + "file": "KeyManagementClient/UpdateCryptoKeyPrimaryVersion/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCryptoKeyPrimaryVersion", + "fullName": "google.cloud.kms.v1.KeyManagementClient.UpdateCryptoKeyPrimaryVersion", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.UpdateCryptoKeyPrimaryVersionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.CryptoKey", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "UpdateCryptoKeyPrimaryVersion", + "fullName": "google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudkms_v1_generated_KeyManagementService_UpdateCryptoKeyVersion_sync", + "title": "cloudkms UpdateCryptoKeyVersion Sample", + "description": "UpdateCryptoKeyVersion update a CryptoKeyVersion's\nmetadata.\n\nstate may be changed between\nENABLED\nand\nDISABLED\nusing this method. See\nDestroyCryptoKeyVersion\nand\nRestoreCryptoKeyVersion\nto move between other states.", + "file": "KeyManagementClient/UpdateCryptoKeyVersion/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCryptoKeyVersion", + "fullName": "google.cloud.kms.v1.KeyManagementClient.UpdateCryptoKeyVersion", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "kmspb.UpdateCryptoKeyVersionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "kmspb.CryptoKeyVersion", + "client": { + "shortName": "KeyManagementClient", + "fullName": "google.cloud.kms.v1.KeyManagementClient" + }, + "method": { + "shortName": "UpdateCryptoKeyVersion", + "fullName": "google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyVersion", + "service": { + "shortName": "KeyManagementService", + "fullName": "google.cloud.kms.v1.KeyManagementService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/language/apiv1/Client/AnalyzeEntities/main.go b/internal/generated/snippets/language/apiv1/Client/AnalyzeEntities/main.go index fde468db547c..19276f0882a3 100644 --- a/internal/generated/snippets/language/apiv1/Client/AnalyzeEntities/main.go +++ b/internal/generated/snippets/language/apiv1/Client/AnalyzeEntities/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" language "cloud.google.com/go/language/apiv1" - languagepb "google.golang.org/genproto/googleapis/cloud/language/v1" + languagepb "cloud.google.com/go/language/apiv1/languagepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &languagepb.AnalyzeEntitiesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/language/v1#AnalyzeEntitiesRequest. + // See https://pkg.go.dev/cloud.google.com/go/language/apiv1/languagepb#AnalyzeEntitiesRequest. } resp, err := c.AnalyzeEntities(ctx, req) if err != nil { diff --git a/internal/generated/snippets/language/apiv1/Client/AnalyzeEntitySentiment/main.go b/internal/generated/snippets/language/apiv1/Client/AnalyzeEntitySentiment/main.go index f6b8bf26b0b7..eac8f38da97c 100644 --- a/internal/generated/snippets/language/apiv1/Client/AnalyzeEntitySentiment/main.go +++ b/internal/generated/snippets/language/apiv1/Client/AnalyzeEntitySentiment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" language "cloud.google.com/go/language/apiv1" - languagepb "google.golang.org/genproto/googleapis/cloud/language/v1" + languagepb "cloud.google.com/go/language/apiv1/languagepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &languagepb.AnalyzeEntitySentimentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/language/v1#AnalyzeEntitySentimentRequest. + // See https://pkg.go.dev/cloud.google.com/go/language/apiv1/languagepb#AnalyzeEntitySentimentRequest. } resp, err := c.AnalyzeEntitySentiment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/language/apiv1/Client/AnalyzeSentiment/main.go b/internal/generated/snippets/language/apiv1/Client/AnalyzeSentiment/main.go index f912ecfccd07..a63263ad6e8d 100644 --- a/internal/generated/snippets/language/apiv1/Client/AnalyzeSentiment/main.go +++ b/internal/generated/snippets/language/apiv1/Client/AnalyzeSentiment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" language "cloud.google.com/go/language/apiv1" - languagepb "google.golang.org/genproto/googleapis/cloud/language/v1" + languagepb "cloud.google.com/go/language/apiv1/languagepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &languagepb.AnalyzeSentimentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/language/v1#AnalyzeSentimentRequest. + // See https://pkg.go.dev/cloud.google.com/go/language/apiv1/languagepb#AnalyzeSentimentRequest. } resp, err := c.AnalyzeSentiment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/language/apiv1/Client/AnalyzeSyntax/main.go b/internal/generated/snippets/language/apiv1/Client/AnalyzeSyntax/main.go index 10bd61a75537..d59ee7f96de7 100644 --- a/internal/generated/snippets/language/apiv1/Client/AnalyzeSyntax/main.go +++ b/internal/generated/snippets/language/apiv1/Client/AnalyzeSyntax/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" language "cloud.google.com/go/language/apiv1" - languagepb "google.golang.org/genproto/googleapis/cloud/language/v1" + languagepb "cloud.google.com/go/language/apiv1/languagepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &languagepb.AnalyzeSyntaxRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/language/v1#AnalyzeSyntaxRequest. + // See https://pkg.go.dev/cloud.google.com/go/language/apiv1/languagepb#AnalyzeSyntaxRequest. } resp, err := c.AnalyzeSyntax(ctx, req) if err != nil { diff --git a/internal/generated/snippets/language/apiv1/Client/AnnotateText/main.go b/internal/generated/snippets/language/apiv1/Client/AnnotateText/main.go index 396cb84ab16c..33ee16d7d5e0 100644 --- a/internal/generated/snippets/language/apiv1/Client/AnnotateText/main.go +++ b/internal/generated/snippets/language/apiv1/Client/AnnotateText/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" language "cloud.google.com/go/language/apiv1" - languagepb "google.golang.org/genproto/googleapis/cloud/language/v1" + languagepb "cloud.google.com/go/language/apiv1/languagepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &languagepb.AnnotateTextRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/language/v1#AnnotateTextRequest. + // See https://pkg.go.dev/cloud.google.com/go/language/apiv1/languagepb#AnnotateTextRequest. } resp, err := c.AnnotateText(ctx, req) if err != nil { diff --git a/internal/generated/snippets/language/apiv1/Client/ClassifyText/main.go b/internal/generated/snippets/language/apiv1/Client/ClassifyText/main.go index 9507b7906021..fdee5904c7b9 100644 --- a/internal/generated/snippets/language/apiv1/Client/ClassifyText/main.go +++ b/internal/generated/snippets/language/apiv1/Client/ClassifyText/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" language "cloud.google.com/go/language/apiv1" - languagepb "google.golang.org/genproto/googleapis/cloud/language/v1" + languagepb "cloud.google.com/go/language/apiv1/languagepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &languagepb.ClassifyTextRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/language/v1#ClassifyTextRequest. + // See https://pkg.go.dev/cloud.google.com/go/language/apiv1/languagepb#ClassifyTextRequest. } resp, err := c.ClassifyText(ctx, req) if err != nil { diff --git a/internal/generated/snippets/language/apiv1/snippet_metadata.google.cloud.language.v1.json b/internal/generated/snippets/language/apiv1/snippet_metadata.google.cloud.language.v1.json new file mode 100644 index 000000000000..af3d12cf773c --- /dev/null +++ b/internal/generated/snippets/language/apiv1/snippet_metadata.google.cloud.language.v1.json @@ -0,0 +1,291 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/language/apiv1", + "version": "1.9.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.language.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "language_v1_generated_LanguageService_AnalyzeEntities_sync", + "title": "language AnalyzeEntities Sample", + "description": "AnalyzeEntities finds named entities (currently proper names and common nouns) in the text\nalong with entity types, salience, mentions for each entity, and\nother properties.", + "file": "Client/AnalyzeEntities/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AnalyzeEntities", + "fullName": "google.cloud.language.v1.Client.AnalyzeEntities", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "languagepb.AnalyzeEntitiesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "languagepb.AnalyzeEntitiesResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.language.v1.Client" + }, + "method": { + "shortName": "AnalyzeEntities", + "fullName": "google.cloud.language.v1.LanguageService.AnalyzeEntities", + "service": { + "shortName": "LanguageService", + "fullName": "google.cloud.language.v1.LanguageService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "language_v1_generated_LanguageService_AnalyzeEntitySentiment_sync", + "title": "language AnalyzeEntitySentiment Sample", + "description": "AnalyzeEntitySentiment finds entities, similar to AnalyzeEntities in the text and analyzes\nsentiment associated with each entity and its mentions.", + "file": "Client/AnalyzeEntitySentiment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AnalyzeEntitySentiment", + "fullName": "google.cloud.language.v1.Client.AnalyzeEntitySentiment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "languagepb.AnalyzeEntitySentimentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "languagepb.AnalyzeEntitySentimentResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.language.v1.Client" + }, + "method": { + "shortName": "AnalyzeEntitySentiment", + "fullName": "google.cloud.language.v1.LanguageService.AnalyzeEntitySentiment", + "service": { + "shortName": "LanguageService", + "fullName": "google.cloud.language.v1.LanguageService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "language_v1_generated_LanguageService_AnalyzeSentiment_sync", + "title": "language AnalyzeSentiment Sample", + "description": "AnalyzeSentiment analyzes the sentiment of the provided text.", + "file": "Client/AnalyzeSentiment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AnalyzeSentiment", + "fullName": "google.cloud.language.v1.Client.AnalyzeSentiment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "languagepb.AnalyzeSentimentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "languagepb.AnalyzeSentimentResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.language.v1.Client" + }, + "method": { + "shortName": "AnalyzeSentiment", + "fullName": "google.cloud.language.v1.LanguageService.AnalyzeSentiment", + "service": { + "shortName": "LanguageService", + "fullName": "google.cloud.language.v1.LanguageService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "language_v1_generated_LanguageService_AnalyzeSyntax_sync", + "title": "language AnalyzeSyntax Sample", + "description": "AnalyzeSyntax analyzes the syntax of the text and provides sentence boundaries and\ntokenization along with part of speech tags, dependency trees, and other\nproperties.", + "file": "Client/AnalyzeSyntax/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AnalyzeSyntax", + "fullName": "google.cloud.language.v1.Client.AnalyzeSyntax", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "languagepb.AnalyzeSyntaxRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "languagepb.AnalyzeSyntaxResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.language.v1.Client" + }, + "method": { + "shortName": "AnalyzeSyntax", + "fullName": "google.cloud.language.v1.LanguageService.AnalyzeSyntax", + "service": { + "shortName": "LanguageService", + "fullName": "google.cloud.language.v1.LanguageService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "language_v1_generated_LanguageService_AnnotateText_sync", + "title": "language AnnotateText Sample", + "description": "AnnotateText a convenience method that provides all the features that analyzeSentiment,\nanalyzeEntities, and analyzeSyntax provide in one call.", + "file": "Client/AnnotateText/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AnnotateText", + "fullName": "google.cloud.language.v1.Client.AnnotateText", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "languagepb.AnnotateTextRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "languagepb.AnnotateTextResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.language.v1.Client" + }, + "method": { + "shortName": "AnnotateText", + "fullName": "google.cloud.language.v1.LanguageService.AnnotateText", + "service": { + "shortName": "LanguageService", + "fullName": "google.cloud.language.v1.LanguageService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "language_v1_generated_LanguageService_ClassifyText_sync", + "title": "language ClassifyText Sample", + "description": "ClassifyText classifies a document into categories.", + "file": "Client/ClassifyText/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ClassifyText", + "fullName": "google.cloud.language.v1.Client.ClassifyText", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "languagepb.ClassifyTextRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "languagepb.ClassifyTextResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.language.v1.Client" + }, + "method": { + "shortName": "ClassifyText", + "fullName": "google.cloud.language.v1.LanguageService.ClassifyText", + "service": { + "shortName": "LanguageService", + "fullName": "google.cloud.language.v1.LanguageService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeEntities/main.go b/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeEntities/main.go index 2362eccd3ecd..20f0a8fd5534 100644 --- a/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeEntities/main.go +++ b/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeEntities/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" language "cloud.google.com/go/language/apiv1beta2" - languagepb "google.golang.org/genproto/googleapis/cloud/language/v1beta2" + languagepb "cloud.google.com/go/language/apiv1beta2/languagepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &languagepb.AnalyzeEntitiesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/language/v1beta2#AnalyzeEntitiesRequest. + // See https://pkg.go.dev/cloud.google.com/go/language/apiv1beta2/languagepb#AnalyzeEntitiesRequest. } resp, err := c.AnalyzeEntities(ctx, req) if err != nil { diff --git a/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeEntitySentiment/main.go b/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeEntitySentiment/main.go index 2f925308baca..aa4783856267 100644 --- a/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeEntitySentiment/main.go +++ b/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeEntitySentiment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" language "cloud.google.com/go/language/apiv1beta2" - languagepb "google.golang.org/genproto/googleapis/cloud/language/v1beta2" + languagepb "cloud.google.com/go/language/apiv1beta2/languagepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &languagepb.AnalyzeEntitySentimentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/language/v1beta2#AnalyzeEntitySentimentRequest. + // See https://pkg.go.dev/cloud.google.com/go/language/apiv1beta2/languagepb#AnalyzeEntitySentimentRequest. } resp, err := c.AnalyzeEntitySentiment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeSentiment/main.go b/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeSentiment/main.go index 0ae5c699f546..d7d17c061730 100644 --- a/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeSentiment/main.go +++ b/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeSentiment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" language "cloud.google.com/go/language/apiv1beta2" - languagepb "google.golang.org/genproto/googleapis/cloud/language/v1beta2" + languagepb "cloud.google.com/go/language/apiv1beta2/languagepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &languagepb.AnalyzeSentimentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/language/v1beta2#AnalyzeSentimentRequest. + // See https://pkg.go.dev/cloud.google.com/go/language/apiv1beta2/languagepb#AnalyzeSentimentRequest. } resp, err := c.AnalyzeSentiment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeSyntax/main.go b/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeSyntax/main.go index 962216c250fb..f75d30b36bd1 100644 --- a/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeSyntax/main.go +++ b/internal/generated/snippets/language/apiv1beta2/Client/AnalyzeSyntax/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" language "cloud.google.com/go/language/apiv1beta2" - languagepb "google.golang.org/genproto/googleapis/cloud/language/v1beta2" + languagepb "cloud.google.com/go/language/apiv1beta2/languagepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &languagepb.AnalyzeSyntaxRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/language/v1beta2#AnalyzeSyntaxRequest. + // See https://pkg.go.dev/cloud.google.com/go/language/apiv1beta2/languagepb#AnalyzeSyntaxRequest. } resp, err := c.AnalyzeSyntax(ctx, req) if err != nil { diff --git a/internal/generated/snippets/language/apiv1beta2/Client/AnnotateText/main.go b/internal/generated/snippets/language/apiv1beta2/Client/AnnotateText/main.go index 5be027ec039a..55e3963285bd 100644 --- a/internal/generated/snippets/language/apiv1beta2/Client/AnnotateText/main.go +++ b/internal/generated/snippets/language/apiv1beta2/Client/AnnotateText/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" language "cloud.google.com/go/language/apiv1beta2" - languagepb "google.golang.org/genproto/googleapis/cloud/language/v1beta2" + languagepb "cloud.google.com/go/language/apiv1beta2/languagepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &languagepb.AnnotateTextRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/language/v1beta2#AnnotateTextRequest. + // See https://pkg.go.dev/cloud.google.com/go/language/apiv1beta2/languagepb#AnnotateTextRequest. } resp, err := c.AnnotateText(ctx, req) if err != nil { diff --git a/internal/generated/snippets/language/apiv1beta2/Client/ClassifyText/main.go b/internal/generated/snippets/language/apiv1beta2/Client/ClassifyText/main.go index ddbe20125bbf..bc8459ad61fd 100644 --- a/internal/generated/snippets/language/apiv1beta2/Client/ClassifyText/main.go +++ b/internal/generated/snippets/language/apiv1beta2/Client/ClassifyText/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" language "cloud.google.com/go/language/apiv1beta2" - languagepb "google.golang.org/genproto/googleapis/cloud/language/v1beta2" + languagepb "cloud.google.com/go/language/apiv1beta2/languagepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := language.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &languagepb.ClassifyTextRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/language/v1beta2#ClassifyTextRequest. + // See https://pkg.go.dev/cloud.google.com/go/language/apiv1beta2/languagepb#ClassifyTextRequest. } resp, err := c.ClassifyText(ctx, req) if err != nil { diff --git a/internal/generated/snippets/language/apiv1beta2/snippet_metadata.google.cloud.language.v1beta2.json b/internal/generated/snippets/language/apiv1beta2/snippet_metadata.google.cloud.language.v1beta2.json new file mode 100644 index 000000000000..d8ebadc5af5a --- /dev/null +++ b/internal/generated/snippets/language/apiv1beta2/snippet_metadata.google.cloud.language.v1beta2.json @@ -0,0 +1,291 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/language/apiv1beta2", + "version": "1.9.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.language.v1beta2", + "version": "v1beta2" + } + ] + }, + "snippets": [ + { + "regionTag": "language_v1beta2_generated_LanguageService_AnalyzeEntities_sync", + "title": "language AnalyzeEntities Sample", + "description": "AnalyzeEntities finds named entities (currently proper names and common nouns) in the text\nalong with entity types, salience, mentions for each entity, and\nother properties.", + "file": "Client/AnalyzeEntities/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AnalyzeEntities", + "fullName": "google.cloud.language.v1beta2.Client.AnalyzeEntities", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "languagepb.AnalyzeEntitiesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "languagepb.AnalyzeEntitiesResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.language.v1beta2.Client" + }, + "method": { + "shortName": "AnalyzeEntities", + "fullName": "google.cloud.language.v1beta2.LanguageService.AnalyzeEntities", + "service": { + "shortName": "LanguageService", + "fullName": "google.cloud.language.v1beta2.LanguageService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "language_v1beta2_generated_LanguageService_AnalyzeEntitySentiment_sync", + "title": "language AnalyzeEntitySentiment Sample", + "description": "AnalyzeEntitySentiment finds entities, similar to AnalyzeEntities in the text and analyzes\nsentiment associated with each entity and its mentions.", + "file": "Client/AnalyzeEntitySentiment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AnalyzeEntitySentiment", + "fullName": "google.cloud.language.v1beta2.Client.AnalyzeEntitySentiment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "languagepb.AnalyzeEntitySentimentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "languagepb.AnalyzeEntitySentimentResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.language.v1beta2.Client" + }, + "method": { + "shortName": "AnalyzeEntitySentiment", + "fullName": "google.cloud.language.v1beta2.LanguageService.AnalyzeEntitySentiment", + "service": { + "shortName": "LanguageService", + "fullName": "google.cloud.language.v1beta2.LanguageService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "language_v1beta2_generated_LanguageService_AnalyzeSentiment_sync", + "title": "language AnalyzeSentiment Sample", + "description": "AnalyzeSentiment analyzes the sentiment of the provided text.", + "file": "Client/AnalyzeSentiment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AnalyzeSentiment", + "fullName": "google.cloud.language.v1beta2.Client.AnalyzeSentiment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "languagepb.AnalyzeSentimentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "languagepb.AnalyzeSentimentResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.language.v1beta2.Client" + }, + "method": { + "shortName": "AnalyzeSentiment", + "fullName": "google.cloud.language.v1beta2.LanguageService.AnalyzeSentiment", + "service": { + "shortName": "LanguageService", + "fullName": "google.cloud.language.v1beta2.LanguageService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "language_v1beta2_generated_LanguageService_AnalyzeSyntax_sync", + "title": "language AnalyzeSyntax Sample", + "description": "AnalyzeSyntax analyzes the syntax of the text and provides sentence boundaries and\ntokenization along with part of speech tags, dependency trees, and other\nproperties.", + "file": "Client/AnalyzeSyntax/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AnalyzeSyntax", + "fullName": "google.cloud.language.v1beta2.Client.AnalyzeSyntax", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "languagepb.AnalyzeSyntaxRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "languagepb.AnalyzeSyntaxResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.language.v1beta2.Client" + }, + "method": { + "shortName": "AnalyzeSyntax", + "fullName": "google.cloud.language.v1beta2.LanguageService.AnalyzeSyntax", + "service": { + "shortName": "LanguageService", + "fullName": "google.cloud.language.v1beta2.LanguageService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "language_v1beta2_generated_LanguageService_AnnotateText_sync", + "title": "language AnnotateText Sample", + "description": "AnnotateText a convenience method that provides all syntax, sentiment, entity, and\nclassification features in one call.", + "file": "Client/AnnotateText/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AnnotateText", + "fullName": "google.cloud.language.v1beta2.Client.AnnotateText", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "languagepb.AnnotateTextRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "languagepb.AnnotateTextResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.language.v1beta2.Client" + }, + "method": { + "shortName": "AnnotateText", + "fullName": "google.cloud.language.v1beta2.LanguageService.AnnotateText", + "service": { + "shortName": "LanguageService", + "fullName": "google.cloud.language.v1beta2.LanguageService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "language_v1beta2_generated_LanguageService_ClassifyText_sync", + "title": "language ClassifyText Sample", + "description": "ClassifyText classifies a document into categories.", + "file": "Client/ClassifyText/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ClassifyText", + "fullName": "google.cloud.language.v1beta2.Client.ClassifyText", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "languagepb.ClassifyTextRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "languagepb.ClassifyTextResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.language.v1beta2.Client" + }, + "method": { + "shortName": "ClassifyText", + "fullName": "google.cloud.language.v1beta2.LanguageService.ClassifyText", + "service": { + "shortName": "LanguageService", + "fullName": "google.cloud.language.v1beta2.LanguageService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/CancelOperation/main.go b/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/CancelOperation/main.go new file mode 100644 index 000000000000..9ec4ad129706 --- /dev/null +++ b/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START lifesciences_v2beta_generated_WorkflowsServiceV2Beta_CancelOperation_sync] + +package main + +import ( + "context" + + lifesciences "cloud.google.com/go/lifesciences/apiv2beta" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := lifesciences.NewWorkflowsServiceV2BetaClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END lifesciences_v2beta_generated_WorkflowsServiceV2Beta_CancelOperation_sync] diff --git a/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/GetLocation/main.go b/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/GetLocation/main.go new file mode 100644 index 000000000000..0dec04971e75 --- /dev/null +++ b/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START lifesciences_v2beta_generated_WorkflowsServiceV2Beta_GetLocation_sync] + +package main + +import ( + "context" + + lifesciences "cloud.google.com/go/lifesciences/apiv2beta" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := lifesciences.NewWorkflowsServiceV2BetaClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END lifesciences_v2beta_generated_WorkflowsServiceV2Beta_GetLocation_sync] diff --git a/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/GetOperation/main.go b/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/GetOperation/main.go new file mode 100644 index 000000000000..074a296b15c8 --- /dev/null +++ b/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START lifesciences_v2beta_generated_WorkflowsServiceV2Beta_GetOperation_sync] + +package main + +import ( + "context" + + lifesciences "cloud.google.com/go/lifesciences/apiv2beta" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := lifesciences.NewWorkflowsServiceV2BetaClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END lifesciences_v2beta_generated_WorkflowsServiceV2Beta_GetOperation_sync] diff --git a/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/ListLocations/main.go b/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/ListLocations/main.go new file mode 100644 index 000000000000..7deec2424751 --- /dev/null +++ b/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START lifesciences_v2beta_generated_WorkflowsServiceV2Beta_ListLocations_sync] + +package main + +import ( + "context" + + lifesciences "cloud.google.com/go/lifesciences/apiv2beta" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := lifesciences.NewWorkflowsServiceV2BetaClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END lifesciences_v2beta_generated_WorkflowsServiceV2Beta_ListLocations_sync] diff --git a/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/ListOperations/main.go b/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/ListOperations/main.go new file mode 100644 index 000000000000..3fb2b58cde7f --- /dev/null +++ b/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START lifesciences_v2beta_generated_WorkflowsServiceV2Beta_ListOperations_sync] + +package main + +import ( + "context" + + lifesciences "cloud.google.com/go/lifesciences/apiv2beta" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := lifesciences.NewWorkflowsServiceV2BetaClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END lifesciences_v2beta_generated_WorkflowsServiceV2Beta_ListOperations_sync] diff --git a/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/RunPipeline/main.go b/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/RunPipeline/main.go index 41fed7d89e09..b00dd4231ffd 100644 --- a/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/RunPipeline/main.go +++ b/internal/generated/snippets/lifesciences/apiv2beta/WorkflowsServiceV2BetaClient/RunPipeline/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" lifesciences "cloud.google.com/go/lifesciences/apiv2beta" - lifesciencespb "google.golang.org/genproto/googleapis/cloud/lifesciences/v2beta" + lifesciencespb "cloud.google.com/go/lifesciences/apiv2beta/lifesciencespb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := lifesciences.NewWorkflowsServiceV2BetaClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &lifesciencespb.RunPipelineRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/lifesciences/v2beta#RunPipelineRequest. + // See https://pkg.go.dev/cloud.google.com/go/lifesciences/apiv2beta/lifesciencespb#RunPipelineRequest. } op, err := c.RunPipeline(ctx, req) if err != nil { diff --git a/internal/generated/snippets/lifesciences/apiv2beta/snippet_metadata.google.cloud.lifesciences.v2beta.json b/internal/generated/snippets/lifesciences/apiv2beta/snippet_metadata.google.cloud.lifesciences.v2beta.json new file mode 100644 index 000000000000..0fcac87db137 --- /dev/null +++ b/internal/generated/snippets/lifesciences/apiv2beta/snippet_metadata.google.cloud.lifesciences.v2beta.json @@ -0,0 +1,290 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/lifesciences/apiv2beta", + "version": "0.8.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.lifesciences.v2beta", + "version": "v2beta" + } + ] + }, + "snippets": [ + { + "regionTag": "lifesciences_v2beta_generated_WorkflowsServiceV2Beta_CancelOperation_sync", + "title": "lifesciences CancelOperation Sample", + "description": "CancelOperation starts asynchronous cancellation on a long-running operation. The\nserver makes a best effort to cancel the operation, but success is\nnot guaranteed. Clients may use\nOperations.GetOperation or\nOperations.ListOperations to\ncheck whether the cancellation succeeded or the operation completed\ndespite cancellation.\nAuthorization requires the following Google\nIAM (at https: //cloud.google.com/iam) permission: \n\n\tlifesciences.operations.cancel", + "file": "WorkflowsServiceV2BetaClient/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaClient.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "WorkflowsServiceV2BetaClient", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2Beta.CancelOperation", + "service": { + "shortName": "WorkflowsServiceV2Beta", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2Beta" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "lifesciences_v2beta_generated_WorkflowsServiceV2Beta_GetLocation_sync", + "title": "lifesciences GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "WorkflowsServiceV2BetaClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "WorkflowsServiceV2BetaClient", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2Beta.GetLocation", + "service": { + "shortName": "WorkflowsServiceV2Beta", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2Beta" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "lifesciences_v2beta_generated_WorkflowsServiceV2Beta_GetOperation_sync", + "title": "lifesciences GetOperation Sample", + "description": "GetOperation gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the\nAPI service.\nAuthorization requires the following Google\nIAM (at https: //cloud.google.com/iam) permission: \n\n\tlifesciences.operations.get", + "file": "WorkflowsServiceV2BetaClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "WorkflowsServiceV2BetaClient", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2Beta.GetOperation", + "service": { + "shortName": "WorkflowsServiceV2Beta", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2Beta" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "lifesciences_v2beta_generated_WorkflowsServiceV2Beta_ListLocations_sync", + "title": "lifesciences ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "WorkflowsServiceV2BetaClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "WorkflowsServiceV2BetaClient", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2Beta.ListLocations", + "service": { + "shortName": "WorkflowsServiceV2Beta", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2Beta" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "lifesciences_v2beta_generated_WorkflowsServiceV2Beta_ListOperations_sync", + "title": "lifesciences ListOperations Sample", + "description": "ListOperations lists operations that match the specified filter in the\nrequest. Authorization requires the following Google\nIAM (at https: //cloud.google.com/iam) permission: \n\n\tlifesciences.operations.list", + "file": "WorkflowsServiceV2BetaClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "WorkflowsServiceV2BetaClient", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2Beta.ListOperations", + "service": { + "shortName": "WorkflowsServiceV2Beta", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2Beta" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "lifesciences_v2beta_generated_WorkflowsServiceV2Beta_RunPipeline_sync", + "title": "lifesciences RunPipeline Sample", + "description": "RunPipeline runs a pipeline. The returned Operation’s [metadata]\n[google.longrunning.Operation.metadata] field will contain a\ngoogle.cloud.lifesciences.v2beta.Metadata object describing the status\nof the pipeline execution. The\nresponse field will contain a\ngoogle.cloud.lifesciences.v2beta.RunPipelineResponse object if the\npipeline completes successfully.\n\nNote: Before you can use this method, the Life Sciences Service Agent\nmust have access to your project. This is done automatically when the\nCloud Life Sciences API is first enabled, but if you delete this permission\nyou must disable and re-enable the API to grant the Life Sciences\nService Agent the required permissions.\nAuthorization requires the following Google\nIAM (at https: //cloud.google.com/iam/) permission: \n\n\tlifesciences.workflows.run", + "file": "WorkflowsServiceV2BetaClient/RunPipeline/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RunPipeline", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaClient.RunPipeline", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "lifesciencespb.RunPipelineRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RunPipelineOperation", + "client": { + "shortName": "WorkflowsServiceV2BetaClient", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaClient" + }, + "method": { + "shortName": "RunPipeline", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2Beta.RunPipeline", + "service": { + "shortName": "WorkflowsServiceV2Beta", + "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2Beta" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/logging/apiv2/Client/DeleteLog/main.go b/internal/generated/snippets/logging/apiv2/Client/DeleteLog/main.go index bab9496be4bc..8f39c0d5b1e9 100644 --- a/internal/generated/snippets/logging/apiv2/Client/DeleteLog/main.go +++ b/internal/generated/snippets/logging/apiv2/Client/DeleteLog/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.DeleteLogRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#DeleteLogRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#DeleteLogRequest. } err = c.DeleteLog(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/Client/ListLogEntries/main.go b/internal/generated/snippets/logging/apiv2/Client/ListLogEntries/main.go index b9e674f1eb03..ed2957c723d4 100644 --- a/internal/generated/snippets/logging/apiv2/Client/ListLogEntries/main.go +++ b/internal/generated/snippets/logging/apiv2/Client/ListLogEntries/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" "google.golang.org/api/iterator" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &loggingpb.ListLogEntriesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#ListLogEntriesRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#ListLogEntriesRequest. } it := c.ListLogEntries(ctx, req) for { diff --git a/internal/generated/snippets/logging/apiv2/Client/ListLogs/main.go b/internal/generated/snippets/logging/apiv2/Client/ListLogs/main.go index b4918b2f2891..a4eae19a876a 100644 --- a/internal/generated/snippets/logging/apiv2/Client/ListLogs/main.go +++ b/internal/generated/snippets/logging/apiv2/Client/ListLogs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" "google.golang.org/api/iterator" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &loggingpb.ListLogsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#ListLogsRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#ListLogsRequest. } it := c.ListLogs(ctx, req) for { diff --git a/internal/generated/snippets/logging/apiv2/Client/ListMonitoredResourceDescriptors/main.go b/internal/generated/snippets/logging/apiv2/Client/ListMonitoredResourceDescriptors/main.go index 52a6132ccd14..00810241c64a 100644 --- a/internal/generated/snippets/logging/apiv2/Client/ListMonitoredResourceDescriptors/main.go +++ b/internal/generated/snippets/logging/apiv2/Client/ListMonitoredResourceDescriptors/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" "google.golang.org/api/iterator" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &loggingpb.ListMonitoredResourceDescriptorsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#ListMonitoredResourceDescriptorsRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#ListMonitoredResourceDescriptorsRequest. } it := c.ListMonitoredResourceDescriptors(ctx, req) for { diff --git a/internal/generated/snippets/logging/apiv2/Client/TailLogEntries/main.go b/internal/generated/snippets/logging/apiv2/Client/TailLogEntries/main.go index 63b53ae03cbd..fd60c09c0d7b 100644 --- a/internal/generated/snippets/logging/apiv2/Client/TailLogEntries/main.go +++ b/internal/generated/snippets/logging/apiv2/Client/TailLogEntries/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,11 +23,16 @@ import ( "io" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/logging/apiv2/Client/WriteLogEntries/main.go b/internal/generated/snippets/logging/apiv2/Client/WriteLogEntries/main.go index faccda27a13a..ba15a41c9d25 100644 --- a/internal/generated/snippets/logging/apiv2/Client/WriteLogEntries/main.go +++ b/internal/generated/snippets/logging/apiv2/Client/WriteLogEntries/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.WriteLogEntriesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#WriteLogEntriesRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#WriteLogEntriesRequest. } resp, err := c.WriteLogEntries(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/CopyLogEntries/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/CopyLogEntries/main.go index b03cf0aeaa23..50b648ece948 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/CopyLogEntries/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/CopyLogEntries/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.CopyLogEntriesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#CopyLogEntriesRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#CopyLogEntriesRequest. } op, err := c.CopyLogEntries(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/CreateBucket/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/CreateBucket/main.go index 3f0569674bed..3bbf4d65e0f1 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/CreateBucket/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/CreateBucket/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.CreateBucketRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#CreateBucketRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#CreateBucketRequest. } resp, err := c.CreateBucket(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/CreateExclusion/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/CreateExclusion/main.go index 4fee768d4e8c..1c513994e5f2 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/CreateExclusion/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/CreateExclusion/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.CreateExclusionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#CreateExclusionRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#CreateExclusionRequest. } resp, err := c.CreateExclusion(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/CreateSink/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/CreateSink/main.go index a760da2b865a..a7dd8a929c7b 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/CreateSink/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/CreateSink/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.CreateSinkRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#CreateSinkRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#CreateSinkRequest. } resp, err := c.CreateSink(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/CreateView/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/CreateView/main.go index 06030b2f208d..cedd4052cd0c 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/CreateView/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/CreateView/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.CreateViewRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#CreateViewRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#CreateViewRequest. } resp, err := c.CreateView(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteBucket/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteBucket/main.go index d704ab662cbf..c5ba155dc699 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteBucket/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteBucket/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.DeleteBucketRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#DeleteBucketRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#DeleteBucketRequest. } err = c.DeleteBucket(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteExclusion/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteExclusion/main.go index 7808d067c6b4..dc1edf1535ee 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteExclusion/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteExclusion/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.DeleteExclusionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#DeleteExclusionRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#DeleteExclusionRequest. } err = c.DeleteExclusion(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteSink/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteSink/main.go index f6cb093dd954..75d6d5f1eb25 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteSink/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteSink/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.DeleteSinkRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#DeleteSinkRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#DeleteSinkRequest. } err = c.DeleteSink(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteView/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteView/main.go index 1af8dbf8ca43..f445653b23b4 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteView/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/DeleteView/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.DeleteViewRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#DeleteViewRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#DeleteViewRequest. } err = c.DeleteView(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/GetBucket/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/GetBucket/main.go index f3424462b5ef..329e50efbade 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/GetBucket/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/GetBucket/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.GetBucketRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#GetBucketRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#GetBucketRequest. } resp, err := c.GetBucket(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/GetCmekSettings/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/GetCmekSettings/main.go index f8277e35c607..427088026124 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/GetCmekSettings/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/GetCmekSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.GetCmekSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#GetCmekSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#GetCmekSettingsRequest. } resp, err := c.GetCmekSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/GetExclusion/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/GetExclusion/main.go index ddb35dbb4858..4951911f147b 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/GetExclusion/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/GetExclusion/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.GetExclusionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#GetExclusionRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#GetExclusionRequest. } resp, err := c.GetExclusion(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/GetSettings/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/GetSettings/main.go index 8576074f758a..1d6032da36d8 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/GetSettings/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/GetSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.GetSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#GetSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#GetSettingsRequest. } resp, err := c.GetSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/GetSink/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/GetSink/main.go index 75244ed396d6..289946e9481e 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/GetSink/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/GetSink/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.GetSinkRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#GetSinkRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#GetSinkRequest. } resp, err := c.GetSink(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/GetView/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/GetView/main.go index f5a3d8a73722..6244051c4836 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/GetView/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/GetView/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.GetViewRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#GetViewRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#GetViewRequest. } resp, err := c.GetView(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/ListBuckets/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/ListBuckets/main.go index 2b98e7e3c0a6..83283200cd2e 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/ListBuckets/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/ListBuckets/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" "google.golang.org/api/iterator" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &loggingpb.ListBucketsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#ListBucketsRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#ListBucketsRequest. } it := c.ListBuckets(ctx, req) for { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/ListExclusions/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/ListExclusions/main.go index 5ec17bb12475..6429897abd56 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/ListExclusions/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/ListExclusions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" "google.golang.org/api/iterator" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &loggingpb.ListExclusionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#ListExclusionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#ListExclusionsRequest. } it := c.ListExclusions(ctx, req) for { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/ListSinks/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/ListSinks/main.go index 448138d26882..3d394dfae7cf 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/ListSinks/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/ListSinks/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" "google.golang.org/api/iterator" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &loggingpb.ListSinksRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#ListSinksRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#ListSinksRequest. } it := c.ListSinks(ctx, req) for { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/ListViews/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/ListViews/main.go index 07ceb00915a8..423aec5e645b 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/ListViews/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/ListViews/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" "google.golang.org/api/iterator" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &loggingpb.ListViewsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#ListViewsRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#ListViewsRequest. } it := c.ListViews(ctx, req) for { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/UndeleteBucket/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/UndeleteBucket/main.go index 6bf0cffa953d..3f0d2bc45d80 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/UndeleteBucket/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/UndeleteBucket/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.UndeleteBucketRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#UndeleteBucketRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#UndeleteBucketRequest. } err = c.UndeleteBucket(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateBucket/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateBucket/main.go index 414a87f23306..e943a5ac0a5e 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateBucket/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateBucket/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.UpdateBucketRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#UpdateBucketRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#UpdateBucketRequest. } resp, err := c.UpdateBucket(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateCmekSettings/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateCmekSettings/main.go index 711ccf921137..a98d43fe8f0a 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateCmekSettings/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateCmekSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.UpdateCmekSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#UpdateCmekSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#UpdateCmekSettingsRequest. } resp, err := c.UpdateCmekSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateExclusion/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateExclusion/main.go index c787a60a2d72..21b145118cf1 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateExclusion/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateExclusion/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.UpdateExclusionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#UpdateExclusionRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#UpdateExclusionRequest. } resp, err := c.UpdateExclusion(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateSettings/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateSettings/main.go index 674f44998a99..ddafd12736af 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateSettings/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.UpdateSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#UpdateSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#UpdateSettingsRequest. } resp, err := c.UpdateSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateSink/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateSink/main.go index 169ce703e638..270296a6d34b 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateSink/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateSink/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.UpdateSinkRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#UpdateSinkRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#UpdateSinkRequest. } resp, err := c.UpdateSink(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateView/main.go b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateView/main.go index 4abd4e99b1d5..95325b3b220f 100644 --- a/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateView/main.go +++ b/internal/generated/snippets/logging/apiv2/ConfigClient/UpdateView/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewConfigClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.UpdateViewRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#UpdateViewRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#UpdateViewRequest. } resp, err := c.UpdateView(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/MetricsClient/CreateLogMetric/main.go b/internal/generated/snippets/logging/apiv2/MetricsClient/CreateLogMetric/main.go index d678b01fd5b1..3f9c055e7d12 100644 --- a/internal/generated/snippets/logging/apiv2/MetricsClient/CreateLogMetric/main.go +++ b/internal/generated/snippets/logging/apiv2/MetricsClient/CreateLogMetric/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewMetricsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.CreateLogMetricRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#CreateLogMetricRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#CreateLogMetricRequest. } resp, err := c.CreateLogMetric(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/MetricsClient/DeleteLogMetric/main.go b/internal/generated/snippets/logging/apiv2/MetricsClient/DeleteLogMetric/main.go index c26a88481cae..a1b7800656d0 100644 --- a/internal/generated/snippets/logging/apiv2/MetricsClient/DeleteLogMetric/main.go +++ b/internal/generated/snippets/logging/apiv2/MetricsClient/DeleteLogMetric/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewMetricsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.DeleteLogMetricRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#DeleteLogMetricRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#DeleteLogMetricRequest. } err = c.DeleteLogMetric(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/MetricsClient/GetLogMetric/main.go b/internal/generated/snippets/logging/apiv2/MetricsClient/GetLogMetric/main.go index 882092dfa507..19947d8d55d0 100644 --- a/internal/generated/snippets/logging/apiv2/MetricsClient/GetLogMetric/main.go +++ b/internal/generated/snippets/logging/apiv2/MetricsClient/GetLogMetric/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewMetricsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.GetLogMetricRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#GetLogMetricRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#GetLogMetricRequest. } resp, err := c.GetLogMetric(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/MetricsClient/ListLogMetrics/main.go b/internal/generated/snippets/logging/apiv2/MetricsClient/ListLogMetrics/main.go index a49062db08a1..66d14b4ecd49 100644 --- a/internal/generated/snippets/logging/apiv2/MetricsClient/ListLogMetrics/main.go +++ b/internal/generated/snippets/logging/apiv2/MetricsClient/ListLogMetrics/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" "google.golang.org/api/iterator" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewMetricsClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &loggingpb.ListLogMetricsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#ListLogMetricsRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#ListLogMetricsRequest. } it := c.ListLogMetrics(ctx, req) for { diff --git a/internal/generated/snippets/logging/apiv2/MetricsClient/UpdateLogMetric/main.go b/internal/generated/snippets/logging/apiv2/MetricsClient/UpdateLogMetric/main.go index a57cdb0953a3..c07a3b866181 100644 --- a/internal/generated/snippets/logging/apiv2/MetricsClient/UpdateLogMetric/main.go +++ b/internal/generated/snippets/logging/apiv2/MetricsClient/UpdateLogMetric/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" logging "cloud.google.com/go/logging/apiv2" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := logging.NewMetricsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &loggingpb.UpdateLogMetricRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#UpdateLogMetricRequest. + // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#UpdateLogMetricRequest. } resp, err := c.UpdateLogMetric(ctx, req) if err != nil { diff --git a/internal/generated/snippets/logging/apiv2/snippet_metadata.google.logging.v2.json b/internal/generated/snippets/logging/apiv2/snippet_metadata.google.logging.v2.json new file mode 100644 index 000000000000..8535f2745170 --- /dev/null +++ b/internal/generated/snippets/logging/apiv2/snippet_metadata.google.logging.v2.json @@ -0,0 +1,1705 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/logging/apiv2", + "version": "1.6.1", + "language": "GO", + "apis": [ + { + "id": "google.logging.v2", + "version": "v2" + } + ] + }, + "snippets": [ + { + "regionTag": "logging_v2_generated_LoggingServiceV2_DeleteLog_sync", + "title": "logging DeleteLog Sample", + "description": "DeleteLog deletes all the log entries in a log for the _Default Log Bucket. The log\nreappears if it receives new entries. Log entries written shortly before\nthe delete operation might not be deleted. Entries received after the\ndelete operation with a timestamp before the operation will be deleted.", + "file": "Client/DeleteLog/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteLog", + "fullName": "google.logging.v2.Client.DeleteLog", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.DeleteLogRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.logging.v2.Client" + }, + "method": { + "shortName": "DeleteLog", + "fullName": "google.logging.v2.LoggingServiceV2.DeleteLog", + "service": { + "shortName": "LoggingServiceV2", + "fullName": "google.logging.v2.LoggingServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_LoggingServiceV2_ListLogEntries_sync", + "title": "logging ListLogEntries Sample", + "description": "ListLogEntries lists log entries. Use this method to retrieve log entries that originated\nfrom a project/folder/organization/billing account. For ways to export log\nentries, see Exporting\nLogs (at https: //cloud.google.com/logging/docs/export).", + "file": "Client/ListLogEntries/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLogEntries", + "fullName": "google.logging.v2.Client.ListLogEntries", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.ListLogEntriesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LogEntryIterator", + "client": { + "shortName": "Client", + "fullName": "google.logging.v2.Client" + }, + "method": { + "shortName": "ListLogEntries", + "fullName": "google.logging.v2.LoggingServiceV2.ListLogEntries", + "service": { + "shortName": "LoggingServiceV2", + "fullName": "google.logging.v2.LoggingServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_LoggingServiceV2_ListLogs_sync", + "title": "logging ListLogs Sample", + "description": "ListLogs lists the logs in projects, organizations, folders, or billing accounts.\nOnly logs that have entries are listed.", + "file": "Client/ListLogs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLogs", + "fullName": "google.logging.v2.Client.ListLogs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.ListLogsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "StringIterator", + "client": { + "shortName": "Client", + "fullName": "google.logging.v2.Client" + }, + "method": { + "shortName": "ListLogs", + "fullName": "google.logging.v2.LoggingServiceV2.ListLogs", + "service": { + "shortName": "LoggingServiceV2", + "fullName": "google.logging.v2.LoggingServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_LoggingServiceV2_ListMonitoredResourceDescriptors_sync", + "title": "logging ListMonitoredResourceDescriptors Sample", + "description": "ListMonitoredResourceDescriptors lists the descriptors for monitored resource types used by Logging.", + "file": "Client/ListMonitoredResourceDescriptors/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListMonitoredResourceDescriptors", + "fullName": "google.logging.v2.Client.ListMonitoredResourceDescriptors", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.ListMonitoredResourceDescriptorsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "MonitoredResourceDescriptorIterator", + "client": { + "shortName": "Client", + "fullName": "google.logging.v2.Client" + }, + "method": { + "shortName": "ListMonitoredResourceDescriptors", + "fullName": "google.logging.v2.LoggingServiceV2.ListMonitoredResourceDescriptors", + "service": { + "shortName": "LoggingServiceV2", + "fullName": "google.logging.v2.LoggingServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_LoggingServiceV2_TailLogEntries_sync", + "title": "logging TailLogEntries Sample", + "description": "TailLogEntries streaming read of log entries as they are ingested. Until the stream is\nterminated, it will continue reading logs.", + "file": "Client/TailLogEntries/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TailLogEntries", + "fullName": "google.logging.v2.Client.TailLogEntries", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.logging.v2.Client" + }, + "method": { + "shortName": "TailLogEntries", + "fullName": "google.logging.v2.LoggingServiceV2.TailLogEntries", + "service": { + "shortName": "LoggingServiceV2", + "fullName": "google.logging.v2.LoggingServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 69, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_LoggingServiceV2_WriteLogEntries_sync", + "title": "logging WriteLogEntries Sample", + "description": "WriteLogEntries writes log entries to Logging. This API method is the\nonly way to send log entries to Logging. This method\nis used, directly or indirectly, by the Logging agent\n(fluentd) and all logging libraries configured to use Logging.\nA single request may contain log entries for a maximum of 1000\ndifferent resources (projects, organizations, billing accounts or\nfolders)", + "file": "Client/WriteLogEntries/main.go", + "language": "GO", + "clientMethod": { + "shortName": "WriteLogEntries", + "fullName": "google.logging.v2.Client.WriteLogEntries", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.WriteLogEntriesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.WriteLogEntriesResponse", + "client": { + "shortName": "Client", + "fullName": "google.logging.v2.Client" + }, + "method": { + "shortName": "WriteLogEntries", + "fullName": "google.logging.v2.LoggingServiceV2.WriteLogEntries", + "service": { + "shortName": "LoggingServiceV2", + "fullName": "google.logging.v2.LoggingServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_CopyLogEntries_sync", + "title": "logging CopyLogEntries Sample", + "description": "CopyLogEntries copies a set of log entries from a log bucket to a Cloud Storage bucket.", + "file": "ConfigClient/CopyLogEntries/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CopyLogEntries", + "fullName": "google.logging.v2.ConfigClient.CopyLogEntries", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.CopyLogEntriesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CopyLogEntriesOperation", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "CopyLogEntries", + "fullName": "google.logging.v2.ConfigServiceV2.CopyLogEntries", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_CreateBucket_sync", + "title": "logging CreateBucket Sample", + "description": "CreateBucket creates a log bucket that can be used to store log entries. After a bucket\nhas been created, the bucket’s location cannot be changed.", + "file": "ConfigClient/CreateBucket/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateBucket", + "fullName": "google.logging.v2.ConfigClient.CreateBucket", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.CreateBucketRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.LogBucket", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "CreateBucket", + "fullName": "google.logging.v2.ConfigServiceV2.CreateBucket", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_CreateExclusion_sync", + "title": "logging CreateExclusion Sample", + "description": "CreateExclusion creates a new exclusion in the _Default sink in a specified parent\nresource. Only log entries belonging to that resource can be excluded. You\ncan have up to 10 exclusions in a resource.", + "file": "ConfigClient/CreateExclusion/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateExclusion", + "fullName": "google.logging.v2.ConfigClient.CreateExclusion", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.CreateExclusionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.LogExclusion", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "CreateExclusion", + "fullName": "google.logging.v2.ConfigServiceV2.CreateExclusion", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_CreateSink_sync", + "title": "logging CreateSink Sample", + "description": "CreateSink creates a sink that exports specified log entries to a destination. The\nexport of newly-ingested log entries begins immediately, unless the sink’s\nwriter_identity is not permitted to write to the destination. A sink can\nexport log entries only from the resource owning the sink.", + "file": "ConfigClient/CreateSink/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSink", + "fullName": "google.logging.v2.ConfigClient.CreateSink", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.CreateSinkRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.LogSink", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "CreateSink", + "fullName": "google.logging.v2.ConfigServiceV2.CreateSink", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_CreateView_sync", + "title": "logging CreateView Sample", + "description": "CreateView creates a view over log entries in a log bucket. A bucket may contain a\nmaximum of 30 views.", + "file": "ConfigClient/CreateView/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateView", + "fullName": "google.logging.v2.ConfigClient.CreateView", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.CreateViewRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.LogView", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "CreateView", + "fullName": "google.logging.v2.ConfigServiceV2.CreateView", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_DeleteBucket_sync", + "title": "logging DeleteBucket Sample", + "description": "DeleteBucket deletes a log bucket.\n\nChanges the bucket’s lifecycle_state to the DELETE_REQUESTED state.\nAfter 7 days, the bucket will be purged and all log entries in the bucket\nwill be permanently deleted.", + "file": "ConfigClient/DeleteBucket/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteBucket", + "fullName": "google.logging.v2.ConfigClient.DeleteBucket", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.DeleteBucketRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "DeleteBucket", + "fullName": "google.logging.v2.ConfigServiceV2.DeleteBucket", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_DeleteExclusion_sync", + "title": "logging DeleteExclusion Sample", + "description": "DeleteExclusion deletes an exclusion in the _Default sink.", + "file": "ConfigClient/DeleteExclusion/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteExclusion", + "fullName": "google.logging.v2.ConfigClient.DeleteExclusion", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.DeleteExclusionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "DeleteExclusion", + "fullName": "google.logging.v2.ConfigServiceV2.DeleteExclusion", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_DeleteSink_sync", + "title": "logging DeleteSink Sample", + "description": "DeleteSink deletes a sink. If the sink has a unique writer_identity, then that\nservice account is also deleted.", + "file": "ConfigClient/DeleteSink/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteSink", + "fullName": "google.logging.v2.ConfigClient.DeleteSink", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.DeleteSinkRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "DeleteSink", + "fullName": "google.logging.v2.ConfigServiceV2.DeleteSink", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_DeleteView_sync", + "title": "logging DeleteView Sample", + "description": "DeleteView deletes a view on a log bucket.\nIf an UNAVAILABLE error is returned, this indicates that system is not in\na state where it can delete the view. If this occurs, please try again in a\nfew minutes.", + "file": "ConfigClient/DeleteView/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteView", + "fullName": "google.logging.v2.ConfigClient.DeleteView", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.DeleteViewRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "DeleteView", + "fullName": "google.logging.v2.ConfigServiceV2.DeleteView", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_GetBucket_sync", + "title": "logging GetBucket Sample", + "description": "GetBucket gets a log bucket.", + "file": "ConfigClient/GetBucket/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetBucket", + "fullName": "google.logging.v2.ConfigClient.GetBucket", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.GetBucketRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.LogBucket", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "GetBucket", + "fullName": "google.logging.v2.ConfigServiceV2.GetBucket", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_GetCmekSettings_sync", + "title": "logging GetCmekSettings Sample", + "description": "GetCmekSettings gets the Logging CMEK settings for the given resource.\n\nNote: CMEK for the Log Router can be configured for Google Cloud projects,\nfolders, organizations and billing accounts. Once configured for an\norganization, it applies to all projects and folders in the Google Cloud\norganization.\n\nSee Enabling CMEK for Log\nRouter (at https: //cloud.google.com/logging/docs/routing/managed-encryption)\nfor more information.", + "file": "ConfigClient/GetCmekSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCmekSettings", + "fullName": "google.logging.v2.ConfigClient.GetCmekSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.GetCmekSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.CmekSettings", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "GetCmekSettings", + "fullName": "google.logging.v2.ConfigServiceV2.GetCmekSettings", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_GetExclusion_sync", + "title": "logging GetExclusion Sample", + "description": "GetExclusion gets the description of an exclusion in the _Default sink.", + "file": "ConfigClient/GetExclusion/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetExclusion", + "fullName": "google.logging.v2.ConfigClient.GetExclusion", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.GetExclusionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.LogExclusion", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "GetExclusion", + "fullName": "google.logging.v2.ConfigServiceV2.GetExclusion", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_GetSettings_sync", + "title": "logging GetSettings Sample", + "description": "GetSettings gets the Log Router settings for the given resource.\n\nNote: Settings for the Log Router can be get for Google Cloud projects,\nfolders, organizations and billing accounts. Currently it can only be\nconfigured for organizations. Once configured for an organization, it\napplies to all projects and folders in the Google Cloud organization.\n\nSee Enabling CMEK for Log\nRouter (at https: //cloud.google.com/logging/docs/routing/managed-encryption)\nfor more information.", + "file": "ConfigClient/GetSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSettings", + "fullName": "google.logging.v2.ConfigClient.GetSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.GetSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.Settings", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "GetSettings", + "fullName": "google.logging.v2.ConfigServiceV2.GetSettings", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_GetSink_sync", + "title": "logging GetSink Sample", + "description": "GetSink gets a sink.", + "file": "ConfigClient/GetSink/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSink", + "fullName": "google.logging.v2.ConfigClient.GetSink", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.GetSinkRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.LogSink", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "GetSink", + "fullName": "google.logging.v2.ConfigServiceV2.GetSink", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_GetView_sync", + "title": "logging GetView Sample", + "description": "GetView gets a view on a log bucket…", + "file": "ConfigClient/GetView/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetView", + "fullName": "google.logging.v2.ConfigClient.GetView", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.GetViewRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.LogView", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "GetView", + "fullName": "google.logging.v2.ConfigServiceV2.GetView", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_ListBuckets_sync", + "title": "logging ListBuckets Sample", + "description": "ListBuckets lists log buckets.", + "file": "ConfigClient/ListBuckets/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListBuckets", + "fullName": "google.logging.v2.ConfigClient.ListBuckets", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.ListBucketsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LogBucketIterator", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "ListBuckets", + "fullName": "google.logging.v2.ConfigServiceV2.ListBuckets", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_ListExclusions_sync", + "title": "logging ListExclusions Sample", + "description": "ListExclusions lists all the exclusions on the _Default sink in a parent resource.", + "file": "ConfigClient/ListExclusions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListExclusions", + "fullName": "google.logging.v2.ConfigClient.ListExclusions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.ListExclusionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LogExclusionIterator", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "ListExclusions", + "fullName": "google.logging.v2.ConfigServiceV2.ListExclusions", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_ListSinks_sync", + "title": "logging ListSinks Sample", + "description": "ListSinks lists sinks.", + "file": "ConfigClient/ListSinks/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListSinks", + "fullName": "google.logging.v2.ConfigClient.ListSinks", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.ListSinksRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LogSinkIterator", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "ListSinks", + "fullName": "google.logging.v2.ConfigServiceV2.ListSinks", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_ListViews_sync", + "title": "logging ListViews Sample", + "description": "ListViews lists views on a log bucket.", + "file": "ConfigClient/ListViews/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListViews", + "fullName": "google.logging.v2.ConfigClient.ListViews", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.ListViewsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LogViewIterator", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "ListViews", + "fullName": "google.logging.v2.ConfigServiceV2.ListViews", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_UndeleteBucket_sync", + "title": "logging UndeleteBucket Sample", + "description": "UndeleteBucket undeletes a log bucket. A bucket that has been deleted can be undeleted\nwithin the grace period of 7 days.", + "file": "ConfigClient/UndeleteBucket/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UndeleteBucket", + "fullName": "google.logging.v2.ConfigClient.UndeleteBucket", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.UndeleteBucketRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "UndeleteBucket", + "fullName": "google.logging.v2.ConfigServiceV2.UndeleteBucket", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateBucket_sync", + "title": "logging UpdateBucket Sample", + "description": "UpdateBucket updates a log bucket. This method replaces the following fields in the\nexisting bucket with values from the new bucket: retention_period\n\nIf the retention period is decreased and the bucket is locked,\nFAILED_PRECONDITION will be returned.\n\nIf the bucket has a lifecycle_state of DELETE_REQUESTED, then\nFAILED_PRECONDITION will be returned.\n\nAfter a bucket has been created, the bucket’s location cannot be changed.", + "file": "ConfigClient/UpdateBucket/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateBucket", + "fullName": "google.logging.v2.ConfigClient.UpdateBucket", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.UpdateBucketRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.LogBucket", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "UpdateBucket", + "fullName": "google.logging.v2.ConfigServiceV2.UpdateBucket", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateCmekSettings_sync", + "title": "logging UpdateCmekSettings Sample", + "description": "UpdateCmekSettings updates the Log Router CMEK settings for the given resource.\n\nNote: CMEK for the Log Router can currently only be configured for Google\nCloud organizations. Once configured, it applies to all projects and\nfolders in the Google Cloud organization.\n\nUpdateCmekSettings\nwill fail if 1) kms_key_name is invalid, or 2) the associated service\naccount does not have the required\nroles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, or\n3) access to the key is disabled.\n\nSee Enabling CMEK for Log\nRouter (at https: //cloud.google.com/logging/docs/routing/managed-encryption)\nfor more information.", + "file": "ConfigClient/UpdateCmekSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCmekSettings", + "fullName": "google.logging.v2.ConfigClient.UpdateCmekSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.UpdateCmekSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.CmekSettings", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "UpdateCmekSettings", + "fullName": "google.logging.v2.ConfigServiceV2.UpdateCmekSettings", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateExclusion_sync", + "title": "logging UpdateExclusion Sample", + "description": "UpdateExclusion changes one or more properties of an existing exclusion in the _Default\nsink.", + "file": "ConfigClient/UpdateExclusion/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateExclusion", + "fullName": "google.logging.v2.ConfigClient.UpdateExclusion", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.UpdateExclusionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.LogExclusion", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "UpdateExclusion", + "fullName": "google.logging.v2.ConfigServiceV2.UpdateExclusion", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateSettings_sync", + "title": "logging UpdateSettings Sample", + "description": "UpdateSettings updates the Log Router settings for the given resource.\n\nNote: Settings for the Log Router can currently only be configured for\nGoogle Cloud organizations. Once configured, it applies to all projects and\nfolders in the Google Cloud organization.\n\nUpdateSettings\nwill fail if 1) kms_key_name is invalid, or 2) the associated service\naccount does not have the required\nroles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key, or\n3) access to the key is disabled. 4) location_id is not supported by\nLogging. 5) location_id violate OrgPolicy.\n\nSee Enabling CMEK for Log\nRouter (at https: //cloud.google.com/logging/docs/routing/managed-encryption)\nfor more information.", + "file": "ConfigClient/UpdateSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSettings", + "fullName": "google.logging.v2.ConfigClient.UpdateSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.UpdateSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.Settings", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "UpdateSettings", + "fullName": "google.logging.v2.ConfigServiceV2.UpdateSettings", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateSink_sync", + "title": "logging UpdateSink Sample", + "description": "UpdateSink updates a sink. This method replaces the following fields in the existing\nsink with values from the new sink: destination, and filter.\n\nThe updated sink might also have a new writer_identity; see the\nunique_writer_identity field.", + "file": "ConfigClient/UpdateSink/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSink", + "fullName": "google.logging.v2.ConfigClient.UpdateSink", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.UpdateSinkRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.LogSink", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "UpdateSink", + "fullName": "google.logging.v2.ConfigServiceV2.UpdateSink", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateView_sync", + "title": "logging UpdateView Sample", + "description": "UpdateView updates a view on a log bucket. This method replaces the following fields\nin the existing view with values from the new view: filter.\nIf an UNAVAILABLE error is returned, this indicates that system is not in\na state where it can update the view. If this occurs, please try again in a\nfew minutes.", + "file": "ConfigClient/UpdateView/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateView", + "fullName": "google.logging.v2.ConfigClient.UpdateView", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.UpdateViewRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.LogView", + "client": { + "shortName": "ConfigClient", + "fullName": "google.logging.v2.ConfigClient" + }, + "method": { + "shortName": "UpdateView", + "fullName": "google.logging.v2.ConfigServiceV2.UpdateView", + "service": { + "shortName": "ConfigServiceV2", + "fullName": "google.logging.v2.ConfigServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_MetricsServiceV2_CreateLogMetric_sync", + "title": "logging CreateLogMetric Sample", + "description": "CreateLogMetric creates a logs-based metric.", + "file": "MetricsClient/CreateLogMetric/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateLogMetric", + "fullName": "google.logging.v2.MetricsClient.CreateLogMetric", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.CreateLogMetricRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.LogMetric", + "client": { + "shortName": "MetricsClient", + "fullName": "google.logging.v2.MetricsClient" + }, + "method": { + "shortName": "CreateLogMetric", + "fullName": "google.logging.v2.MetricsServiceV2.CreateLogMetric", + "service": { + "shortName": "MetricsServiceV2", + "fullName": "google.logging.v2.MetricsServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_MetricsServiceV2_DeleteLogMetric_sync", + "title": "logging DeleteLogMetric Sample", + "description": "DeleteLogMetric deletes a logs-based metric.", + "file": "MetricsClient/DeleteLogMetric/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteLogMetric", + "fullName": "google.logging.v2.MetricsClient.DeleteLogMetric", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.DeleteLogMetricRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "MetricsClient", + "fullName": "google.logging.v2.MetricsClient" + }, + "method": { + "shortName": "DeleteLogMetric", + "fullName": "google.logging.v2.MetricsServiceV2.DeleteLogMetric", + "service": { + "shortName": "MetricsServiceV2", + "fullName": "google.logging.v2.MetricsServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_MetricsServiceV2_GetLogMetric_sync", + "title": "logging GetLogMetric Sample", + "description": "GetLogMetric gets a logs-based metric.", + "file": "MetricsClient/GetLogMetric/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLogMetric", + "fullName": "google.logging.v2.MetricsClient.GetLogMetric", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.GetLogMetricRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.LogMetric", + "client": { + "shortName": "MetricsClient", + "fullName": "google.logging.v2.MetricsClient" + }, + "method": { + "shortName": "GetLogMetric", + "fullName": "google.logging.v2.MetricsServiceV2.GetLogMetric", + "service": { + "shortName": "MetricsServiceV2", + "fullName": "google.logging.v2.MetricsServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_MetricsServiceV2_ListLogMetrics_sync", + "title": "logging ListLogMetrics Sample", + "description": "ListLogMetrics lists logs-based metrics.", + "file": "MetricsClient/ListLogMetrics/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLogMetrics", + "fullName": "google.logging.v2.MetricsClient.ListLogMetrics", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.ListLogMetricsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LogMetricIterator", + "client": { + "shortName": "MetricsClient", + "fullName": "google.logging.v2.MetricsClient" + }, + "method": { + "shortName": "ListLogMetrics", + "fullName": "google.logging.v2.MetricsServiceV2.ListLogMetrics", + "service": { + "shortName": "MetricsServiceV2", + "fullName": "google.logging.v2.MetricsServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "logging_v2_generated_MetricsServiceV2_UpdateLogMetric_sync", + "title": "logging UpdateLogMetric Sample", + "description": "UpdateLogMetric creates or updates a logs-based metric.", + "file": "MetricsClient/UpdateLogMetric/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateLogMetric", + "fullName": "google.logging.v2.MetricsClient.UpdateLogMetric", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "loggingpb.UpdateLogMetricRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "loggingpb.LogMetric", + "client": { + "shortName": "MetricsClient", + "fullName": "google.logging.v2.MetricsClient" + }, + "method": { + "shortName": "UpdateLogMetric", + "fullName": "google.logging.v2.MetricsServiceV2.UpdateLogMetric", + "service": { + "shortName": "MetricsServiceV2", + "fullName": "google.logging.v2.MetricsServiceV2" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/longrunning/autogen/OperationsClient/CancelOperation/main.go b/internal/generated/snippets/longrunning/autogen/OperationsClient/CancelOperation/main.go index 840da888a332..feaf863b5e9e 100644 --- a/internal/generated/snippets/longrunning/autogen/OperationsClient/CancelOperation/main.go +++ b/internal/generated/snippets/longrunning/autogen/OperationsClient/CancelOperation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" longrunning "cloud.google.com/go/longrunning/autogen" - longrunningpb "google.golang.org/genproto/googleapis/longrunning" + longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := longrunning.NewOperationsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &longrunningpb.CancelOperationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest. } err = c.CancelOperation(ctx, req) if err != nil { diff --git a/internal/generated/snippets/longrunning/autogen/OperationsClient/DeleteOperation/main.go b/internal/generated/snippets/longrunning/autogen/OperationsClient/DeleteOperation/main.go index 01e38198f937..30603f77e731 100644 --- a/internal/generated/snippets/longrunning/autogen/OperationsClient/DeleteOperation/main.go +++ b/internal/generated/snippets/longrunning/autogen/OperationsClient/DeleteOperation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" longrunning "cloud.google.com/go/longrunning/autogen" - longrunningpb "google.golang.org/genproto/googleapis/longrunning" + longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := longrunning.NewOperationsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &longrunningpb.DeleteOperationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest. } err = c.DeleteOperation(ctx, req) if err != nil { diff --git a/internal/generated/snippets/longrunning/autogen/OperationsClient/GetOperation/main.go b/internal/generated/snippets/longrunning/autogen/OperationsClient/GetOperation/main.go index e5e3bd5fdc8d..fa525ff1ae17 100644 --- a/internal/generated/snippets/longrunning/autogen/OperationsClient/GetOperation/main.go +++ b/internal/generated/snippets/longrunning/autogen/OperationsClient/GetOperation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" longrunning "cloud.google.com/go/longrunning/autogen" - longrunningpb "google.golang.org/genproto/googleapis/longrunning" + longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := longrunning.NewOperationsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &longrunningpb.GetOperationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest. } resp, err := c.GetOperation(ctx, req) if err != nil { diff --git a/internal/generated/snippets/longrunning/autogen/OperationsClient/ListOperations/main.go b/internal/generated/snippets/longrunning/autogen/OperationsClient/ListOperations/main.go index 0507d8dfaf98..f5607720a172 100644 --- a/internal/generated/snippets/longrunning/autogen/OperationsClient/ListOperations/main.go +++ b/internal/generated/snippets/longrunning/autogen/OperationsClient/ListOperations/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" longrunning "cloud.google.com/go/longrunning/autogen" + longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" "google.golang.org/api/iterator" - longrunningpb "google.golang.org/genproto/googleapis/longrunning" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := longrunning.NewOperationsClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &longrunningpb.ListOperationsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest. } it := c.ListOperations(ctx, req) for { diff --git a/internal/generated/snippets/longrunning/autogen/OperationsClient/WaitOperation/main.go b/internal/generated/snippets/longrunning/autogen/OperationsClient/WaitOperation/main.go index 05ae2005142a..7182ae734287 100644 --- a/internal/generated/snippets/longrunning/autogen/OperationsClient/WaitOperation/main.go +++ b/internal/generated/snippets/longrunning/autogen/OperationsClient/WaitOperation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" longrunning "cloud.google.com/go/longrunning/autogen" - longrunningpb "google.golang.org/genproto/googleapis/longrunning" + longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := longrunning.NewOperationsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &longrunningpb.WaitOperationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#WaitOperationRequest. + // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#WaitOperationRequest. } resp, err := c.WaitOperation(ctx, req) if err != nil { diff --git a/internal/generated/snippets/longrunning/autogen/snippet_metadata.google.longrunning.json b/internal/generated/snippets/longrunning/autogen/snippet_metadata.google.longrunning.json new file mode 100644 index 000000000000..dff01960a99b --- /dev/null +++ b/internal/generated/snippets/longrunning/autogen/snippet_metadata.google.longrunning.json @@ -0,0 +1,243 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/longrunning/autogen", + "version": "0.4.0", + "language": "GO", + "apis": [ + { + "id": "google.longrunning", + "version": "longrunning" + } + ] + }, + "snippets": [ + { + "regionTag": "longrunning_longrunning_generated_Operations_CancelOperation_sync", + "title": "longrunning CancelOperation Sample", + "description": "CancelOperation starts asynchronous cancellation on a long-running operation. The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed. If the server doesn’t support this method, it returns\ngoogle.rpc.Code.UNIMPLEMENTED. Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to Code.CANCELLED.", + "file": "OperationsClient/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.longrunning.OperationsClient.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "OperationsClient", + "fullName": "google.longrunning.OperationsClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.longrunning.Operations.CancelOperation", + "service": { + "shortName": "Operations", + "fullName": "google.longrunning.Operations" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "longrunning_longrunning_generated_Operations_DeleteOperation_sync", + "title": "longrunning DeleteOperation Sample", + "description": "DeleteOperation deletes a long-running operation. This method indicates that the client is\nno longer interested in the operation result. It does not cancel the\noperation. If the server doesn’t support this method, it returns\ngoogle.rpc.Code.UNIMPLEMENTED.", + "file": "OperationsClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.longrunning.OperationsClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "OperationsClient", + "fullName": "google.longrunning.OperationsClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.longrunning.Operations.DeleteOperation", + "service": { + "shortName": "Operations", + "fullName": "google.longrunning.Operations" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "longrunning_longrunning_generated_Operations_GetOperation_sync", + "title": "longrunning GetOperation Sample", + "description": "GetOperation gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.", + "file": "OperationsClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.longrunning.OperationsClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "OperationsClient", + "fullName": "google.longrunning.OperationsClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.longrunning.Operations.GetOperation", + "service": { + "shortName": "Operations", + "fullName": "google.longrunning.Operations" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "longrunning_longrunning_generated_Operations_ListOperations_sync", + "title": "longrunning ListOperations Sample", + "description": "ListOperations lists operations that match the specified filter in the request. If the\nserver doesn’t support this method, it returns UNIMPLEMENTED.\n\nNOTE: the name binding allows API services to override the binding\nto use different resource name schemes, such as users/*/operations. To\noverride the binding, API services can add a binding such as\n\"/v1/{name=users/*}/operations\" to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.", + "file": "OperationsClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.longrunning.OperationsClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "OperationsClient", + "fullName": "google.longrunning.OperationsClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.longrunning.Operations.ListOperations", + "service": { + "shortName": "Operations", + "fullName": "google.longrunning.Operations" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "longrunning_longrunning_generated_Operations_WaitOperation_sync", + "title": "longrunning WaitOperation Sample", + "description": "WaitOperation waits until the specified long-running operation is done or reaches at most\na specified timeout, returning the latest state. If the operation is\nalready done, the latest state is immediately returned. If the timeout\nspecified is greater than the default HTTP/RPC timeout, the HTTP/RPC\ntimeout is used. If the server does not support this method, it returns\ngoogle.rpc.Code.UNIMPLEMENTED.\nNote that this method is on a best-effort basis. It may return the latest\nstate before the specified timeout (including immediately), meaning even an\nimmediate response is no guarantee that the operation is done.", + "file": "OperationsClient/WaitOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "WaitOperation", + "fullName": "google.longrunning.OperationsClient.WaitOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.WaitOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "OperationsClient", + "fullName": "google.longrunning.OperationsClient" + }, + "method": { + "shortName": "WaitOperation", + "fullName": "google.longrunning.Operations.WaitOperation", + "service": { + "shortName": "Operations", + "fullName": "google.longrunning.Operations" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/managedidentities/apiv1/Client/AttachTrust/main.go b/internal/generated/snippets/managedidentities/apiv1/Client/AttachTrust/main.go index 72d64736b69b..0ddd66382a1a 100644 --- a/internal/generated/snippets/managedidentities/apiv1/Client/AttachTrust/main.go +++ b/internal/generated/snippets/managedidentities/apiv1/Client/AttachTrust/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" managedidentities "cloud.google.com/go/managedidentities/apiv1" - managedidentitiespb "google.golang.org/genproto/googleapis/cloud/managedidentities/v1" + managedidentitiespb "cloud.google.com/go/managedidentities/apiv1/managedidentitiespb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &managedidentitiespb.AttachTrustRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/managedidentities/v1#AttachTrustRequest. + // See https://pkg.go.dev/cloud.google.com/go/managedidentities/apiv1/managedidentitiespb#AttachTrustRequest. } op, err := c.AttachTrust(ctx, req) if err != nil { diff --git a/internal/generated/snippets/managedidentities/apiv1/Client/CreateMicrosoftAdDomain/main.go b/internal/generated/snippets/managedidentities/apiv1/Client/CreateMicrosoftAdDomain/main.go index e77bed043fe3..919038a9f1db 100644 --- a/internal/generated/snippets/managedidentities/apiv1/Client/CreateMicrosoftAdDomain/main.go +++ b/internal/generated/snippets/managedidentities/apiv1/Client/CreateMicrosoftAdDomain/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" managedidentities "cloud.google.com/go/managedidentities/apiv1" - managedidentitiespb "google.golang.org/genproto/googleapis/cloud/managedidentities/v1" + managedidentitiespb "cloud.google.com/go/managedidentities/apiv1/managedidentitiespb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &managedidentitiespb.CreateMicrosoftAdDomainRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/managedidentities/v1#CreateMicrosoftAdDomainRequest. + // See https://pkg.go.dev/cloud.google.com/go/managedidentities/apiv1/managedidentitiespb#CreateMicrosoftAdDomainRequest. } op, err := c.CreateMicrosoftAdDomain(ctx, req) if err != nil { diff --git a/internal/generated/snippets/managedidentities/apiv1/Client/DeleteDomain/main.go b/internal/generated/snippets/managedidentities/apiv1/Client/DeleteDomain/main.go index 3700e0528abc..6e623e362718 100644 --- a/internal/generated/snippets/managedidentities/apiv1/Client/DeleteDomain/main.go +++ b/internal/generated/snippets/managedidentities/apiv1/Client/DeleteDomain/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" managedidentities "cloud.google.com/go/managedidentities/apiv1" - managedidentitiespb "google.golang.org/genproto/googleapis/cloud/managedidentities/v1" + managedidentitiespb "cloud.google.com/go/managedidentities/apiv1/managedidentitiespb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &managedidentitiespb.DeleteDomainRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/managedidentities/v1#DeleteDomainRequest. + // See https://pkg.go.dev/cloud.google.com/go/managedidentities/apiv1/managedidentitiespb#DeleteDomainRequest. } op, err := c.DeleteDomain(ctx, req) if err != nil { diff --git a/internal/generated/snippets/managedidentities/apiv1/Client/DetachTrust/main.go b/internal/generated/snippets/managedidentities/apiv1/Client/DetachTrust/main.go index 35259e505b24..ebbfd2648da8 100644 --- a/internal/generated/snippets/managedidentities/apiv1/Client/DetachTrust/main.go +++ b/internal/generated/snippets/managedidentities/apiv1/Client/DetachTrust/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" managedidentities "cloud.google.com/go/managedidentities/apiv1" - managedidentitiespb "google.golang.org/genproto/googleapis/cloud/managedidentities/v1" + managedidentitiespb "cloud.google.com/go/managedidentities/apiv1/managedidentitiespb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &managedidentitiespb.DetachTrustRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/managedidentities/v1#DetachTrustRequest. + // See https://pkg.go.dev/cloud.google.com/go/managedidentities/apiv1/managedidentitiespb#DetachTrustRequest. } op, err := c.DetachTrust(ctx, req) if err != nil { diff --git a/internal/generated/snippets/managedidentities/apiv1/Client/GetDomain/main.go b/internal/generated/snippets/managedidentities/apiv1/Client/GetDomain/main.go index b3a4c78a577c..c2b2c4fa1fd0 100644 --- a/internal/generated/snippets/managedidentities/apiv1/Client/GetDomain/main.go +++ b/internal/generated/snippets/managedidentities/apiv1/Client/GetDomain/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" managedidentities "cloud.google.com/go/managedidentities/apiv1" - managedidentitiespb "google.golang.org/genproto/googleapis/cloud/managedidentities/v1" + managedidentitiespb "cloud.google.com/go/managedidentities/apiv1/managedidentitiespb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &managedidentitiespb.GetDomainRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/managedidentities/v1#GetDomainRequest. + // See https://pkg.go.dev/cloud.google.com/go/managedidentities/apiv1/managedidentitiespb#GetDomainRequest. } resp, err := c.GetDomain(ctx, req) if err != nil { diff --git a/internal/generated/snippets/managedidentities/apiv1/Client/ListDomains/main.go b/internal/generated/snippets/managedidentities/apiv1/Client/ListDomains/main.go index 8674986644bf..e3f7b471436f 100644 --- a/internal/generated/snippets/managedidentities/apiv1/Client/ListDomains/main.go +++ b/internal/generated/snippets/managedidentities/apiv1/Client/ListDomains/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" managedidentities "cloud.google.com/go/managedidentities/apiv1" + managedidentitiespb "cloud.google.com/go/managedidentities/apiv1/managedidentitiespb" "google.golang.org/api/iterator" - managedidentitiespb "google.golang.org/genproto/googleapis/cloud/managedidentities/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &managedidentitiespb.ListDomainsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/managedidentities/v1#ListDomainsRequest. + // See https://pkg.go.dev/cloud.google.com/go/managedidentities/apiv1/managedidentitiespb#ListDomainsRequest. } it := c.ListDomains(ctx, req) for { diff --git a/internal/generated/snippets/managedidentities/apiv1/Client/ReconfigureTrust/main.go b/internal/generated/snippets/managedidentities/apiv1/Client/ReconfigureTrust/main.go index e5a3ea59d33f..809b2a1fe61c 100644 --- a/internal/generated/snippets/managedidentities/apiv1/Client/ReconfigureTrust/main.go +++ b/internal/generated/snippets/managedidentities/apiv1/Client/ReconfigureTrust/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" managedidentities "cloud.google.com/go/managedidentities/apiv1" - managedidentitiespb "google.golang.org/genproto/googleapis/cloud/managedidentities/v1" + managedidentitiespb "cloud.google.com/go/managedidentities/apiv1/managedidentitiespb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &managedidentitiespb.ReconfigureTrustRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/managedidentities/v1#ReconfigureTrustRequest. + // See https://pkg.go.dev/cloud.google.com/go/managedidentities/apiv1/managedidentitiespb#ReconfigureTrustRequest. } op, err := c.ReconfigureTrust(ctx, req) if err != nil { diff --git a/internal/generated/snippets/managedidentities/apiv1/Client/ResetAdminPassword/main.go b/internal/generated/snippets/managedidentities/apiv1/Client/ResetAdminPassword/main.go index 3b9ddf3d5a53..908fa3c4429f 100644 --- a/internal/generated/snippets/managedidentities/apiv1/Client/ResetAdminPassword/main.go +++ b/internal/generated/snippets/managedidentities/apiv1/Client/ResetAdminPassword/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" managedidentities "cloud.google.com/go/managedidentities/apiv1" - managedidentitiespb "google.golang.org/genproto/googleapis/cloud/managedidentities/v1" + managedidentitiespb "cloud.google.com/go/managedidentities/apiv1/managedidentitiespb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &managedidentitiespb.ResetAdminPasswordRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/managedidentities/v1#ResetAdminPasswordRequest. + // See https://pkg.go.dev/cloud.google.com/go/managedidentities/apiv1/managedidentitiespb#ResetAdminPasswordRequest. } resp, err := c.ResetAdminPassword(ctx, req) if err != nil { diff --git a/internal/generated/snippets/managedidentities/apiv1/Client/UpdateDomain/main.go b/internal/generated/snippets/managedidentities/apiv1/Client/UpdateDomain/main.go index f2e8c7a16871..7cb7c9d48e66 100644 --- a/internal/generated/snippets/managedidentities/apiv1/Client/UpdateDomain/main.go +++ b/internal/generated/snippets/managedidentities/apiv1/Client/UpdateDomain/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" managedidentities "cloud.google.com/go/managedidentities/apiv1" - managedidentitiespb "google.golang.org/genproto/googleapis/cloud/managedidentities/v1" + managedidentitiespb "cloud.google.com/go/managedidentities/apiv1/managedidentitiespb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &managedidentitiespb.UpdateDomainRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/managedidentities/v1#UpdateDomainRequest. + // See https://pkg.go.dev/cloud.google.com/go/managedidentities/apiv1/managedidentitiespb#UpdateDomainRequest. } op, err := c.UpdateDomain(ctx, req) if err != nil { diff --git a/internal/generated/snippets/managedidentities/apiv1/Client/ValidateTrust/main.go b/internal/generated/snippets/managedidentities/apiv1/Client/ValidateTrust/main.go index b2dd8b33e1e5..c1291ee291e8 100644 --- a/internal/generated/snippets/managedidentities/apiv1/Client/ValidateTrust/main.go +++ b/internal/generated/snippets/managedidentities/apiv1/Client/ValidateTrust/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" managedidentities "cloud.google.com/go/managedidentities/apiv1" - managedidentitiespb "google.golang.org/genproto/googleapis/cloud/managedidentities/v1" + managedidentitiespb "cloud.google.com/go/managedidentities/apiv1/managedidentitiespb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := managedidentities.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &managedidentitiespb.ValidateTrustRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/managedidentities/v1#ValidateTrustRequest. + // See https://pkg.go.dev/cloud.google.com/go/managedidentities/apiv1/managedidentitiespb#ValidateTrustRequest. } op, err := c.ValidateTrust(ctx, req) if err != nil { diff --git a/internal/generated/snippets/managedidentities/apiv1/snippet_metadata.google.cloud.managedidentities.v1.json b/internal/generated/snippets/managedidentities/apiv1/snippet_metadata.google.cloud.managedidentities.v1.json new file mode 100644 index 000000000000..263e360442b8 --- /dev/null +++ b/internal/generated/snippets/managedidentities/apiv1/snippet_metadata.google.cloud.managedidentities.v1.json @@ -0,0 +1,475 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/managedidentities/apiv1", + "version": "1.5.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.managedidentities.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_AttachTrust_sync", + "title": "managedidentities AttachTrust Sample", + "description": "AttachTrust adds an AD trust to a domain.", + "file": "Client/AttachTrust/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AttachTrust", + "fullName": "google.cloud.managedidentities.v1.Client.AttachTrust", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "managedidentitiespb.AttachTrustRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AttachTrustOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.managedidentities.v1.Client" + }, + "method": { + "shortName": "AttachTrust", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.AttachTrust", + "service": { + "shortName": "ManagedIdentitiesService", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_CreateMicrosoftAdDomain_sync", + "title": "managedidentities CreateMicrosoftAdDomain Sample", + "description": "CreateMicrosoftAdDomain creates a Microsoft AD domain.", + "file": "Client/CreateMicrosoftAdDomain/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateMicrosoftAdDomain", + "fullName": "google.cloud.managedidentities.v1.Client.CreateMicrosoftAdDomain", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "managedidentitiespb.CreateMicrosoftAdDomainRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateMicrosoftAdDomainOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.managedidentities.v1.Client" + }, + "method": { + "shortName": "CreateMicrosoftAdDomain", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.CreateMicrosoftAdDomain", + "service": { + "shortName": "ManagedIdentitiesService", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_DeleteDomain_sync", + "title": "managedidentities DeleteDomain Sample", + "description": "DeleteDomain deletes a domain.", + "file": "Client/DeleteDomain/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteDomain", + "fullName": "google.cloud.managedidentities.v1.Client.DeleteDomain", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "managedidentitiespb.DeleteDomainRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteDomainOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.managedidentities.v1.Client" + }, + "method": { + "shortName": "DeleteDomain", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.DeleteDomain", + "service": { + "shortName": "ManagedIdentitiesService", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_DetachTrust_sync", + "title": "managedidentities DetachTrust Sample", + "description": "DetachTrust removes an AD trust.", + "file": "Client/DetachTrust/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DetachTrust", + "fullName": "google.cloud.managedidentities.v1.Client.DetachTrust", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "managedidentitiespb.DetachTrustRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DetachTrustOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.managedidentities.v1.Client" + }, + "method": { + "shortName": "DetachTrust", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.DetachTrust", + "service": { + "shortName": "ManagedIdentitiesService", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_GetDomain_sync", + "title": "managedidentities GetDomain Sample", + "description": "GetDomain gets information about a domain.", + "file": "Client/GetDomain/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetDomain", + "fullName": "google.cloud.managedidentities.v1.Client.GetDomain", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "managedidentitiespb.GetDomainRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "managedidentitiespb.Domain", + "client": { + "shortName": "Client", + "fullName": "google.cloud.managedidentities.v1.Client" + }, + "method": { + "shortName": "GetDomain", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.GetDomain", + "service": { + "shortName": "ManagedIdentitiesService", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_ListDomains_sync", + "title": "managedidentities ListDomains Sample", + "description": "ListDomains lists domains in a project.", + "file": "Client/ListDomains/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListDomains", + "fullName": "google.cloud.managedidentities.v1.Client.ListDomains", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "managedidentitiespb.ListDomainsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DomainIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.managedidentities.v1.Client" + }, + "method": { + "shortName": "ListDomains", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.ListDomains", + "service": { + "shortName": "ManagedIdentitiesService", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_ReconfigureTrust_sync", + "title": "managedidentities ReconfigureTrust Sample", + "description": "ReconfigureTrust updates the DNS conditional forwarder.", + "file": "Client/ReconfigureTrust/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReconfigureTrust", + "fullName": "google.cloud.managedidentities.v1.Client.ReconfigureTrust", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "managedidentitiespb.ReconfigureTrustRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ReconfigureTrustOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.managedidentities.v1.Client" + }, + "method": { + "shortName": "ReconfigureTrust", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.ReconfigureTrust", + "service": { + "shortName": "ManagedIdentitiesService", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_ResetAdminPassword_sync", + "title": "managedidentities ResetAdminPassword Sample", + "description": "ResetAdminPassword resets a domain’s administrator password.", + "file": "Client/ResetAdminPassword/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResetAdminPassword", + "fullName": "google.cloud.managedidentities.v1.Client.ResetAdminPassword", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "managedidentitiespb.ResetAdminPasswordRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "managedidentitiespb.ResetAdminPasswordResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.managedidentities.v1.Client" + }, + "method": { + "shortName": "ResetAdminPassword", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.ResetAdminPassword", + "service": { + "shortName": "ManagedIdentitiesService", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_UpdateDomain_sync", + "title": "managedidentities UpdateDomain Sample", + "description": "UpdateDomain updates the metadata and configuration of a domain.", + "file": "Client/UpdateDomain/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateDomain", + "fullName": "google.cloud.managedidentities.v1.Client.UpdateDomain", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "managedidentitiespb.UpdateDomainRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateDomainOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.managedidentities.v1.Client" + }, + "method": { + "shortName": "UpdateDomain", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.UpdateDomain", + "service": { + "shortName": "ManagedIdentitiesService", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_ValidateTrust_sync", + "title": "managedidentities ValidateTrust Sample", + "description": "ValidateTrust validates a trust state, that the target domain is reachable, and that the\ntarget domain is able to accept incoming trust requests.", + "file": "Client/ValidateTrust/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ValidateTrust", + "fullName": "google.cloud.managedidentities.v1.Client.ValidateTrust", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "managedidentitiespb.ValidateTrustRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ValidateTrustOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.managedidentities.v1.Client" + }, + "method": { + "shortName": "ValidateTrust", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.ValidateTrust", + "service": { + "shortName": "ManagedIdentitiesService", + "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/maps/addressvalidation/apiv1/Client/ProvideValidationFeedback/main.go b/internal/generated/snippets/maps/addressvalidation/apiv1/Client/ProvideValidationFeedback/main.go new file mode 100644 index 000000000000..9c91b103e0ed --- /dev/null +++ b/internal/generated/snippets/maps/addressvalidation/apiv1/Client/ProvideValidationFeedback/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START addressvalidation_v1_generated_AddressValidation_ProvideValidationFeedback_sync] + +package main + +import ( + "context" + + addressvalidation "cloud.google.com/go/maps/addressvalidation/apiv1" + addressvalidationpb "cloud.google.com/go/maps/addressvalidation/apiv1/addressvalidationpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := addressvalidation.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &addressvalidationpb.ProvideValidationFeedbackRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/maps/addressvalidation/apiv1/addressvalidationpb#ProvideValidationFeedbackRequest. + } + resp, err := c.ProvideValidationFeedback(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END addressvalidation_v1_generated_AddressValidation_ProvideValidationFeedback_sync] diff --git a/internal/generated/snippets/maps/addressvalidation/apiv1/Client/ValidateAddress/main.go b/internal/generated/snippets/maps/addressvalidation/apiv1/Client/ValidateAddress/main.go new file mode 100644 index 000000000000..2092789925a0 --- /dev/null +++ b/internal/generated/snippets/maps/addressvalidation/apiv1/Client/ValidateAddress/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START addressvalidation_v1_generated_AddressValidation_ValidateAddress_sync] + +package main + +import ( + "context" + + addressvalidation "cloud.google.com/go/maps/addressvalidation/apiv1" + addressvalidationpb "cloud.google.com/go/maps/addressvalidation/apiv1/addressvalidationpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := addressvalidation.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &addressvalidationpb.ValidateAddressRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/maps/addressvalidation/apiv1/addressvalidationpb#ValidateAddressRequest. + } + resp, err := c.ValidateAddress(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END addressvalidation_v1_generated_AddressValidation_ValidateAddress_sync] diff --git a/internal/generated/snippets/maps/addressvalidation/apiv1/snippet_metadata.google.maps.addressvalidation.v1.json b/internal/generated/snippets/maps/addressvalidation/apiv1/snippet_metadata.google.maps.addressvalidation.v1.json new file mode 100644 index 000000000000..03b2fda41852 --- /dev/null +++ b/internal/generated/snippets/maps/addressvalidation/apiv1/snippet_metadata.google.maps.addressvalidation.v1.json @@ -0,0 +1,107 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/maps/addressvalidation/apiv1", + "version": "0.2.0", + "language": "GO", + "apis": [ + { + "id": "google.maps.addressvalidation.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "addressvalidation_v1_generated_AddressValidation_ProvideValidationFeedback_sync", + "title": "addressvalidation ProvideValidationFeedback Sample", + "description": "ProvideValidationFeedback feedback about the outcome of the sequence of validation attempts. This\nshould be the last call made after a sequence of validation calls for the\nsame address, and should be called once the transaction is concluded. This\nshould only be sent once for the sequence of ValidateAddress requests\nneeded to validate an address fully.", + "file": "Client/ProvideValidationFeedback/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ProvideValidationFeedback", + "fullName": "google.maps.addressvalidation.v1.Client.ProvideValidationFeedback", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "addressvalidationpb.ProvideValidationFeedbackRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "addressvalidationpb.ProvideValidationFeedbackResponse", + "client": { + "shortName": "Client", + "fullName": "google.maps.addressvalidation.v1.Client" + }, + "method": { + "shortName": "ProvideValidationFeedback", + "fullName": "google.maps.addressvalidation.v1.AddressValidation.ProvideValidationFeedback", + "service": { + "shortName": "AddressValidation", + "fullName": "google.maps.addressvalidation.v1.AddressValidation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "addressvalidation_v1_generated_AddressValidation_ValidateAddress_sync", + "title": "addressvalidation ValidateAddress Sample", + "description": "ValidateAddress validates an address.", + "file": "Client/ValidateAddress/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ValidateAddress", + "fullName": "google.maps.addressvalidation.v1.Client.ValidateAddress", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "addressvalidationpb.ValidateAddressRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "addressvalidationpb.ValidateAddressResponse", + "client": { + "shortName": "Client", + "fullName": "google.maps.addressvalidation.v1.Client" + }, + "method": { + "shortName": "ValidateAddress", + "fullName": "google.maps.addressvalidation.v1.AddressValidation.ValidateAddress", + "service": { + "shortName": "AddressValidation", + "fullName": "google.maps.addressvalidation.v1.AddressValidation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/maps/routing/apiv2/RoutesClient/ComputeRoutes/main.go b/internal/generated/snippets/maps/routing/apiv2/RoutesClient/ComputeRoutes/main.go new file mode 100644 index 000000000000..9e1fe582844e --- /dev/null +++ b/internal/generated/snippets/maps/routing/apiv2/RoutesClient/ComputeRoutes/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START routes_v2_generated_Routes_ComputeRoutes_sync] + +package main + +import ( + "context" + + routing "cloud.google.com/go/maps/routing/apiv2" + routingpb "cloud.google.com/go/maps/routing/apiv2/routingpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := routing.NewRoutesClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &routingpb.ComputeRoutesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/maps/routing/apiv2/routingpb#ComputeRoutesRequest. + } + resp, err := c.ComputeRoutes(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END routes_v2_generated_Routes_ComputeRoutes_sync] diff --git a/internal/generated/snippets/maps/routing/apiv2/snippet_metadata.google.maps.routing.v2.json b/internal/generated/snippets/maps/routing/apiv2/snippet_metadata.google.maps.routing.v2.json new file mode 100644 index 000000000000..8b25199a60e9 --- /dev/null +++ b/internal/generated/snippets/maps/routing/apiv2/snippet_metadata.google.maps.routing.v2.json @@ -0,0 +1,106 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/maps/routing/apiv2", + "version": "0.2.0", + "language": "GO", + "apis": [ + { + "id": "google.maps.routing.v2", + "version": "v2" + } + ] + }, + "snippets": [ + { + "regionTag": "routes_v2_generated_Routes_ComputeRouteMatrix_sync", + "title": "routes ComputeRouteMatrix Sample", + "description": "ComputeRouteMatrix takes in a list of origins and destinations and returns a stream containing\nroute information for each combination of origin and destination.\n\nNOTE: This method requires that you specify a response field mask in\nthe input. You can provide the response field mask by using the URL\nparameter $fields or fields, or by using the HTTP/gRPC header\nX-Goog-FieldMask (see the available URL parameters and\nheaders (at https: //cloud.google.com/apis/docs/system-parameters). The value\nis a comma separated list of field paths. See this detailed documentation\nabout how to construct the field\npaths (at https: //github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto).\n\nFor example, in this method: \n\n\tField mask of all available fields (for manual inspection): \n\tX-Goog-FieldMask: *\n\n\tField mask of route durations, distances, element status, condition, and\n\telement indices (an example production setup): \n\tX-Goog-FieldMask: originIndex,destinationIndex,status,condition,distanceMeters,duration\n\nIt is critical that you include status in your field mask as otherwise\nall messages will appear to be OK. Google discourages the use of the\nwildcard (*) response field mask, because: \n\n\tSelecting only the fields that you need helps our server save computation\n\tcycles, allowing us to return the result to you with a lower latency.\n\n\tSelecting only the fields that you need in your production job ensures\n\tstable latency performance. We might add more response fields in the\n\tfuture, and those new fields might require extra computation time. If you\n\tselect all fields, or if you select all fields at the top level, then you\n\tmight experience performance degradation because any new field we add will\n\tbe automatically included in the response.\n\n\tSelecting only the fields that you need results in a smaller response\n\tsize, and thus higher network throughput.", + "file": "RoutesClient/ComputeRouteMatrix/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ComputeRouteMatrix", + "fullName": "google.maps.routing.v2.RoutesClient.ComputeRouteMatrix", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "routingpb.ComputeRouteMatrixRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "RoutesClient", + "fullName": "google.maps.routing.v2.RoutesClient" + }, + "method": { + "shortName": "ComputeRouteMatrix", + "fullName": "google.maps.routing.v2.Routes.ComputeRouteMatrix", + "service": { + "shortName": "Routes", + "fullName": "google.maps.routing.v2.Routes" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 1, + "end": -1, + "type": "FULL" + } + ] + }, + { + "regionTag": "routes_v2_generated_Routes_ComputeRoutes_sync", + "title": "routes ComputeRoutes Sample", + "description": "ComputeRoutes returns the primary route along with optional alternate routes, given a set\nof terminal and intermediate waypoints.\n\nNOTE: This method requires that you specify a response field mask in\nthe input. You can provide the response field mask by using URL parameter\n$fields or fields, or by using an HTTP/gRPC header X-Goog-FieldMask\n(see the available URL parameters and\nheaders (at https: //cloud.google.com/apis/docs/system-parameters). The value\nis a comma separated list of field paths. See detailed documentation about\nhow to construct the field\npaths (at https: //github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto).\n\nFor example, in this method: \n\n\tField mask of all available fields (for manual inspection): \n\tX-Goog-FieldMask: *\n\n\tField mask of Route-level duration, distance, and polyline (an example\n\tproduction setup): \n\tX-Goog-FieldMask: routes.duration,routes.distanceMeters,routes.polyline.encodedPolyline\n\nGoogle discourage the use of the wildcard (*) response field mask, or\nspecifying the field mask at the top level (routes), because: \n\n\tSelecting only the fields that you need helps our server save computation\n\tcycles, allowing us to return the result to you with a lower latency.\n\n\tSelecting only the fields that you need\n\tin your production job ensures stable latency performance. We might add\n\tmore response fields in the future, and those new fields might require\n\textra computation time. If you select all fields, or if you select all\n\tfields at the top level, then you might experience performance degradation\n\tbecause any new field we add will be automatically included in the\n\tresponse.\n\n\tSelecting only the fields that you need results in a smaller response\n\tsize, and thus higher network throughput.", + "file": "RoutesClient/ComputeRoutes/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ComputeRoutes", + "fullName": "google.maps.routing.v2.RoutesClient.ComputeRoutes", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "routingpb.ComputeRoutesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "routingpb.ComputeRoutesResponse", + "client": { + "shortName": "RoutesClient", + "fullName": "google.maps.routing.v2.RoutesClient" + }, + "method": { + "shortName": "ComputeRoutes", + "fullName": "google.maps.routing.v2.Routes.ComputeRoutes", + "service": { + "shortName": "Routes", + "fullName": "google.maps.routing.v2.Routes" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/mediatranslation/apiv1beta1/SpeechTranslationClient/StreamingTranslateSpeech/main.go b/internal/generated/snippets/mediatranslation/apiv1beta1/SpeechTranslationClient/StreamingTranslateSpeech/main.go index 6be089a518df..6014cbe60dbf 100644 --- a/internal/generated/snippets/mediatranslation/apiv1beta1/SpeechTranslationClient/StreamingTranslateSpeech/main.go +++ b/internal/generated/snippets/mediatranslation/apiv1beta1/SpeechTranslationClient/StreamingTranslateSpeech/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,11 +23,16 @@ import ( "io" mediatranslation "cloud.google.com/go/mediatranslation/apiv1beta1" - mediatranslationpb "google.golang.org/genproto/googleapis/cloud/mediatranslation/v1beta1" + mediatranslationpb "cloud.google.com/go/mediatranslation/apiv1beta1/mediatranslationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := mediatranslation.NewSpeechTranslationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/mediatranslation/apiv1beta1/snippet_metadata.google.cloud.mediatranslation.v1beta1.json b/internal/generated/snippets/mediatranslation/apiv1beta1/snippet_metadata.google.cloud.mediatranslation.v1beta1.json new file mode 100644 index 000000000000..7fcb2e30c16f --- /dev/null +++ b/internal/generated/snippets/mediatranslation/apiv1beta1/snippet_metadata.google.cloud.mediatranslation.v1beta1.json @@ -0,0 +1,56 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/mediatranslation/apiv1beta1", + "version": "0.7.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.mediatranslation.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "mediatranslation_v1beta1_generated_SpeechTranslationService_StreamingTranslateSpeech_sync", + "title": "mediatranslation StreamingTranslateSpeech Sample", + "description": "StreamingTranslateSpeech performs bidirectional streaming speech translation: receive results while\nsending audio. This method is only available via the gRPC API (not REST).", + "file": "SpeechTranslationClient/StreamingTranslateSpeech/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StreamingTranslateSpeech", + "fullName": "google.cloud.mediatranslation.v1beta1.SpeechTranslationClient.StreamingTranslateSpeech", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "SpeechTranslationClient", + "fullName": "google.cloud.mediatranslation.v1beta1.SpeechTranslationClient" + }, + "method": { + "shortName": "StreamingTranslateSpeech", + "fullName": "google.cloud.mediatranslation.v1beta1.SpeechTranslationService.StreamingTranslateSpeech", + "service": { + "shortName": "SpeechTranslationService", + "fullName": "google.cloud.mediatranslation.v1beta1.SpeechTranslationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 69, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/ApplyParameters/main.go b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/ApplyParameters/main.go index 1d88876e56bf..73bb601c38e8 100644 --- a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/ApplyParameters/main.go +++ b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/ApplyParameters/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" memcache "cloud.google.com/go/memcache/apiv1" - memcachepb "google.golang.org/genproto/googleapis/cloud/memcache/v1" + memcachepb "cloud.google.com/go/memcache/apiv1/memcachepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &memcachepb.ApplyParametersRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/memcache/v1#ApplyParametersRequest. + // See https://pkg.go.dev/cloud.google.com/go/memcache/apiv1/memcachepb#ApplyParametersRequest. } op, err := c.ApplyParameters(ctx, req) if err != nil { diff --git a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/CancelOperation/main.go b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/CancelOperation/main.go new file mode 100644 index 000000000000..515ac65a937f --- /dev/null +++ b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START memcache_v1_generated_CloudMemcache_CancelOperation_sync] + +package main + +import ( + "context" + + memcache "cloud.google.com/go/memcache/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := memcache.NewCloudMemcacheClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END memcache_v1_generated_CloudMemcache_CancelOperation_sync] diff --git a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/CreateInstance/main.go b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/CreateInstance/main.go index 5907c5e5d444..c4f2eb4fe5ef 100644 --- a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/CreateInstance/main.go +++ b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/CreateInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" memcache "cloud.google.com/go/memcache/apiv1" - memcachepb "google.golang.org/genproto/googleapis/cloud/memcache/v1" + memcachepb "cloud.google.com/go/memcache/apiv1/memcachepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &memcachepb.CreateInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/memcache/v1#CreateInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/memcache/apiv1/memcachepb#CreateInstanceRequest. } op, err := c.CreateInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/DeleteInstance/main.go b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/DeleteInstance/main.go index 92669d050526..577cffc6b90d 100644 --- a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/DeleteInstance/main.go +++ b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/DeleteInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" memcache "cloud.google.com/go/memcache/apiv1" - memcachepb "google.golang.org/genproto/googleapis/cloud/memcache/v1" + memcachepb "cloud.google.com/go/memcache/apiv1/memcachepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &memcachepb.DeleteInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/memcache/v1#DeleteInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/memcache/apiv1/memcachepb#DeleteInstanceRequest. } op, err := c.DeleteInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/DeleteOperation/main.go b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/DeleteOperation/main.go new file mode 100644 index 000000000000..f518eee3a10c --- /dev/null +++ b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START memcache_v1_generated_CloudMemcache_DeleteOperation_sync] + +package main + +import ( + "context" + + memcache "cloud.google.com/go/memcache/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := memcache.NewCloudMemcacheClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END memcache_v1_generated_CloudMemcache_DeleteOperation_sync] diff --git a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/GetInstance/main.go b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/GetInstance/main.go index 0adf5b9c9f6d..bb34caa7e8e2 100644 --- a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/GetInstance/main.go +++ b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/GetInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" memcache "cloud.google.com/go/memcache/apiv1" - memcachepb "google.golang.org/genproto/googleapis/cloud/memcache/v1" + memcachepb "cloud.google.com/go/memcache/apiv1/memcachepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &memcachepb.GetInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/memcache/v1#GetInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/memcache/apiv1/memcachepb#GetInstanceRequest. } resp, err := c.GetInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/GetLocation/main.go b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/GetLocation/main.go new file mode 100644 index 000000000000..dc8ff4f4cced --- /dev/null +++ b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START memcache_v1_generated_CloudMemcache_GetLocation_sync] + +package main + +import ( + "context" + + memcache "cloud.google.com/go/memcache/apiv1" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := memcache.NewCloudMemcacheClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END memcache_v1_generated_CloudMemcache_GetLocation_sync] diff --git a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/GetOperation/main.go b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/GetOperation/main.go new file mode 100644 index 000000000000..fa06bd2223c0 --- /dev/null +++ b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START memcache_v1_generated_CloudMemcache_GetOperation_sync] + +package main + +import ( + "context" + + memcache "cloud.google.com/go/memcache/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := memcache.NewCloudMemcacheClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END memcache_v1_generated_CloudMemcache_GetOperation_sync] diff --git a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/ListInstances/main.go b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/ListInstances/main.go index 6c9135a360ac..9988a9cd311e 100644 --- a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/ListInstances/main.go +++ b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/ListInstances/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" memcache "cloud.google.com/go/memcache/apiv1" + memcachepb "cloud.google.com/go/memcache/apiv1/memcachepb" "google.golang.org/api/iterator" - memcachepb "google.golang.org/genproto/googleapis/cloud/memcache/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &memcachepb.ListInstancesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/memcache/v1#ListInstancesRequest. + // See https://pkg.go.dev/cloud.google.com/go/memcache/apiv1/memcachepb#ListInstancesRequest. } it := c.ListInstances(ctx, req) for { diff --git a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/ListLocations/main.go b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/ListLocations/main.go new file mode 100644 index 000000000000..32d5fe39b17c --- /dev/null +++ b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START memcache_v1_generated_CloudMemcache_ListLocations_sync] + +package main + +import ( + "context" + + memcache "cloud.google.com/go/memcache/apiv1" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := memcache.NewCloudMemcacheClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END memcache_v1_generated_CloudMemcache_ListLocations_sync] diff --git a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/ListOperations/main.go b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/ListOperations/main.go new file mode 100644 index 000000000000..d9e0c2a0c527 --- /dev/null +++ b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START memcache_v1_generated_CloudMemcache_ListOperations_sync] + +package main + +import ( + "context" + + memcache "cloud.google.com/go/memcache/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := memcache.NewCloudMemcacheClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END memcache_v1_generated_CloudMemcache_ListOperations_sync] diff --git a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/RescheduleMaintenance/main.go b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/RescheduleMaintenance/main.go new file mode 100644 index 000000000000..b6fc29230726 --- /dev/null +++ b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/RescheduleMaintenance/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START memcache_v1_generated_CloudMemcache_RescheduleMaintenance_sync] + +package main + +import ( + "context" + + memcache "cloud.google.com/go/memcache/apiv1" + memcachepb "cloud.google.com/go/memcache/apiv1/memcachepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := memcache.NewCloudMemcacheClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &memcachepb.RescheduleMaintenanceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/memcache/apiv1/memcachepb#RescheduleMaintenanceRequest. + } + op, err := c.RescheduleMaintenance(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END memcache_v1_generated_CloudMemcache_RescheduleMaintenance_sync] diff --git a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/UpdateInstance/main.go b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/UpdateInstance/main.go index 882a16d73d6a..e3fcb65a2089 100644 --- a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/UpdateInstance/main.go +++ b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/UpdateInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" memcache "cloud.google.com/go/memcache/apiv1" - memcachepb "google.golang.org/genproto/googleapis/cloud/memcache/v1" + memcachepb "cloud.google.com/go/memcache/apiv1/memcachepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &memcachepb.UpdateInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/memcache/v1#UpdateInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/memcache/apiv1/memcachepb#UpdateInstanceRequest. } op, err := c.UpdateInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/UpdateParameters/main.go b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/UpdateParameters/main.go index e971b9583d61..73c54fd7e919 100644 --- a/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/UpdateParameters/main.go +++ b/internal/generated/snippets/memcache/apiv1/CloudMemcacheClient/UpdateParameters/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" memcache "cloud.google.com/go/memcache/apiv1" - memcachepb "google.golang.org/genproto/googleapis/cloud/memcache/v1" + memcachepb "cloud.google.com/go/memcache/apiv1/memcachepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &memcachepb.UpdateParametersRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/memcache/v1#UpdateParametersRequest. + // See https://pkg.go.dev/cloud.google.com/go/memcache/apiv1/memcachepb#UpdateParametersRequest. } op, err := c.UpdateParameters(ctx, req) if err != nil { diff --git a/internal/generated/snippets/memcache/apiv1/snippet_metadata.google.cloud.memcache.v1.json b/internal/generated/snippets/memcache/apiv1/snippet_metadata.google.cloud.memcache.v1.json new file mode 100644 index 000000000000..3014063ea673 --- /dev/null +++ b/internal/generated/snippets/memcache/apiv1/snippet_metadata.google.cloud.memcache.v1.json @@ -0,0 +1,657 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/memcache/apiv1", + "version": "1.9.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.memcache.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "memcache_v1_generated_CloudMemcache_ApplyParameters_sync", + "title": "memcache ApplyParameters Sample", + "description": "ApplyParameters ApplyParameters restarts the set of specified nodes in order to update\nthem to the current set of parameters for the Memcached Instance.", + "file": "CloudMemcacheClient/ApplyParameters/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ApplyParameters", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient.ApplyParameters", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "memcachepb.ApplyParametersRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ApplyParametersOperation", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" + }, + "method": { + "shortName": "ApplyParameters", + "fullName": "google.cloud.memcache.v1.CloudMemcache.ApplyParameters", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1_generated_CloudMemcache_CancelOperation_sync", + "title": "memcache CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "CloudMemcacheClient/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.memcache.v1.CloudMemcache.CancelOperation", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1_generated_CloudMemcache_CreateInstance_sync", + "title": "memcache CreateInstance Sample", + "description": "CreateInstance creates a new Instance in a given location.", + "file": "CloudMemcacheClient/CreateInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateInstance", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient.CreateInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "memcachepb.CreateInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateInstanceOperation", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.cloud.memcache.v1.CloudMemcache.CreateInstance", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1_generated_CloudMemcache_DeleteInstance_sync", + "title": "memcache DeleteInstance Sample", + "description": "DeleteInstance deletes a single Instance.", + "file": "CloudMemcacheClient/DeleteInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient.DeleteInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "memcachepb.DeleteInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteInstanceOperation", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.memcache.v1.CloudMemcache.DeleteInstance", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1_generated_CloudMemcache_DeleteOperation_sync", + "title": "memcache DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "CloudMemcacheClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.memcache.v1.CloudMemcache.DeleteOperation", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1_generated_CloudMemcache_GetInstance_sync", + "title": "memcache GetInstance Sample", + "description": "GetInstance gets details of a single Instance.", + "file": "CloudMemcacheClient/GetInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInstance", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient.GetInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "memcachepb.GetInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "memcachepb.Instance", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.cloud.memcache.v1.CloudMemcache.GetInstance", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1_generated_CloudMemcache_GetLocation_sync", + "title": "memcache GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "CloudMemcacheClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.memcache.v1.CloudMemcache.GetLocation", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1_generated_CloudMemcache_GetOperation_sync", + "title": "memcache GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "CloudMemcacheClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.memcache.v1.CloudMemcache.GetOperation", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1_generated_CloudMemcache_ListInstances_sync", + "title": "memcache ListInstances Sample", + "description": "ListInstances lists Instances in a given location.", + "file": "CloudMemcacheClient/ListInstances/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListInstances", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient.ListInstances", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "memcachepb.ListInstancesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "InstanceIterator", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.cloud.memcache.v1.CloudMemcache.ListInstances", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1_generated_CloudMemcache_ListLocations_sync", + "title": "memcache ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "CloudMemcacheClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.memcache.v1.CloudMemcache.ListLocations", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1_generated_CloudMemcache_ListOperations_sync", + "title": "memcache ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "CloudMemcacheClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.memcache.v1.CloudMemcache.ListOperations", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1_generated_CloudMemcache_RescheduleMaintenance_sync", + "title": "memcache RescheduleMaintenance Sample", + "description": "RescheduleMaintenance reschedules upcoming maintenance event.", + "file": "CloudMemcacheClient/RescheduleMaintenance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RescheduleMaintenance", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient.RescheduleMaintenance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "memcachepb.RescheduleMaintenanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RescheduleMaintenanceOperation", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" + }, + "method": { + "shortName": "RescheduleMaintenance", + "fullName": "google.cloud.memcache.v1.CloudMemcache.RescheduleMaintenance", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1_generated_CloudMemcache_UpdateInstance_sync", + "title": "memcache UpdateInstance Sample", + "description": "UpdateInstance updates an existing Instance in a given project and location.", + "file": "CloudMemcacheClient/UpdateInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateInstance", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient.UpdateInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "memcachepb.UpdateInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateInstanceOperation", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" + }, + "method": { + "shortName": "UpdateInstance", + "fullName": "google.cloud.memcache.v1.CloudMemcache.UpdateInstance", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1_generated_CloudMemcache_UpdateParameters_sync", + "title": "memcache UpdateParameters Sample", + "description": "UpdateParameters updates the defined Memcached parameters for an existing instance.\nThis method only stages the parameters, it must be followed by\nApplyParameters to apply the parameters to nodes of the Memcached\ninstance.", + "file": "CloudMemcacheClient/UpdateParameters/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateParameters", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient.UpdateParameters", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "memcachepb.UpdateParametersRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateParametersOperation", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" + }, + "method": { + "shortName": "UpdateParameters", + "fullName": "google.cloud.memcache.v1.CloudMemcache.UpdateParameters", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/ApplyParameters/main.go b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/ApplyParameters/main.go index 4116e326a34a..cef5bf9ed31a 100644 --- a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/ApplyParameters/main.go +++ b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/ApplyParameters/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" memcache "cloud.google.com/go/memcache/apiv1beta2" - memcachepb "google.golang.org/genproto/googleapis/cloud/memcache/v1beta2" + memcachepb "cloud.google.com/go/memcache/apiv1beta2/memcachepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &memcachepb.ApplyParametersRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/memcache/v1beta2#ApplyParametersRequest. + // See https://pkg.go.dev/cloud.google.com/go/memcache/apiv1beta2/memcachepb#ApplyParametersRequest. } op, err := c.ApplyParameters(ctx, req) if err != nil { diff --git a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/ApplySoftwareUpdate/main.go b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/ApplySoftwareUpdate/main.go index 78ee90fa9b0a..0bbdce0080a1 100644 --- a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/ApplySoftwareUpdate/main.go +++ b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/ApplySoftwareUpdate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" memcache "cloud.google.com/go/memcache/apiv1beta2" - memcachepb "google.golang.org/genproto/googleapis/cloud/memcache/v1beta2" + memcachepb "cloud.google.com/go/memcache/apiv1beta2/memcachepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &memcachepb.ApplySoftwareUpdateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/memcache/v1beta2#ApplySoftwareUpdateRequest. + // See https://pkg.go.dev/cloud.google.com/go/memcache/apiv1beta2/memcachepb#ApplySoftwareUpdateRequest. } op, err := c.ApplySoftwareUpdate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/CancelOperation/main.go b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/CancelOperation/main.go new file mode 100644 index 000000000000..b7e1059efba8 --- /dev/null +++ b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START memcache_v1beta2_generated_CloudMemcache_CancelOperation_sync] + +package main + +import ( + "context" + + memcache "cloud.google.com/go/memcache/apiv1beta2" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := memcache.NewCloudMemcacheClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END memcache_v1beta2_generated_CloudMemcache_CancelOperation_sync] diff --git a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/CreateInstance/main.go b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/CreateInstance/main.go index f2e100c4f664..cc11440686a4 100644 --- a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/CreateInstance/main.go +++ b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/CreateInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" memcache "cloud.google.com/go/memcache/apiv1beta2" - memcachepb "google.golang.org/genproto/googleapis/cloud/memcache/v1beta2" + memcachepb "cloud.google.com/go/memcache/apiv1beta2/memcachepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &memcachepb.CreateInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/memcache/v1beta2#CreateInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/memcache/apiv1beta2/memcachepb#CreateInstanceRequest. } op, err := c.CreateInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/DeleteInstance/main.go b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/DeleteInstance/main.go index da7827326b85..bdddece42d26 100644 --- a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/DeleteInstance/main.go +++ b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/DeleteInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" memcache "cloud.google.com/go/memcache/apiv1beta2" - memcachepb "google.golang.org/genproto/googleapis/cloud/memcache/v1beta2" + memcachepb "cloud.google.com/go/memcache/apiv1beta2/memcachepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &memcachepb.DeleteInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/memcache/v1beta2#DeleteInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/memcache/apiv1beta2/memcachepb#DeleteInstanceRequest. } op, err := c.DeleteInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/DeleteOperation/main.go b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/DeleteOperation/main.go new file mode 100644 index 000000000000..9eefb1fa9dfd --- /dev/null +++ b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START memcache_v1beta2_generated_CloudMemcache_DeleteOperation_sync] + +package main + +import ( + "context" + + memcache "cloud.google.com/go/memcache/apiv1beta2" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := memcache.NewCloudMemcacheClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END memcache_v1beta2_generated_CloudMemcache_DeleteOperation_sync] diff --git a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/GetInstance/main.go b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/GetInstance/main.go index 8406d751ccfb..f59caf88e502 100644 --- a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/GetInstance/main.go +++ b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/GetInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" memcache "cloud.google.com/go/memcache/apiv1beta2" - memcachepb "google.golang.org/genproto/googleapis/cloud/memcache/v1beta2" + memcachepb "cloud.google.com/go/memcache/apiv1beta2/memcachepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &memcachepb.GetInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/memcache/v1beta2#GetInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/memcache/apiv1beta2/memcachepb#GetInstanceRequest. } resp, err := c.GetInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/GetLocation/main.go b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/GetLocation/main.go new file mode 100644 index 000000000000..c4fdc46c2952 --- /dev/null +++ b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START memcache_v1beta2_generated_CloudMemcache_GetLocation_sync] + +package main + +import ( + "context" + + memcache "cloud.google.com/go/memcache/apiv1beta2" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := memcache.NewCloudMemcacheClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END memcache_v1beta2_generated_CloudMemcache_GetLocation_sync] diff --git a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/GetOperation/main.go b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/GetOperation/main.go new file mode 100644 index 000000000000..78347fe7d31e --- /dev/null +++ b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START memcache_v1beta2_generated_CloudMemcache_GetOperation_sync] + +package main + +import ( + "context" + + memcache "cloud.google.com/go/memcache/apiv1beta2" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := memcache.NewCloudMemcacheClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END memcache_v1beta2_generated_CloudMemcache_GetOperation_sync] diff --git a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/ListInstances/main.go b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/ListInstances/main.go index 06688753c5f0..7dac9b1eac0f 100644 --- a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/ListInstances/main.go +++ b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/ListInstances/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" memcache "cloud.google.com/go/memcache/apiv1beta2" + memcachepb "cloud.google.com/go/memcache/apiv1beta2/memcachepb" "google.golang.org/api/iterator" - memcachepb "google.golang.org/genproto/googleapis/cloud/memcache/v1beta2" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &memcachepb.ListInstancesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/memcache/v1beta2#ListInstancesRequest. + // See https://pkg.go.dev/cloud.google.com/go/memcache/apiv1beta2/memcachepb#ListInstancesRequest. } it := c.ListInstances(ctx, req) for { diff --git a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/ListLocations/main.go b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/ListLocations/main.go new file mode 100644 index 000000000000..6c78fafcad7f --- /dev/null +++ b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START memcache_v1beta2_generated_CloudMemcache_ListLocations_sync] + +package main + +import ( + "context" + + memcache "cloud.google.com/go/memcache/apiv1beta2" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := memcache.NewCloudMemcacheClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END memcache_v1beta2_generated_CloudMemcache_ListLocations_sync] diff --git a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/ListOperations/main.go b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/ListOperations/main.go new file mode 100644 index 000000000000..11cad0e91bfb --- /dev/null +++ b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START memcache_v1beta2_generated_CloudMemcache_ListOperations_sync] + +package main + +import ( + "context" + + memcache "cloud.google.com/go/memcache/apiv1beta2" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := memcache.NewCloudMemcacheClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END memcache_v1beta2_generated_CloudMemcache_ListOperations_sync] diff --git a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/RescheduleMaintenance/main.go b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/RescheduleMaintenance/main.go new file mode 100644 index 000000000000..bddcf7589034 --- /dev/null +++ b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/RescheduleMaintenance/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START memcache_v1beta2_generated_CloudMemcache_RescheduleMaintenance_sync] + +package main + +import ( + "context" + + memcache "cloud.google.com/go/memcache/apiv1beta2" + memcachepb "cloud.google.com/go/memcache/apiv1beta2/memcachepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := memcache.NewCloudMemcacheClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &memcachepb.RescheduleMaintenanceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/memcache/apiv1beta2/memcachepb#RescheduleMaintenanceRequest. + } + op, err := c.RescheduleMaintenance(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END memcache_v1beta2_generated_CloudMemcache_RescheduleMaintenance_sync] diff --git a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/UpdateInstance/main.go b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/UpdateInstance/main.go index f0cae0f24ce5..d16ec58a8958 100644 --- a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/UpdateInstance/main.go +++ b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/UpdateInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" memcache "cloud.google.com/go/memcache/apiv1beta2" - memcachepb "google.golang.org/genproto/googleapis/cloud/memcache/v1beta2" + memcachepb "cloud.google.com/go/memcache/apiv1beta2/memcachepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &memcachepb.UpdateInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/memcache/v1beta2#UpdateInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/memcache/apiv1beta2/memcachepb#UpdateInstanceRequest. } op, err := c.UpdateInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/UpdateParameters/main.go b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/UpdateParameters/main.go index 64fea1b7c41a..2e24aa773da6 100644 --- a/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/UpdateParameters/main.go +++ b/internal/generated/snippets/memcache/apiv1beta2/CloudMemcacheClient/UpdateParameters/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" memcache "cloud.google.com/go/memcache/apiv1beta2" - memcachepb "google.golang.org/genproto/googleapis/cloud/memcache/v1beta2" + memcachepb "cloud.google.com/go/memcache/apiv1beta2/memcachepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := memcache.NewCloudMemcacheClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &memcachepb.UpdateParametersRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/memcache/v1beta2#UpdateParametersRequest. + // See https://pkg.go.dev/cloud.google.com/go/memcache/apiv1beta2/memcachepb#UpdateParametersRequest. } op, err := c.UpdateParameters(ctx, req) if err != nil { diff --git a/internal/generated/snippets/memcache/apiv1beta2/snippet_metadata.google.cloud.memcache.v1beta2.json b/internal/generated/snippets/memcache/apiv1beta2/snippet_metadata.google.cloud.memcache.v1beta2.json new file mode 100644 index 000000000000..dc6b4b6def8a --- /dev/null +++ b/internal/generated/snippets/memcache/apiv1beta2/snippet_metadata.google.cloud.memcache.v1beta2.json @@ -0,0 +1,703 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/memcache/apiv1beta2", + "version": "1.9.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.memcache.v1beta2", + "version": "v1beta2" + } + ] + }, + "snippets": [ + { + "regionTag": "memcache_v1beta2_generated_CloudMemcache_ApplyParameters_sync", + "title": "memcache ApplyParameters Sample", + "description": "ApplyParameters ApplyParameters restarts the set of specified nodes in order to update\nthem to the current set of parameters for the Memcached Instance.", + "file": "CloudMemcacheClient/ApplyParameters/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ApplyParameters", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient.ApplyParameters", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "memcachepb.ApplyParametersRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ApplyParametersOperation", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" + }, + "method": { + "shortName": "ApplyParameters", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.ApplyParameters", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1beta2_generated_CloudMemcache_ApplySoftwareUpdate_sync", + "title": "memcache ApplySoftwareUpdate Sample", + "description": "ApplySoftwareUpdate updates software on the selected nodes of the Instance.", + "file": "CloudMemcacheClient/ApplySoftwareUpdate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ApplySoftwareUpdate", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient.ApplySoftwareUpdate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "memcachepb.ApplySoftwareUpdateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ApplySoftwareUpdateOperation", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" + }, + "method": { + "shortName": "ApplySoftwareUpdate", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.ApplySoftwareUpdate", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1beta2_generated_CloudMemcache_CancelOperation_sync", + "title": "memcache CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "CloudMemcacheClient/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.CancelOperation", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1beta2_generated_CloudMemcache_CreateInstance_sync", + "title": "memcache CreateInstance Sample", + "description": "CreateInstance creates a new Instance in a given location.", + "file": "CloudMemcacheClient/CreateInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateInstance", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient.CreateInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "memcachepb.CreateInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateInstanceOperation", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.CreateInstance", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1beta2_generated_CloudMemcache_DeleteInstance_sync", + "title": "memcache DeleteInstance Sample", + "description": "DeleteInstance deletes a single Instance.", + "file": "CloudMemcacheClient/DeleteInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient.DeleteInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "memcachepb.DeleteInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteInstanceOperation", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.DeleteInstance", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1beta2_generated_CloudMemcache_DeleteOperation_sync", + "title": "memcache DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "CloudMemcacheClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.DeleteOperation", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1beta2_generated_CloudMemcache_GetInstance_sync", + "title": "memcache GetInstance Sample", + "description": "GetInstance gets details of a single Instance.", + "file": "CloudMemcacheClient/GetInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInstance", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient.GetInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "memcachepb.GetInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "memcachepb.Instance", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.GetInstance", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1beta2_generated_CloudMemcache_GetLocation_sync", + "title": "memcache GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "CloudMemcacheClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.GetLocation", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1beta2_generated_CloudMemcache_GetOperation_sync", + "title": "memcache GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "CloudMemcacheClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.GetOperation", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1beta2_generated_CloudMemcache_ListInstances_sync", + "title": "memcache ListInstances Sample", + "description": "ListInstances lists Instances in a given location.", + "file": "CloudMemcacheClient/ListInstances/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListInstances", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient.ListInstances", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "memcachepb.ListInstancesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "InstanceIterator", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.ListInstances", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1beta2_generated_CloudMemcache_ListLocations_sync", + "title": "memcache ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "CloudMemcacheClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.ListLocations", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1beta2_generated_CloudMemcache_ListOperations_sync", + "title": "memcache ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "CloudMemcacheClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.ListOperations", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1beta2_generated_CloudMemcache_RescheduleMaintenance_sync", + "title": "memcache RescheduleMaintenance Sample", + "description": "RescheduleMaintenance performs the apply phase of the RescheduleMaintenance verb.", + "file": "CloudMemcacheClient/RescheduleMaintenance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RescheduleMaintenance", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient.RescheduleMaintenance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "memcachepb.RescheduleMaintenanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RescheduleMaintenanceOperation", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" + }, + "method": { + "shortName": "RescheduleMaintenance", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.RescheduleMaintenance", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1beta2_generated_CloudMemcache_UpdateInstance_sync", + "title": "memcache UpdateInstance Sample", + "description": "UpdateInstance updates an existing Instance in a given project and location.", + "file": "CloudMemcacheClient/UpdateInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateInstance", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient.UpdateInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "memcachepb.UpdateInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateInstanceOperation", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" + }, + "method": { + "shortName": "UpdateInstance", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.UpdateInstance", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "memcache_v1beta2_generated_CloudMemcache_UpdateParameters_sync", + "title": "memcache UpdateParameters Sample", + "description": "UpdateParameters updates the defined Memcached parameters for an existing instance.\nThis method only stages the parameters, it must be followed by\nApplyParameters to apply the parameters to nodes of the Memcached\ninstance.", + "file": "CloudMemcacheClient/UpdateParameters/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateParameters", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient.UpdateParameters", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "memcachepb.UpdateParametersRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateParametersOperation", + "client": { + "shortName": "CloudMemcacheClient", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" + }, + "method": { + "shortName": "UpdateParameters", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.UpdateParameters", + "service": { + "shortName": "CloudMemcache", + "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/CreateBackup/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/CreateBackup/main.go index 17af75993128..16a708bf53e7 100644 --- a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/CreateBackup/main.go +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/CreateBackup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.CreateBackupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1#CreateBackupRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#CreateBackupRequest. } op, err := c.CreateBackup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/CreateMetadataImport/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/CreateMetadataImport/main.go index b55efac3fc46..9bc5851ff09e 100644 --- a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/CreateMetadataImport/main.go +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/CreateMetadataImport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.CreateMetadataImportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1#CreateMetadataImportRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#CreateMetadataImportRequest. } op, err := c.CreateMetadataImport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/CreateService/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/CreateService/main.go index b99608740bd5..0e63a83449ef 100644 --- a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/CreateService/main.go +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/CreateService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.CreateServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1#CreateServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#CreateServiceRequest. } op, err := c.CreateService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/DeleteBackup/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/DeleteBackup/main.go index 74656ff5c178..824b48e286a7 100644 --- a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/DeleteBackup/main.go +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/DeleteBackup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.DeleteBackupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1#DeleteBackupRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#DeleteBackupRequest. } op, err := c.DeleteBackup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/DeleteOperation/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/DeleteOperation/main.go new file mode 100644 index 000000000000..a18637def170 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastore_DeleteOperation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END metastore_v1_generated_DataprocMetastore_DeleteOperation_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/DeleteService/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/DeleteService/main.go index 3b154a076d6e..706c3eb9f7cf 100644 --- a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/DeleteService/main.go +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/DeleteService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.DeleteServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1#DeleteServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#DeleteServiceRequest. } op, err := c.DeleteService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ExportMetadata/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ExportMetadata/main.go index ed9a950461b1..0f8909d81426 100644 --- a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ExportMetadata/main.go +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ExportMetadata/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.ExportMetadataRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1#ExportMetadataRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#ExportMetadataRequest. } op, err := c.ExportMetadata(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetBackup/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetBackup/main.go index 59fc2bbf970f..2f154131f30f 100644 --- a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetBackup/main.go +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetBackup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.GetBackupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1#GetBackupRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#GetBackupRequest. } resp, err := c.GetBackup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetIamPolicy/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetIamPolicy/main.go new file mode 100644 index 000000000000..7e6bc3497331 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastore_GetIamPolicy_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.GetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#GetIamPolicyRequest. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1_generated_DataprocMetastore_GetIamPolicy_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetLocation/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetLocation/main.go new file mode 100644 index 000000000000..95dd7dc05fc5 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastore_GetLocation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1_generated_DataprocMetastore_GetLocation_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetMetadataImport/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetMetadataImport/main.go index 371b73ccb180..9b31e47b1474 100644 --- a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetMetadataImport/main.go +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetMetadataImport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.GetMetadataImportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1#GetMetadataImportRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#GetMetadataImportRequest. } resp, err := c.GetMetadataImport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetOperation/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetOperation/main.go new file mode 100644 index 000000000000..7584ab6e4dc9 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastore_GetOperation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1_generated_DataprocMetastore_GetOperation_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetService/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetService/main.go index 2b31424ec954..34703b10b1b0 100644 --- a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetService/main.go +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/GetService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.GetServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1#GetServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#GetServiceRequest. } resp, err := c.GetService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ListBackups/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ListBackups/main.go index d05f9f3fd38b..75cfc7ca0e19 100644 --- a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ListBackups/main.go +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ListBackups/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" "google.golang.org/api/iterator" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &metastorepb.ListBackupsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1#ListBackupsRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#ListBackupsRequest. } it := c.ListBackups(ctx, req) for { diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ListLocations/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ListLocations/main.go new file mode 100644 index 000000000000..d182572d8dd8 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastore_ListLocations_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END metastore_v1_generated_DataprocMetastore_ListLocations_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ListMetadataImports/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ListMetadataImports/main.go index 1cad66ebbbb0..d3e9af85982f 100644 --- a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ListMetadataImports/main.go +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ListMetadataImports/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" "google.golang.org/api/iterator" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &metastorepb.ListMetadataImportsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1#ListMetadataImportsRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#ListMetadataImportsRequest. } it := c.ListMetadataImports(ctx, req) for { diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ListOperations/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ListOperations/main.go new file mode 100644 index 000000000000..5cf11e3e6c64 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastore_ListOperations_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END metastore_v1_generated_DataprocMetastore_ListOperations_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ListServices/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ListServices/main.go index 95bf8fece1b2..bced452b4a61 100644 --- a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ListServices/main.go +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/ListServices/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" "google.golang.org/api/iterator" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &metastorepb.ListServicesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1#ListServicesRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#ListServicesRequest. } it := c.ListServices(ctx, req) for { diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/RestoreService/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/RestoreService/main.go index 4c548e0c0232..cf272f61f58b 100644 --- a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/RestoreService/main.go +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/RestoreService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.RestoreServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1#RestoreServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#RestoreServiceRequest. } op, err := c.RestoreService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/SetIamPolicy/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/SetIamPolicy/main.go new file mode 100644 index 000000000000..f91b31afb139 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/SetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastore_SetIamPolicy_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.SetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#SetIamPolicyRequest. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1_generated_DataprocMetastore_SetIamPolicy_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/TestIamPermissions/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/TestIamPermissions/main.go new file mode 100644 index 000000000000..8cdca1762ea6 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/TestIamPermissions/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastore_TestIamPermissions_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.TestIamPermissionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#TestIamPermissionsRequest. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1_generated_DataprocMetastore_TestIamPermissions_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/UpdateMetadataImport/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/UpdateMetadataImport/main.go index bb89bb48b6aa..5a531fa6d765 100644 --- a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/UpdateMetadataImport/main.go +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/UpdateMetadataImport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.UpdateMetadataImportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1#UpdateMetadataImportRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#UpdateMetadataImportRequest. } op, err := c.UpdateMetadataImport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/UpdateService/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/UpdateService/main.go index 6a8f3d53e639..fbb0ce42f37b 100644 --- a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/UpdateService/main.go +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreClient/UpdateService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.UpdateServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1#UpdateServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#UpdateServiceRequest. } op, err := c.UpdateService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/CreateFederation/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/CreateFederation/main.go new file mode 100644 index 000000000000..a7e89861cbf8 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/CreateFederation/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastoreFederation_CreateFederation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.CreateFederationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#CreateFederationRequest. + } + op, err := c.CreateFederation(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1_generated_DataprocMetastoreFederation_CreateFederation_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/DeleteFederation/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/DeleteFederation/main.go new file mode 100644 index 000000000000..0bf2e2bc2dc5 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/DeleteFederation/main.go @@ -0,0 +1,56 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastoreFederation_DeleteFederation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.DeleteFederationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#DeleteFederationRequest. + } + op, err := c.DeleteFederation(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END metastore_v1_generated_DataprocMetastoreFederation_DeleteFederation_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/DeleteOperation/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/DeleteOperation/main.go new file mode 100644 index 000000000000..c3cb8a12b324 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastoreFederation_DeleteOperation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END metastore_v1_generated_DataprocMetastoreFederation_DeleteOperation_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/GetFederation/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/GetFederation/main.go new file mode 100644 index 000000000000..e8a1a316f071 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/GetFederation/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastoreFederation_GetFederation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.GetFederationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#GetFederationRequest. + } + resp, err := c.GetFederation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1_generated_DataprocMetastoreFederation_GetFederation_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/GetIamPolicy/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/GetIamPolicy/main.go new file mode 100644 index 000000000000..cde3592fa192 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/GetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastoreFederation_GetIamPolicy_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.GetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#GetIamPolicyRequest. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1_generated_DataprocMetastoreFederation_GetIamPolicy_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/GetLocation/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/GetLocation/main.go new file mode 100644 index 000000000000..a8c0f37fafde --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastoreFederation_GetLocation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1_generated_DataprocMetastoreFederation_GetLocation_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/GetOperation/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/GetOperation/main.go new file mode 100644 index 000000000000..4d0aec5e3084 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastoreFederation_GetOperation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1_generated_DataprocMetastoreFederation_GetOperation_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/ListFederations/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/ListFederations/main.go new file mode 100644 index 000000000000..50e74f91dfcc --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/ListFederations/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastoreFederation_ListFederations_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.ListFederationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#ListFederationsRequest. + } + it := c.ListFederations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END metastore_v1_generated_DataprocMetastoreFederation_ListFederations_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/ListLocations/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/ListLocations/main.go new file mode 100644 index 000000000000..f535381eb0ef --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastoreFederation_ListLocations_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END metastore_v1_generated_DataprocMetastoreFederation_ListLocations_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/ListOperations/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/ListOperations/main.go new file mode 100644 index 000000000000..fcaa3e530277 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastoreFederation_ListOperations_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END metastore_v1_generated_DataprocMetastoreFederation_ListOperations_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/SetIamPolicy/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/SetIamPolicy/main.go new file mode 100644 index 000000000000..7414f7c49534 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/SetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastoreFederation_SetIamPolicy_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.SetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#SetIamPolicyRequest. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1_generated_DataprocMetastoreFederation_SetIamPolicy_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/TestIamPermissions/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/TestIamPermissions/main.go new file mode 100644 index 000000000000..600824381cfc --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/TestIamPermissions/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastoreFederation_TestIamPermissions_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.TestIamPermissionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#TestIamPermissionsRequest. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1_generated_DataprocMetastoreFederation_TestIamPermissions_sync] diff --git a/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/UpdateFederation/main.go b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/UpdateFederation/main.go new file mode 100644 index 000000000000..22a82bfc6562 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/DataprocMetastoreFederationClient/UpdateFederation/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1_generated_DataprocMetastoreFederation_UpdateFederation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1" + metastorepb "cloud.google.com/go/metastore/apiv1/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.UpdateFederationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1/metastorepb#UpdateFederationRequest. + } + op, err := c.UpdateFederation(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1_generated_DataprocMetastoreFederation_UpdateFederation_sync] diff --git a/internal/generated/snippets/metastore/apiv1/snippet_metadata.google.cloud.metastore.v1.json b/internal/generated/snippets/metastore/apiv1/snippet_metadata.google.cloud.metastore.v1.json new file mode 100644 index 000000000000..742dd9513f8e --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1/snippet_metadata.google.cloud.metastore.v1.json @@ -0,0 +1,1669 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/metastore/apiv1", + "version": "1.10.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.metastore.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "metastore_v1_generated_DataprocMetastore_CreateBackup_sync", + "title": "metastore CreateBackup Sample", + "description": "CreateBackup creates a new backup in a given project and location.", + "file": "DataprocMetastoreClient/CreateBackup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateBackup", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.CreateBackup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.CreateBackupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateBackupOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "CreateBackup", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.CreateBackup", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_CreateMetadataImport_sync", + "title": "metastore CreateMetadataImport Sample", + "description": "CreateMetadataImport creates a new MetadataImport in a given project and location.", + "file": "DataprocMetastoreClient/CreateMetadataImport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateMetadataImport", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.CreateMetadataImport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.CreateMetadataImportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateMetadataImportOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "CreateMetadataImport", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.CreateMetadataImport", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_CreateService_sync", + "title": "metastore CreateService Sample", + "description": "CreateService creates a metastore service in a project and location.", + "file": "DataprocMetastoreClient/CreateService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateService", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.CreateService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.CreateServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateServiceOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "CreateService", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.CreateService", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_DeleteBackup_sync", + "title": "metastore DeleteBackup Sample", + "description": "DeleteBackup deletes a single backup.", + "file": "DataprocMetastoreClient/DeleteBackup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteBackup", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.DeleteBackup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.DeleteBackupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteBackupOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "DeleteBackup", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.DeleteBackup", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_DeleteOperation_sync", + "title": "metastore DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "DataprocMetastoreClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.DeleteOperation", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_DeleteService_sync", + "title": "metastore DeleteService Sample", + "description": "DeleteService deletes a single service.", + "file": "DataprocMetastoreClient/DeleteService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteService", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.DeleteService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.DeleteServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteServiceOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "DeleteService", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.DeleteService", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_ExportMetadata_sync", + "title": "metastore ExportMetadata Sample", + "description": "ExportMetadata exports metadata from a service.", + "file": "DataprocMetastoreClient/ExportMetadata/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ExportMetadata", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.ExportMetadata", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.ExportMetadataRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ExportMetadataOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "ExportMetadata", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.ExportMetadata", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_GetBackup_sync", + "title": "metastore GetBackup Sample", + "description": "GetBackup gets details of a single backup.", + "file": "DataprocMetastoreClient/GetBackup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetBackup", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.GetBackup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.GetBackupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "metastorepb.Backup", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "GetBackup", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.GetBackup", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_GetIamPolicy_sync", + "title": "metastore GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "DataprocMetastoreClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.GetIamPolicy", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_GetLocation_sync", + "title": "metastore GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "DataprocMetastoreClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.GetLocation", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_GetMetadataImport_sync", + "title": "metastore GetMetadataImport Sample", + "description": "GetMetadataImport gets details of a single import.", + "file": "DataprocMetastoreClient/GetMetadataImport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetMetadataImport", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.GetMetadataImport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.GetMetadataImportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "metastorepb.MetadataImport", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "GetMetadataImport", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.GetMetadataImport", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_GetOperation_sync", + "title": "metastore GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "DataprocMetastoreClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.GetOperation", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_GetService_sync", + "title": "metastore GetService Sample", + "description": "GetService gets the details of a single service.", + "file": "DataprocMetastoreClient/GetService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetService", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.GetService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.GetServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "metastorepb.Service", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "GetService", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.GetService", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_ListBackups_sync", + "title": "metastore ListBackups Sample", + "description": "ListBackups lists backups in a service.", + "file": "DataprocMetastoreClient/ListBackups/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListBackups", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.ListBackups", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.ListBackupsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "BackupIterator", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "ListBackups", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.ListBackups", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_ListLocations_sync", + "title": "metastore ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "DataprocMetastoreClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.ListLocations", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_ListMetadataImports_sync", + "title": "metastore ListMetadataImports Sample", + "description": "ListMetadataImports lists imports in a service.", + "file": "DataprocMetastoreClient/ListMetadataImports/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListMetadataImports", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.ListMetadataImports", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.ListMetadataImportsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "MetadataImportIterator", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "ListMetadataImports", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.ListMetadataImports", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_ListOperations_sync", + "title": "metastore ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "DataprocMetastoreClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.ListOperations", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_ListServices_sync", + "title": "metastore ListServices Sample", + "description": "ListServices lists services in a project and location.", + "file": "DataprocMetastoreClient/ListServices/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListServices", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.ListServices", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.ListServicesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ServiceIterator", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "ListServices", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.ListServices", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_RestoreService_sync", + "title": "metastore RestoreService Sample", + "description": "RestoreService restores a service from a backup.", + "file": "DataprocMetastoreClient/RestoreService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RestoreService", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.RestoreService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.RestoreServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RestoreServiceOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "RestoreService", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.RestoreService", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_SetIamPolicy_sync", + "title": "metastore SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "DataprocMetastoreClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.SetIamPolicy", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_TestIamPermissions_sync", + "title": "metastore TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "DataprocMetastoreClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.TestIamPermissions", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_UpdateMetadataImport_sync", + "title": "metastore UpdateMetadataImport Sample", + "description": "UpdateMetadataImport updates a single import.\nOnly the description field of MetadataImport is supported to be updated.", + "file": "DataprocMetastoreClient/UpdateMetadataImport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateMetadataImport", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.UpdateMetadataImport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.UpdateMetadataImportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateMetadataImportOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "UpdateMetadataImport", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.UpdateMetadataImport", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastore_UpdateService_sync", + "title": "metastore UpdateService Sample", + "description": "UpdateService updates the parameters of a single service.", + "file": "DataprocMetastoreClient/UpdateService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateService", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.UpdateService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.UpdateServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateServiceOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" + }, + "method": { + "shortName": "UpdateService", + "fullName": "google.cloud.metastore.v1.DataprocMetastore.UpdateService", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_CreateFederation_sync", + "title": "metastore CreateFederation Sample", + "description": "CreateFederation creates a metastore federation in a project and location.", + "file": "DataprocMetastoreFederationClient/CreateFederation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.CreateFederation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.CreateFederationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateFederationOperation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "CreateFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.CreateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_DeleteFederation_sync", + "title": "metastore DeleteFederation Sample", + "description": "DeleteFederation deletes a single federation.", + "file": "DataprocMetastoreFederationClient/DeleteFederation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.DeleteFederation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.DeleteFederationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteFederationOperation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "DeleteFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.DeleteFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_DeleteOperation_sync", + "title": "metastore DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "DataprocMetastoreFederationClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.DeleteOperation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_GetFederation_sync", + "title": "metastore GetFederation Sample", + "description": "GetFederation gets the details of a single federation.", + "file": "DataprocMetastoreFederationClient/GetFederation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.GetFederation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.GetFederationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "metastorepb.Federation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.GetFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_GetIamPolicy_sync", + "title": "metastore GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "DataprocMetastoreFederationClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.GetIamPolicy", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_GetLocation_sync", + "title": "metastore GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "DataprocMetastoreFederationClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.GetLocation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_GetOperation_sync", + "title": "metastore GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "DataprocMetastoreFederationClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.GetOperation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_ListFederations_sync", + "title": "metastore ListFederations Sample", + "description": "ListFederations lists federations in a project and location.", + "file": "DataprocMetastoreFederationClient/ListFederations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListFederations", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.ListFederations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.ListFederationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "FederationIterator", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListFederations", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.ListFederations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_ListLocations_sync", + "title": "metastore ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "DataprocMetastoreFederationClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.ListLocations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_ListOperations_sync", + "title": "metastore ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "DataprocMetastoreFederationClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.ListOperations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_SetIamPolicy_sync", + "title": "metastore SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "DataprocMetastoreFederationClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.SetIamPolicy", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_TestIamPermissions_sync", + "title": "metastore TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "DataprocMetastoreFederationClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.TestIamPermissions", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_UpdateFederation_sync", + "title": "metastore UpdateFederation Sample", + "description": "UpdateFederation updates the fields of a federation.", + "file": "DataprocMetastoreFederationClient/UpdateFederation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.UpdateFederation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.UpdateFederationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateFederationOperation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "UpdateFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.UpdateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/AlterMetadataResourceLocation/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/AlterMetadataResourceLocation/main.go new file mode 100644 index 000000000000..42d6711ff560 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/AlterMetadataResourceLocation/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastore_AlterMetadataResourceLocation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.AlterMetadataResourceLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#AlterMetadataResourceLocationRequest. + } + op, err := c.AlterMetadataResourceLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1alpha_generated_DataprocMetastore_AlterMetadataResourceLocation_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/CreateBackup/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/CreateBackup/main.go index f8de06a827e1..1283cdf3460f 100644 --- a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/CreateBackup/main.go +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/CreateBackup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1alpha" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.CreateBackupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1alpha#CreateBackupRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#CreateBackupRequest. } op, err := c.CreateBackup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/CreateMetadataImport/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/CreateMetadataImport/main.go index e3395162abf1..1788f58e37e8 100644 --- a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/CreateMetadataImport/main.go +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/CreateMetadataImport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1alpha" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.CreateMetadataImportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1alpha#CreateMetadataImportRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#CreateMetadataImportRequest. } op, err := c.CreateMetadataImport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/CreateService/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/CreateService/main.go index b9fa250eaeee..d71812b3fc1a 100644 --- a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/CreateService/main.go +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/CreateService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1alpha" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.CreateServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1alpha#CreateServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#CreateServiceRequest. } op, err := c.CreateService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/DeleteBackup/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/DeleteBackup/main.go index e924a5de026c..d218f21bf2ab 100644 --- a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/DeleteBackup/main.go +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/DeleteBackup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1alpha" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.DeleteBackupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1alpha#DeleteBackupRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#DeleteBackupRequest. } op, err := c.DeleteBackup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/DeleteOperation/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/DeleteOperation/main.go new file mode 100644 index 000000000000..614abafe311d --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastore_DeleteOperation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END metastore_v1alpha_generated_DataprocMetastore_DeleteOperation_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/DeleteService/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/DeleteService/main.go index 20d6bda92327..ac8488edf5ab 100644 --- a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/DeleteService/main.go +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/DeleteService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1alpha" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.DeleteServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1alpha#DeleteServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#DeleteServiceRequest. } op, err := c.DeleteService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ExportMetadata/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ExportMetadata/main.go index 68ec4437d595..522aa095e42f 100644 --- a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ExportMetadata/main.go +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ExportMetadata/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1alpha" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.ExportMetadataRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1alpha#ExportMetadataRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#ExportMetadataRequest. } op, err := c.ExportMetadata(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetBackup/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetBackup/main.go index cee0ea240010..635411b9cc7a 100644 --- a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetBackup/main.go +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetBackup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1alpha" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.GetBackupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1alpha#GetBackupRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#GetBackupRequest. } resp, err := c.GetBackup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetIamPolicy/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetIamPolicy/main.go new file mode 100644 index 000000000000..3746a0075050 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastore_GetIamPolicy_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.GetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#GetIamPolicyRequest. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1alpha_generated_DataprocMetastore_GetIamPolicy_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetLocation/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetLocation/main.go new file mode 100644 index 000000000000..e5050ec0e839 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastore_GetLocation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1alpha_generated_DataprocMetastore_GetLocation_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetMetadataImport/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetMetadataImport/main.go index c63bd2bfc1e3..b5a2f190f865 100644 --- a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetMetadataImport/main.go +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetMetadataImport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1alpha" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.GetMetadataImportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1alpha#GetMetadataImportRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#GetMetadataImportRequest. } resp, err := c.GetMetadataImport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetOperation/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetOperation/main.go new file mode 100644 index 000000000000..c0846ecc5f62 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastore_GetOperation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1alpha_generated_DataprocMetastore_GetOperation_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetService/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetService/main.go index 6653075c9605..736d2d2e2d22 100644 --- a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetService/main.go +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/GetService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1alpha" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.GetServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1alpha#GetServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#GetServiceRequest. } resp, err := c.GetService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ListBackups/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ListBackups/main.go index 87d10664f35e..316fe66e81b8 100644 --- a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ListBackups/main.go +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ListBackups/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" "google.golang.org/api/iterator" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &metastorepb.ListBackupsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1alpha#ListBackupsRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#ListBackupsRequest. } it := c.ListBackups(ctx, req) for { diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ListLocations/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ListLocations/main.go new file mode 100644 index 000000000000..04a25e7a5015 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastore_ListLocations_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END metastore_v1alpha_generated_DataprocMetastore_ListLocations_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ListMetadataImports/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ListMetadataImports/main.go index 122db9aa2714..21ec38848051 100644 --- a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ListMetadataImports/main.go +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ListMetadataImports/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" "google.golang.org/api/iterator" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &metastorepb.ListMetadataImportsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1alpha#ListMetadataImportsRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#ListMetadataImportsRequest. } it := c.ListMetadataImports(ctx, req) for { diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ListOperations/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ListOperations/main.go new file mode 100644 index 000000000000..59c6c7acd633 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastore_ListOperations_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END metastore_v1alpha_generated_DataprocMetastore_ListOperations_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ListServices/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ListServices/main.go index 975ffa948ee4..404883d764c5 100644 --- a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ListServices/main.go +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/ListServices/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" "google.golang.org/api/iterator" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &metastorepb.ListServicesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1alpha#ListServicesRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#ListServicesRequest. } it := c.ListServices(ctx, req) for { diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/MoveTableToDatabase/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/MoveTableToDatabase/main.go new file mode 100644 index 000000000000..6fd7242972df --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/MoveTableToDatabase/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastore_MoveTableToDatabase_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.MoveTableToDatabaseRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#MoveTableToDatabaseRequest. + } + op, err := c.MoveTableToDatabase(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1alpha_generated_DataprocMetastore_MoveTableToDatabase_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/QueryMetadata/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/QueryMetadata/main.go new file mode 100644 index 000000000000..b17796e15e01 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/QueryMetadata/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastore_QueryMetadata_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.QueryMetadataRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#QueryMetadataRequest. + } + op, err := c.QueryMetadata(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1alpha_generated_DataprocMetastore_QueryMetadata_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/RemoveIamPolicy/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/RemoveIamPolicy/main.go new file mode 100644 index 000000000000..5a4f3891a102 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/RemoveIamPolicy/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastore_RemoveIamPolicy_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.RemoveIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#RemoveIamPolicyRequest. + } + resp, err := c.RemoveIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1alpha_generated_DataprocMetastore_RemoveIamPolicy_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/RestoreService/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/RestoreService/main.go index 5c4451f89b5f..8fcc5192f4ce 100644 --- a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/RestoreService/main.go +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/RestoreService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1alpha" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.RestoreServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1alpha#RestoreServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#RestoreServiceRequest. } op, err := c.RestoreService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/SetIamPolicy/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/SetIamPolicy/main.go new file mode 100644 index 000000000000..14fc6f783c81 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/SetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastore_SetIamPolicy_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.SetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#SetIamPolicyRequest. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1alpha_generated_DataprocMetastore_SetIamPolicy_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/TestIamPermissions/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/TestIamPermissions/main.go new file mode 100644 index 000000000000..69083f9d8475 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/TestIamPermissions/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastore_TestIamPermissions_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.TestIamPermissionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#TestIamPermissionsRequest. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1alpha_generated_DataprocMetastore_TestIamPermissions_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/UpdateMetadataImport/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/UpdateMetadataImport/main.go index e68d9c073429..1b9f44b18d32 100644 --- a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/UpdateMetadataImport/main.go +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/UpdateMetadataImport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1alpha" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.UpdateMetadataImportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1alpha#UpdateMetadataImportRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#UpdateMetadataImportRequest. } op, err := c.UpdateMetadataImport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/UpdateService/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/UpdateService/main.go index 784612d2b730..61098ac9a549 100644 --- a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/UpdateService/main.go +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreClient/UpdateService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1alpha" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.UpdateServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1alpha#UpdateServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#UpdateServiceRequest. } op, err := c.UpdateService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/CreateFederation/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/CreateFederation/main.go new file mode 100644 index 000000000000..b34250885d23 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/CreateFederation/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.CreateFederationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#CreateFederationRequest. + } + op, err := c.CreateFederation(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/DeleteFederation/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/DeleteFederation/main.go new file mode 100644 index 000000000000..29c86441ef0c --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/DeleteFederation/main.go @@ -0,0 +1,56 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.DeleteFederationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#DeleteFederationRequest. + } + op, err := c.DeleteFederation(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/DeleteOperation/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/DeleteOperation/main.go new file mode 100644 index 000000000000..f4a0bbf8a95c --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteOperation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteOperation_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/GetFederation/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/GetFederation/main.go new file mode 100644 index 000000000000..d9d8218cdf18 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/GetFederation/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.GetFederationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#GetFederationRequest. + } + resp, err := c.GetFederation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/GetIamPolicy/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/GetIamPolicy/main.go new file mode 100644 index 000000000000..5b119f36ac1c --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/GetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastoreFederation_GetIamPolicy_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.GetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#GetIamPolicyRequest. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1alpha_generated_DataprocMetastoreFederation_GetIamPolicy_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/GetLocation/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/GetLocation/main.go new file mode 100644 index 000000000000..7fc9287b7a8f --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastoreFederation_GetLocation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1alpha_generated_DataprocMetastoreFederation_GetLocation_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/GetOperation/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/GetOperation/main.go new file mode 100644 index 000000000000..838149c4a246 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastoreFederation_GetOperation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1alpha_generated_DataprocMetastoreFederation_GetOperation_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/ListFederations/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/ListFederations/main.go new file mode 100644 index 000000000000..c5b2e8a391c2 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/ListFederations/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.ListFederationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#ListFederationsRequest. + } + it := c.ListFederations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/ListLocations/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/ListLocations/main.go new file mode 100644 index 000000000000..1eba2f69b6b3 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastoreFederation_ListLocations_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END metastore_v1alpha_generated_DataprocMetastoreFederation_ListLocations_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/ListOperations/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/ListOperations/main.go new file mode 100644 index 000000000000..44c8c8b80462 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastoreFederation_ListOperations_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END metastore_v1alpha_generated_DataprocMetastoreFederation_ListOperations_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/SetIamPolicy/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/SetIamPolicy/main.go new file mode 100644 index 000000000000..9bc45b6fc93c --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/SetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastoreFederation_SetIamPolicy_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.SetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#SetIamPolicyRequest. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1alpha_generated_DataprocMetastoreFederation_SetIamPolicy_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/TestIamPermissions/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/TestIamPermissions/main.go new file mode 100644 index 000000000000..bdd0df7588e4 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/TestIamPermissions/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastoreFederation_TestIamPermissions_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.TestIamPermissionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#TestIamPermissionsRequest. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1alpha_generated_DataprocMetastoreFederation_TestIamPermissions_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/UpdateFederation/main.go b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/UpdateFederation/main.go new file mode 100644 index 000000000000..9b32af57d541 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/DataprocMetastoreFederationClient/UpdateFederation/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1alpha_generated_DataprocMetastoreFederation_UpdateFederation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1alpha" + metastorepb "cloud.google.com/go/metastore/apiv1alpha/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.UpdateFederationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1alpha/metastorepb#UpdateFederationRequest. + } + op, err := c.UpdateFederation(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1alpha_generated_DataprocMetastoreFederation_UpdateFederation_sync] diff --git a/internal/generated/snippets/metastore/apiv1alpha/snippet_metadata.google.cloud.metastore.v1alpha.json b/internal/generated/snippets/metastore/apiv1alpha/snippet_metadata.google.cloud.metastore.v1alpha.json new file mode 100644 index 000000000000..94fae8b56379 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1alpha/snippet_metadata.google.cloud.metastore.v1alpha.json @@ -0,0 +1,1853 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/metastore/apiv1alpha", + "version": "1.10.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.metastore.v1alpha", + "version": "v1alpha" + } + ] + }, + "snippets": [ + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_AlterMetadataResourceLocation_sync", + "title": "metastore AlterMetadataResourceLocation Sample", + "description": "AlterMetadataResourceLocation alter metadata resource location. The metadata resource can be a database,\ntable, or partition. This functionality only updates the parent directory\nfor the respective metadata resource and does not transfer any existing\ndata to the new location.", + "file": "DataprocMetastoreClient/AlterMetadataResourceLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AlterMetadataResourceLocation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.AlterMetadataResourceLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.AlterMetadataResourceLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AlterMetadataResourceLocationOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "AlterMetadataResourceLocation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.AlterMetadataResourceLocation", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_CreateBackup_sync", + "title": "metastore CreateBackup Sample", + "description": "CreateBackup creates a new backup in a given project and location.", + "file": "DataprocMetastoreClient/CreateBackup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateBackup", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.CreateBackup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.CreateBackupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateBackupOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "CreateBackup", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.CreateBackup", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_CreateMetadataImport_sync", + "title": "metastore CreateMetadataImport Sample", + "description": "CreateMetadataImport creates a new MetadataImport in a given project and location.", + "file": "DataprocMetastoreClient/CreateMetadataImport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateMetadataImport", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.CreateMetadataImport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.CreateMetadataImportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateMetadataImportOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "CreateMetadataImport", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.CreateMetadataImport", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_CreateService_sync", + "title": "metastore CreateService Sample", + "description": "CreateService creates a metastore service in a project and location.", + "file": "DataprocMetastoreClient/CreateService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateService", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.CreateService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.CreateServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateServiceOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "CreateService", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.CreateService", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_DeleteBackup_sync", + "title": "metastore DeleteBackup Sample", + "description": "DeleteBackup deletes a single backup.", + "file": "DataprocMetastoreClient/DeleteBackup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteBackup", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.DeleteBackup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.DeleteBackupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteBackupOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "DeleteBackup", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.DeleteBackup", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_DeleteOperation_sync", + "title": "metastore DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "DataprocMetastoreClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.DeleteOperation", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_DeleteService_sync", + "title": "metastore DeleteService Sample", + "description": "DeleteService deletes a single service.", + "file": "DataprocMetastoreClient/DeleteService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteService", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.DeleteService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.DeleteServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteServiceOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "DeleteService", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.DeleteService", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_ExportMetadata_sync", + "title": "metastore ExportMetadata Sample", + "description": "ExportMetadata exports metadata from a service.", + "file": "DataprocMetastoreClient/ExportMetadata/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ExportMetadata", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.ExportMetadata", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.ExportMetadataRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ExportMetadataOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "ExportMetadata", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.ExportMetadata", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_GetBackup_sync", + "title": "metastore GetBackup Sample", + "description": "GetBackup gets details of a single backup.", + "file": "DataprocMetastoreClient/GetBackup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetBackup", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.GetBackup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.GetBackupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "metastorepb.Backup", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "GetBackup", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.GetBackup", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_GetIamPolicy_sync", + "title": "metastore GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "DataprocMetastoreClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.GetIamPolicy", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_GetLocation_sync", + "title": "metastore GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "DataprocMetastoreClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.GetLocation", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_GetMetadataImport_sync", + "title": "metastore GetMetadataImport Sample", + "description": "GetMetadataImport gets details of a single import.", + "file": "DataprocMetastoreClient/GetMetadataImport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetMetadataImport", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.GetMetadataImport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.GetMetadataImportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "metastorepb.MetadataImport", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "GetMetadataImport", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.GetMetadataImport", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_GetOperation_sync", + "title": "metastore GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "DataprocMetastoreClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.GetOperation", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_GetService_sync", + "title": "metastore GetService Sample", + "description": "GetService gets the details of a single service.", + "file": "DataprocMetastoreClient/GetService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetService", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.GetService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.GetServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "metastorepb.Service", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "GetService", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.GetService", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_ListBackups_sync", + "title": "metastore ListBackups Sample", + "description": "ListBackups lists backups in a service.", + "file": "DataprocMetastoreClient/ListBackups/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListBackups", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.ListBackups", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.ListBackupsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "BackupIterator", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "ListBackups", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_ListLocations_sync", + "title": "metastore ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "DataprocMetastoreClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.ListLocations", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_ListMetadataImports_sync", + "title": "metastore ListMetadataImports Sample", + "description": "ListMetadataImports lists imports in a service.", + "file": "DataprocMetastoreClient/ListMetadataImports/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListMetadataImports", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.ListMetadataImports", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.ListMetadataImportsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "MetadataImportIterator", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "ListMetadataImports", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.ListMetadataImports", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_ListOperations_sync", + "title": "metastore ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "DataprocMetastoreClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.ListOperations", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_ListServices_sync", + "title": "metastore ListServices Sample", + "description": "ListServices lists services in a project and location.", + "file": "DataprocMetastoreClient/ListServices/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListServices", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.ListServices", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.ListServicesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ServiceIterator", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "ListServices", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.ListServices", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_MoveTableToDatabase_sync", + "title": "metastore MoveTableToDatabase Sample", + "description": "MoveTableToDatabase move a table to another database.", + "file": "DataprocMetastoreClient/MoveTableToDatabase/main.go", + "language": "GO", + "clientMethod": { + "shortName": "MoveTableToDatabase", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.MoveTableToDatabase", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.MoveTableToDatabaseRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "MoveTableToDatabaseOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "MoveTableToDatabase", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.MoveTableToDatabase", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_QueryMetadata_sync", + "title": "metastore QueryMetadata Sample", + "description": "QueryMetadata query DPMS metadata.", + "file": "DataprocMetastoreClient/QueryMetadata/main.go", + "language": "GO", + "clientMethod": { + "shortName": "QueryMetadata", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.QueryMetadata", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.QueryMetadataRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "QueryMetadataOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "QueryMetadata", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.QueryMetadata", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_RemoveIamPolicy_sync", + "title": "metastore RemoveIamPolicy Sample", + "description": "RemoveIamPolicy removes the attached IAM policies for a resource", + "file": "DataprocMetastoreClient/RemoveIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RemoveIamPolicy", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.RemoveIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.RemoveIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "metastorepb.RemoveIamPolicyResponse", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "RemoveIamPolicy", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.RemoveIamPolicy", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_RestoreService_sync", + "title": "metastore RestoreService Sample", + "description": "RestoreService restores a service from a backup.", + "file": "DataprocMetastoreClient/RestoreService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RestoreService", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.RestoreService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.RestoreServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RestoreServiceOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "RestoreService", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.RestoreService", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_SetIamPolicy_sync", + "title": "metastore SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "DataprocMetastoreClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.SetIamPolicy", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_TestIamPermissions_sync", + "title": "metastore TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "DataprocMetastoreClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.TestIamPermissions", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_UpdateMetadataImport_sync", + "title": "metastore UpdateMetadataImport Sample", + "description": "UpdateMetadataImport updates a single import.\nOnly the description field of MetadataImport is supported to be updated.", + "file": "DataprocMetastoreClient/UpdateMetadataImport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateMetadataImport", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.UpdateMetadataImport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.UpdateMetadataImportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateMetadataImportOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "UpdateMetadataImport", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.UpdateMetadataImport", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastore_UpdateService_sync", + "title": "metastore UpdateService Sample", + "description": "UpdateService updates the parameters of a single service.", + "file": "DataprocMetastoreClient/UpdateService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateService", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient.UpdateService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.UpdateServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateServiceOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" + }, + "method": { + "shortName": "UpdateService", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.UpdateService", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_sync", + "title": "metastore CreateFederation Sample", + "description": "CreateFederation creates a metastore federation in a project and location.", + "file": "DataprocMetastoreFederationClient/CreateFederation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient.CreateFederation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.CreateFederationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateFederationOperation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "CreateFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.CreateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_sync", + "title": "metastore DeleteFederation Sample", + "description": "DeleteFederation deletes a single federation.", + "file": "DataprocMetastoreFederationClient/DeleteFederation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient.DeleteFederation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.DeleteFederationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteFederationOperation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "DeleteFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.DeleteFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteOperation_sync", + "title": "metastore DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "DataprocMetastoreFederationClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.DeleteOperation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_sync", + "title": "metastore GetFederation Sample", + "description": "GetFederation gets the details of a single federation.", + "file": "DataprocMetastoreFederationClient/GetFederation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient.GetFederation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.GetFederationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "metastorepb.Federation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.GetFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_GetIamPolicy_sync", + "title": "metastore GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "DataprocMetastoreFederationClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.GetIamPolicy", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_GetLocation_sync", + "title": "metastore GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "DataprocMetastoreFederationClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.GetLocation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_GetOperation_sync", + "title": "metastore GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "DataprocMetastoreFederationClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.GetOperation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_sync", + "title": "metastore ListFederations Sample", + "description": "ListFederations lists federations in a project and location.", + "file": "DataprocMetastoreFederationClient/ListFederations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListFederations", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient.ListFederations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.ListFederationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "FederationIterator", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListFederations", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.ListFederations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_ListLocations_sync", + "title": "metastore ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "DataprocMetastoreFederationClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.ListLocations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_ListOperations_sync", + "title": "metastore ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "DataprocMetastoreFederationClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.ListOperations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_SetIamPolicy_sync", + "title": "metastore SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "DataprocMetastoreFederationClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.SetIamPolicy", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_TestIamPermissions_sync", + "title": "metastore TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "DataprocMetastoreFederationClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.TestIamPermissions", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_UpdateFederation_sync", + "title": "metastore UpdateFederation Sample", + "description": "UpdateFederation updates the fields of a federation.", + "file": "DataprocMetastoreFederationClient/UpdateFederation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient.UpdateFederation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.UpdateFederationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateFederationOperation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "UpdateFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.UpdateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/AlterMetadataResourceLocation/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/AlterMetadataResourceLocation/main.go new file mode 100644 index 000000000000..62fc8f7a03fc --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/AlterMetadataResourceLocation/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastore_AlterMetadataResourceLocation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.AlterMetadataResourceLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#AlterMetadataResourceLocationRequest. + } + op, err := c.AlterMetadataResourceLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1beta_generated_DataprocMetastore_AlterMetadataResourceLocation_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/CreateBackup/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/CreateBackup/main.go index ce5e2e77cbfc..5e2c593fa1fd 100644 --- a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/CreateBackup/main.go +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/CreateBackup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1beta" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.CreateBackupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1beta#CreateBackupRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#CreateBackupRequest. } op, err := c.CreateBackup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/CreateMetadataImport/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/CreateMetadataImport/main.go index d4699344f0bb..b7258f737d25 100644 --- a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/CreateMetadataImport/main.go +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/CreateMetadataImport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1beta" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.CreateMetadataImportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1beta#CreateMetadataImportRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#CreateMetadataImportRequest. } op, err := c.CreateMetadataImport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/CreateService/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/CreateService/main.go index 64a7b3a98cca..4a52e81dd215 100644 --- a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/CreateService/main.go +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/CreateService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1beta" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.CreateServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1beta#CreateServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#CreateServiceRequest. } op, err := c.CreateService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/DeleteBackup/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/DeleteBackup/main.go index c24b500116b7..fd88d44a730a 100644 --- a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/DeleteBackup/main.go +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/DeleteBackup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1beta" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.DeleteBackupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1beta#DeleteBackupRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#DeleteBackupRequest. } op, err := c.DeleteBackup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/DeleteOperation/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/DeleteOperation/main.go new file mode 100644 index 000000000000..e2938fe763fe --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastore_DeleteOperation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END metastore_v1beta_generated_DataprocMetastore_DeleteOperation_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/DeleteService/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/DeleteService/main.go index b64a9429fa9a..c45d259265c3 100644 --- a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/DeleteService/main.go +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/DeleteService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1beta" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.DeleteServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1beta#DeleteServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#DeleteServiceRequest. } op, err := c.DeleteService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ExportMetadata/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ExportMetadata/main.go index cc9b1dd86854..e2dcffdbbe7b 100644 --- a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ExportMetadata/main.go +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ExportMetadata/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1beta" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.ExportMetadataRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1beta#ExportMetadataRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#ExportMetadataRequest. } op, err := c.ExportMetadata(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetBackup/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetBackup/main.go index 370c2e48d49d..4eaa76d309be 100644 --- a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetBackup/main.go +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetBackup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1beta" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.GetBackupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1beta#GetBackupRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#GetBackupRequest. } resp, err := c.GetBackup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetIamPolicy/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetIamPolicy/main.go new file mode 100644 index 000000000000..6fb305c75c30 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastore_GetIamPolicy_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.GetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#GetIamPolicyRequest. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1beta_generated_DataprocMetastore_GetIamPolicy_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetLocation/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetLocation/main.go new file mode 100644 index 000000000000..0385a439ec0c --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastore_GetLocation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1beta_generated_DataprocMetastore_GetLocation_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetMetadataImport/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetMetadataImport/main.go index 4808e2523d87..c17d1f0cd38e 100644 --- a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetMetadataImport/main.go +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetMetadataImport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1beta" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.GetMetadataImportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1beta#GetMetadataImportRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#GetMetadataImportRequest. } resp, err := c.GetMetadataImport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetOperation/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetOperation/main.go new file mode 100644 index 000000000000..cfcc9da465f2 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastore_GetOperation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1beta_generated_DataprocMetastore_GetOperation_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetService/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetService/main.go index 9fcf016e679e..1beb6f7055c8 100644 --- a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetService/main.go +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/GetService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1beta" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.GetServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1beta#GetServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#GetServiceRequest. } resp, err := c.GetService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ListBackups/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ListBackups/main.go index cf5d04dc843e..f61a06000c69 100644 --- a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ListBackups/main.go +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ListBackups/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" "google.golang.org/api/iterator" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1beta" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &metastorepb.ListBackupsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1beta#ListBackupsRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#ListBackupsRequest. } it := c.ListBackups(ctx, req) for { diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ListLocations/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ListLocations/main.go new file mode 100644 index 000000000000..a1b7227a73bd --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastore_ListLocations_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END metastore_v1beta_generated_DataprocMetastore_ListLocations_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ListMetadataImports/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ListMetadataImports/main.go index 5cc45098ce94..0cfc20c13407 100644 --- a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ListMetadataImports/main.go +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ListMetadataImports/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" "google.golang.org/api/iterator" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1beta" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &metastorepb.ListMetadataImportsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1beta#ListMetadataImportsRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#ListMetadataImportsRequest. } it := c.ListMetadataImports(ctx, req) for { diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ListOperations/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ListOperations/main.go new file mode 100644 index 000000000000..eb39d49b37cb --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastore_ListOperations_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END metastore_v1beta_generated_DataprocMetastore_ListOperations_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ListServices/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ListServices/main.go index 6f845d099de4..ec091e03908b 100644 --- a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ListServices/main.go +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/ListServices/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" "google.golang.org/api/iterator" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1beta" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &metastorepb.ListServicesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1beta#ListServicesRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#ListServicesRequest. } it := c.ListServices(ctx, req) for { diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/MoveTableToDatabase/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/MoveTableToDatabase/main.go new file mode 100644 index 000000000000..026624d77868 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/MoveTableToDatabase/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastore_MoveTableToDatabase_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.MoveTableToDatabaseRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#MoveTableToDatabaseRequest. + } + op, err := c.MoveTableToDatabase(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1beta_generated_DataprocMetastore_MoveTableToDatabase_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/QueryMetadata/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/QueryMetadata/main.go new file mode 100644 index 000000000000..612f19a4f992 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/QueryMetadata/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastore_QueryMetadata_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.QueryMetadataRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#QueryMetadataRequest. + } + op, err := c.QueryMetadata(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1beta_generated_DataprocMetastore_QueryMetadata_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/RemoveIamPolicy/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/RemoveIamPolicy/main.go new file mode 100644 index 000000000000..f03955c46e17 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/RemoveIamPolicy/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastore_RemoveIamPolicy_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.RemoveIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#RemoveIamPolicyRequest. + } + resp, err := c.RemoveIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1beta_generated_DataprocMetastore_RemoveIamPolicy_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/RestoreService/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/RestoreService/main.go index 9e1669959f5d..1b7596fd3858 100644 --- a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/RestoreService/main.go +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/RestoreService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1beta" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.RestoreServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1beta#RestoreServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#RestoreServiceRequest. } op, err := c.RestoreService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/SetIamPolicy/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/SetIamPolicy/main.go new file mode 100644 index 000000000000..9e33f916b283 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/SetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastore_SetIamPolicy_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.SetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#SetIamPolicyRequest. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1beta_generated_DataprocMetastore_SetIamPolicy_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/TestIamPermissions/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/TestIamPermissions/main.go new file mode 100644 index 000000000000..73bf4054ec33 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/TestIamPermissions/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastore_TestIamPermissions_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.TestIamPermissionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#TestIamPermissionsRequest. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1beta_generated_DataprocMetastore_TestIamPermissions_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/UpdateMetadataImport/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/UpdateMetadataImport/main.go index f154c0fe7789..eab6959c340f 100644 --- a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/UpdateMetadataImport/main.go +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/UpdateMetadataImport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1beta" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.UpdateMetadataImportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1beta#UpdateMetadataImportRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#UpdateMetadataImportRequest. } op, err := c.UpdateMetadataImport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/UpdateService/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/UpdateService/main.go index 6e6afd959368..a282f92d4bb0 100644 --- a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/UpdateService/main.go +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreClient/UpdateService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metastore "cloud.google.com/go/metastore/apiv1beta" - metastorepb "google.golang.org/genproto/googleapis/cloud/metastore/v1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metastore.NewDataprocMetastoreClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metastorepb.UpdateServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/metastore/v1beta#UpdateServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#UpdateServiceRequest. } op, err := c.UpdateService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/CreateFederation/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/CreateFederation/main.go new file mode 100644 index 000000000000..5362e4c9a7a5 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/CreateFederation/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastoreFederation_CreateFederation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.CreateFederationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#CreateFederationRequest. + } + op, err := c.CreateFederation(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1beta_generated_DataprocMetastoreFederation_CreateFederation_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/DeleteFederation/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/DeleteFederation/main.go new file mode 100644 index 000000000000..dbebbd8facf2 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/DeleteFederation/main.go @@ -0,0 +1,56 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastoreFederation_DeleteFederation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.DeleteFederationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#DeleteFederationRequest. + } + op, err := c.DeleteFederation(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END metastore_v1beta_generated_DataprocMetastoreFederation_DeleteFederation_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/DeleteOperation/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/DeleteOperation/main.go new file mode 100644 index 000000000000..acf4c8c5594b --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastoreFederation_DeleteOperation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END metastore_v1beta_generated_DataprocMetastoreFederation_DeleteOperation_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/GetFederation/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/GetFederation/main.go new file mode 100644 index 000000000000..59f23680a1bc --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/GetFederation/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastoreFederation_GetFederation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.GetFederationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#GetFederationRequest. + } + resp, err := c.GetFederation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1beta_generated_DataprocMetastoreFederation_GetFederation_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/GetIamPolicy/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/GetIamPolicy/main.go new file mode 100644 index 000000000000..eb6de762348b --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/GetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastoreFederation_GetIamPolicy_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.GetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#GetIamPolicyRequest. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1beta_generated_DataprocMetastoreFederation_GetIamPolicy_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/GetLocation/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/GetLocation/main.go new file mode 100644 index 000000000000..a3d9139f2ece --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastoreFederation_GetLocation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1beta_generated_DataprocMetastoreFederation_GetLocation_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/GetOperation/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/GetOperation/main.go new file mode 100644 index 000000000000..a3c4b56b0614 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastoreFederation_GetOperation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1beta_generated_DataprocMetastoreFederation_GetOperation_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/ListFederations/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/ListFederations/main.go new file mode 100644 index 000000000000..8cea7c6a2ed8 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/ListFederations/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastoreFederation_ListFederations_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.ListFederationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#ListFederationsRequest. + } + it := c.ListFederations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END metastore_v1beta_generated_DataprocMetastoreFederation_ListFederations_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/ListLocations/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/ListLocations/main.go new file mode 100644 index 000000000000..8aaf0c58aef2 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastoreFederation_ListLocations_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END metastore_v1beta_generated_DataprocMetastoreFederation_ListLocations_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/ListOperations/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/ListOperations/main.go new file mode 100644 index 000000000000..12a11f94d63d --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastoreFederation_ListOperations_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END metastore_v1beta_generated_DataprocMetastoreFederation_ListOperations_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/SetIamPolicy/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/SetIamPolicy/main.go new file mode 100644 index 000000000000..8a00ce02e0c5 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/SetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastoreFederation_SetIamPolicy_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.SetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#SetIamPolicyRequest. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1beta_generated_DataprocMetastoreFederation_SetIamPolicy_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/TestIamPermissions/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/TestIamPermissions/main.go new file mode 100644 index 000000000000..fb6327bff986 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/TestIamPermissions/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastoreFederation_TestIamPermissions_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.TestIamPermissionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#TestIamPermissionsRequest. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1beta_generated_DataprocMetastoreFederation_TestIamPermissions_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/UpdateFederation/main.go b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/UpdateFederation/main.go new file mode 100644 index 000000000000..374483db7a20 --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/DataprocMetastoreFederationClient/UpdateFederation/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START metastore_v1beta_generated_DataprocMetastoreFederation_UpdateFederation_sync] + +package main + +import ( + "context" + + metastore "cloud.google.com/go/metastore/apiv1beta" + metastorepb "cloud.google.com/go/metastore/apiv1beta/metastorepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := metastore.NewDataprocMetastoreFederationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &metastorepb.UpdateFederationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/metastore/apiv1beta/metastorepb#UpdateFederationRequest. + } + op, err := c.UpdateFederation(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END metastore_v1beta_generated_DataprocMetastoreFederation_UpdateFederation_sync] diff --git a/internal/generated/snippets/metastore/apiv1beta/snippet_metadata.google.cloud.metastore.v1beta.json b/internal/generated/snippets/metastore/apiv1beta/snippet_metadata.google.cloud.metastore.v1beta.json new file mode 100644 index 000000000000..62610915339c --- /dev/null +++ b/internal/generated/snippets/metastore/apiv1beta/snippet_metadata.google.cloud.metastore.v1beta.json @@ -0,0 +1,1853 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/metastore/apiv1beta", + "version": "1.10.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.metastore.v1beta", + "version": "v1beta" + } + ] + }, + "snippets": [ + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_AlterMetadataResourceLocation_sync", + "title": "metastore AlterMetadataResourceLocation Sample", + "description": "AlterMetadataResourceLocation alter metadata resource location. The metadata resource can be a database,\ntable, or partition. This functionality only updates the parent directory\nfor the respective metadata resource and does not transfer any existing\ndata to the new location.", + "file": "DataprocMetastoreClient/AlterMetadataResourceLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AlterMetadataResourceLocation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.AlterMetadataResourceLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.AlterMetadataResourceLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AlterMetadataResourceLocationOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "AlterMetadataResourceLocation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.AlterMetadataResourceLocation", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_CreateBackup_sync", + "title": "metastore CreateBackup Sample", + "description": "CreateBackup creates a new backup in a given project and location.", + "file": "DataprocMetastoreClient/CreateBackup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateBackup", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.CreateBackup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.CreateBackupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateBackupOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "CreateBackup", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.CreateBackup", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_CreateMetadataImport_sync", + "title": "metastore CreateMetadataImport Sample", + "description": "CreateMetadataImport creates a new MetadataImport in a given project and location.", + "file": "DataprocMetastoreClient/CreateMetadataImport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateMetadataImport", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.CreateMetadataImport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.CreateMetadataImportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateMetadataImportOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "CreateMetadataImport", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.CreateMetadataImport", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_CreateService_sync", + "title": "metastore CreateService Sample", + "description": "CreateService creates a metastore service in a project and location.", + "file": "DataprocMetastoreClient/CreateService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateService", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.CreateService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.CreateServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateServiceOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "CreateService", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.CreateService", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_DeleteBackup_sync", + "title": "metastore DeleteBackup Sample", + "description": "DeleteBackup deletes a single backup.", + "file": "DataprocMetastoreClient/DeleteBackup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteBackup", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.DeleteBackup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.DeleteBackupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteBackupOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "DeleteBackup", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.DeleteBackup", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_DeleteOperation_sync", + "title": "metastore DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "DataprocMetastoreClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.DeleteOperation", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_DeleteService_sync", + "title": "metastore DeleteService Sample", + "description": "DeleteService deletes a single service.", + "file": "DataprocMetastoreClient/DeleteService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteService", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.DeleteService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.DeleteServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteServiceOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "DeleteService", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.DeleteService", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_ExportMetadata_sync", + "title": "metastore ExportMetadata Sample", + "description": "ExportMetadata exports metadata from a service.", + "file": "DataprocMetastoreClient/ExportMetadata/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ExportMetadata", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.ExportMetadata", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.ExportMetadataRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ExportMetadataOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "ExportMetadata", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.ExportMetadata", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_GetBackup_sync", + "title": "metastore GetBackup Sample", + "description": "GetBackup gets details of a single backup.", + "file": "DataprocMetastoreClient/GetBackup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetBackup", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.GetBackup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.GetBackupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "metastorepb.Backup", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "GetBackup", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.GetBackup", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_GetIamPolicy_sync", + "title": "metastore GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "DataprocMetastoreClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.GetIamPolicy", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_GetLocation_sync", + "title": "metastore GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "DataprocMetastoreClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.GetLocation", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_GetMetadataImport_sync", + "title": "metastore GetMetadataImport Sample", + "description": "GetMetadataImport gets details of a single import.", + "file": "DataprocMetastoreClient/GetMetadataImport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetMetadataImport", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.GetMetadataImport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.GetMetadataImportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "metastorepb.MetadataImport", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "GetMetadataImport", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.GetMetadataImport", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_GetOperation_sync", + "title": "metastore GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "DataprocMetastoreClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.GetOperation", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_GetService_sync", + "title": "metastore GetService Sample", + "description": "GetService gets the details of a single service.", + "file": "DataprocMetastoreClient/GetService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetService", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.GetService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.GetServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "metastorepb.Service", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "GetService", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.GetService", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_ListBackups_sync", + "title": "metastore ListBackups Sample", + "description": "ListBackups lists backups in a service.", + "file": "DataprocMetastoreClient/ListBackups/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListBackups", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.ListBackups", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.ListBackupsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "BackupIterator", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "ListBackups", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.ListBackups", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_ListLocations_sync", + "title": "metastore ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "DataprocMetastoreClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.ListLocations", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_ListMetadataImports_sync", + "title": "metastore ListMetadataImports Sample", + "description": "ListMetadataImports lists imports in a service.", + "file": "DataprocMetastoreClient/ListMetadataImports/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListMetadataImports", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.ListMetadataImports", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.ListMetadataImportsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "MetadataImportIterator", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "ListMetadataImports", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.ListMetadataImports", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_ListOperations_sync", + "title": "metastore ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "DataprocMetastoreClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.ListOperations", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_ListServices_sync", + "title": "metastore ListServices Sample", + "description": "ListServices lists services in a project and location.", + "file": "DataprocMetastoreClient/ListServices/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListServices", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.ListServices", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.ListServicesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ServiceIterator", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "ListServices", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.ListServices", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_MoveTableToDatabase_sync", + "title": "metastore MoveTableToDatabase Sample", + "description": "MoveTableToDatabase move a table to another database.", + "file": "DataprocMetastoreClient/MoveTableToDatabase/main.go", + "language": "GO", + "clientMethod": { + "shortName": "MoveTableToDatabase", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.MoveTableToDatabase", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.MoveTableToDatabaseRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "MoveTableToDatabaseOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "MoveTableToDatabase", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.MoveTableToDatabase", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_QueryMetadata_sync", + "title": "metastore QueryMetadata Sample", + "description": "QueryMetadata query DPMS metadata.", + "file": "DataprocMetastoreClient/QueryMetadata/main.go", + "language": "GO", + "clientMethod": { + "shortName": "QueryMetadata", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.QueryMetadata", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.QueryMetadataRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "QueryMetadataOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "QueryMetadata", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.QueryMetadata", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_RemoveIamPolicy_sync", + "title": "metastore RemoveIamPolicy Sample", + "description": "RemoveIamPolicy removes the attached IAM policies for a resource", + "file": "DataprocMetastoreClient/RemoveIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RemoveIamPolicy", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.RemoveIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.RemoveIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "metastorepb.RemoveIamPolicyResponse", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "RemoveIamPolicy", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.RemoveIamPolicy", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_RestoreService_sync", + "title": "metastore RestoreService Sample", + "description": "RestoreService restores a service from a backup.", + "file": "DataprocMetastoreClient/RestoreService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RestoreService", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.RestoreService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.RestoreServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RestoreServiceOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "RestoreService", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.RestoreService", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_SetIamPolicy_sync", + "title": "metastore SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "DataprocMetastoreClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.SetIamPolicy", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_TestIamPermissions_sync", + "title": "metastore TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "DataprocMetastoreClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.TestIamPermissions", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_UpdateMetadataImport_sync", + "title": "metastore UpdateMetadataImport Sample", + "description": "UpdateMetadataImport updates a single import.\nOnly the description field of MetadataImport is supported to be updated.", + "file": "DataprocMetastoreClient/UpdateMetadataImport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateMetadataImport", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.UpdateMetadataImport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.UpdateMetadataImportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateMetadataImportOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "UpdateMetadataImport", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.UpdateMetadataImport", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastore_UpdateService_sync", + "title": "metastore UpdateService Sample", + "description": "UpdateService updates the parameters of a single service.", + "file": "DataprocMetastoreClient/UpdateService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateService", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient.UpdateService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.UpdateServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateServiceOperation", + "client": { + "shortName": "DataprocMetastoreClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" + }, + "method": { + "shortName": "UpdateService", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.UpdateService", + "service": { + "shortName": "DataprocMetastore", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastoreFederation_CreateFederation_sync", + "title": "metastore CreateFederation Sample", + "description": "CreateFederation creates a metastore federation in a project and location.", + "file": "DataprocMetastoreFederationClient/CreateFederation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient.CreateFederation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.CreateFederationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateFederationOperation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "CreateFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.CreateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastoreFederation_DeleteFederation_sync", + "title": "metastore DeleteFederation Sample", + "description": "DeleteFederation deletes a single federation.", + "file": "DataprocMetastoreFederationClient/DeleteFederation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient.DeleteFederation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.DeleteFederationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteFederationOperation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "DeleteFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.DeleteFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastoreFederation_DeleteOperation_sync", + "title": "metastore DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "DataprocMetastoreFederationClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.DeleteOperation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastoreFederation_GetFederation_sync", + "title": "metastore GetFederation Sample", + "description": "GetFederation gets the details of a single federation.", + "file": "DataprocMetastoreFederationClient/GetFederation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient.GetFederation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.GetFederationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "metastorepb.Federation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.GetFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastoreFederation_GetIamPolicy_sync", + "title": "metastore GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "DataprocMetastoreFederationClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.GetIamPolicy", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastoreFederation_GetLocation_sync", + "title": "metastore GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "DataprocMetastoreFederationClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.GetLocation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastoreFederation_GetOperation_sync", + "title": "metastore GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "DataprocMetastoreFederationClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.GetOperation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastoreFederation_ListFederations_sync", + "title": "metastore ListFederations Sample", + "description": "ListFederations lists federations in a project and location.", + "file": "DataprocMetastoreFederationClient/ListFederations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListFederations", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient.ListFederations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.ListFederationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "FederationIterator", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListFederations", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.ListFederations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastoreFederation_ListLocations_sync", + "title": "metastore ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "DataprocMetastoreFederationClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.ListLocations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastoreFederation_ListOperations_sync", + "title": "metastore ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "DataprocMetastoreFederationClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.ListOperations", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastoreFederation_SetIamPolicy_sync", + "title": "metastore SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "DataprocMetastoreFederationClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.SetIamPolicy", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastoreFederation_TestIamPermissions_sync", + "title": "metastore TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "DataprocMetastoreFederationClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.TestIamPermissions", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "metastore_v1beta_generated_DataprocMetastoreFederation_UpdateFederation_sync", + "title": "metastore UpdateFederation Sample", + "description": "UpdateFederation updates the fields of a federation.", + "file": "DataprocMetastoreFederationClient/UpdateFederation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient.UpdateFederation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metastorepb.UpdateFederationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateFederationOperation", + "client": { + "shortName": "DataprocMetastoreFederationClient", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient" + }, + "method": { + "shortName": "UpdateFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.UpdateFederation", + "service": { + "shortName": "DataprocMetastoreFederation", + "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/CreateAlertPolicy/main.go b/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/CreateAlertPolicy/main.go index b975a87a6278..26953e4bc476 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/CreateAlertPolicy/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/CreateAlertPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewAlertPolicyClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.CreateAlertPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#CreateAlertPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#CreateAlertPolicyRequest. } resp, err := c.CreateAlertPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/DeleteAlertPolicy/main.go b/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/DeleteAlertPolicy/main.go index cf61a243dca7..7692a493da79 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/DeleteAlertPolicy/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/DeleteAlertPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewAlertPolicyClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.DeleteAlertPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#DeleteAlertPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#DeleteAlertPolicyRequest. } err = c.DeleteAlertPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/GetAlertPolicy/main.go b/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/GetAlertPolicy/main.go index 4dde7f2cc5c5..d9493cffce12 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/GetAlertPolicy/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/GetAlertPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewAlertPolicyClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.GetAlertPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#GetAlertPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#GetAlertPolicyRequest. } resp, err := c.GetAlertPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/ListAlertPolicies/main.go b/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/ListAlertPolicies/main.go index 39386c46372f..ad1877554b3b 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/ListAlertPolicies/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/ListAlertPolicies/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" "google.golang.org/api/iterator" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewAlertPolicyClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &monitoringpb.ListAlertPoliciesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#ListAlertPoliciesRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#ListAlertPoliciesRequest. } it := c.ListAlertPolicies(ctx, req) for { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/UpdateAlertPolicy/main.go b/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/UpdateAlertPolicy/main.go index f69c4eb098a7..a088bdc88e02 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/UpdateAlertPolicy/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/AlertPolicyClient/UpdateAlertPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewAlertPolicyClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.UpdateAlertPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#UpdateAlertPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#UpdateAlertPolicyRequest. } resp, err := c.UpdateAlertPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/CreateGroup/main.go b/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/CreateGroup/main.go index 35a940dd5b66..9d7dca91e36b 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/CreateGroup/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/CreateGroup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewGroupClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.CreateGroupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#CreateGroupRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#CreateGroupRequest. } resp, err := c.CreateGroup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/DeleteGroup/main.go b/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/DeleteGroup/main.go index f390c5b3c6df..5e89bba859c4 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/DeleteGroup/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/DeleteGroup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewGroupClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.DeleteGroupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#DeleteGroupRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#DeleteGroupRequest. } err = c.DeleteGroup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/GetGroup/main.go b/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/GetGroup/main.go index db91a7fb8f32..fc0d6fcbaaa9 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/GetGroup/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/GetGroup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewGroupClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.GetGroupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#GetGroupRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#GetGroupRequest. } resp, err := c.GetGroup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/ListGroupMembers/main.go b/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/ListGroupMembers/main.go index d6df3efa89cf..bb065ef7f897 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/ListGroupMembers/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/ListGroupMembers/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" "google.golang.org/api/iterator" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewGroupClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &monitoringpb.ListGroupMembersRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#ListGroupMembersRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#ListGroupMembersRequest. } it := c.ListGroupMembers(ctx, req) for { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/ListGroups/main.go b/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/ListGroups/main.go index cac4e3f7860c..91b2bc3d9a11 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/ListGroups/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/ListGroups/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" "google.golang.org/api/iterator" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewGroupClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &monitoringpb.ListGroupsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#ListGroupsRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#ListGroupsRequest. } it := c.ListGroups(ctx, req) for { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/UpdateGroup/main.go b/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/UpdateGroup/main.go index a5582204ac7a..d5623d8a7195 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/UpdateGroup/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/GroupClient/UpdateGroup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewGroupClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.UpdateGroupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#UpdateGroupRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#UpdateGroupRequest. } resp, err := c.UpdateGroup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/CreateMetricDescriptor/main.go b/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/CreateMetricDescriptor/main.go index 96b90506ac26..008d82e056de 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/CreateMetricDescriptor/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/CreateMetricDescriptor/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.CreateMetricDescriptorRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#CreateMetricDescriptorRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#CreateMetricDescriptorRequest. } resp, err := c.CreateMetricDescriptor(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/CreateServiceTimeSeries/main.go b/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/CreateServiceTimeSeries/main.go index e6fa56e7b7b8..a3e04d11c1c1 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/CreateServiceTimeSeries/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/CreateServiceTimeSeries/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.CreateTimeSeriesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#CreateTimeSeriesRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#CreateTimeSeriesRequest. } err = c.CreateServiceTimeSeries(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/CreateTimeSeries/main.go b/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/CreateTimeSeries/main.go index b92f2d912c69..77a3c6b1ac10 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/CreateTimeSeries/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/CreateTimeSeries/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.CreateTimeSeriesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#CreateTimeSeriesRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#CreateTimeSeriesRequest. } err = c.CreateTimeSeries(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/DeleteMetricDescriptor/main.go b/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/DeleteMetricDescriptor/main.go index 075034fc871b..91c24b9de520 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/DeleteMetricDescriptor/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/DeleteMetricDescriptor/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.DeleteMetricDescriptorRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#DeleteMetricDescriptorRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#DeleteMetricDescriptorRequest. } err = c.DeleteMetricDescriptor(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/GetMetricDescriptor/main.go b/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/GetMetricDescriptor/main.go index a76ee59c6bed..414aca425325 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/GetMetricDescriptor/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/GetMetricDescriptor/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.GetMetricDescriptorRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#GetMetricDescriptorRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#GetMetricDescriptorRequest. } resp, err := c.GetMetricDescriptor(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/GetMonitoredResourceDescriptor/main.go b/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/GetMonitoredResourceDescriptor/main.go index 5e4510fdf0e0..7157462ebfd2 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/GetMonitoredResourceDescriptor/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/GetMonitoredResourceDescriptor/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.GetMonitoredResourceDescriptorRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#GetMonitoredResourceDescriptorRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#GetMonitoredResourceDescriptorRequest. } resp, err := c.GetMonitoredResourceDescriptor(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/ListMetricDescriptors/main.go b/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/ListMetricDescriptors/main.go index 7e65e08853ba..a51231149e3b 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/ListMetricDescriptors/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/ListMetricDescriptors/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" "google.golang.org/api/iterator" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &monitoringpb.ListMetricDescriptorsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#ListMetricDescriptorsRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#ListMetricDescriptorsRequest. } it := c.ListMetricDescriptors(ctx, req) for { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/ListMonitoredResourceDescriptors/main.go b/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/ListMonitoredResourceDescriptors/main.go index 7647aac7f8ff..5b393929c6b8 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/ListMonitoredResourceDescriptors/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/ListMonitoredResourceDescriptors/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" "google.golang.org/api/iterator" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &monitoringpb.ListMonitoredResourceDescriptorsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#ListMonitoredResourceDescriptorsRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#ListMonitoredResourceDescriptorsRequest. } it := c.ListMonitoredResourceDescriptors(ctx, req) for { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/ListTimeSeries/main.go b/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/ListTimeSeries/main.go index f5c13983f0ac..ba05501df858 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/ListTimeSeries/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/MetricClient/ListTimeSeries/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" "google.golang.org/api/iterator" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewMetricClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &monitoringpb.ListTimeSeriesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#ListTimeSeriesRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#ListTimeSeriesRequest. } it := c.ListTimeSeries(ctx, req) for { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/CreateNotificationChannel/main.go b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/CreateNotificationChannel/main.go index 24012a051ff4..7da097065ae4 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/CreateNotificationChannel/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/CreateNotificationChannel/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.CreateNotificationChannelRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#CreateNotificationChannelRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#CreateNotificationChannelRequest. } resp, err := c.CreateNotificationChannel(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/DeleteNotificationChannel/main.go b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/DeleteNotificationChannel/main.go index 74fcda671d49..6239a968eb8f 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/DeleteNotificationChannel/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/DeleteNotificationChannel/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.DeleteNotificationChannelRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#DeleteNotificationChannelRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#DeleteNotificationChannelRequest. } err = c.DeleteNotificationChannel(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/GetNotificationChannel/main.go b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/GetNotificationChannel/main.go index 1f1304b15c89..4f980dad8e19 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/GetNotificationChannel/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/GetNotificationChannel/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.GetNotificationChannelRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#GetNotificationChannelRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#GetNotificationChannelRequest. } resp, err := c.GetNotificationChannel(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/GetNotificationChannelDescriptor/main.go b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/GetNotificationChannelDescriptor/main.go index c5b1190f4a24..189906a05d8f 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/GetNotificationChannelDescriptor/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/GetNotificationChannelDescriptor/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.GetNotificationChannelDescriptorRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#GetNotificationChannelDescriptorRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#GetNotificationChannelDescriptorRequest. } resp, err := c.GetNotificationChannelDescriptor(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/GetNotificationChannelVerificationCode/main.go b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/GetNotificationChannelVerificationCode/main.go index ea87a720dd4c..230a12897e62 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/GetNotificationChannelVerificationCode/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/GetNotificationChannelVerificationCode/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.GetNotificationChannelVerificationCodeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#GetNotificationChannelVerificationCodeRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#GetNotificationChannelVerificationCodeRequest. } resp, err := c.GetNotificationChannelVerificationCode(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/ListNotificationChannelDescriptors/main.go b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/ListNotificationChannelDescriptors/main.go index 5d4ebb4e09f9..8bc7696a9785 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/ListNotificationChannelDescriptors/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/ListNotificationChannelDescriptors/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" "google.golang.org/api/iterator" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &monitoringpb.ListNotificationChannelDescriptorsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#ListNotificationChannelDescriptorsRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#ListNotificationChannelDescriptorsRequest. } it := c.ListNotificationChannelDescriptors(ctx, req) for { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/ListNotificationChannels/main.go b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/ListNotificationChannels/main.go index 9c045e05b35d..fa80db6df261 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/ListNotificationChannels/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/ListNotificationChannels/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" "google.golang.org/api/iterator" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &monitoringpb.ListNotificationChannelsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#ListNotificationChannelsRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#ListNotificationChannelsRequest. } it := c.ListNotificationChannels(ctx, req) for { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/SendNotificationChannelVerificationCode/main.go b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/SendNotificationChannelVerificationCode/main.go index 46cdeb2fd246..030e4fdbc360 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/SendNotificationChannelVerificationCode/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/SendNotificationChannelVerificationCode/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.SendNotificationChannelVerificationCodeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#SendNotificationChannelVerificationCodeRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#SendNotificationChannelVerificationCodeRequest. } err = c.SendNotificationChannelVerificationCode(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/UpdateNotificationChannel/main.go b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/UpdateNotificationChannel/main.go index 74ac86061be1..75fff220e640 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/UpdateNotificationChannel/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/UpdateNotificationChannel/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.UpdateNotificationChannelRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#UpdateNotificationChannelRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#UpdateNotificationChannelRequest. } resp, err := c.UpdateNotificationChannel(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/VerifyNotificationChannel/main.go b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/VerifyNotificationChannel/main.go index 6b88e560c0d7..87a6b51c49b4 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/VerifyNotificationChannel/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/NotificationChannelClient/VerifyNotificationChannel/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewNotificationChannelClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.VerifyNotificationChannelRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#VerifyNotificationChannelRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#VerifyNotificationChannelRequest. } resp, err := c.VerifyNotificationChannel(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/QueryClient/QueryTimeSeries/main.go b/internal/generated/snippets/monitoring/apiv3/v2/QueryClient/QueryTimeSeries/main.go index deb9310446d8..3ff27c58e307 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/QueryClient/QueryTimeSeries/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/QueryClient/QueryTimeSeries/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" "google.golang.org/api/iterator" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewQueryClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &monitoringpb.QueryTimeSeriesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#QueryTimeSeriesRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#QueryTimeSeriesRequest. } it := c.QueryTimeSeries(ctx, req) for { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/CreateService/main.go b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/CreateService/main.go index 87713eab6797..bb534334946c 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/CreateService/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/CreateService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.CreateServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#CreateServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#CreateServiceRequest. } resp, err := c.CreateService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/CreateServiceLevelObjective/main.go b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/CreateServiceLevelObjective/main.go index 02d0045b60b6..333508d4f5ac 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/CreateServiceLevelObjective/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/CreateServiceLevelObjective/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.CreateServiceLevelObjectiveRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#CreateServiceLevelObjectiveRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#CreateServiceLevelObjectiveRequest. } resp, err := c.CreateServiceLevelObjective(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/DeleteService/main.go b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/DeleteService/main.go index 8efb60bf8df9..8122e49478df 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/DeleteService/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/DeleteService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.DeleteServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#DeleteServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#DeleteServiceRequest. } err = c.DeleteService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/DeleteServiceLevelObjective/main.go b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/DeleteServiceLevelObjective/main.go index ec47068ef0c7..db25bec78141 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/DeleteServiceLevelObjective/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/DeleteServiceLevelObjective/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.DeleteServiceLevelObjectiveRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#DeleteServiceLevelObjectiveRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#DeleteServiceLevelObjectiveRequest. } err = c.DeleteServiceLevelObjective(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/GetService/main.go b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/GetService/main.go index 2b68edc52e64..eb3101fb6cfc 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/GetService/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/GetService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.GetServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#GetServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#GetServiceRequest. } resp, err := c.GetService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/GetServiceLevelObjective/main.go b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/GetServiceLevelObjective/main.go index 56f05771171b..1e81df8b4955 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/GetServiceLevelObjective/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/GetServiceLevelObjective/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.GetServiceLevelObjectiveRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#GetServiceLevelObjectiveRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#GetServiceLevelObjectiveRequest. } resp, err := c.GetServiceLevelObjective(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/ListServiceLevelObjectives/main.go b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/ListServiceLevelObjectives/main.go index f97d44d397aa..bd8fe9d24817 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/ListServiceLevelObjectives/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/ListServiceLevelObjectives/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" "google.golang.org/api/iterator" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &monitoringpb.ListServiceLevelObjectivesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#ListServiceLevelObjectivesRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#ListServiceLevelObjectivesRequest. } it := c.ListServiceLevelObjectives(ctx, req) for { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/ListServices/main.go b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/ListServices/main.go index f54a50b02838..10d570158eed 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/ListServices/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/ListServices/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" "google.golang.org/api/iterator" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &monitoringpb.ListServicesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#ListServicesRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#ListServicesRequest. } it := c.ListServices(ctx, req) for { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/UpdateService/main.go b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/UpdateService/main.go index 5a2e1a44fc63..e39365a82bd8 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/UpdateService/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/UpdateService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.UpdateServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#UpdateServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#UpdateServiceRequest. } resp, err := c.UpdateService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/UpdateServiceLevelObjective/main.go b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/UpdateServiceLevelObjective/main.go index cd35c7dacd31..29f9aa49ab70 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/UpdateServiceLevelObjective/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/ServiceMonitoringClient/UpdateServiceLevelObjective/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewServiceMonitoringClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.UpdateServiceLevelObjectiveRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#UpdateServiceLevelObjectiveRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#UpdateServiceLevelObjectiveRequest. } resp, err := c.UpdateServiceLevelObjective(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/SnoozeClient/CreateSnooze/main.go b/internal/generated/snippets/monitoring/apiv3/v2/SnoozeClient/CreateSnooze/main.go new file mode 100644 index 000000000000..a33f1315bd32 --- /dev/null +++ b/internal/generated/snippets/monitoring/apiv3/v2/SnoozeClient/CreateSnooze/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START monitoring_v3_generated_SnoozeService_CreateSnooze_sync] + +package main + +import ( + "context" + + monitoring "cloud.google.com/go/monitoring/apiv3/v2" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := monitoring.NewSnoozeClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &monitoringpb.CreateSnoozeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#CreateSnoozeRequest. + } + resp, err := c.CreateSnooze(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END monitoring_v3_generated_SnoozeService_CreateSnooze_sync] diff --git a/internal/generated/snippets/monitoring/apiv3/v2/SnoozeClient/GetSnooze/main.go b/internal/generated/snippets/monitoring/apiv3/v2/SnoozeClient/GetSnooze/main.go new file mode 100644 index 000000000000..80a598fc7774 --- /dev/null +++ b/internal/generated/snippets/monitoring/apiv3/v2/SnoozeClient/GetSnooze/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START monitoring_v3_generated_SnoozeService_GetSnooze_sync] + +package main + +import ( + "context" + + monitoring "cloud.google.com/go/monitoring/apiv3/v2" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := monitoring.NewSnoozeClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &monitoringpb.GetSnoozeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#GetSnoozeRequest. + } + resp, err := c.GetSnooze(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END monitoring_v3_generated_SnoozeService_GetSnooze_sync] diff --git a/internal/generated/snippets/monitoring/apiv3/v2/SnoozeClient/ListSnoozes/main.go b/internal/generated/snippets/monitoring/apiv3/v2/SnoozeClient/ListSnoozes/main.go new file mode 100644 index 000000000000..1c79947c7abe --- /dev/null +++ b/internal/generated/snippets/monitoring/apiv3/v2/SnoozeClient/ListSnoozes/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START monitoring_v3_generated_SnoozeService_ListSnoozes_sync] + +package main + +import ( + "context" + + monitoring "cloud.google.com/go/monitoring/apiv3/v2" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := monitoring.NewSnoozeClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &monitoringpb.ListSnoozesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#ListSnoozesRequest. + } + it := c.ListSnoozes(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END monitoring_v3_generated_SnoozeService_ListSnoozes_sync] diff --git a/internal/generated/snippets/monitoring/apiv3/v2/SnoozeClient/UpdateSnooze/main.go b/internal/generated/snippets/monitoring/apiv3/v2/SnoozeClient/UpdateSnooze/main.go new file mode 100644 index 000000000000..edd4a787c287 --- /dev/null +++ b/internal/generated/snippets/monitoring/apiv3/v2/SnoozeClient/UpdateSnooze/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START monitoring_v3_generated_SnoozeService_UpdateSnooze_sync] + +package main + +import ( + "context" + + monitoring "cloud.google.com/go/monitoring/apiv3/v2" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := monitoring.NewSnoozeClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &monitoringpb.UpdateSnoozeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#UpdateSnoozeRequest. + } + resp, err := c.UpdateSnooze(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END monitoring_v3_generated_SnoozeService_UpdateSnooze_sync] diff --git a/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/CreateUptimeCheckConfig/main.go b/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/CreateUptimeCheckConfig/main.go index f2202ed674ce..aa8de7a16c2c 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/CreateUptimeCheckConfig/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/CreateUptimeCheckConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewUptimeCheckClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.CreateUptimeCheckConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#CreateUptimeCheckConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#CreateUptimeCheckConfigRequest. } resp, err := c.CreateUptimeCheckConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/DeleteUptimeCheckConfig/main.go b/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/DeleteUptimeCheckConfig/main.go index b9746ccef6d4..2bd8e7a85fa2 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/DeleteUptimeCheckConfig/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/DeleteUptimeCheckConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewUptimeCheckClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.DeleteUptimeCheckConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#DeleteUptimeCheckConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#DeleteUptimeCheckConfigRequest. } err = c.DeleteUptimeCheckConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/GetUptimeCheckConfig/main.go b/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/GetUptimeCheckConfig/main.go index e7d2dd99dca7..6f9b66fce27c 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/GetUptimeCheckConfig/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/GetUptimeCheckConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewUptimeCheckClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.GetUptimeCheckConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#GetUptimeCheckConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#GetUptimeCheckConfigRequest. } resp, err := c.GetUptimeCheckConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/ListUptimeCheckConfigs/main.go b/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/ListUptimeCheckConfigs/main.go index 610bf1004c59..ff36d037a2dd 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/ListUptimeCheckConfigs/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/ListUptimeCheckConfigs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" "google.golang.org/api/iterator" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewUptimeCheckClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &monitoringpb.ListUptimeCheckConfigsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#ListUptimeCheckConfigsRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#ListUptimeCheckConfigsRequest. } it := c.ListUptimeCheckConfigs(ctx, req) for { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/ListUptimeCheckIps/main.go b/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/ListUptimeCheckIps/main.go index 30e78af56abd..8d815bfea4a3 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/ListUptimeCheckIps/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/ListUptimeCheckIps/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" "google.golang.org/api/iterator" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewUptimeCheckClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &monitoringpb.ListUptimeCheckIpsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#ListUptimeCheckIpsRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#ListUptimeCheckIpsRequest. } it := c.ListUptimeCheckIps(ctx, req) for { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/UpdateUptimeCheckConfig/main.go b/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/UpdateUptimeCheckConfig/main.go index 77abd618e4ee..2586580f0753 100644 --- a/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/UpdateUptimeCheckConfig/main.go +++ b/internal/generated/snippets/monitoring/apiv3/v2/UptimeCheckClient/UpdateUptimeCheckConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" monitoring "cloud.google.com/go/monitoring/apiv3/v2" - monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" + monitoringpb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := monitoring.NewUptimeCheckClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &monitoringpb.UpdateUptimeCheckConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/v3#UpdateUptimeCheckConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/apiv3/v2/monitoringpb#UpdateUptimeCheckConfigRequest. } resp, err := c.UpdateUptimeCheckConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/apiv3/v2/snippet_metadata.google.monitoring.v3.json b/internal/generated/snippets/monitoring/apiv3/v2/snippet_metadata.google.monitoring.v3.json new file mode 100644 index 000000000000..3e510da3d3d4 --- /dev/null +++ b/internal/generated/snippets/monitoring/apiv3/v2/snippet_metadata.google.monitoring.v3.json @@ -0,0 +1,2351 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/monitoring/apiv3/v2", + "version": "1.11.0", + "language": "GO", + "apis": [ + { + "id": "google.monitoring.v3", + "version": "v3" + } + ] + }, + "snippets": [ + { + "regionTag": "monitoring_v3_generated_AlertPolicyService_CreateAlertPolicy_sync", + "title": "monitoring CreateAlertPolicy Sample", + "description": "CreateAlertPolicy creates a new alerting policy.", + "file": "AlertPolicyClient/CreateAlertPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateAlertPolicy", + "fullName": "google.monitoring.v3.AlertPolicyClient.CreateAlertPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.CreateAlertPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.AlertPolicy", + "client": { + "shortName": "AlertPolicyClient", + "fullName": "google.monitoring.v3.AlertPolicyClient" + }, + "method": { + "shortName": "CreateAlertPolicy", + "fullName": "google.monitoring.v3.AlertPolicyService.CreateAlertPolicy", + "service": { + "shortName": "AlertPolicyService", + "fullName": "google.monitoring.v3.AlertPolicyService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_AlertPolicyService_DeleteAlertPolicy_sync", + "title": "monitoring DeleteAlertPolicy Sample", + "description": "DeleteAlertPolicy deletes an alerting policy.", + "file": "AlertPolicyClient/DeleteAlertPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteAlertPolicy", + "fullName": "google.monitoring.v3.AlertPolicyClient.DeleteAlertPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.DeleteAlertPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "AlertPolicyClient", + "fullName": "google.monitoring.v3.AlertPolicyClient" + }, + "method": { + "shortName": "DeleteAlertPolicy", + "fullName": "google.monitoring.v3.AlertPolicyService.DeleteAlertPolicy", + "service": { + "shortName": "AlertPolicyService", + "fullName": "google.monitoring.v3.AlertPolicyService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_AlertPolicyService_GetAlertPolicy_sync", + "title": "monitoring GetAlertPolicy Sample", + "description": "GetAlertPolicy gets a single alerting policy.", + "file": "AlertPolicyClient/GetAlertPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetAlertPolicy", + "fullName": "google.monitoring.v3.AlertPolicyClient.GetAlertPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.GetAlertPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.AlertPolicy", + "client": { + "shortName": "AlertPolicyClient", + "fullName": "google.monitoring.v3.AlertPolicyClient" + }, + "method": { + "shortName": "GetAlertPolicy", + "fullName": "google.monitoring.v3.AlertPolicyService.GetAlertPolicy", + "service": { + "shortName": "AlertPolicyService", + "fullName": "google.monitoring.v3.AlertPolicyService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_AlertPolicyService_ListAlertPolicies_sync", + "title": "monitoring ListAlertPolicies Sample", + "description": "ListAlertPolicies lists the existing alerting policies for the workspace.", + "file": "AlertPolicyClient/ListAlertPolicies/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListAlertPolicies", + "fullName": "google.monitoring.v3.AlertPolicyClient.ListAlertPolicies", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.ListAlertPoliciesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AlertPolicyIterator", + "client": { + "shortName": "AlertPolicyClient", + "fullName": "google.monitoring.v3.AlertPolicyClient" + }, + "method": { + "shortName": "ListAlertPolicies", + "fullName": "google.monitoring.v3.AlertPolicyService.ListAlertPolicies", + "service": { + "shortName": "AlertPolicyService", + "fullName": "google.monitoring.v3.AlertPolicyService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_AlertPolicyService_UpdateAlertPolicy_sync", + "title": "monitoring UpdateAlertPolicy Sample", + "description": "UpdateAlertPolicy updates an alerting policy. You can either replace the entire policy with\na new one or replace only certain fields in the current alerting policy by\nspecifying the fields to be updated via updateMask. Returns the\nupdated alerting policy.", + "file": "AlertPolicyClient/UpdateAlertPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateAlertPolicy", + "fullName": "google.monitoring.v3.AlertPolicyClient.UpdateAlertPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.UpdateAlertPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.AlertPolicy", + "client": { + "shortName": "AlertPolicyClient", + "fullName": "google.monitoring.v3.AlertPolicyClient" + }, + "method": { + "shortName": "UpdateAlertPolicy", + "fullName": "google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy", + "service": { + "shortName": "AlertPolicyService", + "fullName": "google.monitoring.v3.AlertPolicyService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_GroupService_CreateGroup_sync", + "title": "monitoring CreateGroup Sample", + "description": "CreateGroup creates a new group.", + "file": "GroupClient/CreateGroup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateGroup", + "fullName": "google.monitoring.v3.GroupClient.CreateGroup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.CreateGroupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.Group", + "client": { + "shortName": "GroupClient", + "fullName": "google.monitoring.v3.GroupClient" + }, + "method": { + "shortName": "CreateGroup", + "fullName": "google.monitoring.v3.GroupService.CreateGroup", + "service": { + "shortName": "GroupService", + "fullName": "google.monitoring.v3.GroupService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_GroupService_DeleteGroup_sync", + "title": "monitoring DeleteGroup Sample", + "description": "DeleteGroup deletes an existing group.", + "file": "GroupClient/DeleteGroup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteGroup", + "fullName": "google.monitoring.v3.GroupClient.DeleteGroup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.DeleteGroupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "GroupClient", + "fullName": "google.monitoring.v3.GroupClient" + }, + "method": { + "shortName": "DeleteGroup", + "fullName": "google.monitoring.v3.GroupService.DeleteGroup", + "service": { + "shortName": "GroupService", + "fullName": "google.monitoring.v3.GroupService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_GroupService_GetGroup_sync", + "title": "monitoring GetGroup Sample", + "description": "GetGroup gets a single group.", + "file": "GroupClient/GetGroup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetGroup", + "fullName": "google.monitoring.v3.GroupClient.GetGroup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.GetGroupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.Group", + "client": { + "shortName": "GroupClient", + "fullName": "google.monitoring.v3.GroupClient" + }, + "method": { + "shortName": "GetGroup", + "fullName": "google.monitoring.v3.GroupService.GetGroup", + "service": { + "shortName": "GroupService", + "fullName": "google.monitoring.v3.GroupService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_GroupService_ListGroupMembers_sync", + "title": "monitoring ListGroupMembers Sample", + "description": "ListGroupMembers lists the monitored resources that are members of a group.", + "file": "GroupClient/ListGroupMembers/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListGroupMembers", + "fullName": "google.monitoring.v3.GroupClient.ListGroupMembers", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.ListGroupMembersRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "MonitoredResourceIterator", + "client": { + "shortName": "GroupClient", + "fullName": "google.monitoring.v3.GroupClient" + }, + "method": { + "shortName": "ListGroupMembers", + "fullName": "google.monitoring.v3.GroupService.ListGroupMembers", + "service": { + "shortName": "GroupService", + "fullName": "google.monitoring.v3.GroupService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_GroupService_ListGroups_sync", + "title": "monitoring ListGroups Sample", + "description": "ListGroups lists the existing groups.", + "file": "GroupClient/ListGroups/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListGroups", + "fullName": "google.monitoring.v3.GroupClient.ListGroups", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.ListGroupsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "GroupIterator", + "client": { + "shortName": "GroupClient", + "fullName": "google.monitoring.v3.GroupClient" + }, + "method": { + "shortName": "ListGroups", + "fullName": "google.monitoring.v3.GroupService.ListGroups", + "service": { + "shortName": "GroupService", + "fullName": "google.monitoring.v3.GroupService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_GroupService_UpdateGroup_sync", + "title": "monitoring UpdateGroup Sample", + "description": "UpdateGroup updates an existing group.\nYou can change any group attributes except name.", + "file": "GroupClient/UpdateGroup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateGroup", + "fullName": "google.monitoring.v3.GroupClient.UpdateGroup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.UpdateGroupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.Group", + "client": { + "shortName": "GroupClient", + "fullName": "google.monitoring.v3.GroupClient" + }, + "method": { + "shortName": "UpdateGroup", + "fullName": "google.monitoring.v3.GroupService.UpdateGroup", + "service": { + "shortName": "GroupService", + "fullName": "google.monitoring.v3.GroupService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_MetricService_CreateMetricDescriptor_sync", + "title": "monitoring CreateMetricDescriptor Sample", + "description": "CreateMetricDescriptor creates a new metric descriptor.\nThe creation is executed asynchronously and callers may check the returned\noperation to track its progress.\nUser-created metric descriptors define\ncustom metrics (at https: //cloud.google.com/monitoring/custom-metrics).", + "file": "MetricClient/CreateMetricDescriptor/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateMetricDescriptor", + "fullName": "google.monitoring.v3.MetricClient.CreateMetricDescriptor", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.CreateMetricDescriptorRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "metricpb.MetricDescriptor", + "client": { + "shortName": "MetricClient", + "fullName": "google.monitoring.v3.MetricClient" + }, + "method": { + "shortName": "CreateMetricDescriptor", + "fullName": "google.monitoring.v3.MetricService.CreateMetricDescriptor", + "service": { + "shortName": "MetricService", + "fullName": "google.monitoring.v3.MetricService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_MetricService_CreateServiceTimeSeries_sync", + "title": "monitoring CreateServiceTimeSeries Sample", + "description": "CreateServiceTimeSeries creates or adds data to one or more service time series. A service time\nseries is a time series for a metric from a Google Cloud service. The\nresponse is empty if all time series in the request were written. If any\ntime series could not be written, a corresponding failure message is\nincluded in the error response. This endpoint rejects writes to\nuser-defined metrics.\nThis method is only for use by Google Cloud services. Use\nprojects.timeSeries.create\ninstead.", + "file": "MetricClient/CreateServiceTimeSeries/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateServiceTimeSeries", + "fullName": "google.monitoring.v3.MetricClient.CreateServiceTimeSeries", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.CreateTimeSeriesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "MetricClient", + "fullName": "google.monitoring.v3.MetricClient" + }, + "method": { + "shortName": "CreateServiceTimeSeries", + "fullName": "google.monitoring.v3.MetricService.CreateServiceTimeSeries", + "service": { + "shortName": "MetricService", + "fullName": "google.monitoring.v3.MetricService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_MetricService_CreateTimeSeries_sync", + "title": "monitoring CreateTimeSeries Sample", + "description": "CreateTimeSeries creates or adds data to one or more time series.\nThe response is empty if all time series in the request were written.\nIf any time series could not be written, a corresponding failure message is\nincluded in the error response.", + "file": "MetricClient/CreateTimeSeries/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateTimeSeries", + "fullName": "google.monitoring.v3.MetricClient.CreateTimeSeries", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.CreateTimeSeriesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "MetricClient", + "fullName": "google.monitoring.v3.MetricClient" + }, + "method": { + "shortName": "CreateTimeSeries", + "fullName": "google.monitoring.v3.MetricService.CreateTimeSeries", + "service": { + "shortName": "MetricService", + "fullName": "google.monitoring.v3.MetricService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_MetricService_DeleteMetricDescriptor_sync", + "title": "monitoring DeleteMetricDescriptor Sample", + "description": "DeleteMetricDescriptor deletes a metric descriptor. Only user-created\ncustom metrics (at https: //cloud.google.com/monitoring/custom-metrics) can be\ndeleted.", + "file": "MetricClient/DeleteMetricDescriptor/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteMetricDescriptor", + "fullName": "google.monitoring.v3.MetricClient.DeleteMetricDescriptor", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.DeleteMetricDescriptorRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "MetricClient", + "fullName": "google.monitoring.v3.MetricClient" + }, + "method": { + "shortName": "DeleteMetricDescriptor", + "fullName": "google.monitoring.v3.MetricService.DeleteMetricDescriptor", + "service": { + "shortName": "MetricService", + "fullName": "google.monitoring.v3.MetricService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_MetricService_GetMetricDescriptor_sync", + "title": "monitoring GetMetricDescriptor Sample", + "description": "GetMetricDescriptor gets a single metric descriptor. This method does not require a Workspace.", + "file": "MetricClient/GetMetricDescriptor/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetMetricDescriptor", + "fullName": "google.monitoring.v3.MetricClient.GetMetricDescriptor", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.GetMetricDescriptorRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "metricpb.MetricDescriptor", + "client": { + "shortName": "MetricClient", + "fullName": "google.monitoring.v3.MetricClient" + }, + "method": { + "shortName": "GetMetricDescriptor", + "fullName": "google.monitoring.v3.MetricService.GetMetricDescriptor", + "service": { + "shortName": "MetricService", + "fullName": "google.monitoring.v3.MetricService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_MetricService_GetMonitoredResourceDescriptor_sync", + "title": "monitoring GetMonitoredResourceDescriptor Sample", + "description": "GetMonitoredResourceDescriptor gets a single monitored resource descriptor. This method does not require a Workspace.", + "file": "MetricClient/GetMonitoredResourceDescriptor/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetMonitoredResourceDescriptor", + "fullName": "google.monitoring.v3.MetricClient.GetMonitoredResourceDescriptor", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.GetMonitoredResourceDescriptorRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoredrespb.MonitoredResourceDescriptor", + "client": { + "shortName": "MetricClient", + "fullName": "google.monitoring.v3.MetricClient" + }, + "method": { + "shortName": "GetMonitoredResourceDescriptor", + "fullName": "google.monitoring.v3.MetricService.GetMonitoredResourceDescriptor", + "service": { + "shortName": "MetricService", + "fullName": "google.monitoring.v3.MetricService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_MetricService_ListMetricDescriptors_sync", + "title": "monitoring ListMetricDescriptors Sample", + "description": "ListMetricDescriptors lists metric descriptors that match a filter. This method does not require a Workspace.", + "file": "MetricClient/ListMetricDescriptors/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListMetricDescriptors", + "fullName": "google.monitoring.v3.MetricClient.ListMetricDescriptors", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.ListMetricDescriptorsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "MetricDescriptorIterator", + "client": { + "shortName": "MetricClient", + "fullName": "google.monitoring.v3.MetricClient" + }, + "method": { + "shortName": "ListMetricDescriptors", + "fullName": "google.monitoring.v3.MetricService.ListMetricDescriptors", + "service": { + "shortName": "MetricService", + "fullName": "google.monitoring.v3.MetricService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_MetricService_ListMonitoredResourceDescriptors_sync", + "title": "monitoring ListMonitoredResourceDescriptors Sample", + "description": "ListMonitoredResourceDescriptors lists monitored resource descriptors that match a filter. This method does not require a Workspace.", + "file": "MetricClient/ListMonitoredResourceDescriptors/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListMonitoredResourceDescriptors", + "fullName": "google.monitoring.v3.MetricClient.ListMonitoredResourceDescriptors", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.ListMonitoredResourceDescriptorsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "MonitoredResourceDescriptorIterator", + "client": { + "shortName": "MetricClient", + "fullName": "google.monitoring.v3.MetricClient" + }, + "method": { + "shortName": "ListMonitoredResourceDescriptors", + "fullName": "google.monitoring.v3.MetricService.ListMonitoredResourceDescriptors", + "service": { + "shortName": "MetricService", + "fullName": "google.monitoring.v3.MetricService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_MetricService_ListTimeSeries_sync", + "title": "monitoring ListTimeSeries Sample", + "description": "ListTimeSeries lists time series that match a filter. This method does not require a Workspace.", + "file": "MetricClient/ListTimeSeries/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListTimeSeries", + "fullName": "google.monitoring.v3.MetricClient.ListTimeSeries", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.ListTimeSeriesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "TimeSeriesIterator", + "client": { + "shortName": "MetricClient", + "fullName": "google.monitoring.v3.MetricClient" + }, + "method": { + "shortName": "ListTimeSeries", + "fullName": "google.monitoring.v3.MetricService.ListTimeSeries", + "service": { + "shortName": "MetricService", + "fullName": "google.monitoring.v3.MetricService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_NotificationChannelService_CreateNotificationChannel_sync", + "title": "monitoring CreateNotificationChannel Sample", + "description": "CreateNotificationChannel creates a new notification channel, representing a single notification\nendpoint such as an email address, SMS number, or PagerDuty service.", + "file": "NotificationChannelClient/CreateNotificationChannel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateNotificationChannel", + "fullName": "google.monitoring.v3.NotificationChannelClient.CreateNotificationChannel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.CreateNotificationChannelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.NotificationChannel", + "client": { + "shortName": "NotificationChannelClient", + "fullName": "google.monitoring.v3.NotificationChannelClient" + }, + "method": { + "shortName": "CreateNotificationChannel", + "fullName": "google.monitoring.v3.NotificationChannelService.CreateNotificationChannel", + "service": { + "shortName": "NotificationChannelService", + "fullName": "google.monitoring.v3.NotificationChannelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_NotificationChannelService_DeleteNotificationChannel_sync", + "title": "monitoring DeleteNotificationChannel Sample", + "description": "DeleteNotificationChannel deletes a notification channel.", + "file": "NotificationChannelClient/DeleteNotificationChannel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteNotificationChannel", + "fullName": "google.monitoring.v3.NotificationChannelClient.DeleteNotificationChannel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.DeleteNotificationChannelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "NotificationChannelClient", + "fullName": "google.monitoring.v3.NotificationChannelClient" + }, + "method": { + "shortName": "DeleteNotificationChannel", + "fullName": "google.monitoring.v3.NotificationChannelService.DeleteNotificationChannel", + "service": { + "shortName": "NotificationChannelService", + "fullName": "google.monitoring.v3.NotificationChannelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_NotificationChannelService_GetNotificationChannel_sync", + "title": "monitoring GetNotificationChannel Sample", + "description": "GetNotificationChannel gets a single notification channel. The channel includes the relevant\nconfiguration details with which the channel was created. However, the\nresponse may truncate or omit passwords, API keys, or other private key\nmatter and thus the response may not be 100% identical to the information\nthat was supplied in the call to the create method.", + "file": "NotificationChannelClient/GetNotificationChannel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetNotificationChannel", + "fullName": "google.monitoring.v3.NotificationChannelClient.GetNotificationChannel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.GetNotificationChannelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.NotificationChannel", + "client": { + "shortName": "NotificationChannelClient", + "fullName": "google.monitoring.v3.NotificationChannelClient" + }, + "method": { + "shortName": "GetNotificationChannel", + "fullName": "google.monitoring.v3.NotificationChannelService.GetNotificationChannel", + "service": { + "shortName": "NotificationChannelService", + "fullName": "google.monitoring.v3.NotificationChannelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_NotificationChannelService_GetNotificationChannelDescriptor_sync", + "title": "monitoring GetNotificationChannelDescriptor Sample", + "description": "GetNotificationChannelDescriptor gets a single channel descriptor. The descriptor indicates which fields\nare expected / permitted for a notification channel of the given type.", + "file": "NotificationChannelClient/GetNotificationChannelDescriptor/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetNotificationChannelDescriptor", + "fullName": "google.monitoring.v3.NotificationChannelClient.GetNotificationChannelDescriptor", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.GetNotificationChannelDescriptorRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.NotificationChannelDescriptor", + "client": { + "shortName": "NotificationChannelClient", + "fullName": "google.monitoring.v3.NotificationChannelClient" + }, + "method": { + "shortName": "GetNotificationChannelDescriptor", + "fullName": "google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor", + "service": { + "shortName": "NotificationChannelService", + "fullName": "google.monitoring.v3.NotificationChannelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_NotificationChannelService_GetNotificationChannelVerificationCode_sync", + "title": "monitoring GetNotificationChannelVerificationCode Sample", + "description": "GetNotificationChannelVerificationCode requests a verification code for an already verified channel that can then\nbe used in a call to VerifyNotificationChannel() on a different channel\nwith an equivalent identity in the same or in a different project. This\nmakes it possible to copy a channel between projects without requiring\nmanual reverification of the channel. If the channel is not in the\nverified state, this method will fail (in other words, this may only be\nused if the SendNotificationChannelVerificationCode and\nVerifyNotificationChannel paths have already been used to put the given\nchannel into the verified state).\n\nThere is no guarantee that the verification codes returned by this method\nwill be of a similar structure or form as the ones that are delivered\nto the channel via SendNotificationChannelVerificationCode; while\nVerifyNotificationChannel() will recognize both the codes delivered via\nSendNotificationChannelVerificationCode() and returned from\nGetNotificationChannelVerificationCode(), it is typically the case that\nthe verification codes delivered via\nSendNotificationChannelVerificationCode() will be shorter and also\nhave a shorter expiration (e.g. codes such as “G-123456”) whereas\nGetVerificationCode() will typically return a much longer, websafe base\n64 encoded string that has a longer expiration time.", + "file": "NotificationChannelClient/GetNotificationChannelVerificationCode/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetNotificationChannelVerificationCode", + "fullName": "google.monitoring.v3.NotificationChannelClient.GetNotificationChannelVerificationCode", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.GetNotificationChannelVerificationCodeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.GetNotificationChannelVerificationCodeResponse", + "client": { + "shortName": "NotificationChannelClient", + "fullName": "google.monitoring.v3.NotificationChannelClient" + }, + "method": { + "shortName": "GetNotificationChannelVerificationCode", + "fullName": "google.monitoring.v3.NotificationChannelService.GetNotificationChannelVerificationCode", + "service": { + "shortName": "NotificationChannelService", + "fullName": "google.monitoring.v3.NotificationChannelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_NotificationChannelService_ListNotificationChannelDescriptors_sync", + "title": "monitoring ListNotificationChannelDescriptors Sample", + "description": "ListNotificationChannelDescriptors lists the descriptors for supported channel types. The use of descriptors\nmakes it possible for new channel types to be dynamically added.", + "file": "NotificationChannelClient/ListNotificationChannelDescriptors/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListNotificationChannelDescriptors", + "fullName": "google.monitoring.v3.NotificationChannelClient.ListNotificationChannelDescriptors", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.ListNotificationChannelDescriptorsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "NotificationChannelDescriptorIterator", + "client": { + "shortName": "NotificationChannelClient", + "fullName": "google.monitoring.v3.NotificationChannelClient" + }, + "method": { + "shortName": "ListNotificationChannelDescriptors", + "fullName": "google.monitoring.v3.NotificationChannelService.ListNotificationChannelDescriptors", + "service": { + "shortName": "NotificationChannelService", + "fullName": "google.monitoring.v3.NotificationChannelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_NotificationChannelService_ListNotificationChannels_sync", + "title": "monitoring ListNotificationChannels Sample", + "description": "ListNotificationChannels lists the notification channels that have been created for the project.", + "file": "NotificationChannelClient/ListNotificationChannels/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListNotificationChannels", + "fullName": "google.monitoring.v3.NotificationChannelClient.ListNotificationChannels", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.ListNotificationChannelsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "NotificationChannelIterator", + "client": { + "shortName": "NotificationChannelClient", + "fullName": "google.monitoring.v3.NotificationChannelClient" + }, + "method": { + "shortName": "ListNotificationChannels", + "fullName": "google.monitoring.v3.NotificationChannelService.ListNotificationChannels", + "service": { + "shortName": "NotificationChannelService", + "fullName": "google.monitoring.v3.NotificationChannelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_NotificationChannelService_SendNotificationChannelVerificationCode_sync", + "title": "monitoring SendNotificationChannelVerificationCode Sample", + "description": "SendNotificationChannelVerificationCode causes a verification code to be delivered to the channel. The code\ncan then be supplied in VerifyNotificationChannel to verify the channel.", + "file": "NotificationChannelClient/SendNotificationChannelVerificationCode/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SendNotificationChannelVerificationCode", + "fullName": "google.monitoring.v3.NotificationChannelClient.SendNotificationChannelVerificationCode", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.SendNotificationChannelVerificationCodeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "NotificationChannelClient", + "fullName": "google.monitoring.v3.NotificationChannelClient" + }, + "method": { + "shortName": "SendNotificationChannelVerificationCode", + "fullName": "google.monitoring.v3.NotificationChannelService.SendNotificationChannelVerificationCode", + "service": { + "shortName": "NotificationChannelService", + "fullName": "google.monitoring.v3.NotificationChannelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_NotificationChannelService_UpdateNotificationChannel_sync", + "title": "monitoring UpdateNotificationChannel Sample", + "description": "UpdateNotificationChannel updates a notification channel. Fields not specified in the field mask\nremain unchanged.", + "file": "NotificationChannelClient/UpdateNotificationChannel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateNotificationChannel", + "fullName": "google.monitoring.v3.NotificationChannelClient.UpdateNotificationChannel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.UpdateNotificationChannelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.NotificationChannel", + "client": { + "shortName": "NotificationChannelClient", + "fullName": "google.monitoring.v3.NotificationChannelClient" + }, + "method": { + "shortName": "UpdateNotificationChannel", + "fullName": "google.monitoring.v3.NotificationChannelService.UpdateNotificationChannel", + "service": { + "shortName": "NotificationChannelService", + "fullName": "google.monitoring.v3.NotificationChannelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_NotificationChannelService_VerifyNotificationChannel_sync", + "title": "monitoring VerifyNotificationChannel Sample", + "description": "VerifyNotificationChannel verifies a NotificationChannel by proving receipt of the code\ndelivered to the channel as a result of calling\nSendNotificationChannelVerificationCode.", + "file": "NotificationChannelClient/VerifyNotificationChannel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "VerifyNotificationChannel", + "fullName": "google.monitoring.v3.NotificationChannelClient.VerifyNotificationChannel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.VerifyNotificationChannelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.NotificationChannel", + "client": { + "shortName": "NotificationChannelClient", + "fullName": "google.monitoring.v3.NotificationChannelClient" + }, + "method": { + "shortName": "VerifyNotificationChannel", + "fullName": "google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel", + "service": { + "shortName": "NotificationChannelService", + "fullName": "google.monitoring.v3.NotificationChannelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_QueryService_QueryTimeSeries_sync", + "title": "monitoring QueryTimeSeries Sample", + "description": "QueryTimeSeries queries time series using Monitoring Query Language. This method does not require a Workspace.", + "file": "QueryClient/QueryTimeSeries/main.go", + "language": "GO", + "clientMethod": { + "shortName": "QueryTimeSeries", + "fullName": "google.monitoring.v3.QueryClient.QueryTimeSeries", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.QueryTimeSeriesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "TimeSeriesDataIterator", + "client": { + "shortName": "QueryClient", + "fullName": "google.monitoring.v3.QueryClient" + }, + "method": { + "shortName": "QueryTimeSeries", + "fullName": "google.monitoring.v3.QueryService.QueryTimeSeries", + "service": { + "shortName": "QueryService", + "fullName": "google.monitoring.v3.QueryService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_ServiceMonitoringService_CreateService_sync", + "title": "monitoring CreateService Sample", + "description": "CreateService create a Service.", + "file": "ServiceMonitoringClient/CreateService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateService", + "fullName": "google.monitoring.v3.ServiceMonitoringClient.CreateService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.CreateServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.Service", + "client": { + "shortName": "ServiceMonitoringClient", + "fullName": "google.monitoring.v3.ServiceMonitoringClient" + }, + "method": { + "shortName": "CreateService", + "fullName": "google.monitoring.v3.ServiceMonitoringService.CreateService", + "service": { + "shortName": "ServiceMonitoringService", + "fullName": "google.monitoring.v3.ServiceMonitoringService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_ServiceMonitoringService_CreateServiceLevelObjective_sync", + "title": "monitoring CreateServiceLevelObjective Sample", + "description": "CreateServiceLevelObjective create a ServiceLevelObjective for the given Service.", + "file": "ServiceMonitoringClient/CreateServiceLevelObjective/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateServiceLevelObjective", + "fullName": "google.monitoring.v3.ServiceMonitoringClient.CreateServiceLevelObjective", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.CreateServiceLevelObjectiveRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.ServiceLevelObjective", + "client": { + "shortName": "ServiceMonitoringClient", + "fullName": "google.monitoring.v3.ServiceMonitoringClient" + }, + "method": { + "shortName": "CreateServiceLevelObjective", + "fullName": "google.monitoring.v3.ServiceMonitoringService.CreateServiceLevelObjective", + "service": { + "shortName": "ServiceMonitoringService", + "fullName": "google.monitoring.v3.ServiceMonitoringService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_ServiceMonitoringService_DeleteService_sync", + "title": "monitoring DeleteService Sample", + "description": "DeleteService soft delete this Service.", + "file": "ServiceMonitoringClient/DeleteService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteService", + "fullName": "google.monitoring.v3.ServiceMonitoringClient.DeleteService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.DeleteServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ServiceMonitoringClient", + "fullName": "google.monitoring.v3.ServiceMonitoringClient" + }, + "method": { + "shortName": "DeleteService", + "fullName": "google.monitoring.v3.ServiceMonitoringService.DeleteService", + "service": { + "shortName": "ServiceMonitoringService", + "fullName": "google.monitoring.v3.ServiceMonitoringService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_ServiceMonitoringService_DeleteServiceLevelObjective_sync", + "title": "monitoring DeleteServiceLevelObjective Sample", + "description": "DeleteServiceLevelObjective delete the given ServiceLevelObjective.", + "file": "ServiceMonitoringClient/DeleteServiceLevelObjective/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteServiceLevelObjective", + "fullName": "google.monitoring.v3.ServiceMonitoringClient.DeleteServiceLevelObjective", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.DeleteServiceLevelObjectiveRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ServiceMonitoringClient", + "fullName": "google.monitoring.v3.ServiceMonitoringClient" + }, + "method": { + "shortName": "DeleteServiceLevelObjective", + "fullName": "google.monitoring.v3.ServiceMonitoringService.DeleteServiceLevelObjective", + "service": { + "shortName": "ServiceMonitoringService", + "fullName": "google.monitoring.v3.ServiceMonitoringService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_ServiceMonitoringService_GetService_sync", + "title": "monitoring GetService Sample", + "description": "GetService get the named Service.", + "file": "ServiceMonitoringClient/GetService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetService", + "fullName": "google.monitoring.v3.ServiceMonitoringClient.GetService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.GetServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.Service", + "client": { + "shortName": "ServiceMonitoringClient", + "fullName": "google.monitoring.v3.ServiceMonitoringClient" + }, + "method": { + "shortName": "GetService", + "fullName": "google.monitoring.v3.ServiceMonitoringService.GetService", + "service": { + "shortName": "ServiceMonitoringService", + "fullName": "google.monitoring.v3.ServiceMonitoringService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_ServiceMonitoringService_GetServiceLevelObjective_sync", + "title": "monitoring GetServiceLevelObjective Sample", + "description": "GetServiceLevelObjective get a ServiceLevelObjective by name.", + "file": "ServiceMonitoringClient/GetServiceLevelObjective/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetServiceLevelObjective", + "fullName": "google.monitoring.v3.ServiceMonitoringClient.GetServiceLevelObjective", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.GetServiceLevelObjectiveRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.ServiceLevelObjective", + "client": { + "shortName": "ServiceMonitoringClient", + "fullName": "google.monitoring.v3.ServiceMonitoringClient" + }, + "method": { + "shortName": "GetServiceLevelObjective", + "fullName": "google.monitoring.v3.ServiceMonitoringService.GetServiceLevelObjective", + "service": { + "shortName": "ServiceMonitoringService", + "fullName": "google.monitoring.v3.ServiceMonitoringService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_ServiceMonitoringService_ListServiceLevelObjectives_sync", + "title": "monitoring ListServiceLevelObjectives Sample", + "description": "ListServiceLevelObjectives list the ServiceLevelObjectives for the given Service.", + "file": "ServiceMonitoringClient/ListServiceLevelObjectives/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListServiceLevelObjectives", + "fullName": "google.monitoring.v3.ServiceMonitoringClient.ListServiceLevelObjectives", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.ListServiceLevelObjectivesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ServiceLevelObjectiveIterator", + "client": { + "shortName": "ServiceMonitoringClient", + "fullName": "google.monitoring.v3.ServiceMonitoringClient" + }, + "method": { + "shortName": "ListServiceLevelObjectives", + "fullName": "google.monitoring.v3.ServiceMonitoringService.ListServiceLevelObjectives", + "service": { + "shortName": "ServiceMonitoringService", + "fullName": "google.monitoring.v3.ServiceMonitoringService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_ServiceMonitoringService_ListServices_sync", + "title": "monitoring ListServices Sample", + "description": "ListServices list Services for this workspace.", + "file": "ServiceMonitoringClient/ListServices/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListServices", + "fullName": "google.monitoring.v3.ServiceMonitoringClient.ListServices", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.ListServicesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ServiceIterator", + "client": { + "shortName": "ServiceMonitoringClient", + "fullName": "google.monitoring.v3.ServiceMonitoringClient" + }, + "method": { + "shortName": "ListServices", + "fullName": "google.monitoring.v3.ServiceMonitoringService.ListServices", + "service": { + "shortName": "ServiceMonitoringService", + "fullName": "google.monitoring.v3.ServiceMonitoringService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_ServiceMonitoringService_UpdateService_sync", + "title": "monitoring UpdateService Sample", + "description": "UpdateService update this Service.", + "file": "ServiceMonitoringClient/UpdateService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateService", + "fullName": "google.monitoring.v3.ServiceMonitoringClient.UpdateService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.UpdateServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.Service", + "client": { + "shortName": "ServiceMonitoringClient", + "fullName": "google.monitoring.v3.ServiceMonitoringClient" + }, + "method": { + "shortName": "UpdateService", + "fullName": "google.monitoring.v3.ServiceMonitoringService.UpdateService", + "service": { + "shortName": "ServiceMonitoringService", + "fullName": "google.monitoring.v3.ServiceMonitoringService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_ServiceMonitoringService_UpdateServiceLevelObjective_sync", + "title": "monitoring UpdateServiceLevelObjective Sample", + "description": "UpdateServiceLevelObjective update the given ServiceLevelObjective.", + "file": "ServiceMonitoringClient/UpdateServiceLevelObjective/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateServiceLevelObjective", + "fullName": "google.monitoring.v3.ServiceMonitoringClient.UpdateServiceLevelObjective", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.UpdateServiceLevelObjectiveRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.ServiceLevelObjective", + "client": { + "shortName": "ServiceMonitoringClient", + "fullName": "google.monitoring.v3.ServiceMonitoringClient" + }, + "method": { + "shortName": "UpdateServiceLevelObjective", + "fullName": "google.monitoring.v3.ServiceMonitoringService.UpdateServiceLevelObjective", + "service": { + "shortName": "ServiceMonitoringService", + "fullName": "google.monitoring.v3.ServiceMonitoringService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_SnoozeService_CreateSnooze_sync", + "title": "monitoring CreateSnooze Sample", + "description": "CreateSnooze creates a Snooze that will prevent alerts, which match the provided\ncriteria, from being opened. The Snooze applies for a specific time\ninterval.", + "file": "SnoozeClient/CreateSnooze/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSnooze", + "fullName": "google.monitoring.v3.SnoozeClient.CreateSnooze", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.CreateSnoozeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.Snooze", + "client": { + "shortName": "SnoozeClient", + "fullName": "google.monitoring.v3.SnoozeClient" + }, + "method": { + "shortName": "CreateSnooze", + "fullName": "google.monitoring.v3.SnoozeService.CreateSnooze", + "service": { + "shortName": "SnoozeService", + "fullName": "google.monitoring.v3.SnoozeService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_SnoozeService_GetSnooze_sync", + "title": "monitoring GetSnooze Sample", + "description": "GetSnooze retrieves a Snooze by name.", + "file": "SnoozeClient/GetSnooze/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSnooze", + "fullName": "google.monitoring.v3.SnoozeClient.GetSnooze", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.GetSnoozeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.Snooze", + "client": { + "shortName": "SnoozeClient", + "fullName": "google.monitoring.v3.SnoozeClient" + }, + "method": { + "shortName": "GetSnooze", + "fullName": "google.monitoring.v3.SnoozeService.GetSnooze", + "service": { + "shortName": "SnoozeService", + "fullName": "google.monitoring.v3.SnoozeService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_SnoozeService_ListSnoozes_sync", + "title": "monitoring ListSnoozes Sample", + "description": "ListSnoozes lists the Snoozes associated with a project. Can optionally pass in\nfilter, which specifies predicates to match Snoozes.", + "file": "SnoozeClient/ListSnoozes/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListSnoozes", + "fullName": "google.monitoring.v3.SnoozeClient.ListSnoozes", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.ListSnoozesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SnoozeIterator", + "client": { + "shortName": "SnoozeClient", + "fullName": "google.monitoring.v3.SnoozeClient" + }, + "method": { + "shortName": "ListSnoozes", + "fullName": "google.monitoring.v3.SnoozeService.ListSnoozes", + "service": { + "shortName": "SnoozeService", + "fullName": "google.monitoring.v3.SnoozeService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_SnoozeService_UpdateSnooze_sync", + "title": "monitoring UpdateSnooze Sample", + "description": "UpdateSnooze updates a Snooze, identified by its name, with the parameters in the\ngiven Snooze object.", + "file": "SnoozeClient/UpdateSnooze/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSnooze", + "fullName": "google.monitoring.v3.SnoozeClient.UpdateSnooze", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.UpdateSnoozeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.Snooze", + "client": { + "shortName": "SnoozeClient", + "fullName": "google.monitoring.v3.SnoozeClient" + }, + "method": { + "shortName": "UpdateSnooze", + "fullName": "google.monitoring.v3.SnoozeService.UpdateSnooze", + "service": { + "shortName": "SnoozeService", + "fullName": "google.monitoring.v3.SnoozeService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_UptimeCheckService_CreateUptimeCheckConfig_sync", + "title": "monitoring CreateUptimeCheckConfig Sample", + "description": "CreateUptimeCheckConfig creates a new Uptime check configuration.", + "file": "UptimeCheckClient/CreateUptimeCheckConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateUptimeCheckConfig", + "fullName": "google.monitoring.v3.UptimeCheckClient.CreateUptimeCheckConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.CreateUptimeCheckConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.UptimeCheckConfig", + "client": { + "shortName": "UptimeCheckClient", + "fullName": "google.monitoring.v3.UptimeCheckClient" + }, + "method": { + "shortName": "CreateUptimeCheckConfig", + "fullName": "google.monitoring.v3.UptimeCheckService.CreateUptimeCheckConfig", + "service": { + "shortName": "UptimeCheckService", + "fullName": "google.monitoring.v3.UptimeCheckService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_UptimeCheckService_DeleteUptimeCheckConfig_sync", + "title": "monitoring DeleteUptimeCheckConfig Sample", + "description": "DeleteUptimeCheckConfig deletes an Uptime check configuration. Note that this method will fail\nif the Uptime check configuration is referenced by an alert policy or\nother dependent configs that would be rendered invalid by the deletion.", + "file": "UptimeCheckClient/DeleteUptimeCheckConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteUptimeCheckConfig", + "fullName": "google.monitoring.v3.UptimeCheckClient.DeleteUptimeCheckConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.DeleteUptimeCheckConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "UptimeCheckClient", + "fullName": "google.monitoring.v3.UptimeCheckClient" + }, + "method": { + "shortName": "DeleteUptimeCheckConfig", + "fullName": "google.monitoring.v3.UptimeCheckService.DeleteUptimeCheckConfig", + "service": { + "shortName": "UptimeCheckService", + "fullName": "google.monitoring.v3.UptimeCheckService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_UptimeCheckService_GetUptimeCheckConfig_sync", + "title": "monitoring GetUptimeCheckConfig Sample", + "description": "GetUptimeCheckConfig gets a single Uptime check configuration.", + "file": "UptimeCheckClient/GetUptimeCheckConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetUptimeCheckConfig", + "fullName": "google.monitoring.v3.UptimeCheckClient.GetUptimeCheckConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.GetUptimeCheckConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.UptimeCheckConfig", + "client": { + "shortName": "UptimeCheckClient", + "fullName": "google.monitoring.v3.UptimeCheckClient" + }, + "method": { + "shortName": "GetUptimeCheckConfig", + "fullName": "google.monitoring.v3.UptimeCheckService.GetUptimeCheckConfig", + "service": { + "shortName": "UptimeCheckService", + "fullName": "google.monitoring.v3.UptimeCheckService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_UptimeCheckService_ListUptimeCheckConfigs_sync", + "title": "monitoring ListUptimeCheckConfigs Sample", + "description": "ListUptimeCheckConfigs lists the existing valid Uptime check configurations for the project\n(leaving out any invalid configurations).", + "file": "UptimeCheckClient/ListUptimeCheckConfigs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListUptimeCheckConfigs", + "fullName": "google.monitoring.v3.UptimeCheckClient.ListUptimeCheckConfigs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.ListUptimeCheckConfigsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UptimeCheckConfigIterator", + "client": { + "shortName": "UptimeCheckClient", + "fullName": "google.monitoring.v3.UptimeCheckClient" + }, + "method": { + "shortName": "ListUptimeCheckConfigs", + "fullName": "google.monitoring.v3.UptimeCheckService.ListUptimeCheckConfigs", + "service": { + "shortName": "UptimeCheckService", + "fullName": "google.monitoring.v3.UptimeCheckService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_UptimeCheckService_ListUptimeCheckIps_sync", + "title": "monitoring ListUptimeCheckIps Sample", + "description": "ListUptimeCheckIps returns the list of IP addresses that checkers run from", + "file": "UptimeCheckClient/ListUptimeCheckIps/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListUptimeCheckIps", + "fullName": "google.monitoring.v3.UptimeCheckClient.ListUptimeCheckIps", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.ListUptimeCheckIpsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UptimeCheckIpIterator", + "client": { + "shortName": "UptimeCheckClient", + "fullName": "google.monitoring.v3.UptimeCheckClient" + }, + "method": { + "shortName": "ListUptimeCheckIps", + "fullName": "google.monitoring.v3.UptimeCheckService.ListUptimeCheckIps", + "service": { + "shortName": "UptimeCheckService", + "fullName": "google.monitoring.v3.UptimeCheckService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v3_generated_UptimeCheckService_UpdateUptimeCheckConfig_sync", + "title": "monitoring UpdateUptimeCheckConfig Sample", + "description": "UpdateUptimeCheckConfig updates an Uptime check configuration. You can either replace the entire\nconfiguration with a new one or replace only certain fields in the current\nconfiguration by specifying the fields to be updated via updateMask.\nReturns the updated configuration.", + "file": "UptimeCheckClient/UpdateUptimeCheckConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateUptimeCheckConfig", + "fullName": "google.monitoring.v3.UptimeCheckClient.UpdateUptimeCheckConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "monitoringpb.UpdateUptimeCheckConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "monitoringpb.UptimeCheckConfig", + "client": { + "shortName": "UptimeCheckClient", + "fullName": "google.monitoring.v3.UptimeCheckClient" + }, + "method": { + "shortName": "UpdateUptimeCheckConfig", + "fullName": "google.monitoring.v3.UptimeCheckService.UpdateUptimeCheckConfig", + "service": { + "shortName": "UptimeCheckService", + "fullName": "google.monitoring.v3.UptimeCheckService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/CreateDashboard/main.go b/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/CreateDashboard/main.go index fcb2c935a85f..b4b03be5582e 100644 --- a/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/CreateDashboard/main.go +++ b/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/CreateDashboard/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" dashboard "cloud.google.com/go/monitoring/dashboard/apiv1" - dashboardpb "google.golang.org/genproto/googleapis/monitoring/dashboard/v1" + dashboardpb "cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dashboard.NewDashboardsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &dashboardpb.CreateDashboardRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/dashboard/v1#CreateDashboardRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb#CreateDashboardRequest. } resp, err := c.CreateDashboard(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/DeleteDashboard/main.go b/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/DeleteDashboard/main.go index f9c09f0420f3..2fdd5338d94d 100644 --- a/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/DeleteDashboard/main.go +++ b/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/DeleteDashboard/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" dashboard "cloud.google.com/go/monitoring/dashboard/apiv1" - dashboardpb "google.golang.org/genproto/googleapis/monitoring/dashboard/v1" + dashboardpb "cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dashboard.NewDashboardsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &dashboardpb.DeleteDashboardRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/dashboard/v1#DeleteDashboardRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb#DeleteDashboardRequest. } err = c.DeleteDashboard(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/GetDashboard/main.go b/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/GetDashboard/main.go index cbf18f2c58c7..5bd222dbadac 100644 --- a/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/GetDashboard/main.go +++ b/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/GetDashboard/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" dashboard "cloud.google.com/go/monitoring/dashboard/apiv1" - dashboardpb "google.golang.org/genproto/googleapis/monitoring/dashboard/v1" + dashboardpb "cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dashboard.NewDashboardsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &dashboardpb.GetDashboardRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/dashboard/v1#GetDashboardRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb#GetDashboardRequest. } resp, err := c.GetDashboard(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/ListDashboards/main.go b/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/ListDashboards/main.go index 049b059c1569..ce807103ae50 100644 --- a/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/ListDashboards/main.go +++ b/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/ListDashboards/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" dashboard "cloud.google.com/go/monitoring/dashboard/apiv1" + dashboardpb "cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb" "google.golang.org/api/iterator" - dashboardpb "google.golang.org/genproto/googleapis/monitoring/dashboard/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dashboard.NewDashboardsClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &dashboardpb.ListDashboardsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/dashboard/v1#ListDashboardsRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb#ListDashboardsRequest. } it := c.ListDashboards(ctx, req) for { diff --git a/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/UpdateDashboard/main.go b/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/UpdateDashboard/main.go index 5097e7d3c9ac..bf4d9735b433 100644 --- a/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/UpdateDashboard/main.go +++ b/internal/generated/snippets/monitoring/dashboard/apiv1/DashboardsClient/UpdateDashboard/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" dashboard "cloud.google.com/go/monitoring/dashboard/apiv1" - dashboardpb "google.golang.org/genproto/googleapis/monitoring/dashboard/v1" + dashboardpb "cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := dashboard.NewDashboardsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &dashboardpb.UpdateDashboardRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/dashboard/v1#UpdateDashboardRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb#UpdateDashboardRequest. } resp, err := c.UpdateDashboard(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/dashboard/apiv1/snippet_metadata.google.monitoring.dashboard.v1.json b/internal/generated/snippets/monitoring/dashboard/apiv1/snippet_metadata.google.monitoring.dashboard.v1.json new file mode 100644 index 000000000000..39457bd27eb3 --- /dev/null +++ b/internal/generated/snippets/monitoring/dashboard/apiv1/snippet_metadata.google.monitoring.dashboard.v1.json @@ -0,0 +1,244 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/monitoring/dashboard/apiv1", + "version": "1.11.0", + "language": "GO", + "apis": [ + { + "id": "google.monitoring.dashboard.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "monitoring_v1_generated_DashboardsService_CreateDashboard_sync", + "title": "monitoring CreateDashboard Sample", + "description": "CreateDashboard creates a new custom dashboard. For examples on how you can use this API to create dashboards, see Managing dashboards by API (at https: //cloud.google.com/monitoring/dashboards/api-dashboard).\nThis method requires the monitoring.dashboards.create permission on the specified project. For more information about permissions, see Cloud Identity and Access Management (at https: //cloud.google.com/iam).", + "file": "DashboardsClient/CreateDashboard/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateDashboard", + "fullName": "google.monitoring.dashboard.v1.DashboardsClient.CreateDashboard", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "dashboardpb.CreateDashboardRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "dashboardpb.Dashboard", + "client": { + "shortName": "DashboardsClient", + "fullName": "google.monitoring.dashboard.v1.DashboardsClient" + }, + "method": { + "shortName": "CreateDashboard", + "fullName": "google.monitoring.dashboard.v1.DashboardsService.CreateDashboard", + "service": { + "shortName": "DashboardsService", + "fullName": "google.monitoring.dashboard.v1.DashboardsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v1_generated_DashboardsService_DeleteDashboard_sync", + "title": "monitoring DeleteDashboard Sample", + "description": "DeleteDashboard deletes an existing custom dashboard.\n\nThis method requires the monitoring.dashboards.delete permission\non the specified dashboard. For more information, see\nCloud Identity and Access Management (at https: //cloud.google.com/iam).", + "file": "DashboardsClient/DeleteDashboard/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteDashboard", + "fullName": "google.monitoring.dashboard.v1.DashboardsClient.DeleteDashboard", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "dashboardpb.DeleteDashboardRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "DashboardsClient", + "fullName": "google.monitoring.dashboard.v1.DashboardsClient" + }, + "method": { + "shortName": "DeleteDashboard", + "fullName": "google.monitoring.dashboard.v1.DashboardsService.DeleteDashboard", + "service": { + "shortName": "DashboardsService", + "fullName": "google.monitoring.dashboard.v1.DashboardsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v1_generated_DashboardsService_GetDashboard_sync", + "title": "monitoring GetDashboard Sample", + "description": "GetDashboard fetches a specific dashboard.\n\nThis method requires the monitoring.dashboards.get permission\non the specified dashboard. For more information, see\nCloud Identity and Access Management (at https: //cloud.google.com/iam).", + "file": "DashboardsClient/GetDashboard/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetDashboard", + "fullName": "google.monitoring.dashboard.v1.DashboardsClient.GetDashboard", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "dashboardpb.GetDashboardRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "dashboardpb.Dashboard", + "client": { + "shortName": "DashboardsClient", + "fullName": "google.monitoring.dashboard.v1.DashboardsClient" + }, + "method": { + "shortName": "GetDashboard", + "fullName": "google.monitoring.dashboard.v1.DashboardsService.GetDashboard", + "service": { + "shortName": "DashboardsService", + "fullName": "google.monitoring.dashboard.v1.DashboardsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v1_generated_DashboardsService_ListDashboards_sync", + "title": "monitoring ListDashboards Sample", + "description": "ListDashboards lists the existing dashboards.\n\nThis method requires the monitoring.dashboards.list permission\non the specified project. For more information, see\nCloud Identity and Access Management (at https: //cloud.google.com/iam).", + "file": "DashboardsClient/ListDashboards/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListDashboards", + "fullName": "google.monitoring.dashboard.v1.DashboardsClient.ListDashboards", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "dashboardpb.ListDashboardsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DashboardIterator", + "client": { + "shortName": "DashboardsClient", + "fullName": "google.monitoring.dashboard.v1.DashboardsClient" + }, + "method": { + "shortName": "ListDashboards", + "fullName": "google.monitoring.dashboard.v1.DashboardsService.ListDashboards", + "service": { + "shortName": "DashboardsService", + "fullName": "google.monitoring.dashboard.v1.DashboardsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v1_generated_DashboardsService_UpdateDashboard_sync", + "title": "monitoring UpdateDashboard Sample", + "description": "UpdateDashboard replaces an existing custom dashboard with a new definition.\n\nThis method requires the monitoring.dashboards.update permission\non the specified dashboard. For more information, see\nCloud Identity and Access Management (at https: //cloud.google.com/iam).", + "file": "DashboardsClient/UpdateDashboard/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateDashboard", + "fullName": "google.monitoring.dashboard.v1.DashboardsClient.UpdateDashboard", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "dashboardpb.UpdateDashboardRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "dashboardpb.Dashboard", + "client": { + "shortName": "DashboardsClient", + "fullName": "google.monitoring.dashboard.v1.DashboardsClient" + }, + "method": { + "shortName": "UpdateDashboard", + "fullName": "google.monitoring.dashboard.v1.DashboardsService.UpdateDashboard", + "service": { + "shortName": "DashboardsService", + "fullName": "google.monitoring.dashboard.v1.DashboardsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/monitoring/metricsscope/apiv1/MetricsScopesClient/CreateMonitoredProject/main.go b/internal/generated/snippets/monitoring/metricsscope/apiv1/MetricsScopesClient/CreateMonitoredProject/main.go index 42baff9db1b7..7a0b2982c1bf 100644 --- a/internal/generated/snippets/monitoring/metricsscope/apiv1/MetricsScopesClient/CreateMonitoredProject/main.go +++ b/internal/generated/snippets/monitoring/metricsscope/apiv1/MetricsScopesClient/CreateMonitoredProject/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metricsscope "cloud.google.com/go/monitoring/metricsscope/apiv1" - metricsscopepb "google.golang.org/genproto/googleapis/monitoring/metricsscope/v1" + metricsscopepb "cloud.google.com/go/monitoring/metricsscope/apiv1/metricsscopepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metricsscope.NewMetricsScopesClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metricsscopepb.CreateMonitoredProjectRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/metricsscope/v1#CreateMonitoredProjectRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/metricsscope/apiv1/metricsscopepb#CreateMonitoredProjectRequest. } op, err := c.CreateMonitoredProject(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/metricsscope/apiv1/MetricsScopesClient/DeleteMonitoredProject/main.go b/internal/generated/snippets/monitoring/metricsscope/apiv1/MetricsScopesClient/DeleteMonitoredProject/main.go index e5511dfb32d8..ae16e9c3e693 100644 --- a/internal/generated/snippets/monitoring/metricsscope/apiv1/MetricsScopesClient/DeleteMonitoredProject/main.go +++ b/internal/generated/snippets/monitoring/metricsscope/apiv1/MetricsScopesClient/DeleteMonitoredProject/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metricsscope "cloud.google.com/go/monitoring/metricsscope/apiv1" - metricsscopepb "google.golang.org/genproto/googleapis/monitoring/metricsscope/v1" + metricsscopepb "cloud.google.com/go/monitoring/metricsscope/apiv1/metricsscopepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metricsscope.NewMetricsScopesClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metricsscopepb.DeleteMonitoredProjectRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/metricsscope/v1#DeleteMonitoredProjectRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/metricsscope/apiv1/metricsscopepb#DeleteMonitoredProjectRequest. } op, err := c.DeleteMonitoredProject(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/metricsscope/apiv1/MetricsScopesClient/GetMetricsScope/main.go b/internal/generated/snippets/monitoring/metricsscope/apiv1/MetricsScopesClient/GetMetricsScope/main.go index 5a82e382c41b..b00b21c08796 100644 --- a/internal/generated/snippets/monitoring/metricsscope/apiv1/MetricsScopesClient/GetMetricsScope/main.go +++ b/internal/generated/snippets/monitoring/metricsscope/apiv1/MetricsScopesClient/GetMetricsScope/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metricsscope "cloud.google.com/go/monitoring/metricsscope/apiv1" - metricsscopepb "google.golang.org/genproto/googleapis/monitoring/metricsscope/v1" + metricsscopepb "cloud.google.com/go/monitoring/metricsscope/apiv1/metricsscopepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metricsscope.NewMetricsScopesClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metricsscopepb.GetMetricsScopeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/metricsscope/v1#GetMetricsScopeRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/metricsscope/apiv1/metricsscopepb#GetMetricsScopeRequest. } resp, err := c.GetMetricsScope(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/metricsscope/apiv1/MetricsScopesClient/ListMetricsScopesByMonitoredProject/main.go b/internal/generated/snippets/monitoring/metricsscope/apiv1/MetricsScopesClient/ListMetricsScopesByMonitoredProject/main.go index 1fac7427e1fd..db889e40ea9a 100644 --- a/internal/generated/snippets/monitoring/metricsscope/apiv1/MetricsScopesClient/ListMetricsScopesByMonitoredProject/main.go +++ b/internal/generated/snippets/monitoring/metricsscope/apiv1/MetricsScopesClient/ListMetricsScopesByMonitoredProject/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" metricsscope "cloud.google.com/go/monitoring/metricsscope/apiv1" - metricsscopepb "google.golang.org/genproto/googleapis/monitoring/metricsscope/v1" + metricsscopepb "cloud.google.com/go/monitoring/metricsscope/apiv1/metricsscopepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := metricsscope.NewMetricsScopesClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &metricsscopepb.ListMetricsScopesByMonitoredProjectRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/monitoring/metricsscope/v1#ListMetricsScopesByMonitoredProjectRequest. + // See https://pkg.go.dev/cloud.google.com/go/monitoring/metricsscope/apiv1/metricsscopepb#ListMetricsScopesByMonitoredProjectRequest. } resp, err := c.ListMetricsScopesByMonitoredProject(ctx, req) if err != nil { diff --git a/internal/generated/snippets/monitoring/metricsscope/apiv1/snippet_metadata.google.monitoring.metricsscope.v1.json b/internal/generated/snippets/monitoring/metricsscope/apiv1/snippet_metadata.google.monitoring.metricsscope.v1.json new file mode 100644 index 000000000000..956074a65789 --- /dev/null +++ b/internal/generated/snippets/monitoring/metricsscope/apiv1/snippet_metadata.google.monitoring.metricsscope.v1.json @@ -0,0 +1,199 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/monitoring/metricsscope/apiv1", + "version": "1.11.0", + "language": "GO", + "apis": [ + { + "id": "google.monitoring.metricsscope.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "monitoring_v1_generated_MetricsScopes_CreateMonitoredProject_sync", + "title": "monitoring CreateMonitoredProject Sample", + "description": "CreateMonitoredProject adds a MonitoredProject with the given project ID\nto the specified Metrics Scope.", + "file": "MetricsScopesClient/CreateMonitoredProject/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateMonitoredProject", + "fullName": "google.monitoring.metricsscope.v1.MetricsScopesClient.CreateMonitoredProject", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metricsscopepb.CreateMonitoredProjectRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateMonitoredProjectOperation", + "client": { + "shortName": "MetricsScopesClient", + "fullName": "google.monitoring.metricsscope.v1.MetricsScopesClient" + }, + "method": { + "shortName": "CreateMonitoredProject", + "fullName": "google.monitoring.metricsscope.v1.MetricsScopes.CreateMonitoredProject", + "service": { + "shortName": "MetricsScopes", + "fullName": "google.monitoring.metricsscope.v1.MetricsScopes" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v1_generated_MetricsScopes_DeleteMonitoredProject_sync", + "title": "monitoring DeleteMonitoredProject Sample", + "description": "DeleteMonitoredProject deletes a MonitoredProject from the specified Metrics Scope.", + "file": "MetricsScopesClient/DeleteMonitoredProject/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteMonitoredProject", + "fullName": "google.monitoring.metricsscope.v1.MetricsScopesClient.DeleteMonitoredProject", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metricsscopepb.DeleteMonitoredProjectRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteMonitoredProjectOperation", + "client": { + "shortName": "MetricsScopesClient", + "fullName": "google.monitoring.metricsscope.v1.MetricsScopesClient" + }, + "method": { + "shortName": "DeleteMonitoredProject", + "fullName": "google.monitoring.metricsscope.v1.MetricsScopes.DeleteMonitoredProject", + "service": { + "shortName": "MetricsScopes", + "fullName": "google.monitoring.metricsscope.v1.MetricsScopes" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v1_generated_MetricsScopes_GetMetricsScope_sync", + "title": "monitoring GetMetricsScope Sample", + "description": "GetMetricsScope returns a specific Metrics Scope.", + "file": "MetricsScopesClient/GetMetricsScope/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetMetricsScope", + "fullName": "google.monitoring.metricsscope.v1.MetricsScopesClient.GetMetricsScope", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metricsscopepb.GetMetricsScopeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "metricsscopepb.MetricsScope", + "client": { + "shortName": "MetricsScopesClient", + "fullName": "google.monitoring.metricsscope.v1.MetricsScopesClient" + }, + "method": { + "shortName": "GetMetricsScope", + "fullName": "google.monitoring.metricsscope.v1.MetricsScopes.GetMetricsScope", + "service": { + "shortName": "MetricsScopes", + "fullName": "google.monitoring.metricsscope.v1.MetricsScopes" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "monitoring_v1_generated_MetricsScopes_ListMetricsScopesByMonitoredProject_sync", + "title": "monitoring ListMetricsScopesByMonitoredProject Sample", + "description": "ListMetricsScopesByMonitoredProject returns a list of every Metrics Scope that a specific MonitoredProject\nhas been added to. The metrics scope representing the specified monitored\nproject will always be the first entry in the response.", + "file": "MetricsScopesClient/ListMetricsScopesByMonitoredProject/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListMetricsScopesByMonitoredProject", + "fullName": "google.monitoring.metricsscope.v1.MetricsScopesClient.ListMetricsScopesByMonitoredProject", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "metricsscopepb.ListMetricsScopesByMonitoredProjectRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "metricsscopepb.ListMetricsScopesByMonitoredProjectResponse", + "client": { + "shortName": "MetricsScopesClient", + "fullName": "google.monitoring.metricsscope.v1.MetricsScopesClient" + }, + "method": { + "shortName": "ListMetricsScopesByMonitoredProject", + "fullName": "google.monitoring.metricsscope.v1.MetricsScopes.ListMetricsScopesByMonitoredProject", + "service": { + "shortName": "MetricsScopes", + "fullName": "google.monitoring.metricsscope.v1.MetricsScopes" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/CancelOperation/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/CancelOperation/main.go new file mode 100644 index 000000000000..acf9e83e9fe8 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_HubService_CancelOperation_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewHubClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END networkconnectivity_v1_generated_HubService_CancelOperation_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/CreateHub/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/CreateHub/main.go index a84ff550c53d..55a909a0b496 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/CreateHub/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/CreateHub/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkconnectivitypb.CreateHubRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1#CreateHubRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb#CreateHubRequest. } op, err := c.CreateHub(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/CreateSpoke/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/CreateSpoke/main.go index 123d9a199dc7..37d7cf74fed9 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/CreateSpoke/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/CreateSpoke/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkconnectivitypb.CreateSpokeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1#CreateSpokeRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb#CreateSpokeRequest. } op, err := c.CreateSpoke(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/DeleteHub/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/DeleteHub/main.go index 5cda62f2aeb8..c533978bce2f 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/DeleteHub/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/DeleteHub/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkconnectivitypb.DeleteHubRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1#DeleteHubRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb#DeleteHubRequest. } op, err := c.DeleteHub(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/DeleteOperation/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/DeleteOperation/main.go new file mode 100644 index 000000000000..ecab0bc934b0 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_HubService_DeleteOperation_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewHubClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END networkconnectivity_v1_generated_HubService_DeleteOperation_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/DeleteSpoke/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/DeleteSpoke/main.go index dd4ca19ac9d0..7a694979d928 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/DeleteSpoke/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/DeleteSpoke/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkconnectivitypb.DeleteSpokeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1#DeleteSpokeRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb#DeleteSpokeRequest. } op, err := c.DeleteSpoke(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/GetHub/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/GetHub/main.go index 8bf3e758952b..ab2099f42db2 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/GetHub/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/GetHub/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkconnectivitypb.GetHubRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1#GetHubRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb#GetHubRequest. } resp, err := c.GetHub(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/GetIamPolicy/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/GetIamPolicy/main.go new file mode 100644 index 000000000000..55035eff7729 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/GetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_HubService_GetIamPolicy_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewHubClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.GetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#GetIamPolicyRequest. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networkconnectivity_v1_generated_HubService_GetIamPolicy_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/GetLocation/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/GetLocation/main.go new file mode 100644 index 000000000000..2ea8f0b88173 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_HubService_GetLocation_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewHubClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networkconnectivity_v1_generated_HubService_GetLocation_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/GetOperation/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/GetOperation/main.go new file mode 100644 index 000000000000..fb1f9ba8f9c7 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_HubService_GetOperation_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewHubClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networkconnectivity_v1_generated_HubService_GetOperation_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/GetSpoke/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/GetSpoke/main.go index 00ae0cd568c6..d1c9d4831f3f 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/GetSpoke/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/GetSpoke/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkconnectivitypb.GetSpokeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1#GetSpokeRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb#GetSpokeRequest. } resp, err := c.GetSpoke(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/ListHubs/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/ListHubs/main.go index f526449db97e..e87953092284 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/ListHubs/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/ListHubs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb" "google.golang.org/api/iterator" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &networkconnectivitypb.ListHubsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1#ListHubsRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb#ListHubsRequest. } it := c.ListHubs(ctx, req) for { diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/ListLocations/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/ListLocations/main.go new file mode 100644 index 000000000000..89da287362b0 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_HubService_ListLocations_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewHubClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END networkconnectivity_v1_generated_HubService_ListLocations_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/ListOperations/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/ListOperations/main.go new file mode 100644 index 000000000000..f25cd254091b --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_HubService_ListOperations_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewHubClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END networkconnectivity_v1_generated_HubService_ListOperations_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/ListSpokes/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/ListSpokes/main.go index e1b29c533c3c..20c2fd810f61 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/ListSpokes/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/ListSpokes/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb" "google.golang.org/api/iterator" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &networkconnectivitypb.ListSpokesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1#ListSpokesRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb#ListSpokesRequest. } it := c.ListSpokes(ctx, req) for { diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/SetIamPolicy/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/SetIamPolicy/main.go new file mode 100644 index 000000000000..a114f9a93d31 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/SetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_HubService_SetIamPolicy_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewHubClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.SetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#SetIamPolicyRequest. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networkconnectivity_v1_generated_HubService_SetIamPolicy_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/TestIamPermissions/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/TestIamPermissions/main.go new file mode 100644 index 000000000000..8f2c6394bea6 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/TestIamPermissions/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_HubService_TestIamPermissions_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewHubClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.TestIamPermissionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#TestIamPermissionsRequest. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networkconnectivity_v1_generated_HubService_TestIamPermissions_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/UpdateHub/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/UpdateHub/main.go index f5e9d0942d9c..234491ae915a 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/UpdateHub/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/UpdateHub/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkconnectivitypb.UpdateHubRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1#UpdateHubRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb#UpdateHubRequest. } op, err := c.UpdateHub(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/UpdateSpoke/main.go b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/UpdateSpoke/main.go index 853bb3422236..0df969d9afdc 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1/HubClient/UpdateSpoke/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1/HubClient/UpdateSpoke/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkconnectivitypb.UpdateSpokeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1#UpdateSpokeRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb#UpdateSpokeRequest. } op, err := c.UpdateSpoke(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/CancelOperation/main.go b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/CancelOperation/main.go new file mode 100644 index 000000000000..248ba9db8419 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_CancelOperation_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewPolicyBasedRoutingClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_CancelOperation_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/CreatePolicyBasedRoute/main.go b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/CreatePolicyBasedRoute/main.go new file mode 100644 index 000000000000..918ebb1c98a6 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/CreatePolicyBasedRoute/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewPolicyBasedRoutingClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &networkconnectivitypb.CreatePolicyBasedRouteRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb#CreatePolicyBasedRouteRequest. + } + op, err := c.CreatePolicyBasedRoute(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/DeleteOperation/main.go b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/DeleteOperation/main.go new file mode 100644 index 000000000000..8f0ddb50cc23 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_DeleteOperation_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewPolicyBasedRoutingClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_DeleteOperation_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/DeletePolicyBasedRoute/main.go b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/DeletePolicyBasedRoute/main.go new file mode 100644 index 000000000000..d12d7fc52a2b --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/DeletePolicyBasedRoute/main.go @@ -0,0 +1,56 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewPolicyBasedRoutingClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &networkconnectivitypb.DeletePolicyBasedRouteRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb#DeletePolicyBasedRouteRequest. + } + op, err := c.DeletePolicyBasedRoute(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/GetIamPolicy/main.go b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/GetIamPolicy/main.go new file mode 100644 index 000000000000..874d5299e315 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/GetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_GetIamPolicy_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewPolicyBasedRoutingClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.GetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#GetIamPolicyRequest. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_GetIamPolicy_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/GetLocation/main.go b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/GetLocation/main.go new file mode 100644 index 000000000000..005f43b32ce0 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_GetLocation_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewPolicyBasedRoutingClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_GetLocation_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/GetOperation/main.go b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/GetOperation/main.go new file mode 100644 index 000000000000..a6f896a09099 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_GetOperation_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewPolicyBasedRoutingClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_GetOperation_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/GetPolicyBasedRoute/main.go b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/GetPolicyBasedRoute/main.go new file mode 100644 index 000000000000..cca82f1a2c2c --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/GetPolicyBasedRoute/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewPolicyBasedRoutingClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &networkconnectivitypb.GetPolicyBasedRouteRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb#GetPolicyBasedRouteRequest. + } + resp, err := c.GetPolicyBasedRoute(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/ListLocations/main.go b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/ListLocations/main.go new file mode 100644 index 000000000000..557110784685 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_ListLocations_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewPolicyBasedRoutingClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_ListLocations_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/ListOperations/main.go b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/ListOperations/main.go new file mode 100644 index 000000000000..0a5cb9576151 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_ListOperations_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewPolicyBasedRoutingClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_ListOperations_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/ListPolicyBasedRoutes/main.go b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/ListPolicyBasedRoutes/main.go new file mode 100644 index 000000000000..c90ad501e01a --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/ListPolicyBasedRoutes/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewPolicyBasedRoutingClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &networkconnectivitypb.ListPolicyBasedRoutesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb#ListPolicyBasedRoutesRequest. + } + it := c.ListPolicyBasedRoutes(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/SetIamPolicy/main.go b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/SetIamPolicy/main.go new file mode 100644 index 000000000000..83e55d23917c --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/SetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_SetIamPolicy_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewPolicyBasedRoutingClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.SetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#SetIamPolicyRequest. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_SetIamPolicy_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/TestIamPermissions/main.go b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/TestIamPermissions/main.go new file mode 100644 index 000000000000..7a1a2659d7d2 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/PolicyBasedRoutingClient/TestIamPermissions/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networkconnectivity_v1_generated_PolicyBasedRoutingService_TestIamPermissions_sync] + +package main + +import ( + "context" + + networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networkconnectivity.NewPolicyBasedRoutingClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.TestIamPermissionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#TestIamPermissionsRequest. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networkconnectivity_v1_generated_PolicyBasedRoutingService_TestIamPermissions_sync] diff --git a/internal/generated/snippets/networkconnectivity/apiv1/snippet_metadata.google.cloud.networkconnectivity.v1.json b/internal/generated/snippets/networkconnectivity/apiv1/snippet_metadata.google.cloud.networkconnectivity.v1.json new file mode 100644 index 000000000000..4fd846c2de25 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1/snippet_metadata.google.cloud.networkconnectivity.v1.json @@ -0,0 +1,1483 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/networkconnectivity/apiv1", + "version": "1.9.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.networkconnectivity.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "networkconnectivity_v1_generated_HubService_CancelOperation_sync", + "title": "networkconnectivity CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "HubClient/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.networkconnectivity.v1.HubService.CancelOperation", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_CreateHub_sync", + "title": "networkconnectivity CreateHub Sample", + "description": "CreateHub creates a new Network Connectivity Center hub in the specified project.", + "file": "HubClient/CreateHub/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateHub", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.CreateHub", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.CreateHubRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateHubOperation", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "CreateHub", + "fullName": "google.cloud.networkconnectivity.v1.HubService.CreateHub", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_CreateSpoke_sync", + "title": "networkconnectivity CreateSpoke Sample", + "description": "CreateSpoke creates a Network Connectivity Center spoke.", + "file": "HubClient/CreateSpoke/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSpoke", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.CreateSpoke", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.CreateSpokeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateSpokeOperation", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "CreateSpoke", + "fullName": "google.cloud.networkconnectivity.v1.HubService.CreateSpoke", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_DeleteHub_sync", + "title": "networkconnectivity DeleteHub Sample", + "description": "DeleteHub deletes a Network Connectivity Center hub.", + "file": "HubClient/DeleteHub/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteHub", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.DeleteHub", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.DeleteHubRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteHubOperation", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "DeleteHub", + "fullName": "google.cloud.networkconnectivity.v1.HubService.DeleteHub", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_DeleteOperation_sync", + "title": "networkconnectivity DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "HubClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.networkconnectivity.v1.HubService.DeleteOperation", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_DeleteSpoke_sync", + "title": "networkconnectivity DeleteSpoke Sample", + "description": "DeleteSpoke deletes a Network Connectivity Center spoke.", + "file": "HubClient/DeleteSpoke/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteSpoke", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.DeleteSpoke", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.DeleteSpokeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteSpokeOperation", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "DeleteSpoke", + "fullName": "google.cloud.networkconnectivity.v1.HubService.DeleteSpoke", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_GetHub_sync", + "title": "networkconnectivity GetHub Sample", + "description": "GetHub gets details about a Network Connectivity Center hub.", + "file": "HubClient/GetHub/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetHub", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.GetHub", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.GetHubRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "networkconnectivitypb.Hub", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "GetHub", + "fullName": "google.cloud.networkconnectivity.v1.HubService.GetHub", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_GetIamPolicy_sync", + "title": "networkconnectivity GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "HubClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.networkconnectivity.v1.HubService.GetIamPolicy", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_GetLocation_sync", + "title": "networkconnectivity GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "HubClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.networkconnectivity.v1.HubService.GetLocation", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_GetOperation_sync", + "title": "networkconnectivity GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "HubClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.networkconnectivity.v1.HubService.GetOperation", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_GetSpoke_sync", + "title": "networkconnectivity GetSpoke Sample", + "description": "GetSpoke gets details about a Network Connectivity Center spoke.", + "file": "HubClient/GetSpoke/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSpoke", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.GetSpoke", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.GetSpokeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "networkconnectivitypb.Spoke", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "GetSpoke", + "fullName": "google.cloud.networkconnectivity.v1.HubService.GetSpoke", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_ListHubs_sync", + "title": "networkconnectivity ListHubs Sample", + "description": "ListHubs lists the Network Connectivity Center hubs associated with a given project.", + "file": "HubClient/ListHubs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListHubs", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.ListHubs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.ListHubsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "HubIterator", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "ListHubs", + "fullName": "google.cloud.networkconnectivity.v1.HubService.ListHubs", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_ListLocations_sync", + "title": "networkconnectivity ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "HubClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.networkconnectivity.v1.HubService.ListLocations", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_ListOperations_sync", + "title": "networkconnectivity ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "HubClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.networkconnectivity.v1.HubService.ListOperations", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_ListSpokes_sync", + "title": "networkconnectivity ListSpokes Sample", + "description": "ListSpokes lists the Network Connectivity Center spokes in a specified project and\nlocation.", + "file": "HubClient/ListSpokes/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListSpokes", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.ListSpokes", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.ListSpokesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SpokeIterator", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "ListSpokes", + "fullName": "google.cloud.networkconnectivity.v1.HubService.ListSpokes", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_SetIamPolicy_sync", + "title": "networkconnectivity SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "HubClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.networkconnectivity.v1.HubService.SetIamPolicy", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_TestIamPermissions_sync", + "title": "networkconnectivity TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "HubClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.networkconnectivity.v1.HubService.TestIamPermissions", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_UpdateHub_sync", + "title": "networkconnectivity UpdateHub Sample", + "description": "UpdateHub updates the description and/or labels of a Network Connectivity Center\nhub.", + "file": "HubClient/UpdateHub/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateHub", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.UpdateHub", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.UpdateHubRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateHubOperation", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "UpdateHub", + "fullName": "google.cloud.networkconnectivity.v1.HubService.UpdateHub", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_HubService_UpdateSpoke_sync", + "title": "networkconnectivity UpdateSpoke Sample", + "description": "UpdateSpoke updates the parameters of a Network Connectivity Center spoke.", + "file": "HubClient/UpdateSpoke/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSpoke", + "fullName": "google.cloud.networkconnectivity.v1.HubClient.UpdateSpoke", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.UpdateSpokeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateSpokeOperation", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1.HubClient" + }, + "method": { + "shortName": "UpdateSpoke", + "fullName": "google.cloud.networkconnectivity.v1.HubService.UpdateSpoke", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_CancelOperation_sync", + "title": "networkconnectivity CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "PolicyBasedRoutingClient/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "PolicyBasedRoutingClient", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.CancelOperation", + "service": { + "shortName": "PolicyBasedRoutingService", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_sync", + "title": "networkconnectivity CreatePolicyBasedRoute Sample", + "description": "CreatePolicyBasedRoute creates a new PolicyBasedRoute in a given project and location.", + "file": "PolicyBasedRoutingClient/CreatePolicyBasedRoute/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreatePolicyBasedRoute", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.CreatePolicyBasedRoute", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.CreatePolicyBasedRouteRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreatePolicyBasedRouteOperation", + "client": { + "shortName": "PolicyBasedRoutingClient", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient" + }, + "method": { + "shortName": "CreatePolicyBasedRoute", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.CreatePolicyBasedRoute", + "service": { + "shortName": "PolicyBasedRoutingService", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_DeleteOperation_sync", + "title": "networkconnectivity DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "PolicyBasedRoutingClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "PolicyBasedRoutingClient", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.DeleteOperation", + "service": { + "shortName": "PolicyBasedRoutingService", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_sync", + "title": "networkconnectivity DeletePolicyBasedRoute Sample", + "description": "DeletePolicyBasedRoute deletes a single PolicyBasedRoute.", + "file": "PolicyBasedRoutingClient/DeletePolicyBasedRoute/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeletePolicyBasedRoute", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.DeletePolicyBasedRoute", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.DeletePolicyBasedRouteRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeletePolicyBasedRouteOperation", + "client": { + "shortName": "PolicyBasedRoutingClient", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient" + }, + "method": { + "shortName": "DeletePolicyBasedRoute", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.DeletePolicyBasedRoute", + "service": { + "shortName": "PolicyBasedRoutingService", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_GetIamPolicy_sync", + "title": "networkconnectivity GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "PolicyBasedRoutingClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "PolicyBasedRoutingClient", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.GetIamPolicy", + "service": { + "shortName": "PolicyBasedRoutingService", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_GetLocation_sync", + "title": "networkconnectivity GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "PolicyBasedRoutingClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "PolicyBasedRoutingClient", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.GetLocation", + "service": { + "shortName": "PolicyBasedRoutingService", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_GetOperation_sync", + "title": "networkconnectivity GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "PolicyBasedRoutingClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "PolicyBasedRoutingClient", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.GetOperation", + "service": { + "shortName": "PolicyBasedRoutingService", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_sync", + "title": "networkconnectivity GetPolicyBasedRoute Sample", + "description": "GetPolicyBasedRoute gets details of a single PolicyBasedRoute.", + "file": "PolicyBasedRoutingClient/GetPolicyBasedRoute/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetPolicyBasedRoute", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.GetPolicyBasedRoute", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.GetPolicyBasedRouteRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "networkconnectivitypb.PolicyBasedRoute", + "client": { + "shortName": "PolicyBasedRoutingClient", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient" + }, + "method": { + "shortName": "GetPolicyBasedRoute", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.GetPolicyBasedRoute", + "service": { + "shortName": "PolicyBasedRoutingService", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_ListLocations_sync", + "title": "networkconnectivity ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "PolicyBasedRoutingClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "PolicyBasedRoutingClient", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.ListLocations", + "service": { + "shortName": "PolicyBasedRoutingService", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_ListOperations_sync", + "title": "networkconnectivity ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "PolicyBasedRoutingClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "PolicyBasedRoutingClient", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.ListOperations", + "service": { + "shortName": "PolicyBasedRoutingService", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_sync", + "title": "networkconnectivity ListPolicyBasedRoutes Sample", + "description": "ListPolicyBasedRoutes lists PolicyBasedRoutes in a given project and location.", + "file": "PolicyBasedRoutingClient/ListPolicyBasedRoutes/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListPolicyBasedRoutes", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.ListPolicyBasedRoutes", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.ListPolicyBasedRoutesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PolicyBasedRouteIterator", + "client": { + "shortName": "PolicyBasedRoutingClient", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient" + }, + "method": { + "shortName": "ListPolicyBasedRoutes", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.ListPolicyBasedRoutes", + "service": { + "shortName": "PolicyBasedRoutingService", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_SetIamPolicy_sync", + "title": "networkconnectivity SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "PolicyBasedRoutingClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "PolicyBasedRoutingClient", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.SetIamPolicy", + "service": { + "shortName": "PolicyBasedRoutingService", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_TestIamPermissions_sync", + "title": "networkconnectivity TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "PolicyBasedRoutingClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "PolicyBasedRoutingClient", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.TestIamPermissions", + "service": { + "shortName": "PolicyBasedRoutingService", + "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/CreateHub/main.go b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/CreateHub/main.go index 50099005e15d..252335094565 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/CreateHub/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/CreateHub/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1alpha1" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkconnectivitypb.CreateHubRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1#CreateHubRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb#CreateHubRequest. } op, err := c.CreateHub(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/CreateSpoke/main.go b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/CreateSpoke/main.go index d59e94d45b6e..6eab223d234e 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/CreateSpoke/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/CreateSpoke/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1alpha1" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkconnectivitypb.CreateSpokeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1#CreateSpokeRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb#CreateSpokeRequest. } op, err := c.CreateSpoke(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/DeleteHub/main.go b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/DeleteHub/main.go index 15298e8d2b86..8acae84e0fb5 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/DeleteHub/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/DeleteHub/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1alpha1" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkconnectivitypb.DeleteHubRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1#DeleteHubRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb#DeleteHubRequest. } op, err := c.DeleteHub(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/DeleteSpoke/main.go b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/DeleteSpoke/main.go index 5239a41a786f..6de32a40acf5 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/DeleteSpoke/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/DeleteSpoke/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1alpha1" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkconnectivitypb.DeleteSpokeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1#DeleteSpokeRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb#DeleteSpokeRequest. } op, err := c.DeleteSpoke(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/GetHub/main.go b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/GetHub/main.go index 754a9eb56d04..8f8911e77dac 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/GetHub/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/GetHub/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1alpha1" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkconnectivitypb.GetHubRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1#GetHubRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb#GetHubRequest. } resp, err := c.GetHub(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/GetSpoke/main.go b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/GetSpoke/main.go index 73f1d5a1cda7..e8c3afc2378e 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/GetSpoke/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/GetSpoke/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1alpha1" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkconnectivitypb.GetSpokeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1#GetSpokeRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb#GetSpokeRequest. } resp, err := c.GetSpoke(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/ListHubs/main.go b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/ListHubs/main.go index 903d36a817b9..6f279a1b31c2 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/ListHubs/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/ListHubs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1alpha1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb" "google.golang.org/api/iterator" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &networkconnectivitypb.ListHubsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1#ListHubsRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb#ListHubsRequest. } it := c.ListHubs(ctx, req) for { diff --git a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/ListSpokes/main.go b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/ListSpokes/main.go index 6892ed11a47b..ae5915156708 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/ListSpokes/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/ListSpokes/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1alpha1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb" "google.golang.org/api/iterator" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &networkconnectivitypb.ListSpokesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1#ListSpokesRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb#ListSpokesRequest. } it := c.ListSpokes(ctx, req) for { diff --git a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/UpdateHub/main.go b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/UpdateHub/main.go index 8558606703f3..f998ba180d02 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/UpdateHub/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/UpdateHub/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1alpha1" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkconnectivitypb.UpdateHubRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1#UpdateHubRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb#UpdateHubRequest. } op, err := c.UpdateHub(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/UpdateSpoke/main.go b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/UpdateSpoke/main.go index 5848a51206a3..8ebd1bc72fe7 100644 --- a/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/UpdateSpoke/main.go +++ b/internal/generated/snippets/networkconnectivity/apiv1alpha1/HubClient/UpdateSpoke/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkconnectivity "cloud.google.com/go/networkconnectivity/apiv1alpha1" - networkconnectivitypb "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1" + networkconnectivitypb "cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkconnectivity.NewHubClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkconnectivitypb.UpdateSpokeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1#UpdateSpokeRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkconnectivity/apiv1alpha1/networkconnectivitypb#UpdateSpokeRequest. } op, err := c.UpdateSpoke(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkconnectivity/apiv1alpha1/snippet_metadata.google.cloud.networkconnectivity.v1alpha1.json b/internal/generated/snippets/networkconnectivity/apiv1alpha1/snippet_metadata.google.cloud.networkconnectivity.v1alpha1.json new file mode 100644 index 000000000000..6f7a273abf74 --- /dev/null +++ b/internal/generated/snippets/networkconnectivity/apiv1alpha1/snippet_metadata.google.cloud.networkconnectivity.v1alpha1.json @@ -0,0 +1,475 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/networkconnectivity/apiv1alpha1", + "version": "1.9.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.networkconnectivity.v1alpha1", + "version": "v1alpha1" + } + ] + }, + "snippets": [ + { + "regionTag": "networkconnectivity_v1alpha1_generated_HubService_CreateHub_sync", + "title": "networkconnectivity CreateHub Sample", + "description": "CreateHub creates a new Hub in a given project and location.", + "file": "HubClient/CreateHub/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateHub", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient.CreateHub", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.CreateHubRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateHubOperation", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient" + }, + "method": { + "shortName": "CreateHub", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1alpha1_generated_HubService_CreateSpoke_sync", + "title": "networkconnectivity CreateSpoke Sample", + "description": "CreateSpoke creates a new Spoke in a given project and location.", + "file": "HubClient/CreateSpoke/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSpoke", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient.CreateSpoke", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.CreateSpokeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateSpokeOperation", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient" + }, + "method": { + "shortName": "CreateSpoke", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1alpha1_generated_HubService_DeleteHub_sync", + "title": "networkconnectivity DeleteHub Sample", + "description": "DeleteHub deletes a single Hub.", + "file": "HubClient/DeleteHub/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteHub", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient.DeleteHub", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.DeleteHubRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteHubOperation", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient" + }, + "method": { + "shortName": "DeleteHub", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1alpha1_generated_HubService_DeleteSpoke_sync", + "title": "networkconnectivity DeleteSpoke Sample", + "description": "DeleteSpoke deletes a single Spoke.", + "file": "HubClient/DeleteSpoke/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteSpoke", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient.DeleteSpoke", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.DeleteSpokeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteSpokeOperation", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient" + }, + "method": { + "shortName": "DeleteSpoke", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1alpha1_generated_HubService_GetHub_sync", + "title": "networkconnectivity GetHub Sample", + "description": "GetHub gets details of a single Hub.", + "file": "HubClient/GetHub/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetHub", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient.GetHub", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.GetHubRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "networkconnectivitypb.Hub", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient" + }, + "method": { + "shortName": "GetHub", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.GetHub", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1alpha1_generated_HubService_GetSpoke_sync", + "title": "networkconnectivity GetSpoke Sample", + "description": "GetSpoke gets details of a single Spoke.", + "file": "HubClient/GetSpoke/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSpoke", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient.GetSpoke", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.GetSpokeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "networkconnectivitypb.Spoke", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient" + }, + "method": { + "shortName": "GetSpoke", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1alpha1_generated_HubService_ListHubs_sync", + "title": "networkconnectivity ListHubs Sample", + "description": "ListHubs lists Hubs in a given project and location.", + "file": "HubClient/ListHubs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListHubs", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient.ListHubs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.ListHubsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "HubIterator", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient" + }, + "method": { + "shortName": "ListHubs", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1alpha1_generated_HubService_ListSpokes_sync", + "title": "networkconnectivity ListSpokes Sample", + "description": "ListSpokes lists Spokes in a given project and location.", + "file": "HubClient/ListSpokes/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListSpokes", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient.ListSpokes", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.ListSpokesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SpokeIterator", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient" + }, + "method": { + "shortName": "ListSpokes", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1alpha1_generated_HubService_UpdateHub_sync", + "title": "networkconnectivity UpdateHub Sample", + "description": "UpdateHub updates the parameters of a single Hub.", + "file": "HubClient/UpdateHub/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateHub", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient.UpdateHub", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.UpdateHubRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateHubOperation", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient" + }, + "method": { + "shortName": "UpdateHub", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkconnectivity_v1alpha1_generated_HubService_UpdateSpoke_sync", + "title": "networkconnectivity UpdateSpoke Sample", + "description": "UpdateSpoke updates the parameters of a single Spoke.", + "file": "HubClient/UpdateSpoke/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSpoke", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient.UpdateSpoke", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkconnectivitypb.UpdateSpokeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateSpokeOperation", + "client": { + "shortName": "HubClient", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubClient" + }, + "method": { + "shortName": "UpdateSpoke", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke", + "service": { + "shortName": "HubService", + "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/CreateConnectivityTest/main.go b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/CreateConnectivityTest/main.go index e59b7f2cf546..172b4ddc04e9 100644 --- a/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/CreateConnectivityTest/main.go +++ b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/CreateConnectivityTest/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkmanagement "cloud.google.com/go/networkmanagement/apiv1" - networkmanagementpb "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1" + networkmanagementpb "cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkmanagement.NewReachabilityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkmanagementpb.CreateConnectivityTestRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkmanagement/v1#CreateConnectivityTestRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb#CreateConnectivityTestRequest. } op, err := c.CreateConnectivityTest(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/DeleteConnectivityTest/main.go b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/DeleteConnectivityTest/main.go index 4f29908cba5c..049e86dfcadc 100644 --- a/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/DeleteConnectivityTest/main.go +++ b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/DeleteConnectivityTest/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkmanagement "cloud.google.com/go/networkmanagement/apiv1" - networkmanagementpb "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1" + networkmanagementpb "cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkmanagement.NewReachabilityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkmanagementpb.DeleteConnectivityTestRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkmanagement/v1#DeleteConnectivityTestRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb#DeleteConnectivityTestRequest. } op, err := c.DeleteConnectivityTest(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/GetConnectivityTest/main.go b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/GetConnectivityTest/main.go index c421a146876e..149b5a8b73fa 100644 --- a/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/GetConnectivityTest/main.go +++ b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/GetConnectivityTest/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkmanagement "cloud.google.com/go/networkmanagement/apiv1" - networkmanagementpb "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1" + networkmanagementpb "cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkmanagement.NewReachabilityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkmanagementpb.GetConnectivityTestRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkmanagement/v1#GetConnectivityTestRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb#GetConnectivityTestRequest. } resp, err := c.GetConnectivityTest(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/ListConnectivityTests/main.go b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/ListConnectivityTests/main.go index b93a7180e658..ec2ad5b94b69 100644 --- a/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/ListConnectivityTests/main.go +++ b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/ListConnectivityTests/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" networkmanagement "cloud.google.com/go/networkmanagement/apiv1" + networkmanagementpb "cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb" "google.golang.org/api/iterator" - networkmanagementpb "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkmanagement.NewReachabilityClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &networkmanagementpb.ListConnectivityTestsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkmanagement/v1#ListConnectivityTestsRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb#ListConnectivityTestsRequest. } it := c.ListConnectivityTests(ctx, req) for { diff --git a/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/RerunConnectivityTest/main.go b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/RerunConnectivityTest/main.go index 415bfe1657bd..c079d3a45f8a 100644 --- a/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/RerunConnectivityTest/main.go +++ b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/RerunConnectivityTest/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkmanagement "cloud.google.com/go/networkmanagement/apiv1" - networkmanagementpb "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1" + networkmanagementpb "cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkmanagement.NewReachabilityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkmanagementpb.RerunConnectivityTestRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkmanagement/v1#RerunConnectivityTestRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb#RerunConnectivityTestRequest. } op, err := c.RerunConnectivityTest(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/UpdateConnectivityTest/main.go b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/UpdateConnectivityTest/main.go index b31cc4920bb5..27bf894045cf 100644 --- a/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/UpdateConnectivityTest/main.go +++ b/internal/generated/snippets/networkmanagement/apiv1/ReachabilityClient/UpdateConnectivityTest/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networkmanagement "cloud.google.com/go/networkmanagement/apiv1" - networkmanagementpb "google.golang.org/genproto/googleapis/cloud/networkmanagement/v1" + networkmanagementpb "cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networkmanagement.NewReachabilityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networkmanagementpb.UpdateConnectivityTestRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networkmanagement/v1#UpdateConnectivityTestRequest. + // See https://pkg.go.dev/cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb#UpdateConnectivityTestRequest. } op, err := c.UpdateConnectivityTest(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networkmanagement/apiv1/snippet_metadata.google.cloud.networkmanagement.v1.json b/internal/generated/snippets/networkmanagement/apiv1/snippet_metadata.google.cloud.networkmanagement.v1.json new file mode 100644 index 000000000000..7c14ace7718a --- /dev/null +++ b/internal/generated/snippets/networkmanagement/apiv1/snippet_metadata.google.cloud.networkmanagement.v1.json @@ -0,0 +1,291 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/networkmanagement/apiv1", + "version": "1.6.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.networkmanagement.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "networkmanagement_v1_generated_ReachabilityService_CreateConnectivityTest_sync", + "title": "networkmanagement CreateConnectivityTest Sample", + "description": "CreateConnectivityTest creates a new Connectivity Test.\nAfter you create a test, the reachability analysis is performed as part\nof the long running operation, which completes when the analysis completes.\n\nIf the endpoint specifications in ConnectivityTest are invalid\n(for example, containing non-existent resources in the network, or you\ndon’t have read permissions to the network configurations of listed\nprojects), then the reachability result returns a value of UNKNOWN.\n\nIf the endpoint specifications in ConnectivityTest are\nincomplete, the reachability result returns a value of\nAMBIGUOUS. For more information,\nsee the Connectivity Test documentation.", + "file": "ReachabilityClient/CreateConnectivityTest/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateConnectivityTest", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityClient.CreateConnectivityTest", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkmanagementpb.CreateConnectivityTestRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateConnectivityTestOperation", + "client": { + "shortName": "ReachabilityClient", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityClient" + }, + "method": { + "shortName": "CreateConnectivityTest", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityService.CreateConnectivityTest", + "service": { + "shortName": "ReachabilityService", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_sync", + "title": "networkmanagement DeleteConnectivityTest Sample", + "description": "DeleteConnectivityTest deletes a specific ConnectivityTest.", + "file": "ReachabilityClient/DeleteConnectivityTest/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteConnectivityTest", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityClient.DeleteConnectivityTest", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkmanagementpb.DeleteConnectivityTestRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteConnectivityTestOperation", + "client": { + "shortName": "ReachabilityClient", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityClient" + }, + "method": { + "shortName": "DeleteConnectivityTest", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityService.DeleteConnectivityTest", + "service": { + "shortName": "ReachabilityService", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_sync", + "title": "networkmanagement GetConnectivityTest Sample", + "description": "GetConnectivityTest gets the details of a specific Connectivity Test.", + "file": "ReachabilityClient/GetConnectivityTest/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetConnectivityTest", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityClient.GetConnectivityTest", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkmanagementpb.GetConnectivityTestRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "networkmanagementpb.ConnectivityTest", + "client": { + "shortName": "ReachabilityClient", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityClient" + }, + "method": { + "shortName": "GetConnectivityTest", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityService.GetConnectivityTest", + "service": { + "shortName": "ReachabilityService", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkmanagement_v1_generated_ReachabilityService_ListConnectivityTests_sync", + "title": "networkmanagement ListConnectivityTests Sample", + "description": "ListConnectivityTests lists all Connectivity Tests owned by a project.", + "file": "ReachabilityClient/ListConnectivityTests/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListConnectivityTests", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityClient.ListConnectivityTests", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkmanagementpb.ListConnectivityTestsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ConnectivityTestIterator", + "client": { + "shortName": "ReachabilityClient", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityClient" + }, + "method": { + "shortName": "ListConnectivityTests", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityService.ListConnectivityTests", + "service": { + "shortName": "ReachabilityService", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkmanagement_v1_generated_ReachabilityService_RerunConnectivityTest_sync", + "title": "networkmanagement RerunConnectivityTest Sample", + "description": "RerunConnectivityTest rerun an existing ConnectivityTest.\nAfter the user triggers the rerun, the reachability analysis is performed\nas part of the long running operation, which completes when the analysis\ncompletes.\n\nEven though the test configuration remains the same, the reachability\nresult may change due to underlying network configuration changes.\n\nIf the endpoint specifications in ConnectivityTest become invalid (for\nexample, specified resources are deleted in the network, or you lost\nread permissions to the network configurations of listed projects), then\nthe reachability result returns a value of UNKNOWN.", + "file": "ReachabilityClient/RerunConnectivityTest/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RerunConnectivityTest", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityClient.RerunConnectivityTest", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkmanagementpb.RerunConnectivityTestRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RerunConnectivityTestOperation", + "client": { + "shortName": "ReachabilityClient", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityClient" + }, + "method": { + "shortName": "RerunConnectivityTest", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityService.RerunConnectivityTest", + "service": { + "shortName": "ReachabilityService", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "networkmanagement_v1_generated_ReachabilityService_UpdateConnectivityTest_sync", + "title": "networkmanagement UpdateConnectivityTest Sample", + "description": "UpdateConnectivityTest updates the configuration of an existing ConnectivityTest.\nAfter you update a test, the reachability analysis is performed as part\nof the long running operation, which completes when the analysis completes.\nThe Reachability state in the test resource is updated with the new result.\n\nIf the endpoint specifications in ConnectivityTest are invalid\n(for example, they contain non-existent resources in the network, or the\nuser does not have read permissions to the network configurations of\nlisted projects), then the reachability result returns a value of\nUNKNOWN.\n\nIf the endpoint specifications in ConnectivityTest are incomplete, the\nreachability result returns a value of AMBIGUOUS. See the documentation\nin ConnectivityTest for for more details.", + "file": "ReachabilityClient/UpdateConnectivityTest/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateConnectivityTest", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityClient.UpdateConnectivityTest", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networkmanagementpb.UpdateConnectivityTestRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateConnectivityTestOperation", + "client": { + "shortName": "ReachabilityClient", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityClient" + }, + "method": { + "shortName": "UpdateConnectivityTest", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityService.UpdateConnectivityTest", + "service": { + "shortName": "ReachabilityService", + "fullName": "google.cloud.networkmanagement.v1.ReachabilityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/CancelOperation/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/CancelOperation/main.go new file mode 100644 index 000000000000..f12bc9e8816e --- /dev/null +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networksecurity_v1beta1_generated_NetworkSecurity_CancelOperation_sync] + +package main + +import ( + "context" + + networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networksecurity.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END networksecurity_v1beta1_generated_NetworkSecurity_CancelOperation_sync] diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/CreateAuthorizationPolicy/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/CreateAuthorizationPolicy/main.go index 773fe3b831aa..034598e40e07 100644 --- a/internal/generated/snippets/networksecurity/apiv1beta1/Client/CreateAuthorizationPolicy/main.go +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/CreateAuthorizationPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" - networksecuritypb "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1" + networksecuritypb "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networksecuritypb.CreateAuthorizationPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1#CreateAuthorizationPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb#CreateAuthorizationPolicyRequest. } op, err := c.CreateAuthorizationPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/CreateClientTlsPolicy/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/CreateClientTlsPolicy/main.go index bfc7d2837825..5b25fd5fe9b1 100644 --- a/internal/generated/snippets/networksecurity/apiv1beta1/Client/CreateClientTlsPolicy/main.go +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/CreateClientTlsPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" - networksecuritypb "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1" + networksecuritypb "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networksecuritypb.CreateClientTlsPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1#CreateClientTlsPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb#CreateClientTlsPolicyRequest. } op, err := c.CreateClientTlsPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/CreateServerTlsPolicy/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/CreateServerTlsPolicy/main.go index 312019726713..fdd4057f7f9a 100644 --- a/internal/generated/snippets/networksecurity/apiv1beta1/Client/CreateServerTlsPolicy/main.go +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/CreateServerTlsPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" - networksecuritypb "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1" + networksecuritypb "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networksecuritypb.CreateServerTlsPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1#CreateServerTlsPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb#CreateServerTlsPolicyRequest. } op, err := c.CreateServerTlsPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/DeleteAuthorizationPolicy/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/DeleteAuthorizationPolicy/main.go index 387f3a88d4bc..220c59f79631 100644 --- a/internal/generated/snippets/networksecurity/apiv1beta1/Client/DeleteAuthorizationPolicy/main.go +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/DeleteAuthorizationPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" - networksecuritypb "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1" + networksecuritypb "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networksecuritypb.DeleteAuthorizationPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1#DeleteAuthorizationPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb#DeleteAuthorizationPolicyRequest. } op, err := c.DeleteAuthorizationPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/DeleteClientTlsPolicy/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/DeleteClientTlsPolicy/main.go index b5084204c427..1ad48c64ed72 100644 --- a/internal/generated/snippets/networksecurity/apiv1beta1/Client/DeleteClientTlsPolicy/main.go +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/DeleteClientTlsPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" - networksecuritypb "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1" + networksecuritypb "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networksecuritypb.DeleteClientTlsPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1#DeleteClientTlsPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb#DeleteClientTlsPolicyRequest. } op, err := c.DeleteClientTlsPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/DeleteOperation/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/DeleteOperation/main.go new file mode 100644 index 000000000000..90f7e26c7da4 --- /dev/null +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networksecurity_v1beta1_generated_NetworkSecurity_DeleteOperation_sync] + +package main + +import ( + "context" + + networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networksecurity.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END networksecurity_v1beta1_generated_NetworkSecurity_DeleteOperation_sync] diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/DeleteServerTlsPolicy/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/DeleteServerTlsPolicy/main.go index 30d3e6aed11a..fb491238096d 100644 --- a/internal/generated/snippets/networksecurity/apiv1beta1/Client/DeleteServerTlsPolicy/main.go +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/DeleteServerTlsPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" - networksecuritypb "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1" + networksecuritypb "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networksecuritypb.DeleteServerTlsPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1#DeleteServerTlsPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb#DeleteServerTlsPolicyRequest. } op, err := c.DeleteServerTlsPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetAuthorizationPolicy/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetAuthorizationPolicy/main.go index ad4dc4b20807..b1bf84216825 100644 --- a/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetAuthorizationPolicy/main.go +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetAuthorizationPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" - networksecuritypb "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1" + networksecuritypb "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networksecuritypb.GetAuthorizationPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1#GetAuthorizationPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb#GetAuthorizationPolicyRequest. } resp, err := c.GetAuthorizationPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetClientTlsPolicy/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetClientTlsPolicy/main.go index 98c11c5277f0..7bbb4b28b463 100644 --- a/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetClientTlsPolicy/main.go +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetClientTlsPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" - networksecuritypb "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1" + networksecuritypb "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networksecuritypb.GetClientTlsPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1#GetClientTlsPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb#GetClientTlsPolicyRequest. } resp, err := c.GetClientTlsPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetIamPolicy/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetIamPolicy/main.go new file mode 100644 index 000000000000..15ee5f1c14af --- /dev/null +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networksecurity_v1beta1_generated_NetworkSecurity_GetIamPolicy_sync] + +package main + +import ( + "context" + + networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networksecurity.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.GetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#GetIamPolicyRequest. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networksecurity_v1beta1_generated_NetworkSecurity_GetIamPolicy_sync] diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetLocation/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetLocation/main.go new file mode 100644 index 000000000000..c7dbe0126e55 --- /dev/null +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networksecurity_v1beta1_generated_NetworkSecurity_GetLocation_sync] + +package main + +import ( + "context" + + networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networksecurity.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networksecurity_v1beta1_generated_NetworkSecurity_GetLocation_sync] diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetOperation/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetOperation/main.go new file mode 100644 index 000000000000..479828017576 --- /dev/null +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networksecurity_v1beta1_generated_NetworkSecurity_GetOperation_sync] + +package main + +import ( + "context" + + networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networksecurity.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networksecurity_v1beta1_generated_NetworkSecurity_GetOperation_sync] diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetServerTlsPolicy/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetServerTlsPolicy/main.go index f10cc6cbd3e2..4e391c8f5bbd 100644 --- a/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetServerTlsPolicy/main.go +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/GetServerTlsPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" - networksecuritypb "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1" + networksecuritypb "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networksecuritypb.GetServerTlsPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1#GetServerTlsPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb#GetServerTlsPolicyRequest. } resp, err := c.GetServerTlsPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/ListAuthorizationPolicies/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/ListAuthorizationPolicies/main.go index a9a1d1fd5907..b89962557ce7 100644 --- a/internal/generated/snippets/networksecurity/apiv1beta1/Client/ListAuthorizationPolicies/main.go +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/ListAuthorizationPolicies/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" + networksecuritypb "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb" "google.golang.org/api/iterator" - networksecuritypb "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &networksecuritypb.ListAuthorizationPoliciesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1#ListAuthorizationPoliciesRequest. + // See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb#ListAuthorizationPoliciesRequest. } it := c.ListAuthorizationPolicies(ctx, req) for { diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/ListClientTlsPolicies/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/ListClientTlsPolicies/main.go index 1dd77978073e..d183eb734a95 100644 --- a/internal/generated/snippets/networksecurity/apiv1beta1/Client/ListClientTlsPolicies/main.go +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/ListClientTlsPolicies/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" + networksecuritypb "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb" "google.golang.org/api/iterator" - networksecuritypb "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &networksecuritypb.ListClientTlsPoliciesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1#ListClientTlsPoliciesRequest. + // See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb#ListClientTlsPoliciesRequest. } it := c.ListClientTlsPolicies(ctx, req) for { diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/ListLocations/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/ListLocations/main.go new file mode 100644 index 000000000000..ceaefb2bd699 --- /dev/null +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networksecurity_v1beta1_generated_NetworkSecurity_ListLocations_sync] + +package main + +import ( + "context" + + networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networksecurity.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END networksecurity_v1beta1_generated_NetworkSecurity_ListLocations_sync] diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/ListOperations/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/ListOperations/main.go new file mode 100644 index 000000000000..2120dc146dec --- /dev/null +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networksecurity_v1beta1_generated_NetworkSecurity_ListOperations_sync] + +package main + +import ( + "context" + + networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networksecurity.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END networksecurity_v1beta1_generated_NetworkSecurity_ListOperations_sync] diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/ListServerTlsPolicies/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/ListServerTlsPolicies/main.go index 35f1d4944103..6a94981937e2 100644 --- a/internal/generated/snippets/networksecurity/apiv1beta1/Client/ListServerTlsPolicies/main.go +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/ListServerTlsPolicies/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" + networksecuritypb "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb" "google.golang.org/api/iterator" - networksecuritypb "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &networksecuritypb.ListServerTlsPoliciesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1#ListServerTlsPoliciesRequest. + // See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb#ListServerTlsPoliciesRequest. } it := c.ListServerTlsPolicies(ctx, req) for { diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/SetIamPolicy/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/SetIamPolicy/main.go new file mode 100644 index 000000000000..58b04a74864f --- /dev/null +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/SetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networksecurity_v1beta1_generated_NetworkSecurity_SetIamPolicy_sync] + +package main + +import ( + "context" + + networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networksecurity.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.SetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#SetIamPolicyRequest. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networksecurity_v1beta1_generated_NetworkSecurity_SetIamPolicy_sync] diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/TestIamPermissions/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/TestIamPermissions/main.go new file mode 100644 index 000000000000..a32ef212bf1b --- /dev/null +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/TestIamPermissions/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START networksecurity_v1beta1_generated_NetworkSecurity_TestIamPermissions_sync] + +package main + +import ( + "context" + + networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := networksecurity.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.TestIamPermissionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#TestIamPermissionsRequest. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END networksecurity_v1beta1_generated_NetworkSecurity_TestIamPermissions_sync] diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/UpdateAuthorizationPolicy/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/UpdateAuthorizationPolicy/main.go index cf98e74533d8..2c4d618290ec 100644 --- a/internal/generated/snippets/networksecurity/apiv1beta1/Client/UpdateAuthorizationPolicy/main.go +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/UpdateAuthorizationPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" - networksecuritypb "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1" + networksecuritypb "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networksecuritypb.UpdateAuthorizationPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1#UpdateAuthorizationPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb#UpdateAuthorizationPolicyRequest. } op, err := c.UpdateAuthorizationPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/UpdateClientTlsPolicy/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/UpdateClientTlsPolicy/main.go index a1c9a2cf4beb..ff1813f80e0a 100644 --- a/internal/generated/snippets/networksecurity/apiv1beta1/Client/UpdateClientTlsPolicy/main.go +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/UpdateClientTlsPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" - networksecuritypb "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1" + networksecuritypb "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networksecuritypb.UpdateClientTlsPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1#UpdateClientTlsPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb#UpdateClientTlsPolicyRequest. } op, err := c.UpdateClientTlsPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/Client/UpdateServerTlsPolicy/main.go b/internal/generated/snippets/networksecurity/apiv1beta1/Client/UpdateServerTlsPolicy/main.go index 012c945f46da..60c89d218b55 100644 --- a/internal/generated/snippets/networksecurity/apiv1beta1/Client/UpdateServerTlsPolicy/main.go +++ b/internal/generated/snippets/networksecurity/apiv1beta1/Client/UpdateServerTlsPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" networksecurity "cloud.google.com/go/networksecurity/apiv1beta1" - networksecuritypb "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1" + networksecuritypb "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := networksecurity.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &networksecuritypb.UpdateServerTlsPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1#UpdateServerTlsPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb#UpdateServerTlsPolicyRequest. } op, err := c.UpdateServerTlsPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/networksecurity/apiv1beta1/snippet_metadata.google.cloud.networksecurity.v1beta1.json b/internal/generated/snippets/networksecurity/apiv1beta1/snippet_metadata.google.cloud.networksecurity.v1beta1.json new file mode 100644 index 000000000000..7df88940b27e --- /dev/null +++ b/internal/generated/snippets/networksecurity/apiv1beta1/snippet_metadata.google.cloud.networksecurity.v1beta1.json @@ -0,0 +1,1117 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/networksecurity/apiv1beta1", + "version": "0.7.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.networksecurity.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_CancelOperation_sync", + "title": "networksecurity CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "Client/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.networksecurity.v1beta1.Client.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.CancelOperation", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_CreateAuthorizationPolicy_sync", + "title": "networksecurity CreateAuthorizationPolicy Sample", + "description": "CreateAuthorizationPolicy creates a new AuthorizationPolicy in a given project and location.", + "file": "Client/CreateAuthorizationPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateAuthorizationPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.Client.CreateAuthorizationPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networksecuritypb.CreateAuthorizationPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateAuthorizationPolicyOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "CreateAuthorizationPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.CreateAuthorizationPolicy", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_CreateClientTlsPolicy_sync", + "title": "networksecurity CreateClientTlsPolicy Sample", + "description": "CreateClientTlsPolicy creates a new ClientTlsPolicy in a given project and location.", + "file": "Client/CreateClientTlsPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateClientTlsPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.Client.CreateClientTlsPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networksecuritypb.CreateClientTlsPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateClientTlsPolicyOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "CreateClientTlsPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.CreateClientTlsPolicy", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_CreateServerTlsPolicy_sync", + "title": "networksecurity CreateServerTlsPolicy Sample", + "description": "CreateServerTlsPolicy creates a new ServerTlsPolicy in a given project and location.", + "file": "Client/CreateServerTlsPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateServerTlsPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.Client.CreateServerTlsPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networksecuritypb.CreateServerTlsPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateServerTlsPolicyOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "CreateServerTlsPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.CreateServerTlsPolicy", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_DeleteAuthorizationPolicy_sync", + "title": "networksecurity DeleteAuthorizationPolicy Sample", + "description": "DeleteAuthorizationPolicy deletes a single AuthorizationPolicy.", + "file": "Client/DeleteAuthorizationPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteAuthorizationPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.Client.DeleteAuthorizationPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networksecuritypb.DeleteAuthorizationPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteAuthorizationPolicyOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "DeleteAuthorizationPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.DeleteAuthorizationPolicy", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_DeleteClientTlsPolicy_sync", + "title": "networksecurity DeleteClientTlsPolicy Sample", + "description": "DeleteClientTlsPolicy deletes a single ClientTlsPolicy.", + "file": "Client/DeleteClientTlsPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteClientTlsPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.Client.DeleteClientTlsPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networksecuritypb.DeleteClientTlsPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteClientTlsPolicyOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "DeleteClientTlsPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.DeleteClientTlsPolicy", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_DeleteOperation_sync", + "title": "networksecurity DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "Client/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.networksecurity.v1beta1.Client.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.DeleteOperation", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_DeleteServerTlsPolicy_sync", + "title": "networksecurity DeleteServerTlsPolicy Sample", + "description": "DeleteServerTlsPolicy deletes a single ServerTlsPolicy.", + "file": "Client/DeleteServerTlsPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteServerTlsPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.Client.DeleteServerTlsPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networksecuritypb.DeleteServerTlsPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteServerTlsPolicyOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "DeleteServerTlsPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.DeleteServerTlsPolicy", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_GetAuthorizationPolicy_sync", + "title": "networksecurity GetAuthorizationPolicy Sample", + "description": "GetAuthorizationPolicy gets details of a single AuthorizationPolicy.", + "file": "Client/GetAuthorizationPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetAuthorizationPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.Client.GetAuthorizationPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networksecuritypb.GetAuthorizationPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "networksecuritypb.AuthorizationPolicy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "GetAuthorizationPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.GetAuthorizationPolicy", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_GetClientTlsPolicy_sync", + "title": "networksecurity GetClientTlsPolicy Sample", + "description": "GetClientTlsPolicy gets details of a single ClientTlsPolicy.", + "file": "Client/GetClientTlsPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetClientTlsPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.Client.GetClientTlsPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networksecuritypb.GetClientTlsPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "networksecuritypb.ClientTlsPolicy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "GetClientTlsPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.GetClientTlsPolicy", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_GetIamPolicy_sync", + "title": "networksecurity GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "Client/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.Client.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.GetIamPolicy", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_GetLocation_sync", + "title": "networksecurity GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "Client/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.networksecurity.v1beta1.Client.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.GetLocation", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_GetOperation_sync", + "title": "networksecurity GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "Client/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.networksecurity.v1beta1.Client.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.GetOperation", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_GetServerTlsPolicy_sync", + "title": "networksecurity GetServerTlsPolicy Sample", + "description": "GetServerTlsPolicy gets details of a single ServerTlsPolicy.", + "file": "Client/GetServerTlsPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetServerTlsPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.Client.GetServerTlsPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networksecuritypb.GetServerTlsPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "networksecuritypb.ServerTlsPolicy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "GetServerTlsPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.GetServerTlsPolicy", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_ListAuthorizationPolicies_sync", + "title": "networksecurity ListAuthorizationPolicies Sample", + "description": "ListAuthorizationPolicies lists AuthorizationPolicies in a given project and location.", + "file": "Client/ListAuthorizationPolicies/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListAuthorizationPolicies", + "fullName": "google.cloud.networksecurity.v1beta1.Client.ListAuthorizationPolicies", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networksecuritypb.ListAuthorizationPoliciesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AuthorizationPolicyIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "ListAuthorizationPolicies", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.ListAuthorizationPolicies", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_ListClientTlsPolicies_sync", + "title": "networksecurity ListClientTlsPolicies Sample", + "description": "ListClientTlsPolicies lists ClientTlsPolicies in a given project and location.", + "file": "Client/ListClientTlsPolicies/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListClientTlsPolicies", + "fullName": "google.cloud.networksecurity.v1beta1.Client.ListClientTlsPolicies", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networksecuritypb.ListClientTlsPoliciesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ClientTlsPolicyIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "ListClientTlsPolicies", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.ListClientTlsPolicies", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_ListLocations_sync", + "title": "networksecurity ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "Client/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.networksecurity.v1beta1.Client.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.ListLocations", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_ListOperations_sync", + "title": "networksecurity ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "Client/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.networksecurity.v1beta1.Client.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.ListOperations", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_ListServerTlsPolicies_sync", + "title": "networksecurity ListServerTlsPolicies Sample", + "description": "ListServerTlsPolicies lists ServerTlsPolicies in a given project and location.", + "file": "Client/ListServerTlsPolicies/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListServerTlsPolicies", + "fullName": "google.cloud.networksecurity.v1beta1.Client.ListServerTlsPolicies", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networksecuritypb.ListServerTlsPoliciesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ServerTlsPolicyIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "ListServerTlsPolicies", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.ListServerTlsPolicies", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_SetIamPolicy_sync", + "title": "networksecurity SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "Client/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.Client.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.SetIamPolicy", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_TestIamPermissions_sync", + "title": "networksecurity TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "Client/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.networksecurity.v1beta1.Client.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.TestIamPermissions", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_UpdateAuthorizationPolicy_sync", + "title": "networksecurity UpdateAuthorizationPolicy Sample", + "description": "UpdateAuthorizationPolicy updates the parameters of a single AuthorizationPolicy.", + "file": "Client/UpdateAuthorizationPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateAuthorizationPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.Client.UpdateAuthorizationPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networksecuritypb.UpdateAuthorizationPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateAuthorizationPolicyOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "UpdateAuthorizationPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.UpdateAuthorizationPolicy", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_UpdateClientTlsPolicy_sync", + "title": "networksecurity UpdateClientTlsPolicy Sample", + "description": "UpdateClientTlsPolicy updates the parameters of a single ClientTlsPolicy.", + "file": "Client/UpdateClientTlsPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateClientTlsPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.Client.UpdateClientTlsPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networksecuritypb.UpdateClientTlsPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateClientTlsPolicyOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "UpdateClientTlsPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.UpdateClientTlsPolicy", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_UpdateServerTlsPolicy_sync", + "title": "networksecurity UpdateServerTlsPolicy Sample", + "description": "UpdateServerTlsPolicy updates the parameters of a single ServerTlsPolicy.", + "file": "Client/UpdateServerTlsPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateServerTlsPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.Client.UpdateServerTlsPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "networksecuritypb.UpdateServerTlsPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateServerTlsPolicyOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.networksecurity.v1beta1.Client" + }, + "method": { + "shortName": "UpdateServerTlsPolicy", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.UpdateServerTlsPolicy", + "service": { + "shortName": "NetworkSecurity", + "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/CancelOperation/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/CancelOperation/main.go new file mode 100644 index 000000000000..1d0ef4d001e6 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_CancelOperation_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END notebooks_v1_generated_ManagedNotebookService_CancelOperation_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/CreateRuntime/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/CreateRuntime/main.go new file mode 100644 index 000000000000..0951c4c30781 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/CreateRuntime/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_CreateRuntime_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.CreateRuntimeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#CreateRuntimeRequest. + } + op, err := c.CreateRuntime(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_ManagedNotebookService_CreateRuntime_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/DeleteOperation/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/DeleteOperation/main.go new file mode 100644 index 000000000000..d7c6194a89b1 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_DeleteOperation_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END notebooks_v1_generated_ManagedNotebookService_DeleteOperation_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/DeleteRuntime/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/DeleteRuntime/main.go new file mode 100644 index 000000000000..203390d488bc --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/DeleteRuntime/main.go @@ -0,0 +1,56 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_DeleteRuntime_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.DeleteRuntimeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#DeleteRuntimeRequest. + } + op, err := c.DeleteRuntime(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END notebooks_v1_generated_ManagedNotebookService_DeleteRuntime_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/DiagnoseRuntime/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/DiagnoseRuntime/main.go new file mode 100644 index 000000000000..a87fb7e445ec --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/DiagnoseRuntime/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_DiagnoseRuntime_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.DiagnoseRuntimeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#DiagnoseRuntimeRequest. + } + op, err := c.DiagnoseRuntime(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_ManagedNotebookService_DiagnoseRuntime_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/GetIamPolicy/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/GetIamPolicy/main.go new file mode 100644 index 000000000000..a096185febd7 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/GetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_GetIamPolicy_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.GetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#GetIamPolicyRequest. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_ManagedNotebookService_GetIamPolicy_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/GetLocation/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/GetLocation/main.go new file mode 100644 index 000000000000..b32a4920cd33 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_GetLocation_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_ManagedNotebookService_GetLocation_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/GetOperation/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/GetOperation/main.go new file mode 100644 index 000000000000..2aaaf01ca06c --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_GetOperation_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_ManagedNotebookService_GetOperation_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/GetRuntime/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/GetRuntime/main.go new file mode 100644 index 000000000000..aee61e539588 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/GetRuntime/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_GetRuntime_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.GetRuntimeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#GetRuntimeRequest. + } + resp, err := c.GetRuntime(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_ManagedNotebookService_GetRuntime_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/ListLocations/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/ListLocations/main.go new file mode 100644 index 000000000000..19bda6d7c70e --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_ListLocations_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END notebooks_v1_generated_ManagedNotebookService_ListLocations_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/ListOperations/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/ListOperations/main.go new file mode 100644 index 000000000000..34b54fe74406 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_ListOperations_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END notebooks_v1_generated_ManagedNotebookService_ListOperations_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/ListRuntimes/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/ListRuntimes/main.go new file mode 100644 index 000000000000..72afd9445c86 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/ListRuntimes/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_ListRuntimes_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.ListRuntimesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#ListRuntimesRequest. + } + it := c.ListRuntimes(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END notebooks_v1_generated_ManagedNotebookService_ListRuntimes_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/RefreshRuntimeTokenInternal/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/RefreshRuntimeTokenInternal/main.go new file mode 100644 index 000000000000..38f58f16c1d5 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/RefreshRuntimeTokenInternal/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_RefreshRuntimeTokenInternal_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.RefreshRuntimeTokenInternalRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#RefreshRuntimeTokenInternalRequest. + } + resp, err := c.RefreshRuntimeTokenInternal(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_ManagedNotebookService_RefreshRuntimeTokenInternal_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/ReportRuntimeEvent/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/ReportRuntimeEvent/main.go new file mode 100644 index 000000000000..ec221eff5705 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/ReportRuntimeEvent/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_ReportRuntimeEvent_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.ReportRuntimeEventRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#ReportRuntimeEventRequest. + } + op, err := c.ReportRuntimeEvent(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_ManagedNotebookService_ReportRuntimeEvent_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/ResetRuntime/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/ResetRuntime/main.go new file mode 100644 index 000000000000..fa7e9af56f60 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/ResetRuntime/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_ResetRuntime_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.ResetRuntimeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#ResetRuntimeRequest. + } + op, err := c.ResetRuntime(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_ManagedNotebookService_ResetRuntime_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/SetIamPolicy/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/SetIamPolicy/main.go new file mode 100644 index 000000000000..3d13988b298e --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/SetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_SetIamPolicy_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.SetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#SetIamPolicyRequest. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_ManagedNotebookService_SetIamPolicy_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/StartRuntime/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/StartRuntime/main.go new file mode 100644 index 000000000000..2a86d5bc0670 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/StartRuntime/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_StartRuntime_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.StartRuntimeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#StartRuntimeRequest. + } + op, err := c.StartRuntime(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_ManagedNotebookService_StartRuntime_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/StopRuntime/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/StopRuntime/main.go new file mode 100644 index 000000000000..aa573b57cb1f --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/StopRuntime/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_StopRuntime_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.StopRuntimeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#StopRuntimeRequest. + } + op, err := c.StopRuntime(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_ManagedNotebookService_StopRuntime_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/SwitchRuntime/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/SwitchRuntime/main.go new file mode 100644 index 000000000000..4bf7c933623a --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/SwitchRuntime/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_SwitchRuntime_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.SwitchRuntimeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#SwitchRuntimeRequest. + } + op, err := c.SwitchRuntime(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_ManagedNotebookService_SwitchRuntime_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/TestIamPermissions/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/TestIamPermissions/main.go new file mode 100644 index 000000000000..4a462e3d6039 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/TestIamPermissions/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_TestIamPermissions_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.TestIamPermissionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#TestIamPermissionsRequest. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_ManagedNotebookService_TestIamPermissions_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/UpdateRuntime/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/UpdateRuntime/main.go new file mode 100644 index 000000000000..457765711e41 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/UpdateRuntime/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_UpdateRuntime_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.UpdateRuntimeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#UpdateRuntimeRequest. + } + op, err := c.UpdateRuntime(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_ManagedNotebookService_UpdateRuntime_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/UpgradeRuntime/main.go b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/UpgradeRuntime/main.go new file mode 100644 index 000000000000..744b389ddc6b --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/ManagedNotebookClient/UpgradeRuntime/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_ManagedNotebookService_UpgradeRuntime_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewManagedNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.UpgradeRuntimeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#UpgradeRuntimeRequest. + } + op, err := c.UpgradeRuntime(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_ManagedNotebookService_UpgradeRuntime_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/CancelOperation/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/CancelOperation/main.go new file mode 100644 index 000000000000..25ce4c510841 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_CancelOperation_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END notebooks_v1_generated_NotebookService_CancelOperation_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/CreateEnvironment/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/CreateEnvironment/main.go new file mode 100644 index 000000000000..2ba1718edef0 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/CreateEnvironment/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_CreateEnvironment_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.CreateEnvironmentRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#CreateEnvironmentRequest. + } + op, err := c.CreateEnvironment(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_CreateEnvironment_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/CreateExecution/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/CreateExecution/main.go new file mode 100644 index 000000000000..fd1e7ae1f800 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/CreateExecution/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_CreateExecution_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.CreateExecutionRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#CreateExecutionRequest. + } + op, err := c.CreateExecution(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_CreateExecution_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/CreateInstance/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/CreateInstance/main.go new file mode 100644 index 000000000000..c4f0d5a99f6a --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/CreateInstance/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_CreateInstance_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.CreateInstanceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#CreateInstanceRequest. + } + op, err := c.CreateInstance(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_CreateInstance_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/CreateSchedule/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/CreateSchedule/main.go new file mode 100644 index 000000000000..30dc3e764193 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/CreateSchedule/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_CreateSchedule_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.CreateScheduleRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#CreateScheduleRequest. + } + op, err := c.CreateSchedule(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_CreateSchedule_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/DeleteEnvironment/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/DeleteEnvironment/main.go new file mode 100644 index 000000000000..0d78bbc977a5 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/DeleteEnvironment/main.go @@ -0,0 +1,56 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_DeleteEnvironment_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.DeleteEnvironmentRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#DeleteEnvironmentRequest. + } + op, err := c.DeleteEnvironment(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END notebooks_v1_generated_NotebookService_DeleteEnvironment_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/DeleteExecution/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/DeleteExecution/main.go new file mode 100644 index 000000000000..9d349791ea2a --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/DeleteExecution/main.go @@ -0,0 +1,56 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_DeleteExecution_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.DeleteExecutionRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#DeleteExecutionRequest. + } + op, err := c.DeleteExecution(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END notebooks_v1_generated_NotebookService_DeleteExecution_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/DeleteInstance/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/DeleteInstance/main.go new file mode 100644 index 000000000000..b8d3c29d7478 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/DeleteInstance/main.go @@ -0,0 +1,56 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_DeleteInstance_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.DeleteInstanceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#DeleteInstanceRequest. + } + op, err := c.DeleteInstance(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END notebooks_v1_generated_NotebookService_DeleteInstance_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/DeleteOperation/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/DeleteOperation/main.go new file mode 100644 index 000000000000..67b79b800a4b --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_DeleteOperation_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END notebooks_v1_generated_NotebookService_DeleteOperation_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/DeleteSchedule/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/DeleteSchedule/main.go new file mode 100644 index 000000000000..1e7ae94a515f --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/DeleteSchedule/main.go @@ -0,0 +1,56 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_DeleteSchedule_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.DeleteScheduleRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#DeleteScheduleRequest. + } + op, err := c.DeleteSchedule(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END notebooks_v1_generated_NotebookService_DeleteSchedule_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/DiagnoseInstance/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/DiagnoseInstance/main.go new file mode 100644 index 000000000000..29983e7967af --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/DiagnoseInstance/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_DiagnoseInstance_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.DiagnoseInstanceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#DiagnoseInstanceRequest. + } + op, err := c.DiagnoseInstance(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_DiagnoseInstance_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetEnvironment/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetEnvironment/main.go new file mode 100644 index 000000000000..b38e2203d554 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetEnvironment/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_GetEnvironment_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.GetEnvironmentRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#GetEnvironmentRequest. + } + resp, err := c.GetEnvironment(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_GetEnvironment_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetExecution/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetExecution/main.go new file mode 100644 index 000000000000..066281b83c82 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetExecution/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_GetExecution_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.GetExecutionRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#GetExecutionRequest. + } + resp, err := c.GetExecution(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_GetExecution_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetIamPolicy/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetIamPolicy/main.go new file mode 100644 index 000000000000..10809183e28c --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_GetIamPolicy_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.GetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#GetIamPolicyRequest. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_GetIamPolicy_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetInstance/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetInstance/main.go new file mode 100644 index 000000000000..017e8950d429 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetInstance/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_GetInstance_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.GetInstanceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#GetInstanceRequest. + } + resp, err := c.GetInstance(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_GetInstance_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetInstanceHealth/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetInstanceHealth/main.go new file mode 100644 index 000000000000..cb8db5124d83 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetInstanceHealth/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_GetInstanceHealth_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.GetInstanceHealthRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#GetInstanceHealthRequest. + } + resp, err := c.GetInstanceHealth(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_GetInstanceHealth_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetLocation/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetLocation/main.go new file mode 100644 index 000000000000..a1d26b70d53a --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_GetLocation_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_GetLocation_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetOperation/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetOperation/main.go new file mode 100644 index 000000000000..ed1acf725157 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_GetOperation_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_GetOperation_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetSchedule/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetSchedule/main.go new file mode 100644 index 000000000000..060608e9efda --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/GetSchedule/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_GetSchedule_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.GetScheduleRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#GetScheduleRequest. + } + resp, err := c.GetSchedule(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_GetSchedule_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/IsInstanceUpgradeable/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/IsInstanceUpgradeable/main.go new file mode 100644 index 000000000000..fd9771023109 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/IsInstanceUpgradeable/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_IsInstanceUpgradeable_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.IsInstanceUpgradeableRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#IsInstanceUpgradeableRequest. + } + resp, err := c.IsInstanceUpgradeable(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_IsInstanceUpgradeable_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/ListEnvironments/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/ListEnvironments/main.go new file mode 100644 index 000000000000..e427adc07f09 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/ListEnvironments/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_ListEnvironments_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.ListEnvironmentsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#ListEnvironmentsRequest. + } + it := c.ListEnvironments(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END notebooks_v1_generated_NotebookService_ListEnvironments_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/ListExecutions/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/ListExecutions/main.go new file mode 100644 index 000000000000..8629bf050c25 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/ListExecutions/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_ListExecutions_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.ListExecutionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#ListExecutionsRequest. + } + it := c.ListExecutions(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END notebooks_v1_generated_NotebookService_ListExecutions_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/ListInstances/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/ListInstances/main.go new file mode 100644 index 000000000000..358f7d725c99 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/ListInstances/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_ListInstances_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.ListInstancesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#ListInstancesRequest. + } + it := c.ListInstances(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END notebooks_v1_generated_NotebookService_ListInstances_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/ListLocations/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/ListLocations/main.go new file mode 100644 index 000000000000..1f9b4c22bf38 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_ListLocations_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END notebooks_v1_generated_NotebookService_ListLocations_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/ListOperations/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/ListOperations/main.go new file mode 100644 index 000000000000..3a3be805217f --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_ListOperations_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END notebooks_v1_generated_NotebookService_ListOperations_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/ListSchedules/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/ListSchedules/main.go new file mode 100644 index 000000000000..5e6ad93300b3 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/ListSchedules/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_ListSchedules_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.ListSchedulesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#ListSchedulesRequest. + } + it := c.ListSchedules(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END notebooks_v1_generated_NotebookService_ListSchedules_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/RegisterInstance/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/RegisterInstance/main.go new file mode 100644 index 000000000000..20fc8a8dd2b1 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/RegisterInstance/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_RegisterInstance_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.RegisterInstanceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#RegisterInstanceRequest. + } + op, err := c.RegisterInstance(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_RegisterInstance_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/ReportInstanceInfo/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/ReportInstanceInfo/main.go new file mode 100644 index 000000000000..7bc2d62dbc4a --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/ReportInstanceInfo/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_ReportInstanceInfo_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.ReportInstanceInfoRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#ReportInstanceInfoRequest. + } + op, err := c.ReportInstanceInfo(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_ReportInstanceInfo_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/ResetInstance/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/ResetInstance/main.go new file mode 100644 index 000000000000..7c6b7d0212de --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/ResetInstance/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_ResetInstance_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.ResetInstanceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#ResetInstanceRequest. + } + op, err := c.ResetInstance(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_ResetInstance_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/RollbackInstance/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/RollbackInstance/main.go new file mode 100644 index 000000000000..047a5d8da0cd --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/RollbackInstance/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_RollbackInstance_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.RollbackInstanceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#RollbackInstanceRequest. + } + op, err := c.RollbackInstance(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_RollbackInstance_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/SetIamPolicy/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/SetIamPolicy/main.go new file mode 100644 index 000000000000..cdd35946f05a --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/SetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_SetIamPolicy_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.SetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#SetIamPolicyRequest. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_SetIamPolicy_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/SetInstanceAccelerator/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/SetInstanceAccelerator/main.go new file mode 100644 index 000000000000..b7a299a28ec2 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/SetInstanceAccelerator/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_SetInstanceAccelerator_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.SetInstanceAcceleratorRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#SetInstanceAcceleratorRequest. + } + op, err := c.SetInstanceAccelerator(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_SetInstanceAccelerator_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/SetInstanceLabels/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/SetInstanceLabels/main.go new file mode 100644 index 000000000000..f02e42c96c71 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/SetInstanceLabels/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_SetInstanceLabels_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.SetInstanceLabelsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#SetInstanceLabelsRequest. + } + op, err := c.SetInstanceLabels(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_SetInstanceLabels_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/SetInstanceMachineType/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/SetInstanceMachineType/main.go new file mode 100644 index 000000000000..7f52fd8cc073 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/SetInstanceMachineType/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_SetInstanceMachineType_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.SetInstanceMachineTypeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#SetInstanceMachineTypeRequest. + } + op, err := c.SetInstanceMachineType(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_SetInstanceMachineType_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/StartInstance/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/StartInstance/main.go new file mode 100644 index 000000000000..a3e2fcc32312 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/StartInstance/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_StartInstance_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.StartInstanceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#StartInstanceRequest. + } + op, err := c.StartInstance(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_StartInstance_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/StopInstance/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/StopInstance/main.go new file mode 100644 index 000000000000..569f80df1415 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/StopInstance/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_StopInstance_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.StopInstanceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#StopInstanceRequest. + } + op, err := c.StopInstance(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_StopInstance_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/TestIamPermissions/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/TestIamPermissions/main.go new file mode 100644 index 000000000000..e9ccf268a402 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/TestIamPermissions/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_TestIamPermissions_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.TestIamPermissionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#TestIamPermissionsRequest. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_TestIamPermissions_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/TriggerSchedule/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/TriggerSchedule/main.go new file mode 100644 index 000000000000..84677f366a15 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/TriggerSchedule/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_TriggerSchedule_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.TriggerScheduleRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#TriggerScheduleRequest. + } + op, err := c.TriggerSchedule(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_TriggerSchedule_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/UpdateInstanceConfig/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/UpdateInstanceConfig/main.go new file mode 100644 index 000000000000..c511abb90909 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/UpdateInstanceConfig/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_UpdateInstanceConfig_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.UpdateInstanceConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#UpdateInstanceConfigRequest. + } + op, err := c.UpdateInstanceConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_UpdateInstanceConfig_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/UpdateInstanceMetadataItems/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/UpdateInstanceMetadataItems/main.go new file mode 100644 index 000000000000..5942dfb90b0f --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/UpdateInstanceMetadataItems/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_UpdateInstanceMetadataItems_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.UpdateInstanceMetadataItemsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#UpdateInstanceMetadataItemsRequest. + } + resp, err := c.UpdateInstanceMetadataItems(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_UpdateInstanceMetadataItems_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/UpdateShieldedInstanceConfig/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/UpdateShieldedInstanceConfig/main.go new file mode 100644 index 000000000000..5af7788f48b9 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/UpdateShieldedInstanceConfig/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_UpdateShieldedInstanceConfig_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.UpdateShieldedInstanceConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#UpdateShieldedInstanceConfigRequest. + } + op, err := c.UpdateShieldedInstanceConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_UpdateShieldedInstanceConfig_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/UpgradeInstance/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/UpgradeInstance/main.go new file mode 100644 index 000000000000..74349c1ad88b --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/UpgradeInstance/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_UpgradeInstance_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.UpgradeInstanceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#UpgradeInstanceRequest. + } + op, err := c.UpgradeInstance(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_UpgradeInstance_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/NotebookClient/UpgradeInstanceInternal/main.go b/internal/generated/snippets/notebooks/apiv1/NotebookClient/UpgradeInstanceInternal/main.go new file mode 100644 index 000000000000..2006622fda7a --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/NotebookClient/UpgradeInstanceInternal/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1_generated_NotebookService_UpgradeInstanceInternal_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1" + notebookspb "cloud.google.com/go/notebooks/apiv1/notebookspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := ¬ebookspb.UpgradeInstanceInternalRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1/notebookspb#UpgradeInstanceInternalRequest. + } + op, err := c.UpgradeInstanceInternal(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1_generated_NotebookService_UpgradeInstanceInternal_sync] diff --git a/internal/generated/snippets/notebooks/apiv1/snippet_metadata.google.cloud.notebooks.v1.json b/internal/generated/snippets/notebooks/apiv1/snippet_metadata.google.cloud.notebooks.v1.json new file mode 100644 index 000000000000..19d699367d6e --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1/snippet_metadata.google.cloud.notebooks.v1.json @@ -0,0 +1,3001 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/notebooks/apiv1", + "version": "1.7.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.notebooks.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_CancelOperation_sync", + "title": "notebooks CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "ManagedNotebookClient/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.CancelOperation", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_CreateRuntime_sync", + "title": "notebooks CreateRuntime Sample", + "description": "CreateRuntime creates a new Runtime in a given project and location.", + "file": "ManagedNotebookClient/CreateRuntime/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.CreateRuntime", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.CreateRuntimeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateRuntimeOperation", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "CreateRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.CreateRuntime", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_DeleteOperation_sync", + "title": "notebooks DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "ManagedNotebookClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.DeleteOperation", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_DeleteRuntime_sync", + "title": "notebooks DeleteRuntime Sample", + "description": "DeleteRuntime deletes a single Runtime.", + "file": "ManagedNotebookClient/DeleteRuntime/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.DeleteRuntime", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.DeleteRuntimeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteRuntimeOperation", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "DeleteRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.DeleteRuntime", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_DiagnoseRuntime_sync", + "title": "notebooks DiagnoseRuntime Sample", + "description": "DiagnoseRuntime creates a Diagnostic File and runs Diagnostic Tool given a Runtime.", + "file": "ManagedNotebookClient/DiagnoseRuntime/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DiagnoseRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.DiagnoseRuntime", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.DiagnoseRuntimeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DiagnoseRuntimeOperation", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "DiagnoseRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.DiagnoseRuntime", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_GetIamPolicy_sync", + "title": "notebooks GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "ManagedNotebookClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.GetIamPolicy", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_GetLocation_sync", + "title": "notebooks GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "ManagedNotebookClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.GetLocation", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_GetOperation_sync", + "title": "notebooks GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "ManagedNotebookClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.GetOperation", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_GetRuntime_sync", + "title": "notebooks GetRuntime Sample", + "description": "GetRuntime gets details of a single Runtime. The location must be a regional endpoint\nrather than zonal.", + "file": "ManagedNotebookClient/GetRuntime/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.GetRuntime", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.GetRuntimeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "notebookspb.Runtime", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "GetRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.GetRuntime", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_ListLocations_sync", + "title": "notebooks ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "ManagedNotebookClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.ListLocations", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_ListOperations_sync", + "title": "notebooks ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "ManagedNotebookClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.ListOperations", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_ListRuntimes_sync", + "title": "notebooks ListRuntimes Sample", + "description": "ListRuntimes lists Runtimes in a given project and location.", + "file": "ManagedNotebookClient/ListRuntimes/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListRuntimes", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.ListRuntimes", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.ListRuntimesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RuntimeIterator", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "ListRuntimes", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.ListRuntimes", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_RefreshRuntimeTokenInternal_sync", + "title": "notebooks RefreshRuntimeTokenInternal Sample", + "description": "RefreshRuntimeTokenInternal gets an access token for the consumer service account that the customer\nattached to the runtime. Only accessible from the tenant instance.", + "file": "ManagedNotebookClient/RefreshRuntimeTokenInternal/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RefreshRuntimeTokenInternal", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.RefreshRuntimeTokenInternal", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.RefreshRuntimeTokenInternalRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "notebookspb.RefreshRuntimeTokenInternalResponse", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "RefreshRuntimeTokenInternal", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.RefreshRuntimeTokenInternal", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_ReportRuntimeEvent_sync", + "title": "notebooks ReportRuntimeEvent Sample", + "description": "ReportRuntimeEvent report and process a runtime event.", + "file": "ManagedNotebookClient/ReportRuntimeEvent/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReportRuntimeEvent", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.ReportRuntimeEvent", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.ReportRuntimeEventRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ReportRuntimeEventOperation", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "ReportRuntimeEvent", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.ReportRuntimeEvent", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_ResetRuntime_sync", + "title": "notebooks ResetRuntime Sample", + "description": "ResetRuntime resets a Managed Notebook Runtime.", + "file": "ManagedNotebookClient/ResetRuntime/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResetRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.ResetRuntime", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.ResetRuntimeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ResetRuntimeOperation", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "ResetRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.ResetRuntime", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_SetIamPolicy_sync", + "title": "notebooks SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "ManagedNotebookClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.SetIamPolicy", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_StartRuntime_sync", + "title": "notebooks StartRuntime Sample", + "description": "StartRuntime starts a Managed Notebook Runtime.\nPerform “Start” on GPU instances; “Resume” on CPU instances\nSee: \nhttps: //cloud.google.com/compute/docs/instances/stop-start-instance (at https: //cloud.google.com/compute/docs/instances/stop-start-instance)\nhttps: //cloud.google.com/compute/docs/instances/suspend-resume-instance (at https: //cloud.google.com/compute/docs/instances/suspend-resume-instance)", + "file": "ManagedNotebookClient/StartRuntime/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StartRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.StartRuntime", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.StartRuntimeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "StartRuntimeOperation", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "StartRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.StartRuntime", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_StopRuntime_sync", + "title": "notebooks StopRuntime Sample", + "description": "StopRuntime stops a Managed Notebook Runtime.\nPerform “Stop” on GPU instances; “Suspend” on CPU instances\nSee: \nhttps: //cloud.google.com/compute/docs/instances/stop-start-instance (at https: //cloud.google.com/compute/docs/instances/stop-start-instance)\nhttps: //cloud.google.com/compute/docs/instances/suspend-resume-instance (at https: //cloud.google.com/compute/docs/instances/suspend-resume-instance)", + "file": "ManagedNotebookClient/StopRuntime/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StopRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.StopRuntime", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.StopRuntimeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "StopRuntimeOperation", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "StopRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.StopRuntime", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_SwitchRuntime_sync", + "title": "notebooks SwitchRuntime Sample", + "description": "SwitchRuntime switch a Managed Notebook Runtime.", + "file": "ManagedNotebookClient/SwitchRuntime/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SwitchRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.SwitchRuntime", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.SwitchRuntimeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SwitchRuntimeOperation", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "SwitchRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.SwitchRuntime", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_TestIamPermissions_sync", + "title": "notebooks TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "ManagedNotebookClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.TestIamPermissions", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_UpdateRuntime_sync", + "title": "notebooks UpdateRuntime Sample", + "description": "UpdateRuntime update Notebook Runtime configuration.", + "file": "ManagedNotebookClient/UpdateRuntime/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.UpdateRuntime", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.UpdateRuntimeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateRuntimeOperation", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "UpdateRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.UpdateRuntime", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_ManagedNotebookService_UpgradeRuntime_sync", + "title": "notebooks UpgradeRuntime Sample", + "description": "UpgradeRuntime upgrades a Managed Notebook Runtime to the latest version.", + "file": "ManagedNotebookClient/UpgradeRuntime/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpgradeRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient.UpgradeRuntime", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.UpgradeRuntimeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpgradeRuntimeOperation", + "client": { + "shortName": "ManagedNotebookClient", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookClient" + }, + "method": { + "shortName": "UpgradeRuntime", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.UpgradeRuntime", + "service": { + "shortName": "ManagedNotebookService", + "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_CancelOperation_sync", + "title": "notebooks CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "NotebookClient/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.notebooks.v1.NotebookClient.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.notebooks.v1.NotebookService.CancelOperation", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_CreateEnvironment_sync", + "title": "notebooks CreateEnvironment Sample", + "description": "CreateEnvironment creates a new Environment.", + "file": "NotebookClient/CreateEnvironment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateEnvironment", + "fullName": "google.cloud.notebooks.v1.NotebookClient.CreateEnvironment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.CreateEnvironmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateEnvironmentOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "CreateEnvironment", + "fullName": "google.cloud.notebooks.v1.NotebookService.CreateEnvironment", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_CreateExecution_sync", + "title": "notebooks CreateExecution Sample", + "description": "CreateExecution creates a new Execution in a given project and location.", + "file": "NotebookClient/CreateExecution/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateExecution", + "fullName": "google.cloud.notebooks.v1.NotebookClient.CreateExecution", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.CreateExecutionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateExecutionOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "CreateExecution", + "fullName": "google.cloud.notebooks.v1.NotebookService.CreateExecution", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_CreateInstance_sync", + "title": "notebooks CreateInstance Sample", + "description": "CreateInstance creates a new Instance in a given project and location.", + "file": "NotebookClient/CreateInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateInstance", + "fullName": "google.cloud.notebooks.v1.NotebookClient.CreateInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.CreateInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateInstanceOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.cloud.notebooks.v1.NotebookService.CreateInstance", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_CreateSchedule_sync", + "title": "notebooks CreateSchedule Sample", + "description": "CreateSchedule creates a new Scheduled Notebook in a given project and location.", + "file": "NotebookClient/CreateSchedule/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSchedule", + "fullName": "google.cloud.notebooks.v1.NotebookClient.CreateSchedule", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.CreateScheduleRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateScheduleOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "CreateSchedule", + "fullName": "google.cloud.notebooks.v1.NotebookService.CreateSchedule", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_DeleteEnvironment_sync", + "title": "notebooks DeleteEnvironment Sample", + "description": "DeleteEnvironment deletes a single Environment.", + "file": "NotebookClient/DeleteEnvironment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteEnvironment", + "fullName": "google.cloud.notebooks.v1.NotebookClient.DeleteEnvironment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.DeleteEnvironmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteEnvironmentOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "DeleteEnvironment", + "fullName": "google.cloud.notebooks.v1.NotebookService.DeleteEnvironment", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_DeleteExecution_sync", + "title": "notebooks DeleteExecution Sample", + "description": "DeleteExecution deletes execution", + "file": "NotebookClient/DeleteExecution/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteExecution", + "fullName": "google.cloud.notebooks.v1.NotebookClient.DeleteExecution", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.DeleteExecutionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteExecutionOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "DeleteExecution", + "fullName": "google.cloud.notebooks.v1.NotebookService.DeleteExecution", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_DeleteInstance_sync", + "title": "notebooks DeleteInstance Sample", + "description": "DeleteInstance deletes a single Instance.", + "file": "NotebookClient/DeleteInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.notebooks.v1.NotebookClient.DeleteInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.DeleteInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteInstanceOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.notebooks.v1.NotebookService.DeleteInstance", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_DeleteOperation_sync", + "title": "notebooks DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "NotebookClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.notebooks.v1.NotebookClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.notebooks.v1.NotebookService.DeleteOperation", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_DeleteSchedule_sync", + "title": "notebooks DeleteSchedule Sample", + "description": "DeleteSchedule deletes schedule and all underlying jobs", + "file": "NotebookClient/DeleteSchedule/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteSchedule", + "fullName": "google.cloud.notebooks.v1.NotebookClient.DeleteSchedule", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.DeleteScheduleRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteScheduleOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "DeleteSchedule", + "fullName": "google.cloud.notebooks.v1.NotebookService.DeleteSchedule", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_DiagnoseInstance_sync", + "title": "notebooks DiagnoseInstance Sample", + "description": "DiagnoseInstance creates a Diagnostic File and runs Diagnostic Tool given an Instance.", + "file": "NotebookClient/DiagnoseInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DiagnoseInstance", + "fullName": "google.cloud.notebooks.v1.NotebookClient.DiagnoseInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.DiagnoseInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DiagnoseInstanceOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "DiagnoseInstance", + "fullName": "google.cloud.notebooks.v1.NotebookService.DiagnoseInstance", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_GetEnvironment_sync", + "title": "notebooks GetEnvironment Sample", + "description": "GetEnvironment gets details of a single Environment.", + "file": "NotebookClient/GetEnvironment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetEnvironment", + "fullName": "google.cloud.notebooks.v1.NotebookClient.GetEnvironment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.GetEnvironmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "notebookspb.Environment", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "GetEnvironment", + "fullName": "google.cloud.notebooks.v1.NotebookService.GetEnvironment", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_GetExecution_sync", + "title": "notebooks GetExecution Sample", + "description": "GetExecution gets details of executions", + "file": "NotebookClient/GetExecution/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetExecution", + "fullName": "google.cloud.notebooks.v1.NotebookClient.GetExecution", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.GetExecutionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "notebookspb.Execution", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "GetExecution", + "fullName": "google.cloud.notebooks.v1.NotebookService.GetExecution", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_GetIamPolicy_sync", + "title": "notebooks GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "NotebookClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.notebooks.v1.NotebookClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.notebooks.v1.NotebookService.GetIamPolicy", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_GetInstance_sync", + "title": "notebooks GetInstance Sample", + "description": "GetInstance gets details of a single Instance.", + "file": "NotebookClient/GetInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInstance", + "fullName": "google.cloud.notebooks.v1.NotebookClient.GetInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.GetInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "notebookspb.Instance", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.cloud.notebooks.v1.NotebookService.GetInstance", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_GetInstanceHealth_sync", + "title": "notebooks GetInstanceHealth Sample", + "description": "GetInstanceHealth check if a notebook instance is healthy.", + "file": "NotebookClient/GetInstanceHealth/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInstanceHealth", + "fullName": "google.cloud.notebooks.v1.NotebookClient.GetInstanceHealth", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.GetInstanceHealthRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "notebookspb.GetInstanceHealthResponse", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "GetInstanceHealth", + "fullName": "google.cloud.notebooks.v1.NotebookService.GetInstanceHealth", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_GetLocation_sync", + "title": "notebooks GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "NotebookClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.notebooks.v1.NotebookClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.notebooks.v1.NotebookService.GetLocation", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_GetOperation_sync", + "title": "notebooks GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "NotebookClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.notebooks.v1.NotebookClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.notebooks.v1.NotebookService.GetOperation", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_GetSchedule_sync", + "title": "notebooks GetSchedule Sample", + "description": "GetSchedule gets details of schedule", + "file": "NotebookClient/GetSchedule/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSchedule", + "fullName": "google.cloud.notebooks.v1.NotebookClient.GetSchedule", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.GetScheduleRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "notebookspb.Schedule", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "GetSchedule", + "fullName": "google.cloud.notebooks.v1.NotebookService.GetSchedule", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_IsInstanceUpgradeable_sync", + "title": "notebooks IsInstanceUpgradeable Sample", + "description": "IsInstanceUpgradeable check if a notebook instance is upgradable.", + "file": "NotebookClient/IsInstanceUpgradeable/main.go", + "language": "GO", + "clientMethod": { + "shortName": "IsInstanceUpgradeable", + "fullName": "google.cloud.notebooks.v1.NotebookClient.IsInstanceUpgradeable", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.IsInstanceUpgradeableRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "notebookspb.IsInstanceUpgradeableResponse", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "IsInstanceUpgradeable", + "fullName": "google.cloud.notebooks.v1.NotebookService.IsInstanceUpgradeable", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_ListEnvironments_sync", + "title": "notebooks ListEnvironments Sample", + "description": "ListEnvironments lists environments in a project.", + "file": "NotebookClient/ListEnvironments/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListEnvironments", + "fullName": "google.cloud.notebooks.v1.NotebookClient.ListEnvironments", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.ListEnvironmentsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "EnvironmentIterator", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "ListEnvironments", + "fullName": "google.cloud.notebooks.v1.NotebookService.ListEnvironments", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_ListExecutions_sync", + "title": "notebooks ListExecutions Sample", + "description": "ListExecutions lists executions in a given project and location", + "file": "NotebookClient/ListExecutions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListExecutions", + "fullName": "google.cloud.notebooks.v1.NotebookClient.ListExecutions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.ListExecutionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ExecutionIterator", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "ListExecutions", + "fullName": "google.cloud.notebooks.v1.NotebookService.ListExecutions", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_ListInstances_sync", + "title": "notebooks ListInstances Sample", + "description": "ListInstances lists instances in a given project and location.", + "file": "NotebookClient/ListInstances/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListInstances", + "fullName": "google.cloud.notebooks.v1.NotebookClient.ListInstances", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.ListInstancesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "InstanceIterator", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.cloud.notebooks.v1.NotebookService.ListInstances", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_ListLocations_sync", + "title": "notebooks ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "NotebookClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.notebooks.v1.NotebookClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.notebooks.v1.NotebookService.ListLocations", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_ListOperations_sync", + "title": "notebooks ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "NotebookClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.notebooks.v1.NotebookClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.notebooks.v1.NotebookService.ListOperations", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_ListSchedules_sync", + "title": "notebooks ListSchedules Sample", + "description": "ListSchedules lists schedules in a given project and location.", + "file": "NotebookClient/ListSchedules/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListSchedules", + "fullName": "google.cloud.notebooks.v1.NotebookClient.ListSchedules", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.ListSchedulesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ScheduleIterator", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "ListSchedules", + "fullName": "google.cloud.notebooks.v1.NotebookService.ListSchedules", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_RegisterInstance_sync", + "title": "notebooks RegisterInstance Sample", + "description": "RegisterInstance registers an existing legacy notebook instance to the Notebooks API server.\nLegacy instances are instances created with the legacy Compute Engine\ncalls. They are not manageable by the Notebooks API out of the box. This\ncall makes these instances manageable by the Notebooks API.", + "file": "NotebookClient/RegisterInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RegisterInstance", + "fullName": "google.cloud.notebooks.v1.NotebookClient.RegisterInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.RegisterInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RegisterInstanceOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "RegisterInstance", + "fullName": "google.cloud.notebooks.v1.NotebookService.RegisterInstance", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_ReportInstanceInfo_sync", + "title": "notebooks ReportInstanceInfo Sample", + "description": "ReportInstanceInfo allows notebook instances to\nreport their latest instance information to the Notebooks\nAPI server. The server will merge the reported information to\nthe instance metadata store. Do not use this method directly.", + "file": "NotebookClient/ReportInstanceInfo/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReportInstanceInfo", + "fullName": "google.cloud.notebooks.v1.NotebookClient.ReportInstanceInfo", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.ReportInstanceInfoRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ReportInstanceInfoOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "ReportInstanceInfo", + "fullName": "google.cloud.notebooks.v1.NotebookService.ReportInstanceInfo", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_ResetInstance_sync", + "title": "notebooks ResetInstance Sample", + "description": "ResetInstance resets a notebook instance.", + "file": "NotebookClient/ResetInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResetInstance", + "fullName": "google.cloud.notebooks.v1.NotebookClient.ResetInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.ResetInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ResetInstanceOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "ResetInstance", + "fullName": "google.cloud.notebooks.v1.NotebookService.ResetInstance", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_RollbackInstance_sync", + "title": "notebooks RollbackInstance Sample", + "description": "RollbackInstance rollbacks a notebook instance to the previous version.", + "file": "NotebookClient/RollbackInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RollbackInstance", + "fullName": "google.cloud.notebooks.v1.NotebookClient.RollbackInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.RollbackInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RollbackInstanceOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "RollbackInstance", + "fullName": "google.cloud.notebooks.v1.NotebookService.RollbackInstance", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_SetIamPolicy_sync", + "title": "notebooks SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "NotebookClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.notebooks.v1.NotebookClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.notebooks.v1.NotebookService.SetIamPolicy", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_SetInstanceAccelerator_sync", + "title": "notebooks SetInstanceAccelerator Sample", + "description": "SetInstanceAccelerator updates the guest accelerators of a single Instance.", + "file": "NotebookClient/SetInstanceAccelerator/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetInstanceAccelerator", + "fullName": "google.cloud.notebooks.v1.NotebookClient.SetInstanceAccelerator", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.SetInstanceAcceleratorRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SetInstanceAcceleratorOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "SetInstanceAccelerator", + "fullName": "google.cloud.notebooks.v1.NotebookService.SetInstanceAccelerator", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_SetInstanceLabels_sync", + "title": "notebooks SetInstanceLabels Sample", + "description": "SetInstanceLabels replaces all the labels of an Instance.", + "file": "NotebookClient/SetInstanceLabels/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetInstanceLabels", + "fullName": "google.cloud.notebooks.v1.NotebookClient.SetInstanceLabels", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.SetInstanceLabelsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SetInstanceLabelsOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "SetInstanceLabels", + "fullName": "google.cloud.notebooks.v1.NotebookService.SetInstanceLabels", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_SetInstanceMachineType_sync", + "title": "notebooks SetInstanceMachineType Sample", + "description": "SetInstanceMachineType updates the machine type of a single Instance.", + "file": "NotebookClient/SetInstanceMachineType/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetInstanceMachineType", + "fullName": "google.cloud.notebooks.v1.NotebookClient.SetInstanceMachineType", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.SetInstanceMachineTypeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SetInstanceMachineTypeOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "SetInstanceMachineType", + "fullName": "google.cloud.notebooks.v1.NotebookService.SetInstanceMachineType", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_StartInstance_sync", + "title": "notebooks StartInstance Sample", + "description": "StartInstance starts a notebook instance.", + "file": "NotebookClient/StartInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StartInstance", + "fullName": "google.cloud.notebooks.v1.NotebookClient.StartInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.StartInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "StartInstanceOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "StartInstance", + "fullName": "google.cloud.notebooks.v1.NotebookService.StartInstance", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_StopInstance_sync", + "title": "notebooks StopInstance Sample", + "description": "StopInstance stops a notebook instance.", + "file": "NotebookClient/StopInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StopInstance", + "fullName": "google.cloud.notebooks.v1.NotebookClient.StopInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.StopInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "StopInstanceOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "StopInstance", + "fullName": "google.cloud.notebooks.v1.NotebookService.StopInstance", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_TestIamPermissions_sync", + "title": "notebooks TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "NotebookClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.notebooks.v1.NotebookClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.notebooks.v1.NotebookService.TestIamPermissions", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_TriggerSchedule_sync", + "title": "notebooks TriggerSchedule Sample", + "description": "TriggerSchedule triggers execution of an existing schedule.", + "file": "NotebookClient/TriggerSchedule/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TriggerSchedule", + "fullName": "google.cloud.notebooks.v1.NotebookClient.TriggerSchedule", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.TriggerScheduleRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "TriggerScheduleOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "TriggerSchedule", + "fullName": "google.cloud.notebooks.v1.NotebookService.TriggerSchedule", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_UpdateInstanceConfig_sync", + "title": "notebooks UpdateInstanceConfig Sample", + "description": "UpdateInstanceConfig update Notebook Instance configurations.", + "file": "NotebookClient/UpdateInstanceConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateInstanceConfig", + "fullName": "google.cloud.notebooks.v1.NotebookClient.UpdateInstanceConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.UpdateInstanceConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateInstanceConfigOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "UpdateInstanceConfig", + "fullName": "google.cloud.notebooks.v1.NotebookService.UpdateInstanceConfig", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_UpdateInstanceMetadataItems_sync", + "title": "notebooks UpdateInstanceMetadataItems Sample", + "description": "UpdateInstanceMetadataItems add/update metadata items for an instance.", + "file": "NotebookClient/UpdateInstanceMetadataItems/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateInstanceMetadataItems", + "fullName": "google.cloud.notebooks.v1.NotebookClient.UpdateInstanceMetadataItems", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.UpdateInstanceMetadataItemsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "notebookspb.UpdateInstanceMetadataItemsResponse", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "UpdateInstanceMetadataItems", + "fullName": "google.cloud.notebooks.v1.NotebookService.UpdateInstanceMetadataItems", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_UpdateShieldedInstanceConfig_sync", + "title": "notebooks UpdateShieldedInstanceConfig Sample", + "description": "UpdateShieldedInstanceConfig updates the Shielded instance configuration of a single Instance.", + "file": "NotebookClient/UpdateShieldedInstanceConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateShieldedInstanceConfig", + "fullName": "google.cloud.notebooks.v1.NotebookClient.UpdateShieldedInstanceConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.UpdateShieldedInstanceConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateShieldedInstanceConfigOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "UpdateShieldedInstanceConfig", + "fullName": "google.cloud.notebooks.v1.NotebookService.UpdateShieldedInstanceConfig", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_UpgradeInstance_sync", + "title": "notebooks UpgradeInstance Sample", + "description": "UpgradeInstance upgrades a notebook instance to the latest version.", + "file": "NotebookClient/UpgradeInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpgradeInstance", + "fullName": "google.cloud.notebooks.v1.NotebookClient.UpgradeInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.UpgradeInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpgradeInstanceOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "UpgradeInstance", + "fullName": "google.cloud.notebooks.v1.NotebookService.UpgradeInstance", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1_generated_NotebookService_UpgradeInstanceInternal_sync", + "title": "notebooks UpgradeInstanceInternal Sample", + "description": "UpgradeInstanceInternal allows notebook instances to\ncall this endpoint to upgrade themselves. Do not use this method directly.", + "file": "NotebookClient/UpgradeInstanceInternal/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpgradeInstanceInternal", + "fullName": "google.cloud.notebooks.v1.NotebookClient.UpgradeInstanceInternal", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.UpgradeInstanceInternalRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpgradeInstanceInternalOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1.NotebookClient" + }, + "method": { + "shortName": "UpgradeInstanceInternal", + "fullName": "google.cloud.notebooks.v1.NotebookService.UpgradeInstanceInternal", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/CancelOperation/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/CancelOperation/main.go new file mode 100644 index 000000000000..2de8814073e3 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1beta1_generated_NotebookService_CancelOperation_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1beta1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END notebooks_v1beta1_generated_NotebookService_CancelOperation_sync] diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/CreateEnvironment/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/CreateEnvironment/main.go index 563a48a36a4d..2c1515c73cdc 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/CreateEnvironment/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/CreateEnvironment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := ¬ebookspb.CreateEnvironmentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#CreateEnvironmentRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#CreateEnvironmentRequest. } op, err := c.CreateEnvironment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/CreateInstance/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/CreateInstance/main.go index 23543891d904..df0996a3b6c4 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/CreateInstance/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/CreateInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := ¬ebookspb.CreateInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#CreateInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#CreateInstanceRequest. } op, err := c.CreateInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/DeleteEnvironment/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/DeleteEnvironment/main.go index fd82c77326ac..78132a7f061b 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/DeleteEnvironment/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/DeleteEnvironment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := ¬ebookspb.DeleteEnvironmentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#DeleteEnvironmentRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#DeleteEnvironmentRequest. } op, err := c.DeleteEnvironment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/DeleteInstance/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/DeleteInstance/main.go index db1241837c91..76be26190ed0 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/DeleteInstance/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/DeleteInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := ¬ebookspb.DeleteInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#DeleteInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#DeleteInstanceRequest. } op, err := c.DeleteInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/DeleteOperation/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/DeleteOperation/main.go new file mode 100644 index 000000000000..4e112723fa8a --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1beta1_generated_NotebookService_DeleteOperation_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1beta1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END notebooks_v1beta1_generated_NotebookService_DeleteOperation_sync] diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/GetEnvironment/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/GetEnvironment/main.go index 1c2c443f0ed8..109ed7a8c440 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/GetEnvironment/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/GetEnvironment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := ¬ebookspb.GetEnvironmentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#GetEnvironmentRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#GetEnvironmentRequest. } resp, err := c.GetEnvironment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/GetIamPolicy/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/GetIamPolicy/main.go new file mode 100644 index 000000000000..eaa6b9a6a4f2 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/GetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1beta1_generated_NotebookService_GetIamPolicy_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1beta1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.GetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#GetIamPolicyRequest. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1beta1_generated_NotebookService_GetIamPolicy_sync] diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/GetInstance/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/GetInstance/main.go index 7d71acde9cf8..41842d1b7a57 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/GetInstance/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/GetInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := ¬ebookspb.GetInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#GetInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#GetInstanceRequest. } resp, err := c.GetInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/GetLocation/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/GetLocation/main.go new file mode 100644 index 000000000000..fda8b9603430 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1beta1_generated_NotebookService_GetLocation_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1beta1" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1beta1_generated_NotebookService_GetLocation_sync] diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/GetOperation/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/GetOperation/main.go new file mode 100644 index 000000000000..14b52b4a9d9d --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1beta1_generated_NotebookService_GetOperation_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1beta1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1beta1_generated_NotebookService_GetOperation_sync] diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/IsInstanceUpgradeable/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/IsInstanceUpgradeable/main.go index ee0ac43cd490..64461617c984 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/IsInstanceUpgradeable/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/IsInstanceUpgradeable/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := ¬ebookspb.IsInstanceUpgradeableRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#IsInstanceUpgradeableRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#IsInstanceUpgradeableRequest. } resp, err := c.IsInstanceUpgradeable(ctx, req) if err != nil { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ListEnvironments/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ListEnvironments/main.go index becbcb25ef3d..78faf7c0c4ef 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ListEnvironments/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ListEnvironments/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" "google.golang.org/api/iterator" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := ¬ebookspb.ListEnvironmentsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#ListEnvironmentsRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#ListEnvironmentsRequest. } it := c.ListEnvironments(ctx, req) for { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ListInstances/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ListInstances/main.go index 29ef6338379c..d3e3a584edc3 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ListInstances/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ListInstances/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" "google.golang.org/api/iterator" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := ¬ebookspb.ListInstancesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#ListInstancesRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#ListInstancesRequest. } it := c.ListInstances(ctx, req) for { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ListLocations/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ListLocations/main.go new file mode 100644 index 000000000000..35d5605ed970 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1beta1_generated_NotebookService_ListLocations_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1beta1" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END notebooks_v1beta1_generated_NotebookService_ListLocations_sync] diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ListOperations/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ListOperations/main.go new file mode 100644 index 000000000000..59aec376c882 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1beta1_generated_NotebookService_ListOperations_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1beta1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END notebooks_v1beta1_generated_NotebookService_ListOperations_sync] diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/RegisterInstance/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/RegisterInstance/main.go index 824869d03030..1712290092bb 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/RegisterInstance/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/RegisterInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := ¬ebookspb.RegisterInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#RegisterInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#RegisterInstanceRequest. } op, err := c.RegisterInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ReportInstanceInfo/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ReportInstanceInfo/main.go index dea93abfcb0b..6a78ac91eaad 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ReportInstanceInfo/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ReportInstanceInfo/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := ¬ebookspb.ReportInstanceInfoRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#ReportInstanceInfoRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#ReportInstanceInfoRequest. } op, err := c.ReportInstanceInfo(ctx, req) if err != nil { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ResetInstance/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ResetInstance/main.go index 4a50743bcdf6..1e240ae6de5d 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ResetInstance/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/ResetInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := ¬ebookspb.ResetInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#ResetInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#ResetInstanceRequest. } op, err := c.ResetInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/SetIamPolicy/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/SetIamPolicy/main.go new file mode 100644 index 000000000000..355789317bb4 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/SetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1beta1_generated_NotebookService_SetIamPolicy_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1beta1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.SetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#SetIamPolicyRequest. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1beta1_generated_NotebookService_SetIamPolicy_sync] diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/SetInstanceAccelerator/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/SetInstanceAccelerator/main.go index 3fe7d85c0ec9..3b3b077efd76 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/SetInstanceAccelerator/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/SetInstanceAccelerator/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := ¬ebookspb.SetInstanceAcceleratorRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#SetInstanceAcceleratorRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#SetInstanceAcceleratorRequest. } op, err := c.SetInstanceAccelerator(ctx, req) if err != nil { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/SetInstanceLabels/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/SetInstanceLabels/main.go index 77e234c2724c..ac34b63a3049 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/SetInstanceLabels/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/SetInstanceLabels/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := ¬ebookspb.SetInstanceLabelsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#SetInstanceLabelsRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#SetInstanceLabelsRequest. } op, err := c.SetInstanceLabels(ctx, req) if err != nil { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/SetInstanceMachineType/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/SetInstanceMachineType/main.go index ed529ffa7354..e651d8cd1d22 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/SetInstanceMachineType/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/SetInstanceMachineType/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := ¬ebookspb.SetInstanceMachineTypeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#SetInstanceMachineTypeRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#SetInstanceMachineTypeRequest. } op, err := c.SetInstanceMachineType(ctx, req) if err != nil { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/StartInstance/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/StartInstance/main.go index 1793ef153ecc..f7137281f91d 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/StartInstance/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/StartInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := ¬ebookspb.StartInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#StartInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#StartInstanceRequest. } op, err := c.StartInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/StopInstance/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/StopInstance/main.go index 12630d9d32bf..845115ab1f10 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/StopInstance/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/StopInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := ¬ebookspb.StopInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#StopInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#StopInstanceRequest. } op, err := c.StopInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/TestIamPermissions/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/TestIamPermissions/main.go new file mode 100644 index 000000000000..ade7aebb8b09 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/TestIamPermissions/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START notebooks_v1beta1_generated_NotebookService_TestIamPermissions_sync] + +package main + +import ( + "context" + + notebooks "cloud.google.com/go/notebooks/apiv1beta1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := notebooks.NewNotebookClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.TestIamPermissionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#TestIamPermissionsRequest. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END notebooks_v1beta1_generated_NotebookService_TestIamPermissions_sync] diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/UpgradeInstance/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/UpgradeInstance/main.go index 142a5c58858f..f7a0c6be2086 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/UpgradeInstance/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/UpgradeInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := ¬ebookspb.UpgradeInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#UpgradeInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#UpgradeInstanceRequest. } op, err := c.UpgradeInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/UpgradeInstanceInternal/main.go b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/UpgradeInstanceInternal/main.go index 2cc02f0c584f..ed46fc5d857b 100644 --- a/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/UpgradeInstanceInternal/main.go +++ b/internal/generated/snippets/notebooks/apiv1beta1/NotebookClient/UpgradeInstanceInternal/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" notebooks "cloud.google.com/go/notebooks/apiv1beta1" - notebookspb "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1" + notebookspb "cloud.google.com/go/notebooks/apiv1beta1/notebookspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := notebooks.NewNotebookClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := ¬ebookspb.UpgradeInstanceInternalRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1#UpgradeInstanceInternalRequest. + // See https://pkg.go.dev/cloud.google.com/go/notebooks/apiv1beta1/notebookspb#UpgradeInstanceInternalRequest. } op, err := c.UpgradeInstanceInternal(ctx, req) if err != nil { diff --git a/internal/generated/snippets/notebooks/apiv1beta1/snippet_metadata.google.cloud.notebooks.v1beta1.json b/internal/generated/snippets/notebooks/apiv1beta1/snippet_metadata.google.cloud.notebooks.v1beta1.json new file mode 100644 index 000000000000..c3f841165c35 --- /dev/null +++ b/internal/generated/snippets/notebooks/apiv1beta1/snippet_metadata.google.cloud.notebooks.v1beta1.json @@ -0,0 +1,1301 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/notebooks/apiv1beta1", + "version": "1.7.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.notebooks.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_CancelOperation_sync", + "title": "notebooks CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "NotebookClient/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.CancelOperation", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_CreateEnvironment_sync", + "title": "notebooks CreateEnvironment Sample", + "description": "CreateEnvironment creates a new Environment.", + "file": "NotebookClient/CreateEnvironment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateEnvironment", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.CreateEnvironment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.CreateEnvironmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateEnvironmentOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "CreateEnvironment", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.CreateEnvironment", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_CreateInstance_sync", + "title": "notebooks CreateInstance Sample", + "description": "CreateInstance creates a new Instance in a given project and location.", + "file": "NotebookClient/CreateInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateInstance", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.CreateInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.CreateInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateInstanceOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.CreateInstance", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_DeleteEnvironment_sync", + "title": "notebooks DeleteEnvironment Sample", + "description": "DeleteEnvironment deletes a single Environment.", + "file": "NotebookClient/DeleteEnvironment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteEnvironment", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.DeleteEnvironment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.DeleteEnvironmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteEnvironmentOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "DeleteEnvironment", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.DeleteEnvironment", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_DeleteInstance_sync", + "title": "notebooks DeleteInstance Sample", + "description": "DeleteInstance deletes a single Instance.", + "file": "NotebookClient/DeleteInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.DeleteInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.DeleteInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteInstanceOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.DeleteInstance", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_DeleteOperation_sync", + "title": "notebooks DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "NotebookClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.DeleteOperation", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_GetEnvironment_sync", + "title": "notebooks GetEnvironment Sample", + "description": "GetEnvironment gets details of a single Environment.", + "file": "NotebookClient/GetEnvironment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetEnvironment", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.GetEnvironment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.GetEnvironmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "notebookspb.Environment", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "GetEnvironment", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.GetEnvironment", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_GetIamPolicy_sync", + "title": "notebooks GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "NotebookClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.GetIamPolicy", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_GetInstance_sync", + "title": "notebooks GetInstance Sample", + "description": "GetInstance gets details of a single Instance.", + "file": "NotebookClient/GetInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInstance", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.GetInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.GetInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "notebookspb.Instance", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.GetInstance", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_GetLocation_sync", + "title": "notebooks GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "NotebookClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.GetLocation", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_GetOperation_sync", + "title": "notebooks GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "NotebookClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.GetOperation", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_IsInstanceUpgradeable_sync", + "title": "notebooks IsInstanceUpgradeable Sample", + "description": "IsInstanceUpgradeable check if a notebook instance is upgradable.\nDeprecated. Please consider using v1.\n\nDeprecated: IsInstanceUpgradeable may be removed in a future version.", + "file": "NotebookClient/IsInstanceUpgradeable/main.go", + "language": "GO", + "clientMethod": { + "shortName": "IsInstanceUpgradeable", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.IsInstanceUpgradeable", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.IsInstanceUpgradeableRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "notebookspb.IsInstanceUpgradeableResponse", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "IsInstanceUpgradeable", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.IsInstanceUpgradeable", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_ListEnvironments_sync", + "title": "notebooks ListEnvironments Sample", + "description": "ListEnvironments lists environments in a project.", + "file": "NotebookClient/ListEnvironments/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListEnvironments", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.ListEnvironments", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.ListEnvironmentsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "EnvironmentIterator", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "ListEnvironments", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.ListEnvironments", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_ListInstances_sync", + "title": "notebooks ListInstances Sample", + "description": "ListInstances lists instances in a given project and location.", + "file": "NotebookClient/ListInstances/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListInstances", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.ListInstances", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.ListInstancesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "InstanceIterator", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.ListInstances", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_ListLocations_sync", + "title": "notebooks ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "NotebookClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.ListLocations", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_ListOperations_sync", + "title": "notebooks ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "NotebookClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.ListOperations", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_RegisterInstance_sync", + "title": "notebooks RegisterInstance Sample", + "description": "RegisterInstance registers an existing legacy notebook instance to the Notebooks API server.\nLegacy instances are instances created with the legacy Compute Engine\ncalls. They are not manageable by the Notebooks API out of the box. This\ncall makes these instances manageable by the Notebooks API.", + "file": "NotebookClient/RegisterInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RegisterInstance", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.RegisterInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.RegisterInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RegisterInstanceOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "RegisterInstance", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.RegisterInstance", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_ReportInstanceInfo_sync", + "title": "notebooks ReportInstanceInfo Sample", + "description": "ReportInstanceInfo allows notebook instances to\nreport their latest instance information to the Notebooks\nAPI server. The server will merge the reported information to\nthe instance metadata store. Do not use this method directly.", + "file": "NotebookClient/ReportInstanceInfo/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReportInstanceInfo", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.ReportInstanceInfo", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.ReportInstanceInfoRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ReportInstanceInfoOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "ReportInstanceInfo", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.ReportInstanceInfo", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_ResetInstance_sync", + "title": "notebooks ResetInstance Sample", + "description": "ResetInstance resets a notebook instance.", + "file": "NotebookClient/ResetInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResetInstance", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.ResetInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.ResetInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ResetInstanceOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "ResetInstance", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.ResetInstance", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_SetIamPolicy_sync", + "title": "notebooks SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "NotebookClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.SetIamPolicy", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_SetInstanceAccelerator_sync", + "title": "notebooks SetInstanceAccelerator Sample", + "description": "SetInstanceAccelerator updates the guest accelerators of a single Instance.", + "file": "NotebookClient/SetInstanceAccelerator/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetInstanceAccelerator", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.SetInstanceAccelerator", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.SetInstanceAcceleratorRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SetInstanceAcceleratorOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "SetInstanceAccelerator", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.SetInstanceAccelerator", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_SetInstanceLabels_sync", + "title": "notebooks SetInstanceLabels Sample", + "description": "SetInstanceLabels updates the labels of an Instance.", + "file": "NotebookClient/SetInstanceLabels/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetInstanceLabels", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.SetInstanceLabels", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.SetInstanceLabelsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SetInstanceLabelsOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "SetInstanceLabels", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.SetInstanceLabels", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_SetInstanceMachineType_sync", + "title": "notebooks SetInstanceMachineType Sample", + "description": "SetInstanceMachineType updates the machine type of a single Instance.", + "file": "NotebookClient/SetInstanceMachineType/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetInstanceMachineType", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.SetInstanceMachineType", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.SetInstanceMachineTypeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SetInstanceMachineTypeOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "SetInstanceMachineType", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.SetInstanceMachineType", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_StartInstance_sync", + "title": "notebooks StartInstance Sample", + "description": "StartInstance starts a notebook instance.", + "file": "NotebookClient/StartInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StartInstance", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.StartInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.StartInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "StartInstanceOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "StartInstance", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.StartInstance", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_StopInstance_sync", + "title": "notebooks StopInstance Sample", + "description": "StopInstance stops a notebook instance.", + "file": "NotebookClient/StopInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StopInstance", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.StopInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.StopInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "StopInstanceOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "StopInstance", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.StopInstance", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_TestIamPermissions_sync", + "title": "notebooks TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "NotebookClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.TestIamPermissions", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_UpgradeInstance_sync", + "title": "notebooks UpgradeInstance Sample", + "description": "UpgradeInstance upgrades a notebook instance to the latest version.\nDeprecated. Please consider using v1.\n\nDeprecated: UpgradeInstance may be removed in a future version.", + "file": "NotebookClient/UpgradeInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpgradeInstance", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.UpgradeInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.UpgradeInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpgradeInstanceOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "UpgradeInstance", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.UpgradeInstance", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "notebooks_v1beta1_generated_NotebookService_UpgradeInstanceInternal_sync", + "title": "notebooks UpgradeInstanceInternal Sample", + "description": "UpgradeInstanceInternal allows notebook instances to\ncall this endpoint to upgrade themselves. Do not use this method directly.\nDeprecated. Please consider using v1.\n\nDeprecated: UpgradeInstanceInternal may be removed in a future version.", + "file": "NotebookClient/UpgradeInstanceInternal/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpgradeInstanceInternal", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient.UpgradeInstanceInternal", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "notebookspb.UpgradeInstanceInternalRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpgradeInstanceInternalOperation", + "client": { + "shortName": "NotebookClient", + "fullName": "google.cloud.notebooks.v1beta1.NotebookClient" + }, + "method": { + "shortName": "UpgradeInstanceInternal", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService.UpgradeInstanceInternal", + "service": { + "shortName": "NotebookService", + "fullName": "google.cloud.notebooks.v1beta1.NotebookService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/optimization/apiv1/FleetRoutingClient/BatchOptimizeTours/main.go b/internal/generated/snippets/optimization/apiv1/FleetRoutingClient/BatchOptimizeTours/main.go index 7afdc0622a45..650a08bc56a0 100644 --- a/internal/generated/snippets/optimization/apiv1/FleetRoutingClient/BatchOptimizeTours/main.go +++ b/internal/generated/snippets/optimization/apiv1/FleetRoutingClient/BatchOptimizeTours/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" optimization "cloud.google.com/go/optimization/apiv1" - optimizationpb "google.golang.org/genproto/googleapis/cloud/optimization/v1" + optimizationpb "cloud.google.com/go/optimization/apiv1/optimizationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := optimization.NewFleetRoutingClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &optimizationpb.BatchOptimizeToursRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/optimization/v1#BatchOptimizeToursRequest. + // See https://pkg.go.dev/cloud.google.com/go/optimization/apiv1/optimizationpb#BatchOptimizeToursRequest. } op, err := c.BatchOptimizeTours(ctx, req) if err != nil { diff --git a/internal/generated/snippets/optimization/apiv1/FleetRoutingClient/OptimizeTours/main.go b/internal/generated/snippets/optimization/apiv1/FleetRoutingClient/OptimizeTours/main.go index 0181a539c723..e74f0fb64eec 100644 --- a/internal/generated/snippets/optimization/apiv1/FleetRoutingClient/OptimizeTours/main.go +++ b/internal/generated/snippets/optimization/apiv1/FleetRoutingClient/OptimizeTours/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" optimization "cloud.google.com/go/optimization/apiv1" - optimizationpb "google.golang.org/genproto/googleapis/cloud/optimization/v1" + optimizationpb "cloud.google.com/go/optimization/apiv1/optimizationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := optimization.NewFleetRoutingClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &optimizationpb.OptimizeToursRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/optimization/v1#OptimizeToursRequest. + // See https://pkg.go.dev/cloud.google.com/go/optimization/apiv1/optimizationpb#OptimizeToursRequest. } resp, err := c.OptimizeTours(ctx, req) if err != nil { diff --git a/internal/generated/snippets/optimization/apiv1/snippet_metadata.google.cloud.optimization.v1.json b/internal/generated/snippets/optimization/apiv1/snippet_metadata.google.cloud.optimization.v1.json new file mode 100644 index 000000000000..881c38f70990 --- /dev/null +++ b/internal/generated/snippets/optimization/apiv1/snippet_metadata.google.cloud.optimization.v1.json @@ -0,0 +1,107 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/optimization/apiv1", + "version": "1.3.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.optimization.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "cloudoptimization_v1_generated_FleetRouting_BatchOptimizeTours_sync", + "title": "cloudoptimization BatchOptimizeTours Sample", + "description": "BatchOptimizeTours optimizes vehicle tours for one or more OptimizeToursRequest\nmessages as a batch.\n\nThis method is a Long Running Operation (LRO). The inputs for optimization\n(OptimizeToursRequest messages) and outputs (OptimizeToursResponse\nmessages) are read/written from/to Cloud Storage in user-specified\nformat. Like the OptimizeTours method, each OptimizeToursRequest\ncontains a ShipmentModel and returns an OptimizeToursResponse\ncontaining ShipmentRoutes, which are a set of routes to be performed by\nvehicles minimizing the overall cost.", + "file": "FleetRoutingClient/BatchOptimizeTours/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchOptimizeTours", + "fullName": "google.cloud.optimization.v1.FleetRoutingClient.BatchOptimizeTours", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "optimizationpb.BatchOptimizeToursRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "BatchOptimizeToursOperation", + "client": { + "shortName": "FleetRoutingClient", + "fullName": "google.cloud.optimization.v1.FleetRoutingClient" + }, + "method": { + "shortName": "BatchOptimizeTours", + "fullName": "google.cloud.optimization.v1.FleetRouting.BatchOptimizeTours", + "service": { + "shortName": "FleetRouting", + "fullName": "google.cloud.optimization.v1.FleetRouting" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudoptimization_v1_generated_FleetRouting_OptimizeTours_sync", + "title": "cloudoptimization OptimizeTours Sample", + "description": "OptimizeTours sends an OptimizeToursRequest containing a ShipmentModel and returns an\nOptimizeToursResponse containing ShipmentRoutes, which are a set of\nroutes to be performed by vehicles minimizing the overall cost.\n\nA ShipmentModel model consists mainly of Shipments that need to be\ncarried out and Vehicles that can be used to transport the Shipments.\nThe ShipmentRoutes assign Shipments to Vehicles. More specifically,\nthey assign a series of Visits to each vehicle, where a Visit\ncorresponds to a VisitRequest, which is a pickup or delivery for a\nShipment.\n\nThe goal is to provide an assignment of ShipmentRoutes to Vehicles that\nminimizes the total cost where cost has many components defined in the\nShipmentModel.", + "file": "FleetRoutingClient/OptimizeTours/main.go", + "language": "GO", + "clientMethod": { + "shortName": "OptimizeTours", + "fullName": "google.cloud.optimization.v1.FleetRoutingClient.OptimizeTours", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "optimizationpb.OptimizeToursRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "optimizationpb.OptimizeToursResponse", + "client": { + "shortName": "FleetRoutingClient", + "fullName": "google.cloud.optimization.v1.FleetRoutingClient" + }, + "method": { + "shortName": "OptimizeTours", + "fullName": "google.cloud.optimization.v1.FleetRouting.OptimizeTours", + "service": { + "shortName": "FleetRouting", + "fullName": "google.cloud.optimization.v1.FleetRouting" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/CreateEnvironment/main.go b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/CreateEnvironment/main.go index dc0fe9537ec7..c08b151cf0f5 100644 --- a/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/CreateEnvironment/main.go +++ b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/CreateEnvironment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" service "cloud.google.com/go/orchestration/airflow/service/apiv1" - servicepb "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1" + servicepb "cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := service.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicepb.CreateEnvironmentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1#CreateEnvironmentRequest. + // See https://pkg.go.dev/cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb#CreateEnvironmentRequest. } op, err := c.CreateEnvironment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/DeleteEnvironment/main.go b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/DeleteEnvironment/main.go index bdea7bba568a..e1e215da2d5b 100644 --- a/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/DeleteEnvironment/main.go +++ b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/DeleteEnvironment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" service "cloud.google.com/go/orchestration/airflow/service/apiv1" - servicepb "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1" + servicepb "cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := service.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicepb.DeleteEnvironmentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1#DeleteEnvironmentRequest. + // See https://pkg.go.dev/cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb#DeleteEnvironmentRequest. } op, err := c.DeleteEnvironment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/DeleteOperation/main.go b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/DeleteOperation/main.go new file mode 100644 index 000000000000..c69e876c39e6 --- /dev/null +++ b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START composer_v1_generated_Environments_DeleteOperation_sync] + +package main + +import ( + "context" + + service "cloud.google.com/go/orchestration/airflow/service/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := service.NewEnvironmentsClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END composer_v1_generated_Environments_DeleteOperation_sync] diff --git a/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/GetEnvironment/main.go b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/GetEnvironment/main.go index ad09b1d99b5c..76fd9b3e4d13 100644 --- a/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/GetEnvironment/main.go +++ b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/GetEnvironment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" service "cloud.google.com/go/orchestration/airflow/service/apiv1" - servicepb "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1" + servicepb "cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := service.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicepb.GetEnvironmentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1#GetEnvironmentRequest. + // See https://pkg.go.dev/cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb#GetEnvironmentRequest. } resp, err := c.GetEnvironment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/GetOperation/main.go b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/GetOperation/main.go new file mode 100644 index 000000000000..15e501204631 --- /dev/null +++ b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START composer_v1_generated_Environments_GetOperation_sync] + +package main + +import ( + "context" + + service "cloud.google.com/go/orchestration/airflow/service/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := service.NewEnvironmentsClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END composer_v1_generated_Environments_GetOperation_sync] diff --git a/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/ListEnvironments/main.go b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/ListEnvironments/main.go index 03e247feabc5..0715c0a73b27 100644 --- a/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/ListEnvironments/main.go +++ b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/ListEnvironments/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" service "cloud.google.com/go/orchestration/airflow/service/apiv1" + servicepb "cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb" "google.golang.org/api/iterator" - servicepb "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := service.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &servicepb.ListEnvironmentsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1#ListEnvironmentsRequest. + // See https://pkg.go.dev/cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb#ListEnvironmentsRequest. } it := c.ListEnvironments(ctx, req) for { diff --git a/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/ListOperations/main.go b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/ListOperations/main.go new file mode 100644 index 000000000000..1fdfdcb4585c --- /dev/null +++ b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START composer_v1_generated_Environments_ListOperations_sync] + +package main + +import ( + "context" + + service "cloud.google.com/go/orchestration/airflow/service/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := service.NewEnvironmentsClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END composer_v1_generated_Environments_ListOperations_sync] diff --git a/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/LoadSnapshot/main.go b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/LoadSnapshot/main.go new file mode 100644 index 000000000000..b28dd54d848c --- /dev/null +++ b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/LoadSnapshot/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START composer_v1_generated_Environments_LoadSnapshot_sync] + +package main + +import ( + "context" + + service "cloud.google.com/go/orchestration/airflow/service/apiv1" + servicepb "cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := service.NewEnvironmentsClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &servicepb.LoadSnapshotRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb#LoadSnapshotRequest. + } + op, err := c.LoadSnapshot(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END composer_v1_generated_Environments_LoadSnapshot_sync] diff --git a/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/SaveSnapshot/main.go b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/SaveSnapshot/main.go new file mode 100644 index 000000000000..eab67b50f77e --- /dev/null +++ b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/SaveSnapshot/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START composer_v1_generated_Environments_SaveSnapshot_sync] + +package main + +import ( + "context" + + service "cloud.google.com/go/orchestration/airflow/service/apiv1" + servicepb "cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := service.NewEnvironmentsClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &servicepb.SaveSnapshotRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb#SaveSnapshotRequest. + } + op, err := c.SaveSnapshot(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END composer_v1_generated_Environments_SaveSnapshot_sync] diff --git a/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/UpdateEnvironment/main.go b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/UpdateEnvironment/main.go index fa074b9d05c9..e63fe6088080 100644 --- a/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/UpdateEnvironment/main.go +++ b/internal/generated/snippets/orchestration/airflow/service/apiv1/EnvironmentsClient/UpdateEnvironment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" service "cloud.google.com/go/orchestration/airflow/service/apiv1" - servicepb "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1" + servicepb "cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := service.NewEnvironmentsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicepb.UpdateEnvironmentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1#UpdateEnvironmentRequest. + // See https://pkg.go.dev/cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb#UpdateEnvironmentRequest. } op, err := c.UpdateEnvironment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/orchestration/airflow/service/apiv1/ImageVersionsClient/DeleteOperation/main.go b/internal/generated/snippets/orchestration/airflow/service/apiv1/ImageVersionsClient/DeleteOperation/main.go new file mode 100644 index 000000000000..b48bf3b1a656 --- /dev/null +++ b/internal/generated/snippets/orchestration/airflow/service/apiv1/ImageVersionsClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START composer_v1_generated_ImageVersions_DeleteOperation_sync] + +package main + +import ( + "context" + + service "cloud.google.com/go/orchestration/airflow/service/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := service.NewImageVersionsClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END composer_v1_generated_ImageVersions_DeleteOperation_sync] diff --git a/internal/generated/snippets/orchestration/airflow/service/apiv1/ImageVersionsClient/GetOperation/main.go b/internal/generated/snippets/orchestration/airflow/service/apiv1/ImageVersionsClient/GetOperation/main.go new file mode 100644 index 000000000000..7e4f48bcb8ea --- /dev/null +++ b/internal/generated/snippets/orchestration/airflow/service/apiv1/ImageVersionsClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START composer_v1_generated_ImageVersions_GetOperation_sync] + +package main + +import ( + "context" + + service "cloud.google.com/go/orchestration/airflow/service/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := service.NewImageVersionsClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END composer_v1_generated_ImageVersions_GetOperation_sync] diff --git a/internal/generated/snippets/orchestration/airflow/service/apiv1/ImageVersionsClient/ListImageVersions/main.go b/internal/generated/snippets/orchestration/airflow/service/apiv1/ImageVersionsClient/ListImageVersions/main.go index 5e659a1c4d8a..c2265965771c 100644 --- a/internal/generated/snippets/orchestration/airflow/service/apiv1/ImageVersionsClient/ListImageVersions/main.go +++ b/internal/generated/snippets/orchestration/airflow/service/apiv1/ImageVersionsClient/ListImageVersions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" service "cloud.google.com/go/orchestration/airflow/service/apiv1" + servicepb "cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb" "google.golang.org/api/iterator" - servicepb "google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := service.NewImageVersionsClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &servicepb.ListImageVersionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/orchestration/airflow/service/v1#ListImageVersionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/orchestration/airflow/service/apiv1/servicepb#ListImageVersionsRequest. } it := c.ListImageVersions(ctx, req) for { diff --git a/internal/generated/snippets/orchestration/airflow/service/apiv1/ImageVersionsClient/ListOperations/main.go b/internal/generated/snippets/orchestration/airflow/service/apiv1/ImageVersionsClient/ListOperations/main.go new file mode 100644 index 000000000000..2d0788ae050a --- /dev/null +++ b/internal/generated/snippets/orchestration/airflow/service/apiv1/ImageVersionsClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START composer_v1_generated_ImageVersions_ListOperations_sync] + +package main + +import ( + "context" + + service "cloud.google.com/go/orchestration/airflow/service/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := service.NewImageVersionsClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END composer_v1_generated_ImageVersions_ListOperations_sync] diff --git a/internal/generated/snippets/orchestration/airflow/service/apiv1/snippet_metadata.google.cloud.orchestration.airflow.service.v1.json b/internal/generated/snippets/orchestration/airflow/service/apiv1/snippet_metadata.google.cloud.orchestration.airflow.service.v1.json new file mode 100644 index 000000000000..8f9a190913eb --- /dev/null +++ b/internal/generated/snippets/orchestration/airflow/service/apiv1/snippet_metadata.google.cloud.orchestration.airflow.service.v1.json @@ -0,0 +1,657 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/orchestration/airflow/service/apiv1", + "version": "1.6.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.orchestration.airflow.service.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "composer_v1_generated_Environments_CreateEnvironment_sync", + "title": "composer CreateEnvironment Sample", + "description": "CreateEnvironment create a new environment.", + "file": "EnvironmentsClient/CreateEnvironment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateEnvironment", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient.CreateEnvironment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicepb.CreateEnvironmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateEnvironmentOperation", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "CreateEnvironment", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.CreateEnvironment", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "composer_v1_generated_Environments_DeleteEnvironment_sync", + "title": "composer DeleteEnvironment Sample", + "description": "DeleteEnvironment delete an environment.", + "file": "EnvironmentsClient/DeleteEnvironment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteEnvironment", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient.DeleteEnvironment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicepb.DeleteEnvironmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteEnvironmentOperation", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "DeleteEnvironment", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.DeleteEnvironment", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "composer_v1_generated_Environments_DeleteOperation_sync", + "title": "composer DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "EnvironmentsClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.DeleteOperation", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "composer_v1_generated_Environments_GetEnvironment_sync", + "title": "composer GetEnvironment Sample", + "description": "GetEnvironment get an existing environment.", + "file": "EnvironmentsClient/GetEnvironment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetEnvironment", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient.GetEnvironment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicepb.GetEnvironmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicepb.Environment", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "GetEnvironment", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.GetEnvironment", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "composer_v1_generated_Environments_GetOperation_sync", + "title": "composer GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "EnvironmentsClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.GetOperation", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "composer_v1_generated_Environments_ListEnvironments_sync", + "title": "composer ListEnvironments Sample", + "description": "ListEnvironments list environments.", + "file": "EnvironmentsClient/ListEnvironments/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListEnvironments", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient.ListEnvironments", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicepb.ListEnvironmentsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "EnvironmentIterator", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "ListEnvironments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.ListEnvironments", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "composer_v1_generated_Environments_ListOperations_sync", + "title": "composer ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "EnvironmentsClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.ListOperations", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "composer_v1_generated_Environments_LoadSnapshot_sync", + "title": "composer LoadSnapshot Sample", + "description": "LoadSnapshot loads a snapshot of a Cloud Composer environment.\n\nAs a result of this operation, a snapshot of environment’s specified in\nLoadSnapshotRequest is loaded into the environment.", + "file": "EnvironmentsClient/LoadSnapshot/main.go", + "language": "GO", + "clientMethod": { + "shortName": "LoadSnapshot", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient.LoadSnapshot", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicepb.LoadSnapshotRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LoadSnapshotOperation", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "LoadSnapshot", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.LoadSnapshot", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "composer_v1_generated_Environments_SaveSnapshot_sync", + "title": "composer SaveSnapshot Sample", + "description": "SaveSnapshot creates a snapshots of a Cloud Composer environment.\n\nAs a result of this operation, snapshot of environment’s state is stored\nin a location specified in the SaveSnapshotRequest.", + "file": "EnvironmentsClient/SaveSnapshot/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SaveSnapshot", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient.SaveSnapshot", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicepb.SaveSnapshotRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SaveSnapshotOperation", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "SaveSnapshot", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.SaveSnapshot", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "composer_v1_generated_Environments_UpdateEnvironment_sync", + "title": "composer UpdateEnvironment Sample", + "description": "UpdateEnvironment update an environment.", + "file": "EnvironmentsClient/UpdateEnvironment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateEnvironment", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient.UpdateEnvironment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicepb.UpdateEnvironmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateEnvironmentOperation", + "client": { + "shortName": "EnvironmentsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" + }, + "method": { + "shortName": "UpdateEnvironment", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.UpdateEnvironment", + "service": { + "shortName": "Environments", + "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "composer_v1_generated_ImageVersions_DeleteOperation_sync", + "title": "composer DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "ImageVersionsClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersionsClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ImageVersionsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersionsClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersions.DeleteOperation", + "service": { + "shortName": "ImageVersions", + "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersions" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "composer_v1_generated_ImageVersions_GetOperation_sync", + "title": "composer GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "ImageVersionsClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersionsClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "ImageVersionsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersionsClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersions.GetOperation", + "service": { + "shortName": "ImageVersions", + "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersions" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "composer_v1_generated_ImageVersions_ListImageVersions_sync", + "title": "composer ListImageVersions Sample", + "description": "ListImageVersions list ImageVersions for provided location.", + "file": "ImageVersionsClient/ListImageVersions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListImageVersions", + "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersionsClient.ListImageVersions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicepb.ListImageVersionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ImageVersionIterator", + "client": { + "shortName": "ImageVersionsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersionsClient" + }, + "method": { + "shortName": "ListImageVersions", + "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersions.ListImageVersions", + "service": { + "shortName": "ImageVersions", + "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersions" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "composer_v1_generated_ImageVersions_ListOperations_sync", + "title": "composer ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "ImageVersionsClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersionsClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "ImageVersionsClient", + "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersionsClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersions.ListOperations", + "service": { + "shortName": "ImageVersions", + "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersions" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/orgpolicy/apiv2/Client/CreatePolicy/main.go b/internal/generated/snippets/orgpolicy/apiv2/Client/CreatePolicy/main.go index 20bd319cb110..f8d9a14221aa 100644 --- a/internal/generated/snippets/orgpolicy/apiv2/Client/CreatePolicy/main.go +++ b/internal/generated/snippets/orgpolicy/apiv2/Client/CreatePolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" orgpolicy "cloud.google.com/go/orgpolicy/apiv2" - orgpolicypb "google.golang.org/genproto/googleapis/cloud/orgpolicy/v2" + orgpolicypb "cloud.google.com/go/orgpolicy/apiv2/orgpolicypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := orgpolicy.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &orgpolicypb.CreatePolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/orgpolicy/v2#CreatePolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/orgpolicy/apiv2/orgpolicypb#CreatePolicyRequest. } resp, err := c.CreatePolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/orgpolicy/apiv2/Client/DeletePolicy/main.go b/internal/generated/snippets/orgpolicy/apiv2/Client/DeletePolicy/main.go index 391d650be6f7..396ebd5e2881 100644 --- a/internal/generated/snippets/orgpolicy/apiv2/Client/DeletePolicy/main.go +++ b/internal/generated/snippets/orgpolicy/apiv2/Client/DeletePolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" orgpolicy "cloud.google.com/go/orgpolicy/apiv2" - orgpolicypb "google.golang.org/genproto/googleapis/cloud/orgpolicy/v2" + orgpolicypb "cloud.google.com/go/orgpolicy/apiv2/orgpolicypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := orgpolicy.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &orgpolicypb.DeletePolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/orgpolicy/v2#DeletePolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/orgpolicy/apiv2/orgpolicypb#DeletePolicyRequest. } err = c.DeletePolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/orgpolicy/apiv2/Client/GetEffectivePolicy/main.go b/internal/generated/snippets/orgpolicy/apiv2/Client/GetEffectivePolicy/main.go index 7a2918f78c5c..cf5570c4cdb9 100644 --- a/internal/generated/snippets/orgpolicy/apiv2/Client/GetEffectivePolicy/main.go +++ b/internal/generated/snippets/orgpolicy/apiv2/Client/GetEffectivePolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" orgpolicy "cloud.google.com/go/orgpolicy/apiv2" - orgpolicypb "google.golang.org/genproto/googleapis/cloud/orgpolicy/v2" + orgpolicypb "cloud.google.com/go/orgpolicy/apiv2/orgpolicypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := orgpolicy.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &orgpolicypb.GetEffectivePolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/orgpolicy/v2#GetEffectivePolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/orgpolicy/apiv2/orgpolicypb#GetEffectivePolicyRequest. } resp, err := c.GetEffectivePolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/orgpolicy/apiv2/Client/GetPolicy/main.go b/internal/generated/snippets/orgpolicy/apiv2/Client/GetPolicy/main.go index 2957faab1b55..7c794845669b 100644 --- a/internal/generated/snippets/orgpolicy/apiv2/Client/GetPolicy/main.go +++ b/internal/generated/snippets/orgpolicy/apiv2/Client/GetPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" orgpolicy "cloud.google.com/go/orgpolicy/apiv2" - orgpolicypb "google.golang.org/genproto/googleapis/cloud/orgpolicy/v2" + orgpolicypb "cloud.google.com/go/orgpolicy/apiv2/orgpolicypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := orgpolicy.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &orgpolicypb.GetPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/orgpolicy/v2#GetPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/orgpolicy/apiv2/orgpolicypb#GetPolicyRequest. } resp, err := c.GetPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/orgpolicy/apiv2/Client/ListConstraints/main.go b/internal/generated/snippets/orgpolicy/apiv2/Client/ListConstraints/main.go index eefbac8fe6e4..8c00e5d3eb75 100644 --- a/internal/generated/snippets/orgpolicy/apiv2/Client/ListConstraints/main.go +++ b/internal/generated/snippets/orgpolicy/apiv2/Client/ListConstraints/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" orgpolicy "cloud.google.com/go/orgpolicy/apiv2" + orgpolicypb "cloud.google.com/go/orgpolicy/apiv2/orgpolicypb" "google.golang.org/api/iterator" - orgpolicypb "google.golang.org/genproto/googleapis/cloud/orgpolicy/v2" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := orgpolicy.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &orgpolicypb.ListConstraintsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/orgpolicy/v2#ListConstraintsRequest. + // See https://pkg.go.dev/cloud.google.com/go/orgpolicy/apiv2/orgpolicypb#ListConstraintsRequest. } it := c.ListConstraints(ctx, req) for { diff --git a/internal/generated/snippets/orgpolicy/apiv2/Client/ListPolicies/main.go b/internal/generated/snippets/orgpolicy/apiv2/Client/ListPolicies/main.go index 2cae80243e83..8d1f2ae607fc 100644 --- a/internal/generated/snippets/orgpolicy/apiv2/Client/ListPolicies/main.go +++ b/internal/generated/snippets/orgpolicy/apiv2/Client/ListPolicies/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" orgpolicy "cloud.google.com/go/orgpolicy/apiv2" + orgpolicypb "cloud.google.com/go/orgpolicy/apiv2/orgpolicypb" "google.golang.org/api/iterator" - orgpolicypb "google.golang.org/genproto/googleapis/cloud/orgpolicy/v2" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := orgpolicy.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &orgpolicypb.ListPoliciesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/orgpolicy/v2#ListPoliciesRequest. + // See https://pkg.go.dev/cloud.google.com/go/orgpolicy/apiv2/orgpolicypb#ListPoliciesRequest. } it := c.ListPolicies(ctx, req) for { diff --git a/internal/generated/snippets/orgpolicy/apiv2/Client/UpdatePolicy/main.go b/internal/generated/snippets/orgpolicy/apiv2/Client/UpdatePolicy/main.go index 885833a30aa2..113c7affa19a 100644 --- a/internal/generated/snippets/orgpolicy/apiv2/Client/UpdatePolicy/main.go +++ b/internal/generated/snippets/orgpolicy/apiv2/Client/UpdatePolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" orgpolicy "cloud.google.com/go/orgpolicy/apiv2" - orgpolicypb "google.golang.org/genproto/googleapis/cloud/orgpolicy/v2" + orgpolicypb "cloud.google.com/go/orgpolicy/apiv2/orgpolicypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := orgpolicy.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &orgpolicypb.UpdatePolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/orgpolicy/v2#UpdatePolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/orgpolicy/apiv2/orgpolicypb#UpdatePolicyRequest. } resp, err := c.UpdatePolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/orgpolicy/apiv2/snippet_metadata.google.cloud.orgpolicy.v2.json b/internal/generated/snippets/orgpolicy/apiv2/snippet_metadata.google.cloud.orgpolicy.v2.json new file mode 100644 index 000000000000..e741e465e5db --- /dev/null +++ b/internal/generated/snippets/orgpolicy/apiv2/snippet_metadata.google.cloud.orgpolicy.v2.json @@ -0,0 +1,336 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/orgpolicy/apiv2", + "version": "1.6.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.orgpolicy.v2", + "version": "v2" + } + ] + }, + "snippets": [ + { + "regionTag": "orgpolicy_v2_generated_OrgPolicy_CreatePolicy_sync", + "title": "orgpolicy CreatePolicy Sample", + "description": "CreatePolicy creates a Policy.\n\nReturns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the\nconstraint does not exist.\nReturns a google.rpc.Status with google.rpc.Code.ALREADY_EXISTS if the\npolicy already exists on the given Cloud resource.", + "file": "Client/CreatePolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreatePolicy", + "fullName": "google.cloud.orgpolicy.v2.Client.CreatePolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "orgpolicypb.CreatePolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "orgpolicypb.Policy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.orgpolicy.v2.Client" + }, + "method": { + "shortName": "CreatePolicy", + "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.CreatePolicy", + "service": { + "shortName": "OrgPolicy", + "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "orgpolicy_v2_generated_OrgPolicy_DeletePolicy_sync", + "title": "orgpolicy DeletePolicy Sample", + "description": "DeletePolicy deletes a Policy.\n\nReturns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the\nconstraint or Org Policy does not exist.", + "file": "Client/DeletePolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeletePolicy", + "fullName": "google.cloud.orgpolicy.v2.Client.DeletePolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "orgpolicypb.DeletePolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.orgpolicy.v2.Client" + }, + "method": { + "shortName": "DeletePolicy", + "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.DeletePolicy", + "service": { + "shortName": "OrgPolicy", + "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "orgpolicy_v2_generated_OrgPolicy_GetEffectivePolicy_sync", + "title": "orgpolicy GetEffectivePolicy Sample", + "description": "GetEffectivePolicy gets the effective Policy on a resource. This is the result of merging\nPolicies in the resource hierarchy and evaluating conditions. The\nreturned Policy will not have an etag or condition set because it is\na computed Policy across multiple resources.\nSubtrees of Resource Manager resource hierarchy with ‘under: ’ prefix will\nnot be expanded.", + "file": "Client/GetEffectivePolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetEffectivePolicy", + "fullName": "google.cloud.orgpolicy.v2.Client.GetEffectivePolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "orgpolicypb.GetEffectivePolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "orgpolicypb.Policy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.orgpolicy.v2.Client" + }, + "method": { + "shortName": "GetEffectivePolicy", + "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.GetEffectivePolicy", + "service": { + "shortName": "OrgPolicy", + "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "orgpolicy_v2_generated_OrgPolicy_GetPolicy_sync", + "title": "orgpolicy GetPolicy Sample", + "description": "GetPolicy gets a Policy on a resource.\n\nIf no Policy is set on the resource, NOT_FOUND is returned. The\netag value can be used with UpdatePolicy() to update a\nPolicy during read-modify-write.", + "file": "Client/GetPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetPolicy", + "fullName": "google.cloud.orgpolicy.v2.Client.GetPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "orgpolicypb.GetPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "orgpolicypb.Policy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.orgpolicy.v2.Client" + }, + "method": { + "shortName": "GetPolicy", + "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.GetPolicy", + "service": { + "shortName": "OrgPolicy", + "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "orgpolicy_v2_generated_OrgPolicy_ListConstraints_sync", + "title": "orgpolicy ListConstraints Sample", + "description": "ListConstraints lists Constraints that could be applied on the specified resource.", + "file": "Client/ListConstraints/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListConstraints", + "fullName": "google.cloud.orgpolicy.v2.Client.ListConstraints", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "orgpolicypb.ListConstraintsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ConstraintIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.orgpolicy.v2.Client" + }, + "method": { + "shortName": "ListConstraints", + "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints", + "service": { + "shortName": "OrgPolicy", + "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "orgpolicy_v2_generated_OrgPolicy_ListPolicies_sync", + "title": "orgpolicy ListPolicies Sample", + "description": "ListPolicies retrieves all of the Policies that exist on a particular resource.", + "file": "Client/ListPolicies/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListPolicies", + "fullName": "google.cloud.orgpolicy.v2.Client.ListPolicies", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "orgpolicypb.ListPoliciesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PolicyIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.orgpolicy.v2.Client" + }, + "method": { + "shortName": "ListPolicies", + "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies", + "service": { + "shortName": "OrgPolicy", + "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "orgpolicy_v2_generated_OrgPolicy_UpdatePolicy_sync", + "title": "orgpolicy UpdatePolicy Sample", + "description": "UpdatePolicy updates a Policy.\n\nReturns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the\nconstraint or the policy do not exist.\nReturns a google.rpc.Status with google.rpc.Code.ABORTED if the etag\nsupplied in the request does not match the persisted etag of the policy\n\nNote: the supplied policy will perform a full overwrite of all\nfields.", + "file": "Client/UpdatePolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdatePolicy", + "fullName": "google.cloud.orgpolicy.v2.Client.UpdatePolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "orgpolicypb.UpdatePolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "orgpolicypb.Policy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.orgpolicy.v2.Client" + }, + "method": { + "shortName": "UpdatePolicy", + "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy", + "service": { + "shortName": "OrgPolicy", + "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/RegisterAgent/main.go b/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/RegisterAgent/main.go index 327ae2e34862..0032df6e02c7 100644 --- a/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/RegisterAgent/main.go +++ b/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/RegisterAgent/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" agentendpoint "cloud.google.com/go/osconfig/agentendpoint/apiv1" - agentendpointpb "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1" + agentendpointpb "cloud.google.com/go/osconfig/agentendpoint/apiv1/agentendpointpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &agentendpointpb.RegisterAgentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1#RegisterAgentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/agentendpoint/apiv1/agentendpointpb#RegisterAgentRequest. } resp, err := c.RegisterAgent(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/ReportInventory/main.go b/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/ReportInventory/main.go index 975b353d081a..a0d526e5c886 100644 --- a/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/ReportInventory/main.go +++ b/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/ReportInventory/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" agentendpoint "cloud.google.com/go/osconfig/agentendpoint/apiv1" - agentendpointpb "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1" + agentendpointpb "cloud.google.com/go/osconfig/agentendpoint/apiv1/agentendpointpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &agentendpointpb.ReportInventoryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1#ReportInventoryRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/agentendpoint/apiv1/agentendpointpb#ReportInventoryRequest. } resp, err := c.ReportInventory(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/ReportTaskComplete/main.go b/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/ReportTaskComplete/main.go index e7e945dc11ce..9fdd75bae662 100644 --- a/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/ReportTaskComplete/main.go +++ b/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/ReportTaskComplete/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" agentendpoint "cloud.google.com/go/osconfig/agentendpoint/apiv1" - agentendpointpb "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1" + agentendpointpb "cloud.google.com/go/osconfig/agentendpoint/apiv1/agentendpointpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &agentendpointpb.ReportTaskCompleteRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1#ReportTaskCompleteRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/agentendpoint/apiv1/agentendpointpb#ReportTaskCompleteRequest. } resp, err := c.ReportTaskComplete(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/ReportTaskProgress/main.go b/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/ReportTaskProgress/main.go index d193a2398eca..834fa0f491ba 100644 --- a/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/ReportTaskProgress/main.go +++ b/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/ReportTaskProgress/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" agentendpoint "cloud.google.com/go/osconfig/agentendpoint/apiv1" - agentendpointpb "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1" + agentendpointpb "cloud.google.com/go/osconfig/agentendpoint/apiv1/agentendpointpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &agentendpointpb.ReportTaskProgressRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1#ReportTaskProgressRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/agentendpoint/apiv1/agentendpointpb#ReportTaskProgressRequest. } resp, err := c.ReportTaskProgress(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/StartNextTask/main.go b/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/StartNextTask/main.go index e6e085762b67..45bf03dae1c3 100644 --- a/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/StartNextTask/main.go +++ b/internal/generated/snippets/osconfig/agentendpoint/apiv1/Client/StartNextTask/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" agentendpoint "cloud.google.com/go/osconfig/agentendpoint/apiv1" - agentendpointpb "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1" + agentendpointpb "cloud.google.com/go/osconfig/agentendpoint/apiv1/agentendpointpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &agentendpointpb.StartNextTaskRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1#StartNextTaskRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/agentendpoint/apiv1/agentendpointpb#StartNextTaskRequest. } resp, err := c.StartNextTask(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/agentendpoint/apiv1/snippet_metadata.google.cloud.osconfig.agentendpoint.v1.json b/internal/generated/snippets/osconfig/agentendpoint/apiv1/snippet_metadata.google.cloud.osconfig.agentendpoint.v1.json new file mode 100644 index 000000000000..a4ddb9033c44 --- /dev/null +++ b/internal/generated/snippets/osconfig/agentendpoint/apiv1/snippet_metadata.google.cloud.osconfig.agentendpoint.v1.json @@ -0,0 +1,290 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/osconfig/agentendpoint/apiv1", + "version": "1.11.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.osconfig.agentendpoint.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "osconfig_v1_generated_AgentEndpointService_ReceiveTaskNotification_sync", + "title": "osconfig ReceiveTaskNotification Sample", + "description": "ReceiveTaskNotification stream established by client to receive Task notifications.", + "file": "Client/ReceiveTaskNotification/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReceiveTaskNotification", + "fullName": "google.cloud.osconfig.agentendpoint.v1.Client.ReceiveTaskNotification", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "agentendpointpb.ReceiveTaskNotificationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.agentendpoint.v1.Client" + }, + "method": { + "shortName": "ReceiveTaskNotification", + "fullName": "google.cloud.osconfig.agentendpoint.v1.AgentEndpointService.ReceiveTaskNotification", + "service": { + "shortName": "AgentEndpointService", + "fullName": "google.cloud.osconfig.agentendpoint.v1.AgentEndpointService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 1, + "end": -1, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_AgentEndpointService_RegisterAgent_sync", + "title": "osconfig RegisterAgent Sample", + "description": "RegisterAgent registers the agent running on the VM.", + "file": "Client/RegisterAgent/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RegisterAgent", + "fullName": "google.cloud.osconfig.agentendpoint.v1.Client.RegisterAgent", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "agentendpointpb.RegisterAgentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "agentendpointpb.RegisterAgentResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.agentendpoint.v1.Client" + }, + "method": { + "shortName": "RegisterAgent", + "fullName": "google.cloud.osconfig.agentendpoint.v1.AgentEndpointService.RegisterAgent", + "service": { + "shortName": "AgentEndpointService", + "fullName": "google.cloud.osconfig.agentendpoint.v1.AgentEndpointService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_AgentEndpointService_ReportInventory_sync", + "title": "osconfig ReportInventory Sample", + "description": "ReportInventory reports the VMs current inventory.", + "file": "Client/ReportInventory/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReportInventory", + "fullName": "google.cloud.osconfig.agentendpoint.v1.Client.ReportInventory", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "agentendpointpb.ReportInventoryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "agentendpointpb.ReportInventoryResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.agentendpoint.v1.Client" + }, + "method": { + "shortName": "ReportInventory", + "fullName": "google.cloud.osconfig.agentendpoint.v1.AgentEndpointService.ReportInventory", + "service": { + "shortName": "AgentEndpointService", + "fullName": "google.cloud.osconfig.agentendpoint.v1.AgentEndpointService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_AgentEndpointService_ReportTaskComplete_sync", + "title": "osconfig ReportTaskComplete Sample", + "description": "ReportTaskComplete signals that the task execution is complete and optionally returns the next\ntask.", + "file": "Client/ReportTaskComplete/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReportTaskComplete", + "fullName": "google.cloud.osconfig.agentendpoint.v1.Client.ReportTaskComplete", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "agentendpointpb.ReportTaskCompleteRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "agentendpointpb.ReportTaskCompleteResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.agentendpoint.v1.Client" + }, + "method": { + "shortName": "ReportTaskComplete", + "fullName": "google.cloud.osconfig.agentendpoint.v1.AgentEndpointService.ReportTaskComplete", + "service": { + "shortName": "AgentEndpointService", + "fullName": "google.cloud.osconfig.agentendpoint.v1.AgentEndpointService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_AgentEndpointService_ReportTaskProgress_sync", + "title": "osconfig ReportTaskProgress Sample", + "description": "ReportTaskProgress signals an intermediary progress checkpoint in task execution.", + "file": "Client/ReportTaskProgress/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReportTaskProgress", + "fullName": "google.cloud.osconfig.agentendpoint.v1.Client.ReportTaskProgress", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "agentendpointpb.ReportTaskProgressRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "agentendpointpb.ReportTaskProgressResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.agentendpoint.v1.Client" + }, + "method": { + "shortName": "ReportTaskProgress", + "fullName": "google.cloud.osconfig.agentendpoint.v1.AgentEndpointService.ReportTaskProgress", + "service": { + "shortName": "AgentEndpointService", + "fullName": "google.cloud.osconfig.agentendpoint.v1.AgentEndpointService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_AgentEndpointService_StartNextTask_sync", + "title": "osconfig StartNextTask Sample", + "description": "StartNextTask signals the start of a task execution and returns the task info.", + "file": "Client/StartNextTask/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StartNextTask", + "fullName": "google.cloud.osconfig.agentendpoint.v1.Client.StartNextTask", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "agentendpointpb.StartNextTaskRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "agentendpointpb.StartNextTaskResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.agentendpoint.v1.Client" + }, + "method": { + "shortName": "StartNextTask", + "fullName": "google.cloud.osconfig.agentendpoint.v1.AgentEndpointService.StartNextTask", + "service": { + "shortName": "AgentEndpointService", + "fullName": "google.cloud.osconfig.agentendpoint.v1.AgentEndpointService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/LookupEffectiveGuestPolicy/main.go b/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/LookupEffectiveGuestPolicy/main.go index e71b3f9909b2..ac48bef79f66 100644 --- a/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/LookupEffectiveGuestPolicy/main.go +++ b/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/LookupEffectiveGuestPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" agentendpoint "cloud.google.com/go/osconfig/agentendpoint/apiv1beta" - agentendpointpb "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1beta" + agentendpointpb "cloud.google.com/go/osconfig/agentendpoint/apiv1beta/agentendpointpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &agentendpointpb.LookupEffectiveGuestPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1beta#LookupEffectiveGuestPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/agentendpoint/apiv1beta/agentendpointpb#LookupEffectiveGuestPolicyRequest. } resp, err := c.LookupEffectiveGuestPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/RegisterAgent/main.go b/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/RegisterAgent/main.go index 60b61bea5f24..bab736efc1ab 100644 --- a/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/RegisterAgent/main.go +++ b/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/RegisterAgent/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" agentendpoint "cloud.google.com/go/osconfig/agentendpoint/apiv1beta" - agentendpointpb "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1beta" + agentendpointpb "cloud.google.com/go/osconfig/agentendpoint/apiv1beta/agentendpointpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &agentendpointpb.RegisterAgentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1beta#RegisterAgentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/agentendpoint/apiv1beta/agentendpointpb#RegisterAgentRequest. } resp, err := c.RegisterAgent(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/ReportTaskComplete/main.go b/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/ReportTaskComplete/main.go index 1979d8317341..40c78a8f2a31 100644 --- a/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/ReportTaskComplete/main.go +++ b/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/ReportTaskComplete/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" agentendpoint "cloud.google.com/go/osconfig/agentendpoint/apiv1beta" - agentendpointpb "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1beta" + agentendpointpb "cloud.google.com/go/osconfig/agentendpoint/apiv1beta/agentendpointpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &agentendpointpb.ReportTaskCompleteRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1beta#ReportTaskCompleteRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/agentendpoint/apiv1beta/agentendpointpb#ReportTaskCompleteRequest. } resp, err := c.ReportTaskComplete(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/ReportTaskProgress/main.go b/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/ReportTaskProgress/main.go index 6d8cf1459d12..108dcc61a1d1 100644 --- a/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/ReportTaskProgress/main.go +++ b/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/ReportTaskProgress/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" agentendpoint "cloud.google.com/go/osconfig/agentendpoint/apiv1beta" - agentendpointpb "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1beta" + agentendpointpb "cloud.google.com/go/osconfig/agentendpoint/apiv1beta/agentendpointpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &agentendpointpb.ReportTaskProgressRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1beta#ReportTaskProgressRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/agentendpoint/apiv1beta/agentendpointpb#ReportTaskProgressRequest. } resp, err := c.ReportTaskProgress(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/StartNextTask/main.go b/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/StartNextTask/main.go index 54d0bfbf2ca4..afac10619f11 100644 --- a/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/StartNextTask/main.go +++ b/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/Client/StartNextTask/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" agentendpoint "cloud.google.com/go/osconfig/agentendpoint/apiv1beta" - agentendpointpb "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1beta" + agentendpointpb "cloud.google.com/go/osconfig/agentendpoint/apiv1beta/agentendpointpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := agentendpoint.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &agentendpointpb.StartNextTaskRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1beta#StartNextTaskRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/agentendpoint/apiv1beta/agentendpointpb#StartNextTaskRequest. } resp, err := c.StartNextTask(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/snippet_metadata.google.cloud.osconfig.agentendpoint.v1beta.json b/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/snippet_metadata.google.cloud.osconfig.agentendpoint.v1beta.json new file mode 100644 index 000000000000..33201c38f4c4 --- /dev/null +++ b/internal/generated/snippets/osconfig/agentendpoint/apiv1beta/snippet_metadata.google.cloud.osconfig.agentendpoint.v1beta.json @@ -0,0 +1,290 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/osconfig/agentendpoint/apiv1beta", + "version": "1.11.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.osconfig.agentendpoint.v1beta", + "version": "v1beta" + } + ] + }, + "snippets": [ + { + "regionTag": "osconfig_v1beta_generated_AgentEndpointService_LookupEffectiveGuestPolicy_sync", + "title": "osconfig LookupEffectiveGuestPolicy Sample", + "description": "LookupEffectiveGuestPolicy lookup the effective guest policy that applies to a VM instance. This\nlookup merges all policies that are assigned to the instance ancestry.", + "file": "Client/LookupEffectiveGuestPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "LookupEffectiveGuestPolicy", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client.LookupEffectiveGuestPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "agentendpointpb.LookupEffectiveGuestPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "agentendpointpb.EffectiveGuestPolicy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client" + }, + "method": { + "shortName": "LookupEffectiveGuestPolicy", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService.LookupEffectiveGuestPolicy", + "service": { + "shortName": "AgentEndpointService", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_AgentEndpointService_ReceiveTaskNotification_sync", + "title": "osconfig ReceiveTaskNotification Sample", + "description": "ReceiveTaskNotification stream established by client to receive Task notifications.", + "file": "Client/ReceiveTaskNotification/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReceiveTaskNotification", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client.ReceiveTaskNotification", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "agentendpointpb.ReceiveTaskNotificationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client" + }, + "method": { + "shortName": "ReceiveTaskNotification", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService.ReceiveTaskNotification", + "service": { + "shortName": "AgentEndpointService", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 1, + "end": -1, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_AgentEndpointService_RegisterAgent_sync", + "title": "osconfig RegisterAgent Sample", + "description": "RegisterAgent registers the agent running on the VM.", + "file": "Client/RegisterAgent/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RegisterAgent", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client.RegisterAgent", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "agentendpointpb.RegisterAgentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "agentendpointpb.RegisterAgentResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client" + }, + "method": { + "shortName": "RegisterAgent", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService.RegisterAgent", + "service": { + "shortName": "AgentEndpointService", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_AgentEndpointService_ReportTaskComplete_sync", + "title": "osconfig ReportTaskComplete Sample", + "description": "ReportTaskComplete signals that the task execution is complete and optionally returns the next\ntask.", + "file": "Client/ReportTaskComplete/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReportTaskComplete", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client.ReportTaskComplete", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "agentendpointpb.ReportTaskCompleteRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "agentendpointpb.ReportTaskCompleteResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client" + }, + "method": { + "shortName": "ReportTaskComplete", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService.ReportTaskComplete", + "service": { + "shortName": "AgentEndpointService", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_AgentEndpointService_ReportTaskProgress_sync", + "title": "osconfig ReportTaskProgress Sample", + "description": "ReportTaskProgress signals an intermediary progress checkpoint in task execution.", + "file": "Client/ReportTaskProgress/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReportTaskProgress", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client.ReportTaskProgress", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "agentendpointpb.ReportTaskProgressRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "agentendpointpb.ReportTaskProgressResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client" + }, + "method": { + "shortName": "ReportTaskProgress", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService.ReportTaskProgress", + "service": { + "shortName": "AgentEndpointService", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_AgentEndpointService_StartNextTask_sync", + "title": "osconfig StartNextTask Sample", + "description": "StartNextTask signals the start of a task execution and returns the task info.", + "file": "Client/StartNextTask/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StartNextTask", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client.StartNextTask", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "agentendpointpb.StartNextTaskRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "agentendpointpb.StartNextTaskResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.Client" + }, + "method": { + "shortName": "StartNextTask", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService.StartNextTask", + "service": { + "shortName": "AgentEndpointService", + "fullName": "google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/osconfig/apiv1/Client/CancelPatchJob/main.go b/internal/generated/snippets/osconfig/apiv1/Client/CancelPatchJob/main.go index c6e7e520f91a..5eada0dad945 100644 --- a/internal/generated/snippets/osconfig/apiv1/Client/CancelPatchJob/main.go +++ b/internal/generated/snippets/osconfig/apiv1/Client/CancelPatchJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.CancelPatchJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#CancelPatchJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#CancelPatchJobRequest. } resp, err := c.CancelPatchJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1/Client/CreatePatchDeployment/main.go b/internal/generated/snippets/osconfig/apiv1/Client/CreatePatchDeployment/main.go index 5827000f349c..b083738d949e 100644 --- a/internal/generated/snippets/osconfig/apiv1/Client/CreatePatchDeployment/main.go +++ b/internal/generated/snippets/osconfig/apiv1/Client/CreatePatchDeployment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.CreatePatchDeploymentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#CreatePatchDeploymentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#CreatePatchDeploymentRequest. } resp, err := c.CreatePatchDeployment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1/Client/DeletePatchDeployment/main.go b/internal/generated/snippets/osconfig/apiv1/Client/DeletePatchDeployment/main.go index 36ce591987ce..d7ac91059a61 100644 --- a/internal/generated/snippets/osconfig/apiv1/Client/DeletePatchDeployment/main.go +++ b/internal/generated/snippets/osconfig/apiv1/Client/DeletePatchDeployment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.DeletePatchDeploymentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#DeletePatchDeploymentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#DeletePatchDeploymentRequest. } err = c.DeletePatchDeployment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1/Client/ExecutePatchJob/main.go b/internal/generated/snippets/osconfig/apiv1/Client/ExecutePatchJob/main.go index 38b61062f861..b4fb7460c92e 100644 --- a/internal/generated/snippets/osconfig/apiv1/Client/ExecutePatchJob/main.go +++ b/internal/generated/snippets/osconfig/apiv1/Client/ExecutePatchJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.ExecutePatchJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#ExecutePatchJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#ExecutePatchJobRequest. } resp, err := c.ExecutePatchJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1/Client/GetPatchDeployment/main.go b/internal/generated/snippets/osconfig/apiv1/Client/GetPatchDeployment/main.go index 36b50717bf17..0293c91f212a 100644 --- a/internal/generated/snippets/osconfig/apiv1/Client/GetPatchDeployment/main.go +++ b/internal/generated/snippets/osconfig/apiv1/Client/GetPatchDeployment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.GetPatchDeploymentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#GetPatchDeploymentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#GetPatchDeploymentRequest. } resp, err := c.GetPatchDeployment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1/Client/GetPatchJob/main.go b/internal/generated/snippets/osconfig/apiv1/Client/GetPatchJob/main.go index 35b0508b3f92..1d8a24738f80 100644 --- a/internal/generated/snippets/osconfig/apiv1/Client/GetPatchJob/main.go +++ b/internal/generated/snippets/osconfig/apiv1/Client/GetPatchJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.GetPatchJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#GetPatchJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#GetPatchJobRequest. } resp, err := c.GetPatchJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1/Client/ListPatchDeployments/main.go b/internal/generated/snippets/osconfig/apiv1/Client/ListPatchDeployments/main.go index 92c41b873c7e..524d49af1a30 100644 --- a/internal/generated/snippets/osconfig/apiv1/Client/ListPatchDeployments/main.go +++ b/internal/generated/snippets/osconfig/apiv1/Client/ListPatchDeployments/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" "google.golang.org/api/iterator" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &osconfigpb.ListPatchDeploymentsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#ListPatchDeploymentsRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#ListPatchDeploymentsRequest. } it := c.ListPatchDeployments(ctx, req) for { diff --git a/internal/generated/snippets/osconfig/apiv1/Client/ListPatchJobInstanceDetails/main.go b/internal/generated/snippets/osconfig/apiv1/Client/ListPatchJobInstanceDetails/main.go index 26739832a07c..8788e59bfa87 100644 --- a/internal/generated/snippets/osconfig/apiv1/Client/ListPatchJobInstanceDetails/main.go +++ b/internal/generated/snippets/osconfig/apiv1/Client/ListPatchJobInstanceDetails/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" "google.golang.org/api/iterator" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &osconfigpb.ListPatchJobInstanceDetailsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#ListPatchJobInstanceDetailsRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#ListPatchJobInstanceDetailsRequest. } it := c.ListPatchJobInstanceDetails(ctx, req) for { diff --git a/internal/generated/snippets/osconfig/apiv1/Client/ListPatchJobs/main.go b/internal/generated/snippets/osconfig/apiv1/Client/ListPatchJobs/main.go index 3efceae36e4b..ac569aff2af4 100644 --- a/internal/generated/snippets/osconfig/apiv1/Client/ListPatchJobs/main.go +++ b/internal/generated/snippets/osconfig/apiv1/Client/ListPatchJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" "google.golang.org/api/iterator" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &osconfigpb.ListPatchJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#ListPatchJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#ListPatchJobsRequest. } it := c.ListPatchJobs(ctx, req) for { diff --git a/internal/generated/snippets/osconfig/apiv1/Client/PausePatchDeployment/main.go b/internal/generated/snippets/osconfig/apiv1/Client/PausePatchDeployment/main.go index c3e8bb52ca00..4a1a660fcea6 100644 --- a/internal/generated/snippets/osconfig/apiv1/Client/PausePatchDeployment/main.go +++ b/internal/generated/snippets/osconfig/apiv1/Client/PausePatchDeployment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.PausePatchDeploymentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#PausePatchDeploymentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#PausePatchDeploymentRequest. } resp, err := c.PausePatchDeployment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1/Client/ResumePatchDeployment/main.go b/internal/generated/snippets/osconfig/apiv1/Client/ResumePatchDeployment/main.go index 911d44caf5a8..ecb75b33be5d 100644 --- a/internal/generated/snippets/osconfig/apiv1/Client/ResumePatchDeployment/main.go +++ b/internal/generated/snippets/osconfig/apiv1/Client/ResumePatchDeployment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.ResumePatchDeploymentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#ResumePatchDeploymentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#ResumePatchDeploymentRequest. } resp, err := c.ResumePatchDeployment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1/Client/UpdatePatchDeployment/main.go b/internal/generated/snippets/osconfig/apiv1/Client/UpdatePatchDeployment/main.go index 66389767d9d4..e231825d60d3 100644 --- a/internal/generated/snippets/osconfig/apiv1/Client/UpdatePatchDeployment/main.go +++ b/internal/generated/snippets/osconfig/apiv1/Client/UpdatePatchDeployment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.UpdatePatchDeploymentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#UpdatePatchDeploymentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#UpdatePatchDeploymentRequest. } resp, err := c.UpdatePatchDeployment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/CreateOSPolicyAssignment/main.go b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/CreateOSPolicyAssignment/main.go index a8fc2c403b46..a15153a529c1 100644 --- a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/CreateOSPolicyAssignment/main.go +++ b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/CreateOSPolicyAssignment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.CreateOSPolicyAssignmentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#CreateOSPolicyAssignmentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#CreateOSPolicyAssignmentRequest. } op, err := c.CreateOSPolicyAssignment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/DeleteOSPolicyAssignment/main.go b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/DeleteOSPolicyAssignment/main.go index 9f4167e23d8a..367f94d784e2 100644 --- a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/DeleteOSPolicyAssignment/main.go +++ b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/DeleteOSPolicyAssignment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.DeleteOSPolicyAssignmentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#DeleteOSPolicyAssignmentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#DeleteOSPolicyAssignmentRequest. } op, err := c.DeleteOSPolicyAssignment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/GetInventory/main.go b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/GetInventory/main.go index 7fa095158266..2bf5de840684 100644 --- a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/GetInventory/main.go +++ b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/GetInventory/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.GetInventoryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#GetInventoryRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#GetInventoryRequest. } resp, err := c.GetInventory(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/GetOSPolicyAssignment/main.go b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/GetOSPolicyAssignment/main.go index 1b16bbaebd2d..ef00ff79f707 100644 --- a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/GetOSPolicyAssignment/main.go +++ b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/GetOSPolicyAssignment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.GetOSPolicyAssignmentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#GetOSPolicyAssignmentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#GetOSPolicyAssignmentRequest. } resp, err := c.GetOSPolicyAssignment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/GetOSPolicyAssignmentReport/main.go b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/GetOSPolicyAssignmentReport/main.go index f3c0fce6b99c..d695d705aced 100644 --- a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/GetOSPolicyAssignmentReport/main.go +++ b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/GetOSPolicyAssignmentReport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.GetOSPolicyAssignmentReportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#GetOSPolicyAssignmentReportRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#GetOSPolicyAssignmentReportRequest. } resp, err := c.GetOSPolicyAssignmentReport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/GetVulnerabilityReport/main.go b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/GetVulnerabilityReport/main.go index 87437fb294c7..a572fc2ccd38 100644 --- a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/GetVulnerabilityReport/main.go +++ b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/GetVulnerabilityReport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.GetVulnerabilityReportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#GetVulnerabilityReportRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#GetVulnerabilityReportRequest. } resp, err := c.GetVulnerabilityReport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListInventories/main.go b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListInventories/main.go index fba750bfeef2..c079424d8c8c 100644 --- a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListInventories/main.go +++ b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListInventories/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" "google.golang.org/api/iterator" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &osconfigpb.ListInventoriesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#ListInventoriesRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#ListInventoriesRequest. } it := c.ListInventories(ctx, req) for { diff --git a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListOSPolicyAssignmentReports/main.go b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListOSPolicyAssignmentReports/main.go index 19fbae89ca27..02dde2d65b14 100644 --- a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListOSPolicyAssignmentReports/main.go +++ b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListOSPolicyAssignmentReports/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" "google.golang.org/api/iterator" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &osconfigpb.ListOSPolicyAssignmentReportsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#ListOSPolicyAssignmentReportsRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#ListOSPolicyAssignmentReportsRequest. } it := c.ListOSPolicyAssignmentReports(ctx, req) for { diff --git a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListOSPolicyAssignmentRevisions/main.go b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListOSPolicyAssignmentRevisions/main.go index 25d155fd180d..f075e5699cbf 100644 --- a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListOSPolicyAssignmentRevisions/main.go +++ b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListOSPolicyAssignmentRevisions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" "google.golang.org/api/iterator" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &osconfigpb.ListOSPolicyAssignmentRevisionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#ListOSPolicyAssignmentRevisionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#ListOSPolicyAssignmentRevisionsRequest. } it := c.ListOSPolicyAssignmentRevisions(ctx, req) for { diff --git a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListOSPolicyAssignments/main.go b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListOSPolicyAssignments/main.go index 060a19854288..188062d437fc 100644 --- a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListOSPolicyAssignments/main.go +++ b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListOSPolicyAssignments/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" "google.golang.org/api/iterator" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &osconfigpb.ListOSPolicyAssignmentsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#ListOSPolicyAssignmentsRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#ListOSPolicyAssignmentsRequest. } it := c.ListOSPolicyAssignments(ctx, req) for { diff --git a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListVulnerabilityReports/main.go b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListVulnerabilityReports/main.go index 245dee36a762..e43b1c65ae45 100644 --- a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListVulnerabilityReports/main.go +++ b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/ListVulnerabilityReports/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" "google.golang.org/api/iterator" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &osconfigpb.ListVulnerabilityReportsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#ListVulnerabilityReportsRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#ListVulnerabilityReportsRequest. } it := c.ListVulnerabilityReports(ctx, req) for { diff --git a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/UpdateOSPolicyAssignment/main.go b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/UpdateOSPolicyAssignment/main.go index 11742b3e91e7..deae9c5401c9 100644 --- a/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/UpdateOSPolicyAssignment/main.go +++ b/internal/generated/snippets/osconfig/apiv1/OsConfigZonalClient/UpdateOSPolicyAssignment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1" + osconfigpb "cloud.google.com/go/osconfig/apiv1/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.UpdateOSPolicyAssignmentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1#UpdateOSPolicyAssignmentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1/osconfigpb#UpdateOSPolicyAssignmentRequest. } op, err := c.UpdateOSPolicyAssignment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1/snippet_metadata.google.cloud.osconfig.v1.json b/internal/generated/snippets/osconfig/apiv1/snippet_metadata.google.cloud.osconfig.v1.json new file mode 100644 index 000000000000..84a9459b55b0 --- /dev/null +++ b/internal/generated/snippets/osconfig/apiv1/snippet_metadata.google.cloud.osconfig.v1.json @@ -0,0 +1,1118 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/osconfig/apiv1", + "version": "1.11.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.osconfig.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "osconfig_v1_generated_OsConfigService_CancelPatchJob_sync", + "title": "osconfig CancelPatchJob Sample", + "description": "CancelPatchJob cancel a patch job. The patch job must be active. Canceled patch jobs\ncannot be restarted.", + "file": "Client/CancelPatchJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelPatchJob", + "fullName": "google.cloud.osconfig.v1.Client.CancelPatchJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.CancelPatchJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.PatchJob", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1.Client" + }, + "method": { + "shortName": "CancelPatchJob", + "fullName": "google.cloud.osconfig.v1.OsConfigService.CancelPatchJob", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigService_CreatePatchDeployment_sync", + "title": "osconfig CreatePatchDeployment Sample", + "description": "CreatePatchDeployment create an OS Config patch deployment.", + "file": "Client/CreatePatchDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreatePatchDeployment", + "fullName": "google.cloud.osconfig.v1.Client.CreatePatchDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.CreatePatchDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.PatchDeployment", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1.Client" + }, + "method": { + "shortName": "CreatePatchDeployment", + "fullName": "google.cloud.osconfig.v1.OsConfigService.CreatePatchDeployment", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigService_DeletePatchDeployment_sync", + "title": "osconfig DeletePatchDeployment Sample", + "description": "DeletePatchDeployment delete an OS Config patch deployment.", + "file": "Client/DeletePatchDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeletePatchDeployment", + "fullName": "google.cloud.osconfig.v1.Client.DeletePatchDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.DeletePatchDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1.Client" + }, + "method": { + "shortName": "DeletePatchDeployment", + "fullName": "google.cloud.osconfig.v1.OsConfigService.DeletePatchDeployment", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigService_ExecutePatchJob_sync", + "title": "osconfig ExecutePatchJob Sample", + "description": "ExecutePatchJob patch VM instances by creating and running a patch job.", + "file": "Client/ExecutePatchJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ExecutePatchJob", + "fullName": "google.cloud.osconfig.v1.Client.ExecutePatchJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ExecutePatchJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.PatchJob", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1.Client" + }, + "method": { + "shortName": "ExecutePatchJob", + "fullName": "google.cloud.osconfig.v1.OsConfigService.ExecutePatchJob", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigService_GetPatchDeployment_sync", + "title": "osconfig GetPatchDeployment Sample", + "description": "GetPatchDeployment get an OS Config patch deployment.", + "file": "Client/GetPatchDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetPatchDeployment", + "fullName": "google.cloud.osconfig.v1.Client.GetPatchDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.GetPatchDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.PatchDeployment", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1.Client" + }, + "method": { + "shortName": "GetPatchDeployment", + "fullName": "google.cloud.osconfig.v1.OsConfigService.GetPatchDeployment", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigService_GetPatchJob_sync", + "title": "osconfig GetPatchJob Sample", + "description": "GetPatchJob get the patch job. This can be used to track the progress of an\nongoing patch job or review the details of completed jobs.", + "file": "Client/GetPatchJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetPatchJob", + "fullName": "google.cloud.osconfig.v1.Client.GetPatchJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.GetPatchJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.PatchJob", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1.Client" + }, + "method": { + "shortName": "GetPatchJob", + "fullName": "google.cloud.osconfig.v1.OsConfigService.GetPatchJob", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigService_ListPatchDeployments_sync", + "title": "osconfig ListPatchDeployments Sample", + "description": "ListPatchDeployments get a page of OS Config patch deployments.", + "file": "Client/ListPatchDeployments/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListPatchDeployments", + "fullName": "google.cloud.osconfig.v1.Client.ListPatchDeployments", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ListPatchDeploymentsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PatchDeploymentIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1.Client" + }, + "method": { + "shortName": "ListPatchDeployments", + "fullName": "google.cloud.osconfig.v1.OsConfigService.ListPatchDeployments", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigService_ListPatchJobInstanceDetails_sync", + "title": "osconfig ListPatchJobInstanceDetails Sample", + "description": "ListPatchJobInstanceDetails get a list of instance details for a given patch job.", + "file": "Client/ListPatchJobInstanceDetails/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListPatchJobInstanceDetails", + "fullName": "google.cloud.osconfig.v1.Client.ListPatchJobInstanceDetails", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ListPatchJobInstanceDetailsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PatchJobInstanceDetailsIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1.Client" + }, + "method": { + "shortName": "ListPatchJobInstanceDetails", + "fullName": "google.cloud.osconfig.v1.OsConfigService.ListPatchJobInstanceDetails", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigService_ListPatchJobs_sync", + "title": "osconfig ListPatchJobs Sample", + "description": "ListPatchJobs get a list of patch jobs.", + "file": "Client/ListPatchJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListPatchJobs", + "fullName": "google.cloud.osconfig.v1.Client.ListPatchJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ListPatchJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PatchJobIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1.Client" + }, + "method": { + "shortName": "ListPatchJobs", + "fullName": "google.cloud.osconfig.v1.OsConfigService.ListPatchJobs", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigService_PausePatchDeployment_sync", + "title": "osconfig PausePatchDeployment Sample", + "description": "PausePatchDeployment change state of patch deployment to “PAUSED”.\nPatch deployment in paused state doesn’t generate patch jobs.", + "file": "Client/PausePatchDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "PausePatchDeployment", + "fullName": "google.cloud.osconfig.v1.Client.PausePatchDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.PausePatchDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.PatchDeployment", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1.Client" + }, + "method": { + "shortName": "PausePatchDeployment", + "fullName": "google.cloud.osconfig.v1.OsConfigService.PausePatchDeployment", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigService_ResumePatchDeployment_sync", + "title": "osconfig ResumePatchDeployment Sample", + "description": "ResumePatchDeployment change state of patch deployment back to “ACTIVE”.\nPatch deployment in active state continues to generate patch jobs.", + "file": "Client/ResumePatchDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResumePatchDeployment", + "fullName": "google.cloud.osconfig.v1.Client.ResumePatchDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ResumePatchDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.PatchDeployment", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1.Client" + }, + "method": { + "shortName": "ResumePatchDeployment", + "fullName": "google.cloud.osconfig.v1.OsConfigService.ResumePatchDeployment", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigService_UpdatePatchDeployment_sync", + "title": "osconfig UpdatePatchDeployment Sample", + "description": "UpdatePatchDeployment update an OS Config patch deployment.", + "file": "Client/UpdatePatchDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdatePatchDeployment", + "fullName": "google.cloud.osconfig.v1.Client.UpdatePatchDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.UpdatePatchDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.PatchDeployment", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1.Client" + }, + "method": { + "shortName": "UpdatePatchDeployment", + "fullName": "google.cloud.osconfig.v1.OsConfigService.UpdatePatchDeployment", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigZonalService_CreateOSPolicyAssignment_sync", + "title": "osconfig CreateOSPolicyAssignment Sample", + "description": "CreateOSPolicyAssignment create an OS policy assignment.\n\nThis method also creates the first revision of the OS policy assignment.\n\nThis method returns a long running operation (LRO) that contains the\nrollout details. The rollout can be cancelled by cancelling the LRO.\n\nFor more information, see Method: \nprojects.locations.osPolicyAssignments.operations.cancel (at https: //cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).", + "file": "OsConfigZonalClient/CreateOSPolicyAssignment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateOSPolicyAssignment", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient.CreateOSPolicyAssignment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.CreateOSPolicyAssignmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateOSPolicyAssignmentOperation", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient" + }, + "method": { + "shortName": "CreateOSPolicyAssignment", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.CreateOSPolicyAssignment", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigZonalService_DeleteOSPolicyAssignment_sync", + "title": "osconfig DeleteOSPolicyAssignment Sample", + "description": "DeleteOSPolicyAssignment delete the OS policy assignment.\n\nThis method creates a new revision of the OS policy assignment.\n\nThis method returns a long running operation (LRO) that contains the\nrollout details. The rollout can be cancelled by cancelling the LRO.\n\nIf the LRO completes and is not cancelled, all revisions associated with\nthe OS policy assignment are deleted.\n\nFor more information, see Method: \nprojects.locations.osPolicyAssignments.operations.cancel (at https: //cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).", + "file": "OsConfigZonalClient/DeleteOSPolicyAssignment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOSPolicyAssignment", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient.DeleteOSPolicyAssignment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.DeleteOSPolicyAssignmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteOSPolicyAssignmentOperation", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient" + }, + "method": { + "shortName": "DeleteOSPolicyAssignment", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.DeleteOSPolicyAssignment", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigZonalService_GetInventory_sync", + "title": "osconfig GetInventory Sample", + "description": "GetInventory get inventory data for the specified VM instance. If the VM has no\nassociated inventory, the message NOT_FOUND is returned.", + "file": "OsConfigZonalClient/GetInventory/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInventory", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient.GetInventory", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.GetInventoryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.Inventory", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient" + }, + "method": { + "shortName": "GetInventory", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.GetInventory", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigZonalService_GetOSPolicyAssignment_sync", + "title": "osconfig GetOSPolicyAssignment Sample", + "description": "GetOSPolicyAssignment retrieve an existing OS policy assignment.\n\nThis method always returns the latest revision. In order to retrieve a\nprevious revision of the assignment, also provide the revision ID in the\nname parameter.", + "file": "OsConfigZonalClient/GetOSPolicyAssignment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOSPolicyAssignment", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient.GetOSPolicyAssignment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.GetOSPolicyAssignmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.OSPolicyAssignment", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient" + }, + "method": { + "shortName": "GetOSPolicyAssignment", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.GetOSPolicyAssignment", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigZonalService_GetOSPolicyAssignmentReport_sync", + "title": "osconfig GetOSPolicyAssignmentReport Sample", + "description": "GetOSPolicyAssignmentReport get the OS policy asssignment report for the specified Compute Engine VM\ninstance.", + "file": "OsConfigZonalClient/GetOSPolicyAssignmentReport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOSPolicyAssignmentReport", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient.GetOSPolicyAssignmentReport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.GetOSPolicyAssignmentReportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.OSPolicyAssignmentReport", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient" + }, + "method": { + "shortName": "GetOSPolicyAssignmentReport", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.GetOSPolicyAssignmentReport", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigZonalService_GetVulnerabilityReport_sync", + "title": "osconfig GetVulnerabilityReport Sample", + "description": "GetVulnerabilityReport gets the vulnerability report for the specified VM instance. Only VMs with\ninventory data have vulnerability reports associated with them.", + "file": "OsConfigZonalClient/GetVulnerabilityReport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetVulnerabilityReport", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient.GetVulnerabilityReport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.GetVulnerabilityReportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.VulnerabilityReport", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient" + }, + "method": { + "shortName": "GetVulnerabilityReport", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.GetVulnerabilityReport", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigZonalService_ListInventories_sync", + "title": "osconfig ListInventories Sample", + "description": "ListInventories list inventory data for all VM instances in the specified zone.", + "file": "OsConfigZonalClient/ListInventories/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListInventories", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient.ListInventories", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ListInventoriesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "InventoryIterator", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient" + }, + "method": { + "shortName": "ListInventories", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.ListInventories", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigZonalService_ListOSPolicyAssignmentReports_sync", + "title": "osconfig ListOSPolicyAssignmentReports Sample", + "description": "ListOSPolicyAssignmentReports list OS policy asssignment reports for all Compute Engine VM instances in\nthe specified zone.", + "file": "OsConfigZonalClient/ListOSPolicyAssignmentReports/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOSPolicyAssignmentReports", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient.ListOSPolicyAssignmentReports", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ListOSPolicyAssignmentReportsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OSPolicyAssignmentReportIterator", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient" + }, + "method": { + "shortName": "ListOSPolicyAssignmentReports", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.ListOSPolicyAssignmentReports", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigZonalService_ListOSPolicyAssignmentRevisions_sync", + "title": "osconfig ListOSPolicyAssignmentRevisions Sample", + "description": "ListOSPolicyAssignmentRevisions list the OS policy assignment revisions for a given OS policy assignment.", + "file": "OsConfigZonalClient/ListOSPolicyAssignmentRevisions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOSPolicyAssignmentRevisions", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient.ListOSPolicyAssignmentRevisions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ListOSPolicyAssignmentRevisionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OSPolicyAssignmentIterator", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient" + }, + "method": { + "shortName": "ListOSPolicyAssignmentRevisions", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.ListOSPolicyAssignmentRevisions", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigZonalService_ListOSPolicyAssignments_sync", + "title": "osconfig ListOSPolicyAssignments Sample", + "description": "ListOSPolicyAssignments list the OS policy assignments under the parent resource.\n\nFor each OS policy assignment, the latest revision is returned.", + "file": "OsConfigZonalClient/ListOSPolicyAssignments/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOSPolicyAssignments", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient.ListOSPolicyAssignments", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ListOSPolicyAssignmentsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OSPolicyAssignmentIterator", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient" + }, + "method": { + "shortName": "ListOSPolicyAssignments", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.ListOSPolicyAssignments", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigZonalService_ListVulnerabilityReports_sync", + "title": "osconfig ListVulnerabilityReports Sample", + "description": "ListVulnerabilityReports list vulnerability reports for all VM instances in the specified zone.", + "file": "OsConfigZonalClient/ListVulnerabilityReports/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListVulnerabilityReports", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient.ListVulnerabilityReports", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ListVulnerabilityReportsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "VulnerabilityReportIterator", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient" + }, + "method": { + "shortName": "ListVulnerabilityReports", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.ListVulnerabilityReports", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1_generated_OsConfigZonalService_UpdateOSPolicyAssignment_sync", + "title": "osconfig UpdateOSPolicyAssignment Sample", + "description": "UpdateOSPolicyAssignment update an existing OS policy assignment.\n\nThis method creates a new revision of the OS policy assignment.\n\nThis method returns a long running operation (LRO) that contains the\nrollout details. The rollout can be cancelled by cancelling the LRO.\n\nFor more information, see Method: \nprojects.locations.osPolicyAssignments.operations.cancel (at https: //cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).", + "file": "OsConfigZonalClient/UpdateOSPolicyAssignment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateOSPolicyAssignment", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient.UpdateOSPolicyAssignment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.UpdateOSPolicyAssignmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateOSPolicyAssignmentOperation", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalClient" + }, + "method": { + "shortName": "UpdateOSPolicyAssignment", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.UpdateOSPolicyAssignment", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/CreateOSPolicyAssignment/main.go b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/CreateOSPolicyAssignment/main.go index ec251610f843..f0f1ef0c5213 100644 --- a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/CreateOSPolicyAssignment/main.go +++ b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/CreateOSPolicyAssignment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1alpha" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha" + osconfigpb "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.CreateOSPolicyAssignmentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha#CreateOSPolicyAssignmentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1alpha/osconfigpb#CreateOSPolicyAssignmentRequest. } op, err := c.CreateOSPolicyAssignment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/DeleteOSPolicyAssignment/main.go b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/DeleteOSPolicyAssignment/main.go index e4551143b006..ab0673dacb2d 100644 --- a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/DeleteOSPolicyAssignment/main.go +++ b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/DeleteOSPolicyAssignment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1alpha" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha" + osconfigpb "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.DeleteOSPolicyAssignmentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha#DeleteOSPolicyAssignmentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1alpha/osconfigpb#DeleteOSPolicyAssignmentRequest. } op, err := c.DeleteOSPolicyAssignment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetInstanceOSPoliciesCompliance/main.go b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetInstanceOSPoliciesCompliance/main.go index 62e5b7035de9..46220f5d2425 100644 --- a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetInstanceOSPoliciesCompliance/main.go +++ b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetInstanceOSPoliciesCompliance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1alpha" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha" + osconfigpb "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.GetInstanceOSPoliciesComplianceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha#GetInstanceOSPoliciesComplianceRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1alpha/osconfigpb#GetInstanceOSPoliciesComplianceRequest. } resp, err := c.GetInstanceOSPoliciesCompliance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetInventory/main.go b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetInventory/main.go index 22d2202b7018..559530f6ca43 100644 --- a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetInventory/main.go +++ b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetInventory/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1alpha" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha" + osconfigpb "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.GetInventoryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha#GetInventoryRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1alpha/osconfigpb#GetInventoryRequest. } resp, err := c.GetInventory(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetOSPolicyAssignment/main.go b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetOSPolicyAssignment/main.go index f413c06a5c88..bbbbad58c190 100644 --- a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetOSPolicyAssignment/main.go +++ b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetOSPolicyAssignment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1alpha" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha" + osconfigpb "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.GetOSPolicyAssignmentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha#GetOSPolicyAssignmentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1alpha/osconfigpb#GetOSPolicyAssignmentRequest. } resp, err := c.GetOSPolicyAssignment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetOSPolicyAssignmentReport/main.go b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetOSPolicyAssignmentReport/main.go index ef2c673ad2c2..24459681e55b 100644 --- a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetOSPolicyAssignmentReport/main.go +++ b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetOSPolicyAssignmentReport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1alpha" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha" + osconfigpb "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.GetOSPolicyAssignmentReportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha#GetOSPolicyAssignmentReportRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1alpha/osconfigpb#GetOSPolicyAssignmentReportRequest. } resp, err := c.GetOSPolicyAssignmentReport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetVulnerabilityReport/main.go b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetVulnerabilityReport/main.go index cc15e6d33139..b763cb404606 100644 --- a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetVulnerabilityReport/main.go +++ b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/GetVulnerabilityReport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1alpha" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha" + osconfigpb "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.GetVulnerabilityReportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha#GetVulnerabilityReportRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1alpha/osconfigpb#GetVulnerabilityReportRequest. } resp, err := c.GetVulnerabilityReport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListInstanceOSPoliciesCompliances/main.go b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListInstanceOSPoliciesCompliances/main.go index c5eb02e00ff7..ca4ae72db6fd 100644 --- a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListInstanceOSPoliciesCompliances/main.go +++ b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListInstanceOSPoliciesCompliances/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1alpha" + osconfigpb "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb" "google.golang.org/api/iterator" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &osconfigpb.ListInstanceOSPoliciesCompliancesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha#ListInstanceOSPoliciesCompliancesRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1alpha/osconfigpb#ListInstanceOSPoliciesCompliancesRequest. } it := c.ListInstanceOSPoliciesCompliances(ctx, req) for { diff --git a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListInventories/main.go b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListInventories/main.go index 9b0b697d8fb4..9312e7dc6093 100644 --- a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListInventories/main.go +++ b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListInventories/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1alpha" + osconfigpb "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb" "google.golang.org/api/iterator" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &osconfigpb.ListInventoriesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha#ListInventoriesRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1alpha/osconfigpb#ListInventoriesRequest. } it := c.ListInventories(ctx, req) for { diff --git a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListOSPolicyAssignmentReports/main.go b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListOSPolicyAssignmentReports/main.go index b52397f0252a..301d61ead395 100644 --- a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListOSPolicyAssignmentReports/main.go +++ b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListOSPolicyAssignmentReports/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1alpha" + osconfigpb "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb" "google.golang.org/api/iterator" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &osconfigpb.ListOSPolicyAssignmentReportsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha#ListOSPolicyAssignmentReportsRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1alpha/osconfigpb#ListOSPolicyAssignmentReportsRequest. } it := c.ListOSPolicyAssignmentReports(ctx, req) for { diff --git a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListOSPolicyAssignmentRevisions/main.go b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListOSPolicyAssignmentRevisions/main.go index 2be1aa250009..b119f61f19a6 100644 --- a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListOSPolicyAssignmentRevisions/main.go +++ b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListOSPolicyAssignmentRevisions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1alpha" + osconfigpb "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb" "google.golang.org/api/iterator" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &osconfigpb.ListOSPolicyAssignmentRevisionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha#ListOSPolicyAssignmentRevisionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1alpha/osconfigpb#ListOSPolicyAssignmentRevisionsRequest. } it := c.ListOSPolicyAssignmentRevisions(ctx, req) for { diff --git a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListOSPolicyAssignments/main.go b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListOSPolicyAssignments/main.go index faacaddc8927..8cc1d70edd1d 100644 --- a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListOSPolicyAssignments/main.go +++ b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListOSPolicyAssignments/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1alpha" + osconfigpb "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb" "google.golang.org/api/iterator" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &osconfigpb.ListOSPolicyAssignmentsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha#ListOSPolicyAssignmentsRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1alpha/osconfigpb#ListOSPolicyAssignmentsRequest. } it := c.ListOSPolicyAssignments(ctx, req) for { diff --git a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListVulnerabilityReports/main.go b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListVulnerabilityReports/main.go index 55072e0f3f7b..4d78abd6e913 100644 --- a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListVulnerabilityReports/main.go +++ b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/ListVulnerabilityReports/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1alpha" + osconfigpb "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb" "google.golang.org/api/iterator" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &osconfigpb.ListVulnerabilityReportsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha#ListVulnerabilityReportsRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1alpha/osconfigpb#ListVulnerabilityReportsRequest. } it := c.ListVulnerabilityReports(ctx, req) for { diff --git a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/UpdateOSPolicyAssignment/main.go b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/UpdateOSPolicyAssignment/main.go index 7eeebd4370f5..0e138cd58702 100644 --- a/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/UpdateOSPolicyAssignment/main.go +++ b/internal/generated/snippets/osconfig/apiv1alpha/OsConfigZonalClient/UpdateOSPolicyAssignment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1alpha" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha" + osconfigpb "cloud.google.com/go/osconfig/apiv1alpha/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewOsConfigZonalClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.UpdateOSPolicyAssignmentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha#UpdateOSPolicyAssignmentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1alpha/osconfigpb#UpdateOSPolicyAssignmentRequest. } op, err := c.UpdateOSPolicyAssignment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1alpha/snippet_metadata.google.cloud.osconfig.v1alpha.json b/internal/generated/snippets/osconfig/apiv1alpha/snippet_metadata.google.cloud.osconfig.v1alpha.json new file mode 100644 index 000000000000..c125d15872e0 --- /dev/null +++ b/internal/generated/snippets/osconfig/apiv1alpha/snippet_metadata.google.cloud.osconfig.v1alpha.json @@ -0,0 +1,659 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/osconfig/apiv1alpha", + "version": "1.11.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.osconfig.v1alpha", + "version": "v1alpha" + } + ] + }, + "snippets": [ + { + "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_CreateOSPolicyAssignment_sync", + "title": "osconfig CreateOSPolicyAssignment Sample", + "description": "CreateOSPolicyAssignment create an OS policy assignment.\n\nThis method also creates the first revision of the OS policy assignment.\n\nThis method returns a long running operation (LRO) that contains the\nrollout details. The rollout can be cancelled by cancelling the LRO.\n\nFor more information, see Method: \nprojects.locations.osPolicyAssignments.operations.cancel (at https: //cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).", + "file": "OsConfigZonalClient/CreateOSPolicyAssignment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateOSPolicyAssignment", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient.CreateOSPolicyAssignment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.CreateOSPolicyAssignmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateOSPolicyAssignmentOperation", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient" + }, + "method": { + "shortName": "CreateOSPolicyAssignment", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.CreateOSPolicyAssignment", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_DeleteOSPolicyAssignment_sync", + "title": "osconfig DeleteOSPolicyAssignment Sample", + "description": "DeleteOSPolicyAssignment delete the OS policy assignment.\n\nThis method creates a new revision of the OS policy assignment.\n\nThis method returns a long running operation (LRO) that contains the\nrollout details. The rollout can be cancelled by cancelling the LRO.\n\nIf the LRO completes and is not cancelled, all revisions associated with\nthe OS policy assignment are deleted.\n\nFor more information, see Method: \nprojects.locations.osPolicyAssignments.operations.cancel (at https: //cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).", + "file": "OsConfigZonalClient/DeleteOSPolicyAssignment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOSPolicyAssignment", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient.DeleteOSPolicyAssignment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.DeleteOSPolicyAssignmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteOSPolicyAssignmentOperation", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient" + }, + "method": { + "shortName": "DeleteOSPolicyAssignment", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.DeleteOSPolicyAssignment", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_GetInstanceOSPoliciesCompliance_sync", + "title": "osconfig GetInstanceOSPoliciesCompliance Sample", + "description": "GetInstanceOSPoliciesCompliance get OS policies compliance data for the specified Compute Engine VM\ninstance.\n\nDeprecated: GetInstanceOSPoliciesCompliance may be removed in a future version.", + "file": "OsConfigZonalClient/GetInstanceOSPoliciesCompliance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInstanceOSPoliciesCompliance", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient.GetInstanceOSPoliciesCompliance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.GetInstanceOSPoliciesComplianceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.InstanceOSPoliciesCompliance", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient" + }, + "method": { + "shortName": "GetInstanceOSPoliciesCompliance", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.GetInstanceOSPoliciesCompliance", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_GetInventory_sync", + "title": "osconfig GetInventory Sample", + "description": "GetInventory get inventory data for the specified VM instance. If the VM has no\nassociated inventory, the message NOT_FOUND is returned.", + "file": "OsConfigZonalClient/GetInventory/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInventory", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient.GetInventory", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.GetInventoryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.Inventory", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient" + }, + "method": { + "shortName": "GetInventory", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.GetInventory", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_GetOSPolicyAssignment_sync", + "title": "osconfig GetOSPolicyAssignment Sample", + "description": "GetOSPolicyAssignment retrieve an existing OS policy assignment.\n\nThis method always returns the latest revision. In order to retrieve a\nprevious revision of the assignment, also provide the revision ID in the\nname parameter.", + "file": "OsConfigZonalClient/GetOSPolicyAssignment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOSPolicyAssignment", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient.GetOSPolicyAssignment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.GetOSPolicyAssignmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.OSPolicyAssignment", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient" + }, + "method": { + "shortName": "GetOSPolicyAssignment", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.GetOSPolicyAssignment", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_GetOSPolicyAssignmentReport_sync", + "title": "osconfig GetOSPolicyAssignmentReport Sample", + "description": "GetOSPolicyAssignmentReport get the OS policy asssignment report for the specified Compute Engine VM\ninstance.", + "file": "OsConfigZonalClient/GetOSPolicyAssignmentReport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOSPolicyAssignmentReport", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient.GetOSPolicyAssignmentReport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.GetOSPolicyAssignmentReportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.OSPolicyAssignmentReport", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient" + }, + "method": { + "shortName": "GetOSPolicyAssignmentReport", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.GetOSPolicyAssignmentReport", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_GetVulnerabilityReport_sync", + "title": "osconfig GetVulnerabilityReport Sample", + "description": "GetVulnerabilityReport gets the vulnerability report for the specified VM instance. Only VMs with\ninventory data have vulnerability reports associated with them.", + "file": "OsConfigZonalClient/GetVulnerabilityReport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetVulnerabilityReport", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient.GetVulnerabilityReport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.GetVulnerabilityReportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.VulnerabilityReport", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient" + }, + "method": { + "shortName": "GetVulnerabilityReport", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.GetVulnerabilityReport", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_ListInstanceOSPoliciesCompliances_sync", + "title": "osconfig ListInstanceOSPoliciesCompliances Sample", + "description": "ListInstanceOSPoliciesCompliances list OS policies compliance data for all Compute Engine VM instances in the\nspecified zone.\n\nDeprecated: ListInstanceOSPoliciesCompliances may be removed in a future version.", + "file": "OsConfigZonalClient/ListInstanceOSPoliciesCompliances/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListInstanceOSPoliciesCompliances", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient.ListInstanceOSPoliciesCompliances", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ListInstanceOSPoliciesCompliancesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "InstanceOSPoliciesComplianceIterator", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient" + }, + "method": { + "shortName": "ListInstanceOSPoliciesCompliances", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.ListInstanceOSPoliciesCompliances", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_ListInventories_sync", + "title": "osconfig ListInventories Sample", + "description": "ListInventories list inventory data for all VM instances in the specified zone.", + "file": "OsConfigZonalClient/ListInventories/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListInventories", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient.ListInventories", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ListInventoriesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "InventoryIterator", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient" + }, + "method": { + "shortName": "ListInventories", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.ListInventories", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_ListOSPolicyAssignmentReports_sync", + "title": "osconfig ListOSPolicyAssignmentReports Sample", + "description": "ListOSPolicyAssignmentReports list OS policy asssignment reports for all Compute Engine VM instances in\nthe specified zone.", + "file": "OsConfigZonalClient/ListOSPolicyAssignmentReports/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOSPolicyAssignmentReports", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient.ListOSPolicyAssignmentReports", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ListOSPolicyAssignmentReportsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OSPolicyAssignmentReportIterator", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient" + }, + "method": { + "shortName": "ListOSPolicyAssignmentReports", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.ListOSPolicyAssignmentReports", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_ListOSPolicyAssignmentRevisions_sync", + "title": "osconfig ListOSPolicyAssignmentRevisions Sample", + "description": "ListOSPolicyAssignmentRevisions list the OS policy assignment revisions for a given OS policy assignment.", + "file": "OsConfigZonalClient/ListOSPolicyAssignmentRevisions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOSPolicyAssignmentRevisions", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient.ListOSPolicyAssignmentRevisions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ListOSPolicyAssignmentRevisionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OSPolicyAssignmentIterator", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient" + }, + "method": { + "shortName": "ListOSPolicyAssignmentRevisions", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.ListOSPolicyAssignmentRevisions", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_ListOSPolicyAssignments_sync", + "title": "osconfig ListOSPolicyAssignments Sample", + "description": "ListOSPolicyAssignments list the OS policy assignments under the parent resource.\n\nFor each OS policy assignment, the latest revision is returned.", + "file": "OsConfigZonalClient/ListOSPolicyAssignments/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOSPolicyAssignments", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient.ListOSPolicyAssignments", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ListOSPolicyAssignmentsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OSPolicyAssignmentIterator", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient" + }, + "method": { + "shortName": "ListOSPolicyAssignments", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.ListOSPolicyAssignments", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_ListVulnerabilityReports_sync", + "title": "osconfig ListVulnerabilityReports Sample", + "description": "ListVulnerabilityReports list vulnerability reports for all VM instances in the specified zone.", + "file": "OsConfigZonalClient/ListVulnerabilityReports/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListVulnerabilityReports", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient.ListVulnerabilityReports", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ListVulnerabilityReportsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "VulnerabilityReportIterator", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient" + }, + "method": { + "shortName": "ListVulnerabilityReports", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.ListVulnerabilityReports", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_UpdateOSPolicyAssignment_sync", + "title": "osconfig UpdateOSPolicyAssignment Sample", + "description": "UpdateOSPolicyAssignment update an existing OS policy assignment.\n\nThis method creates a new revision of the OS policy assignment.\n\nThis method returns a long running operation (LRO) that contains the\nrollout details. The rollout can be cancelled by cancelling the LRO.\n\nFor more information, see Method: \nprojects.locations.osPolicyAssignments.operations.cancel (at https: //cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).", + "file": "OsConfigZonalClient/UpdateOSPolicyAssignment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateOSPolicyAssignment", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient.UpdateOSPolicyAssignment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.UpdateOSPolicyAssignmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateOSPolicyAssignmentOperation", + "client": { + "shortName": "OsConfigZonalClient", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalClient" + }, + "method": { + "shortName": "UpdateOSPolicyAssignment", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.UpdateOSPolicyAssignment", + "service": { + "shortName": "OsConfigZonalService", + "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/osconfig/apiv1beta/Client/CancelPatchJob/main.go b/internal/generated/snippets/osconfig/apiv1beta/Client/CancelPatchJob/main.go index c8b6a573ea1f..afcd79678b19 100644 --- a/internal/generated/snippets/osconfig/apiv1beta/Client/CancelPatchJob/main.go +++ b/internal/generated/snippets/osconfig/apiv1beta/Client/CancelPatchJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1beta" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta" + osconfigpb "cloud.google.com/go/osconfig/apiv1beta/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.CancelPatchJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1beta#CancelPatchJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1beta/osconfigpb#CancelPatchJobRequest. } resp, err := c.CancelPatchJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1beta/Client/CreateGuestPolicy/main.go b/internal/generated/snippets/osconfig/apiv1beta/Client/CreateGuestPolicy/main.go index c2c1e6a48c80..943fd2132874 100644 --- a/internal/generated/snippets/osconfig/apiv1beta/Client/CreateGuestPolicy/main.go +++ b/internal/generated/snippets/osconfig/apiv1beta/Client/CreateGuestPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1beta" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta" + osconfigpb "cloud.google.com/go/osconfig/apiv1beta/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.CreateGuestPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1beta#CreateGuestPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1beta/osconfigpb#CreateGuestPolicyRequest. } resp, err := c.CreateGuestPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1beta/Client/CreatePatchDeployment/main.go b/internal/generated/snippets/osconfig/apiv1beta/Client/CreatePatchDeployment/main.go index 1dcbc9f636a8..bdfbc483f27a 100644 --- a/internal/generated/snippets/osconfig/apiv1beta/Client/CreatePatchDeployment/main.go +++ b/internal/generated/snippets/osconfig/apiv1beta/Client/CreatePatchDeployment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1beta" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta" + osconfigpb "cloud.google.com/go/osconfig/apiv1beta/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.CreatePatchDeploymentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1beta#CreatePatchDeploymentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1beta/osconfigpb#CreatePatchDeploymentRequest. } resp, err := c.CreatePatchDeployment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1beta/Client/DeleteGuestPolicy/main.go b/internal/generated/snippets/osconfig/apiv1beta/Client/DeleteGuestPolicy/main.go index 3ca2e6108d1f..3c067223bb22 100644 --- a/internal/generated/snippets/osconfig/apiv1beta/Client/DeleteGuestPolicy/main.go +++ b/internal/generated/snippets/osconfig/apiv1beta/Client/DeleteGuestPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1beta" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta" + osconfigpb "cloud.google.com/go/osconfig/apiv1beta/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.DeleteGuestPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1beta#DeleteGuestPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1beta/osconfigpb#DeleteGuestPolicyRequest. } err = c.DeleteGuestPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1beta/Client/DeletePatchDeployment/main.go b/internal/generated/snippets/osconfig/apiv1beta/Client/DeletePatchDeployment/main.go index 5150f5c113d2..a8ef02a95320 100644 --- a/internal/generated/snippets/osconfig/apiv1beta/Client/DeletePatchDeployment/main.go +++ b/internal/generated/snippets/osconfig/apiv1beta/Client/DeletePatchDeployment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1beta" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta" + osconfigpb "cloud.google.com/go/osconfig/apiv1beta/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.DeletePatchDeploymentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1beta#DeletePatchDeploymentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1beta/osconfigpb#DeletePatchDeploymentRequest. } err = c.DeletePatchDeployment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1beta/Client/ExecutePatchJob/main.go b/internal/generated/snippets/osconfig/apiv1beta/Client/ExecutePatchJob/main.go index 8eacf5bd2891..fb72e8018633 100644 --- a/internal/generated/snippets/osconfig/apiv1beta/Client/ExecutePatchJob/main.go +++ b/internal/generated/snippets/osconfig/apiv1beta/Client/ExecutePatchJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1beta" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta" + osconfigpb "cloud.google.com/go/osconfig/apiv1beta/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.ExecutePatchJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1beta#ExecutePatchJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1beta/osconfigpb#ExecutePatchJobRequest. } resp, err := c.ExecutePatchJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1beta/Client/GetGuestPolicy/main.go b/internal/generated/snippets/osconfig/apiv1beta/Client/GetGuestPolicy/main.go index dbed9beed833..85863f49718e 100644 --- a/internal/generated/snippets/osconfig/apiv1beta/Client/GetGuestPolicy/main.go +++ b/internal/generated/snippets/osconfig/apiv1beta/Client/GetGuestPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1beta" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta" + osconfigpb "cloud.google.com/go/osconfig/apiv1beta/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.GetGuestPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1beta#GetGuestPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1beta/osconfigpb#GetGuestPolicyRequest. } resp, err := c.GetGuestPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1beta/Client/GetPatchDeployment/main.go b/internal/generated/snippets/osconfig/apiv1beta/Client/GetPatchDeployment/main.go index b4e669b7f004..a9abd58cf870 100644 --- a/internal/generated/snippets/osconfig/apiv1beta/Client/GetPatchDeployment/main.go +++ b/internal/generated/snippets/osconfig/apiv1beta/Client/GetPatchDeployment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1beta" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta" + osconfigpb "cloud.google.com/go/osconfig/apiv1beta/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.GetPatchDeploymentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1beta#GetPatchDeploymentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1beta/osconfigpb#GetPatchDeploymentRequest. } resp, err := c.GetPatchDeployment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1beta/Client/GetPatchJob/main.go b/internal/generated/snippets/osconfig/apiv1beta/Client/GetPatchJob/main.go index 41b214479fed..8c9941a48f4a 100644 --- a/internal/generated/snippets/osconfig/apiv1beta/Client/GetPatchJob/main.go +++ b/internal/generated/snippets/osconfig/apiv1beta/Client/GetPatchJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1beta" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta" + osconfigpb "cloud.google.com/go/osconfig/apiv1beta/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.GetPatchJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1beta#GetPatchJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1beta/osconfigpb#GetPatchJobRequest. } resp, err := c.GetPatchJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1beta/Client/ListGuestPolicies/main.go b/internal/generated/snippets/osconfig/apiv1beta/Client/ListGuestPolicies/main.go index 8660c6ec0afa..c427415d0933 100644 --- a/internal/generated/snippets/osconfig/apiv1beta/Client/ListGuestPolicies/main.go +++ b/internal/generated/snippets/osconfig/apiv1beta/Client/ListGuestPolicies/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1beta" + osconfigpb "cloud.google.com/go/osconfig/apiv1beta/osconfigpb" "google.golang.org/api/iterator" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &osconfigpb.ListGuestPoliciesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1beta#ListGuestPoliciesRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1beta/osconfigpb#ListGuestPoliciesRequest. } it := c.ListGuestPolicies(ctx, req) for { diff --git a/internal/generated/snippets/osconfig/apiv1beta/Client/ListPatchDeployments/main.go b/internal/generated/snippets/osconfig/apiv1beta/Client/ListPatchDeployments/main.go index 297498c76267..9f49c645aa4e 100644 --- a/internal/generated/snippets/osconfig/apiv1beta/Client/ListPatchDeployments/main.go +++ b/internal/generated/snippets/osconfig/apiv1beta/Client/ListPatchDeployments/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1beta" + osconfigpb "cloud.google.com/go/osconfig/apiv1beta/osconfigpb" "google.golang.org/api/iterator" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &osconfigpb.ListPatchDeploymentsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1beta#ListPatchDeploymentsRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1beta/osconfigpb#ListPatchDeploymentsRequest. } it := c.ListPatchDeployments(ctx, req) for { diff --git a/internal/generated/snippets/osconfig/apiv1beta/Client/ListPatchJobInstanceDetails/main.go b/internal/generated/snippets/osconfig/apiv1beta/Client/ListPatchJobInstanceDetails/main.go index d9d0c714d68e..f4d7c3f59eb2 100644 --- a/internal/generated/snippets/osconfig/apiv1beta/Client/ListPatchJobInstanceDetails/main.go +++ b/internal/generated/snippets/osconfig/apiv1beta/Client/ListPatchJobInstanceDetails/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1beta" + osconfigpb "cloud.google.com/go/osconfig/apiv1beta/osconfigpb" "google.golang.org/api/iterator" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &osconfigpb.ListPatchJobInstanceDetailsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1beta#ListPatchJobInstanceDetailsRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1beta/osconfigpb#ListPatchJobInstanceDetailsRequest. } it := c.ListPatchJobInstanceDetails(ctx, req) for { diff --git a/internal/generated/snippets/osconfig/apiv1beta/Client/ListPatchJobs/main.go b/internal/generated/snippets/osconfig/apiv1beta/Client/ListPatchJobs/main.go index 9177ac2ba6cd..6de0d8cf500f 100644 --- a/internal/generated/snippets/osconfig/apiv1beta/Client/ListPatchJobs/main.go +++ b/internal/generated/snippets/osconfig/apiv1beta/Client/ListPatchJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1beta" + osconfigpb "cloud.google.com/go/osconfig/apiv1beta/osconfigpb" "google.golang.org/api/iterator" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &osconfigpb.ListPatchJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1beta#ListPatchJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1beta/osconfigpb#ListPatchJobsRequest. } it := c.ListPatchJobs(ctx, req) for { diff --git a/internal/generated/snippets/osconfig/apiv1beta/Client/LookupEffectiveGuestPolicy/main.go b/internal/generated/snippets/osconfig/apiv1beta/Client/LookupEffectiveGuestPolicy/main.go index d961b3469e1a..3d1f15dea049 100644 --- a/internal/generated/snippets/osconfig/apiv1beta/Client/LookupEffectiveGuestPolicy/main.go +++ b/internal/generated/snippets/osconfig/apiv1beta/Client/LookupEffectiveGuestPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1beta" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta" + osconfigpb "cloud.google.com/go/osconfig/apiv1beta/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.LookupEffectiveGuestPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1beta#LookupEffectiveGuestPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1beta/osconfigpb#LookupEffectiveGuestPolicyRequest. } resp, err := c.LookupEffectiveGuestPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1beta/Client/PausePatchDeployment/main.go b/internal/generated/snippets/osconfig/apiv1beta/Client/PausePatchDeployment/main.go index cc9b5152c856..7511b92a1925 100644 --- a/internal/generated/snippets/osconfig/apiv1beta/Client/PausePatchDeployment/main.go +++ b/internal/generated/snippets/osconfig/apiv1beta/Client/PausePatchDeployment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1beta" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta" + osconfigpb "cloud.google.com/go/osconfig/apiv1beta/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.PausePatchDeploymentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1beta#PausePatchDeploymentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1beta/osconfigpb#PausePatchDeploymentRequest. } resp, err := c.PausePatchDeployment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1beta/Client/ResumePatchDeployment/main.go b/internal/generated/snippets/osconfig/apiv1beta/Client/ResumePatchDeployment/main.go index 7d54723563d0..b017763eebe2 100644 --- a/internal/generated/snippets/osconfig/apiv1beta/Client/ResumePatchDeployment/main.go +++ b/internal/generated/snippets/osconfig/apiv1beta/Client/ResumePatchDeployment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1beta" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta" + osconfigpb "cloud.google.com/go/osconfig/apiv1beta/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.ResumePatchDeploymentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1beta#ResumePatchDeploymentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1beta/osconfigpb#ResumePatchDeploymentRequest. } resp, err := c.ResumePatchDeployment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1beta/Client/UpdateGuestPolicy/main.go b/internal/generated/snippets/osconfig/apiv1beta/Client/UpdateGuestPolicy/main.go index 5c7c7801b538..39afde22eb99 100644 --- a/internal/generated/snippets/osconfig/apiv1beta/Client/UpdateGuestPolicy/main.go +++ b/internal/generated/snippets/osconfig/apiv1beta/Client/UpdateGuestPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1beta" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta" + osconfigpb "cloud.google.com/go/osconfig/apiv1beta/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.UpdateGuestPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1beta#UpdateGuestPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1beta/osconfigpb#UpdateGuestPolicyRequest. } resp, err := c.UpdateGuestPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1beta/Client/UpdatePatchDeployment/main.go b/internal/generated/snippets/osconfig/apiv1beta/Client/UpdatePatchDeployment/main.go index 9498fefb6352..6d56b9ce2922 100644 --- a/internal/generated/snippets/osconfig/apiv1beta/Client/UpdatePatchDeployment/main.go +++ b/internal/generated/snippets/osconfig/apiv1beta/Client/UpdatePatchDeployment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" osconfig "cloud.google.com/go/osconfig/apiv1beta" - osconfigpb "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta" + osconfigpb "cloud.google.com/go/osconfig/apiv1beta/osconfigpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := osconfig.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osconfigpb.UpdatePatchDeploymentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/osconfig/v1beta#UpdatePatchDeploymentRequest. + // See https://pkg.go.dev/cloud.google.com/go/osconfig/apiv1beta/osconfigpb#UpdatePatchDeploymentRequest. } resp, err := c.UpdatePatchDeployment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/osconfig/apiv1beta/snippet_metadata.google.cloud.osconfig.v1beta.json b/internal/generated/snippets/osconfig/apiv1beta/snippet_metadata.google.cloud.osconfig.v1beta.json new file mode 100644 index 000000000000..9d454b34eaa4 --- /dev/null +++ b/internal/generated/snippets/osconfig/apiv1beta/snippet_metadata.google.cloud.osconfig.v1beta.json @@ -0,0 +1,841 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/osconfig/apiv1beta", + "version": "1.11.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.osconfig.v1beta", + "version": "v1beta" + } + ] + }, + "snippets": [ + { + "regionTag": "osconfig_v1beta_generated_OsConfigService_CancelPatchJob_sync", + "title": "osconfig CancelPatchJob Sample", + "description": "CancelPatchJob cancel a patch job. The patch job must be active. Canceled patch jobs\ncannot be restarted.", + "file": "Client/CancelPatchJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelPatchJob", + "fullName": "google.cloud.osconfig.v1beta.Client.CancelPatchJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.CancelPatchJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.PatchJob", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1beta.Client" + }, + "method": { + "shortName": "CancelPatchJob", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService.CancelPatchJob", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_OsConfigService_CreateGuestPolicy_sync", + "title": "osconfig CreateGuestPolicy Sample", + "description": "CreateGuestPolicy create an OS Config guest policy.", + "file": "Client/CreateGuestPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateGuestPolicy", + "fullName": "google.cloud.osconfig.v1beta.Client.CreateGuestPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.CreateGuestPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.GuestPolicy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1beta.Client" + }, + "method": { + "shortName": "CreateGuestPolicy", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService.CreateGuestPolicy", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_OsConfigService_CreatePatchDeployment_sync", + "title": "osconfig CreatePatchDeployment Sample", + "description": "CreatePatchDeployment create an OS Config patch deployment.", + "file": "Client/CreatePatchDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreatePatchDeployment", + "fullName": "google.cloud.osconfig.v1beta.Client.CreatePatchDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.CreatePatchDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.PatchDeployment", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1beta.Client" + }, + "method": { + "shortName": "CreatePatchDeployment", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService.CreatePatchDeployment", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_OsConfigService_DeleteGuestPolicy_sync", + "title": "osconfig DeleteGuestPolicy Sample", + "description": "DeleteGuestPolicy delete an OS Config guest policy.", + "file": "Client/DeleteGuestPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteGuestPolicy", + "fullName": "google.cloud.osconfig.v1beta.Client.DeleteGuestPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.DeleteGuestPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1beta.Client" + }, + "method": { + "shortName": "DeleteGuestPolicy", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService.DeleteGuestPolicy", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_OsConfigService_DeletePatchDeployment_sync", + "title": "osconfig DeletePatchDeployment Sample", + "description": "DeletePatchDeployment delete an OS Config patch deployment.", + "file": "Client/DeletePatchDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeletePatchDeployment", + "fullName": "google.cloud.osconfig.v1beta.Client.DeletePatchDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.DeletePatchDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1beta.Client" + }, + "method": { + "shortName": "DeletePatchDeployment", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService.DeletePatchDeployment", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_OsConfigService_ExecutePatchJob_sync", + "title": "osconfig ExecutePatchJob Sample", + "description": "ExecutePatchJob patch VM instances by creating and running a patch job.", + "file": "Client/ExecutePatchJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ExecutePatchJob", + "fullName": "google.cloud.osconfig.v1beta.Client.ExecutePatchJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ExecutePatchJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.PatchJob", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1beta.Client" + }, + "method": { + "shortName": "ExecutePatchJob", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService.ExecutePatchJob", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_OsConfigService_GetGuestPolicy_sync", + "title": "osconfig GetGuestPolicy Sample", + "description": "GetGuestPolicy get an OS Config guest policy.", + "file": "Client/GetGuestPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetGuestPolicy", + "fullName": "google.cloud.osconfig.v1beta.Client.GetGuestPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.GetGuestPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.GuestPolicy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1beta.Client" + }, + "method": { + "shortName": "GetGuestPolicy", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService.GetGuestPolicy", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_OsConfigService_GetPatchDeployment_sync", + "title": "osconfig GetPatchDeployment Sample", + "description": "GetPatchDeployment get an OS Config patch deployment.", + "file": "Client/GetPatchDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetPatchDeployment", + "fullName": "google.cloud.osconfig.v1beta.Client.GetPatchDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.GetPatchDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.PatchDeployment", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1beta.Client" + }, + "method": { + "shortName": "GetPatchDeployment", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService.GetPatchDeployment", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_OsConfigService_GetPatchJob_sync", + "title": "osconfig GetPatchJob Sample", + "description": "GetPatchJob get the patch job. This can be used to track the progress of an\nongoing patch job or review the details of completed jobs.", + "file": "Client/GetPatchJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetPatchJob", + "fullName": "google.cloud.osconfig.v1beta.Client.GetPatchJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.GetPatchJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.PatchJob", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1beta.Client" + }, + "method": { + "shortName": "GetPatchJob", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService.GetPatchJob", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_OsConfigService_ListGuestPolicies_sync", + "title": "osconfig ListGuestPolicies Sample", + "description": "ListGuestPolicies get a page of OS Config guest policies.", + "file": "Client/ListGuestPolicies/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListGuestPolicies", + "fullName": "google.cloud.osconfig.v1beta.Client.ListGuestPolicies", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ListGuestPoliciesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "GuestPolicyIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1beta.Client" + }, + "method": { + "shortName": "ListGuestPolicies", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService.ListGuestPolicies", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_OsConfigService_ListPatchDeployments_sync", + "title": "osconfig ListPatchDeployments Sample", + "description": "ListPatchDeployments get a page of OS Config patch deployments.", + "file": "Client/ListPatchDeployments/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListPatchDeployments", + "fullName": "google.cloud.osconfig.v1beta.Client.ListPatchDeployments", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ListPatchDeploymentsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PatchDeploymentIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1beta.Client" + }, + "method": { + "shortName": "ListPatchDeployments", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService.ListPatchDeployments", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_OsConfigService_ListPatchJobInstanceDetails_sync", + "title": "osconfig ListPatchJobInstanceDetails Sample", + "description": "ListPatchJobInstanceDetails get a list of instance details for a given patch job.", + "file": "Client/ListPatchJobInstanceDetails/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListPatchJobInstanceDetails", + "fullName": "google.cloud.osconfig.v1beta.Client.ListPatchJobInstanceDetails", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ListPatchJobInstanceDetailsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PatchJobInstanceDetailsIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1beta.Client" + }, + "method": { + "shortName": "ListPatchJobInstanceDetails", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService.ListPatchJobInstanceDetails", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_OsConfigService_ListPatchJobs_sync", + "title": "osconfig ListPatchJobs Sample", + "description": "ListPatchJobs get a list of patch jobs.", + "file": "Client/ListPatchJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListPatchJobs", + "fullName": "google.cloud.osconfig.v1beta.Client.ListPatchJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ListPatchJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PatchJobIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1beta.Client" + }, + "method": { + "shortName": "ListPatchJobs", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService.ListPatchJobs", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_OsConfigService_LookupEffectiveGuestPolicy_sync", + "title": "osconfig LookupEffectiveGuestPolicy Sample", + "description": "LookupEffectiveGuestPolicy lookup the effective guest policy that applies to a VM instance. This\nlookup merges all policies that are assigned to the instance ancestry.", + "file": "Client/LookupEffectiveGuestPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "LookupEffectiveGuestPolicy", + "fullName": "google.cloud.osconfig.v1beta.Client.LookupEffectiveGuestPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.LookupEffectiveGuestPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.EffectiveGuestPolicy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1beta.Client" + }, + "method": { + "shortName": "LookupEffectiveGuestPolicy", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService.LookupEffectiveGuestPolicy", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_OsConfigService_PausePatchDeployment_sync", + "title": "osconfig PausePatchDeployment Sample", + "description": "PausePatchDeployment change state of patch deployment to “PAUSED”.\nPatch deployment in paused state doesn’t generate patch jobs.", + "file": "Client/PausePatchDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "PausePatchDeployment", + "fullName": "google.cloud.osconfig.v1beta.Client.PausePatchDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.PausePatchDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.PatchDeployment", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1beta.Client" + }, + "method": { + "shortName": "PausePatchDeployment", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService.PausePatchDeployment", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_OsConfigService_ResumePatchDeployment_sync", + "title": "osconfig ResumePatchDeployment Sample", + "description": "ResumePatchDeployment change state of patch deployment back to “ACTIVE”.\nPatch deployment in active state continues to generate patch jobs.", + "file": "Client/ResumePatchDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResumePatchDeployment", + "fullName": "google.cloud.osconfig.v1beta.Client.ResumePatchDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.ResumePatchDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.PatchDeployment", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1beta.Client" + }, + "method": { + "shortName": "ResumePatchDeployment", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService.ResumePatchDeployment", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_OsConfigService_UpdateGuestPolicy_sync", + "title": "osconfig UpdateGuestPolicy Sample", + "description": "UpdateGuestPolicy update an OS Config guest policy.", + "file": "Client/UpdateGuestPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateGuestPolicy", + "fullName": "google.cloud.osconfig.v1beta.Client.UpdateGuestPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.UpdateGuestPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.GuestPolicy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1beta.Client" + }, + "method": { + "shortName": "UpdateGuestPolicy", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService.UpdateGuestPolicy", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "osconfig_v1beta_generated_OsConfigService_UpdatePatchDeployment_sync", + "title": "osconfig UpdatePatchDeployment Sample", + "description": "UpdatePatchDeployment update an OS Config patch deployment.", + "file": "Client/UpdatePatchDeployment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdatePatchDeployment", + "fullName": "google.cloud.osconfig.v1beta.Client.UpdatePatchDeployment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osconfigpb.UpdatePatchDeploymentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osconfigpb.PatchDeployment", + "client": { + "shortName": "Client", + "fullName": "google.cloud.osconfig.v1beta.Client" + }, + "method": { + "shortName": "UpdatePatchDeployment", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService.UpdatePatchDeployment", + "service": { + "shortName": "OsConfigService", + "fullName": "google.cloud.osconfig.v1beta.OsConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/oslogin/apiv1/Client/CreateSshPublicKey/main.go b/internal/generated/snippets/oslogin/apiv1/Client/CreateSshPublicKey/main.go new file mode 100644 index 000000000000..3843bfa12de0 --- /dev/null +++ b/internal/generated/snippets/oslogin/apiv1/Client/CreateSshPublicKey/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START oslogin_v1_generated_OsLoginService_CreateSshPublicKey_sync] + +package main + +import ( + "context" + + oslogin "cloud.google.com/go/oslogin/apiv1" + osloginpb "cloud.google.com/go/oslogin/apiv1/osloginpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := oslogin.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &osloginpb.CreateSshPublicKeyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/oslogin/apiv1/osloginpb#CreateSshPublicKeyRequest. + } + resp, err := c.CreateSshPublicKey(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END oslogin_v1_generated_OsLoginService_CreateSshPublicKey_sync] diff --git a/internal/generated/snippets/oslogin/apiv1/Client/DeletePosixAccount/main.go b/internal/generated/snippets/oslogin/apiv1/Client/DeletePosixAccount/main.go index 997d86b77269..5a0460bf64aa 100644 --- a/internal/generated/snippets/oslogin/apiv1/Client/DeletePosixAccount/main.go +++ b/internal/generated/snippets/oslogin/apiv1/Client/DeletePosixAccount/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" oslogin "cloud.google.com/go/oslogin/apiv1" - osloginpb "google.golang.org/genproto/googleapis/cloud/oslogin/v1" + osloginpb "cloud.google.com/go/oslogin/apiv1/osloginpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osloginpb.DeletePosixAccountRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/oslogin/v1#DeletePosixAccountRequest. + // See https://pkg.go.dev/cloud.google.com/go/oslogin/apiv1/osloginpb#DeletePosixAccountRequest. } err = c.DeletePosixAccount(ctx, req) if err != nil { diff --git a/internal/generated/snippets/oslogin/apiv1/Client/DeleteSshPublicKey/main.go b/internal/generated/snippets/oslogin/apiv1/Client/DeleteSshPublicKey/main.go index f96acd921a2f..41fe27af0dda 100644 --- a/internal/generated/snippets/oslogin/apiv1/Client/DeleteSshPublicKey/main.go +++ b/internal/generated/snippets/oslogin/apiv1/Client/DeleteSshPublicKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" oslogin "cloud.google.com/go/oslogin/apiv1" - osloginpb "google.golang.org/genproto/googleapis/cloud/oslogin/v1" + osloginpb "cloud.google.com/go/oslogin/apiv1/osloginpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osloginpb.DeleteSshPublicKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/oslogin/v1#DeleteSshPublicKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/oslogin/apiv1/osloginpb#DeleteSshPublicKeyRequest. } err = c.DeleteSshPublicKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/oslogin/apiv1/Client/GetLoginProfile/main.go b/internal/generated/snippets/oslogin/apiv1/Client/GetLoginProfile/main.go index 026ba4443ee4..f808fdc326e5 100644 --- a/internal/generated/snippets/oslogin/apiv1/Client/GetLoginProfile/main.go +++ b/internal/generated/snippets/oslogin/apiv1/Client/GetLoginProfile/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" oslogin "cloud.google.com/go/oslogin/apiv1" - osloginpb "google.golang.org/genproto/googleapis/cloud/oslogin/v1" + osloginpb "cloud.google.com/go/oslogin/apiv1/osloginpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osloginpb.GetLoginProfileRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/oslogin/v1#GetLoginProfileRequest. + // See https://pkg.go.dev/cloud.google.com/go/oslogin/apiv1/osloginpb#GetLoginProfileRequest. } resp, err := c.GetLoginProfile(ctx, req) if err != nil { diff --git a/internal/generated/snippets/oslogin/apiv1/Client/GetSshPublicKey/main.go b/internal/generated/snippets/oslogin/apiv1/Client/GetSshPublicKey/main.go index ed6c33df0e45..27dd60fcbe54 100644 --- a/internal/generated/snippets/oslogin/apiv1/Client/GetSshPublicKey/main.go +++ b/internal/generated/snippets/oslogin/apiv1/Client/GetSshPublicKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" oslogin "cloud.google.com/go/oslogin/apiv1" - osloginpb "google.golang.org/genproto/googleapis/cloud/oslogin/v1" + osloginpb "cloud.google.com/go/oslogin/apiv1/osloginpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osloginpb.GetSshPublicKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/oslogin/v1#GetSshPublicKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/oslogin/apiv1/osloginpb#GetSshPublicKeyRequest. } resp, err := c.GetSshPublicKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/oslogin/apiv1/Client/ImportSshPublicKey/main.go b/internal/generated/snippets/oslogin/apiv1/Client/ImportSshPublicKey/main.go index a058efdf902e..27adcf05fc42 100644 --- a/internal/generated/snippets/oslogin/apiv1/Client/ImportSshPublicKey/main.go +++ b/internal/generated/snippets/oslogin/apiv1/Client/ImportSshPublicKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" oslogin "cloud.google.com/go/oslogin/apiv1" - osloginpb "google.golang.org/genproto/googleapis/cloud/oslogin/v1" + osloginpb "cloud.google.com/go/oslogin/apiv1/osloginpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osloginpb.ImportSshPublicKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/oslogin/v1#ImportSshPublicKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/oslogin/apiv1/osloginpb#ImportSshPublicKeyRequest. } resp, err := c.ImportSshPublicKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/oslogin/apiv1/Client/UpdateSshPublicKey/main.go b/internal/generated/snippets/oslogin/apiv1/Client/UpdateSshPublicKey/main.go index 9e888bbf679f..c9f14fab6a3f 100644 --- a/internal/generated/snippets/oslogin/apiv1/Client/UpdateSshPublicKey/main.go +++ b/internal/generated/snippets/oslogin/apiv1/Client/UpdateSshPublicKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" oslogin "cloud.google.com/go/oslogin/apiv1" - osloginpb "google.golang.org/genproto/googleapis/cloud/oslogin/v1" + osloginpb "cloud.google.com/go/oslogin/apiv1/osloginpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osloginpb.UpdateSshPublicKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/oslogin/v1#UpdateSshPublicKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/oslogin/apiv1/osloginpb#UpdateSshPublicKeyRequest. } resp, err := c.UpdateSshPublicKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/oslogin/apiv1/snippet_metadata.google.cloud.oslogin.v1.json b/internal/generated/snippets/oslogin/apiv1/snippet_metadata.google.cloud.oslogin.v1.json new file mode 100644 index 000000000000..4009321fe7f6 --- /dev/null +++ b/internal/generated/snippets/oslogin/apiv1/snippet_metadata.google.cloud.oslogin.v1.json @@ -0,0 +1,335 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/oslogin/apiv1", + "version": "1.9.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.oslogin.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "oslogin_v1_generated_OsLoginService_CreateSshPublicKey_sync", + "title": "oslogin CreateSshPublicKey Sample", + "description": "CreateSshPublicKey create an SSH public key", + "file": "Client/CreateSshPublicKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSshPublicKey", + "fullName": "google.cloud.oslogin.v1.Client.CreateSshPublicKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osloginpb.CreateSshPublicKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "commonpb.SshPublicKey", + "client": { + "shortName": "Client", + "fullName": "google.cloud.oslogin.v1.Client" + }, + "method": { + "shortName": "CreateSshPublicKey", + "fullName": "google.cloud.oslogin.v1.OsLoginService.CreateSshPublicKey", + "service": { + "shortName": "OsLoginService", + "fullName": "google.cloud.oslogin.v1.OsLoginService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "oslogin_v1_generated_OsLoginService_DeletePosixAccount_sync", + "title": "oslogin DeletePosixAccount Sample", + "description": "DeletePosixAccount deletes a POSIX account.", + "file": "Client/DeletePosixAccount/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeletePosixAccount", + "fullName": "google.cloud.oslogin.v1.Client.DeletePosixAccount", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osloginpb.DeletePosixAccountRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.oslogin.v1.Client" + }, + "method": { + "shortName": "DeletePosixAccount", + "fullName": "google.cloud.oslogin.v1.OsLoginService.DeletePosixAccount", + "service": { + "shortName": "OsLoginService", + "fullName": "google.cloud.oslogin.v1.OsLoginService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "oslogin_v1_generated_OsLoginService_DeleteSshPublicKey_sync", + "title": "oslogin DeleteSshPublicKey Sample", + "description": "DeleteSshPublicKey deletes an SSH public key.", + "file": "Client/DeleteSshPublicKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteSshPublicKey", + "fullName": "google.cloud.oslogin.v1.Client.DeleteSshPublicKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osloginpb.DeleteSshPublicKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.oslogin.v1.Client" + }, + "method": { + "shortName": "DeleteSshPublicKey", + "fullName": "google.cloud.oslogin.v1.OsLoginService.DeleteSshPublicKey", + "service": { + "shortName": "OsLoginService", + "fullName": "google.cloud.oslogin.v1.OsLoginService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "oslogin_v1_generated_OsLoginService_GetLoginProfile_sync", + "title": "oslogin GetLoginProfile Sample", + "description": "GetLoginProfile retrieves the profile information used for logging in to a virtual machine\non Google Compute Engine.", + "file": "Client/GetLoginProfile/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLoginProfile", + "fullName": "google.cloud.oslogin.v1.Client.GetLoginProfile", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osloginpb.GetLoginProfileRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osloginpb.LoginProfile", + "client": { + "shortName": "Client", + "fullName": "google.cloud.oslogin.v1.Client" + }, + "method": { + "shortName": "GetLoginProfile", + "fullName": "google.cloud.oslogin.v1.OsLoginService.GetLoginProfile", + "service": { + "shortName": "OsLoginService", + "fullName": "google.cloud.oslogin.v1.OsLoginService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "oslogin_v1_generated_OsLoginService_GetSshPublicKey_sync", + "title": "oslogin GetSshPublicKey Sample", + "description": "GetSshPublicKey retrieves an SSH public key.", + "file": "Client/GetSshPublicKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSshPublicKey", + "fullName": "google.cloud.oslogin.v1.Client.GetSshPublicKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osloginpb.GetSshPublicKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "commonpb.SshPublicKey", + "client": { + "shortName": "Client", + "fullName": "google.cloud.oslogin.v1.Client" + }, + "method": { + "shortName": "GetSshPublicKey", + "fullName": "google.cloud.oslogin.v1.OsLoginService.GetSshPublicKey", + "service": { + "shortName": "OsLoginService", + "fullName": "google.cloud.oslogin.v1.OsLoginService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "oslogin_v1_generated_OsLoginService_ImportSshPublicKey_sync", + "title": "oslogin ImportSshPublicKey Sample", + "description": "ImportSshPublicKey adds an SSH public key and returns the profile information. Default POSIX\naccount information is set when no username and UID exist as part of the\nlogin profile.", + "file": "Client/ImportSshPublicKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ImportSshPublicKey", + "fullName": "google.cloud.oslogin.v1.Client.ImportSshPublicKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osloginpb.ImportSshPublicKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osloginpb.ImportSshPublicKeyResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.oslogin.v1.Client" + }, + "method": { + "shortName": "ImportSshPublicKey", + "fullName": "google.cloud.oslogin.v1.OsLoginService.ImportSshPublicKey", + "service": { + "shortName": "OsLoginService", + "fullName": "google.cloud.oslogin.v1.OsLoginService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "oslogin_v1_generated_OsLoginService_UpdateSshPublicKey_sync", + "title": "oslogin UpdateSshPublicKey Sample", + "description": "UpdateSshPublicKey updates an SSH public key and returns the profile information. This method\nsupports patch semantics.", + "file": "Client/UpdateSshPublicKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSshPublicKey", + "fullName": "google.cloud.oslogin.v1.Client.UpdateSshPublicKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osloginpb.UpdateSshPublicKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "commonpb.SshPublicKey", + "client": { + "shortName": "Client", + "fullName": "google.cloud.oslogin.v1.Client" + }, + "method": { + "shortName": "UpdateSshPublicKey", + "fullName": "google.cloud.oslogin.v1.OsLoginService.UpdateSshPublicKey", + "service": { + "shortName": "OsLoginService", + "fullName": "google.cloud.oslogin.v1.OsLoginService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/oslogin/apiv1beta/Client/CreateSshPublicKey/main.go b/internal/generated/snippets/oslogin/apiv1beta/Client/CreateSshPublicKey/main.go new file mode 100644 index 000000000000..c5f09e62876b --- /dev/null +++ b/internal/generated/snippets/oslogin/apiv1beta/Client/CreateSshPublicKey/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START oslogin_v1beta_generated_OsLoginService_CreateSshPublicKey_sync] + +package main + +import ( + "context" + + oslogin "cloud.google.com/go/oslogin/apiv1beta" + osloginpb "cloud.google.com/go/oslogin/apiv1beta/osloginpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := oslogin.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &osloginpb.CreateSshPublicKeyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/oslogin/apiv1beta/osloginpb#CreateSshPublicKeyRequest. + } + resp, err := c.CreateSshPublicKey(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END oslogin_v1beta_generated_OsLoginService_CreateSshPublicKey_sync] diff --git a/internal/generated/snippets/oslogin/apiv1beta/Client/DeletePosixAccount/main.go b/internal/generated/snippets/oslogin/apiv1beta/Client/DeletePosixAccount/main.go index 11db764af92d..3f2157d65777 100644 --- a/internal/generated/snippets/oslogin/apiv1beta/Client/DeletePosixAccount/main.go +++ b/internal/generated/snippets/oslogin/apiv1beta/Client/DeletePosixAccount/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" oslogin "cloud.google.com/go/oslogin/apiv1beta" - osloginpb "google.golang.org/genproto/googleapis/cloud/oslogin/v1beta" + osloginpb "cloud.google.com/go/oslogin/apiv1beta/osloginpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osloginpb.DeletePosixAccountRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/oslogin/v1beta#DeletePosixAccountRequest. + // See https://pkg.go.dev/cloud.google.com/go/oslogin/apiv1beta/osloginpb#DeletePosixAccountRequest. } err = c.DeletePosixAccount(ctx, req) if err != nil { diff --git a/internal/generated/snippets/oslogin/apiv1beta/Client/DeleteSshPublicKey/main.go b/internal/generated/snippets/oslogin/apiv1beta/Client/DeleteSshPublicKey/main.go index 5c2484a99c23..edfe9781531c 100644 --- a/internal/generated/snippets/oslogin/apiv1beta/Client/DeleteSshPublicKey/main.go +++ b/internal/generated/snippets/oslogin/apiv1beta/Client/DeleteSshPublicKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" oslogin "cloud.google.com/go/oslogin/apiv1beta" - osloginpb "google.golang.org/genproto/googleapis/cloud/oslogin/v1beta" + osloginpb "cloud.google.com/go/oslogin/apiv1beta/osloginpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osloginpb.DeleteSshPublicKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/oslogin/v1beta#DeleteSshPublicKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/oslogin/apiv1beta/osloginpb#DeleteSshPublicKeyRequest. } err = c.DeleteSshPublicKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/oslogin/apiv1beta/Client/GetLoginProfile/main.go b/internal/generated/snippets/oslogin/apiv1beta/Client/GetLoginProfile/main.go index e40d31d8c9ea..4a19dd523eea 100644 --- a/internal/generated/snippets/oslogin/apiv1beta/Client/GetLoginProfile/main.go +++ b/internal/generated/snippets/oslogin/apiv1beta/Client/GetLoginProfile/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" oslogin "cloud.google.com/go/oslogin/apiv1beta" - osloginpb "google.golang.org/genproto/googleapis/cloud/oslogin/v1beta" + osloginpb "cloud.google.com/go/oslogin/apiv1beta/osloginpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osloginpb.GetLoginProfileRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/oslogin/v1beta#GetLoginProfileRequest. + // See https://pkg.go.dev/cloud.google.com/go/oslogin/apiv1beta/osloginpb#GetLoginProfileRequest. } resp, err := c.GetLoginProfile(ctx, req) if err != nil { diff --git a/internal/generated/snippets/oslogin/apiv1beta/Client/GetSshPublicKey/main.go b/internal/generated/snippets/oslogin/apiv1beta/Client/GetSshPublicKey/main.go index 2655ac6e2b0d..c9f2fbc6158b 100644 --- a/internal/generated/snippets/oslogin/apiv1beta/Client/GetSshPublicKey/main.go +++ b/internal/generated/snippets/oslogin/apiv1beta/Client/GetSshPublicKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" oslogin "cloud.google.com/go/oslogin/apiv1beta" - osloginpb "google.golang.org/genproto/googleapis/cloud/oslogin/v1beta" + osloginpb "cloud.google.com/go/oslogin/apiv1beta/osloginpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osloginpb.GetSshPublicKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/oslogin/v1beta#GetSshPublicKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/oslogin/apiv1beta/osloginpb#GetSshPublicKeyRequest. } resp, err := c.GetSshPublicKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/oslogin/apiv1beta/Client/ImportSshPublicKey/main.go b/internal/generated/snippets/oslogin/apiv1beta/Client/ImportSshPublicKey/main.go index d10fb5b9782d..d0092e44c38d 100644 --- a/internal/generated/snippets/oslogin/apiv1beta/Client/ImportSshPublicKey/main.go +++ b/internal/generated/snippets/oslogin/apiv1beta/Client/ImportSshPublicKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" oslogin "cloud.google.com/go/oslogin/apiv1beta" - osloginpb "google.golang.org/genproto/googleapis/cloud/oslogin/v1beta" + osloginpb "cloud.google.com/go/oslogin/apiv1beta/osloginpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osloginpb.ImportSshPublicKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/oslogin/v1beta#ImportSshPublicKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/oslogin/apiv1beta/osloginpb#ImportSshPublicKeyRequest. } resp, err := c.ImportSshPublicKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/oslogin/apiv1beta/Client/UpdateSshPublicKey/main.go b/internal/generated/snippets/oslogin/apiv1beta/Client/UpdateSshPublicKey/main.go index e9298d003736..032cbf1efa38 100644 --- a/internal/generated/snippets/oslogin/apiv1beta/Client/UpdateSshPublicKey/main.go +++ b/internal/generated/snippets/oslogin/apiv1beta/Client/UpdateSshPublicKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" oslogin "cloud.google.com/go/oslogin/apiv1beta" - osloginpb "google.golang.org/genproto/googleapis/cloud/oslogin/v1beta" + osloginpb "cloud.google.com/go/oslogin/apiv1beta/osloginpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := oslogin.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &osloginpb.UpdateSshPublicKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/oslogin/v1beta#UpdateSshPublicKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/oslogin/apiv1beta/osloginpb#UpdateSshPublicKeyRequest. } resp, err := c.UpdateSshPublicKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/oslogin/apiv1beta/snippet_metadata.google.cloud.oslogin.v1beta.json b/internal/generated/snippets/oslogin/apiv1beta/snippet_metadata.google.cloud.oslogin.v1beta.json new file mode 100644 index 000000000000..e0cae5fdcd32 --- /dev/null +++ b/internal/generated/snippets/oslogin/apiv1beta/snippet_metadata.google.cloud.oslogin.v1beta.json @@ -0,0 +1,335 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/oslogin/apiv1beta", + "version": "1.9.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.oslogin.v1beta", + "version": "v1beta" + } + ] + }, + "snippets": [ + { + "regionTag": "oslogin_v1beta_generated_OsLoginService_CreateSshPublicKey_sync", + "title": "oslogin CreateSshPublicKey Sample", + "description": "CreateSshPublicKey create an SSH public key", + "file": "Client/CreateSshPublicKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSshPublicKey", + "fullName": "google.cloud.oslogin.v1beta.Client.CreateSshPublicKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osloginpb.CreateSshPublicKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "commonpb.SshPublicKey", + "client": { + "shortName": "Client", + "fullName": "google.cloud.oslogin.v1beta.Client" + }, + "method": { + "shortName": "CreateSshPublicKey", + "fullName": "google.cloud.oslogin.v1beta.OsLoginService.CreateSshPublicKey", + "service": { + "shortName": "OsLoginService", + "fullName": "google.cloud.oslogin.v1beta.OsLoginService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "oslogin_v1beta_generated_OsLoginService_DeletePosixAccount_sync", + "title": "oslogin DeletePosixAccount Sample", + "description": "DeletePosixAccount deletes a POSIX account.", + "file": "Client/DeletePosixAccount/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeletePosixAccount", + "fullName": "google.cloud.oslogin.v1beta.Client.DeletePosixAccount", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osloginpb.DeletePosixAccountRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.oslogin.v1beta.Client" + }, + "method": { + "shortName": "DeletePosixAccount", + "fullName": "google.cloud.oslogin.v1beta.OsLoginService.DeletePosixAccount", + "service": { + "shortName": "OsLoginService", + "fullName": "google.cloud.oslogin.v1beta.OsLoginService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "oslogin_v1beta_generated_OsLoginService_DeleteSshPublicKey_sync", + "title": "oslogin DeleteSshPublicKey Sample", + "description": "DeleteSshPublicKey deletes an SSH public key.", + "file": "Client/DeleteSshPublicKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteSshPublicKey", + "fullName": "google.cloud.oslogin.v1beta.Client.DeleteSshPublicKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osloginpb.DeleteSshPublicKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.oslogin.v1beta.Client" + }, + "method": { + "shortName": "DeleteSshPublicKey", + "fullName": "google.cloud.oslogin.v1beta.OsLoginService.DeleteSshPublicKey", + "service": { + "shortName": "OsLoginService", + "fullName": "google.cloud.oslogin.v1beta.OsLoginService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "oslogin_v1beta_generated_OsLoginService_GetLoginProfile_sync", + "title": "oslogin GetLoginProfile Sample", + "description": "GetLoginProfile retrieves the profile information used for logging in to a virtual machine\non Google Compute Engine.", + "file": "Client/GetLoginProfile/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLoginProfile", + "fullName": "google.cloud.oslogin.v1beta.Client.GetLoginProfile", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osloginpb.GetLoginProfileRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osloginpb.LoginProfile", + "client": { + "shortName": "Client", + "fullName": "google.cloud.oslogin.v1beta.Client" + }, + "method": { + "shortName": "GetLoginProfile", + "fullName": "google.cloud.oslogin.v1beta.OsLoginService.GetLoginProfile", + "service": { + "shortName": "OsLoginService", + "fullName": "google.cloud.oslogin.v1beta.OsLoginService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "oslogin_v1beta_generated_OsLoginService_GetSshPublicKey_sync", + "title": "oslogin GetSshPublicKey Sample", + "description": "GetSshPublicKey retrieves an SSH public key.", + "file": "Client/GetSshPublicKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSshPublicKey", + "fullName": "google.cloud.oslogin.v1beta.Client.GetSshPublicKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osloginpb.GetSshPublicKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "commonpb.SshPublicKey", + "client": { + "shortName": "Client", + "fullName": "google.cloud.oslogin.v1beta.Client" + }, + "method": { + "shortName": "GetSshPublicKey", + "fullName": "google.cloud.oslogin.v1beta.OsLoginService.GetSshPublicKey", + "service": { + "shortName": "OsLoginService", + "fullName": "google.cloud.oslogin.v1beta.OsLoginService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "oslogin_v1beta_generated_OsLoginService_ImportSshPublicKey_sync", + "title": "oslogin ImportSshPublicKey Sample", + "description": "ImportSshPublicKey adds an SSH public key and returns the profile information. Default POSIX\naccount information is set when no username and UID exist as part of the\nlogin profile.", + "file": "Client/ImportSshPublicKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ImportSshPublicKey", + "fullName": "google.cloud.oslogin.v1beta.Client.ImportSshPublicKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osloginpb.ImportSshPublicKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "osloginpb.ImportSshPublicKeyResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.oslogin.v1beta.Client" + }, + "method": { + "shortName": "ImportSshPublicKey", + "fullName": "google.cloud.oslogin.v1beta.OsLoginService.ImportSshPublicKey", + "service": { + "shortName": "OsLoginService", + "fullName": "google.cloud.oslogin.v1beta.OsLoginService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "oslogin_v1beta_generated_OsLoginService_UpdateSshPublicKey_sync", + "title": "oslogin UpdateSshPublicKey Sample", + "description": "UpdateSshPublicKey updates an SSH public key and returns the profile information. This method\nsupports patch semantics.", + "file": "Client/UpdateSshPublicKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSshPublicKey", + "fullName": "google.cloud.oslogin.v1beta.Client.UpdateSshPublicKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "osloginpb.UpdateSshPublicKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "commonpb.SshPublicKey", + "client": { + "shortName": "Client", + "fullName": "google.cloud.oslogin.v1beta.Client" + }, + "method": { + "shortName": "UpdateSshPublicKey", + "fullName": "google.cloud.oslogin.v1beta.OsLoginService.UpdateSshPublicKey", + "service": { + "shortName": "OsLoginService", + "fullName": "google.cloud.oslogin.v1beta.OsLoginService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/phishingprotection/apiv1beta1/PhishingProtectionServiceV1Beta1Client/ReportPhishing/main.go b/internal/generated/snippets/phishingprotection/apiv1beta1/PhishingProtectionServiceV1Beta1Client/ReportPhishing/main.go index 56e720536cfc..57a1ec2ef160 100644 --- a/internal/generated/snippets/phishingprotection/apiv1beta1/PhishingProtectionServiceV1Beta1Client/ReportPhishing/main.go +++ b/internal/generated/snippets/phishingprotection/apiv1beta1/PhishingProtectionServiceV1Beta1Client/ReportPhishing/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" phishingprotection "cloud.google.com/go/phishingprotection/apiv1beta1" - phishingprotectionpb "google.golang.org/genproto/googleapis/cloud/phishingprotection/v1beta1" + phishingprotectionpb "cloud.google.com/go/phishingprotection/apiv1beta1/phishingprotectionpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := phishingprotection.NewPhishingProtectionServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &phishingprotectionpb.ReportPhishingRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/phishingprotection/v1beta1#ReportPhishingRequest. + // See https://pkg.go.dev/cloud.google.com/go/phishingprotection/apiv1beta1/phishingprotectionpb#ReportPhishingRequest. } resp, err := c.ReportPhishing(ctx, req) if err != nil { diff --git a/internal/generated/snippets/phishingprotection/apiv1beta1/snippet_metadata.google.cloud.phishingprotection.v1beta1.json b/internal/generated/snippets/phishingprotection/apiv1beta1/snippet_metadata.google.cloud.phishingprotection.v1beta1.json new file mode 100644 index 000000000000..7df3b80f9f59 --- /dev/null +++ b/internal/generated/snippets/phishingprotection/apiv1beta1/snippet_metadata.google.cloud.phishingprotection.v1beta1.json @@ -0,0 +1,61 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/phishingprotection/apiv1beta1", + "version": "0.7.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.phishingprotection.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_sync", + "title": "phishingprotection ReportPhishing Sample", + "description": "ReportPhishing reports a URI suspected of containing phishing content to be reviewed. Once\nthe report review is complete, its result can be found in the Cloud\nSecurity Command Center findings dashboard for Phishing Protection. If the\nresult verifies the existence of malicious phishing content, the site will\nbe added the to Google’s Social Engineering\nlists (at https: //support.google.com/webmasters/answer/6350487/) in order to\nprotect users that could get exposed to this threat in the future.", + "file": "PhishingProtectionServiceV1Beta1Client/ReportPhishing/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReportPhishing", + "fullName": "google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client.ReportPhishing", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "phishingprotectionpb.ReportPhishingRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "phishingprotectionpb.ReportPhishingResponse", + "client": { + "shortName": "PhishingProtectionServiceV1Beta1Client", + "fullName": "google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client" + }, + "method": { + "shortName": "ReportPhishing", + "fullName": "google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1.ReportPhishing", + "service": { + "shortName": "PhishingProtectionServiceV1Beta1", + "fullName": "google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/policytroubleshooter/apiv1/IamCheckerClient/TroubleshootIamPolicy/main.go b/internal/generated/snippets/policytroubleshooter/apiv1/IamCheckerClient/TroubleshootIamPolicy/main.go index 22a4b5b80e76..0116745a87b8 100644 --- a/internal/generated/snippets/policytroubleshooter/apiv1/IamCheckerClient/TroubleshootIamPolicy/main.go +++ b/internal/generated/snippets/policytroubleshooter/apiv1/IamCheckerClient/TroubleshootIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" policytroubleshooter "cloud.google.com/go/policytroubleshooter/apiv1" - policytroubleshooterpb "google.golang.org/genproto/googleapis/cloud/policytroubleshooter/v1" + policytroubleshooterpb "cloud.google.com/go/policytroubleshooter/apiv1/policytroubleshooterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := policytroubleshooter.NewIamCheckerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &policytroubleshooterpb.TroubleshootIamPolicyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/policytroubleshooter/v1#TroubleshootIamPolicyRequest. + // See https://pkg.go.dev/cloud.google.com/go/policytroubleshooter/apiv1/policytroubleshooterpb#TroubleshootIamPolicyRequest. } resp, err := c.TroubleshootIamPolicy(ctx, req) if err != nil { diff --git a/internal/generated/snippets/policytroubleshooter/apiv1/snippet_metadata.google.cloud.policytroubleshooter.v1.json b/internal/generated/snippets/policytroubleshooter/apiv1/snippet_metadata.google.cloud.policytroubleshooter.v1.json new file mode 100644 index 000000000000..515021c599ff --- /dev/null +++ b/internal/generated/snippets/policytroubleshooter/apiv1/snippet_metadata.google.cloud.policytroubleshooter.v1.json @@ -0,0 +1,61 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/policytroubleshooter/apiv1", + "version": "1.5.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.policytroubleshooter.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "policytroubleshooter_v1_generated_IamChecker_TroubleshootIamPolicy_sync", + "title": "policytroubleshooter TroubleshootIamPolicy Sample", + "description": "TroubleshootIamPolicy checks whether a member has a specific permission for a specific resource,\nand explains why the member does or does not have that permission.", + "file": "IamCheckerClient/TroubleshootIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TroubleshootIamPolicy", + "fullName": "google.cloud.policytroubleshooter.v1.IamCheckerClient.TroubleshootIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "policytroubleshooterpb.TroubleshootIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "policytroubleshooterpb.TroubleshootIamPolicyResponse", + "client": { + "shortName": "IamCheckerClient", + "fullName": "google.cloud.policytroubleshooter.v1.IamCheckerClient" + }, + "method": { + "shortName": "TroubleshootIamPolicy", + "fullName": "google.cloud.policytroubleshooter.v1.IamChecker.TroubleshootIamPolicy", + "service": { + "shortName": "IamChecker", + "fullName": "google.cloud.policytroubleshooter.v1.IamChecker" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/privatecatalog/apiv1beta1/Client/SearchCatalogs/main.go b/internal/generated/snippets/privatecatalog/apiv1beta1/Client/SearchCatalogs/main.go index 43ff1276913a..8220c929497e 100644 --- a/internal/generated/snippets/privatecatalog/apiv1beta1/Client/SearchCatalogs/main.go +++ b/internal/generated/snippets/privatecatalog/apiv1beta1/Client/SearchCatalogs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" privatecatalog "cloud.google.com/go/privatecatalog/apiv1beta1" + privatecatalogpb "cloud.google.com/go/privatecatalog/apiv1beta1/privatecatalogpb" "google.golang.org/api/iterator" - privatecatalogpb "google.golang.org/genproto/googleapis/cloud/privatecatalog/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privatecatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &privatecatalogpb.SearchCatalogsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/privatecatalog/v1beta1#SearchCatalogsRequest. + // See https://pkg.go.dev/cloud.google.com/go/privatecatalog/apiv1beta1/privatecatalogpb#SearchCatalogsRequest. } it := c.SearchCatalogs(ctx, req) for { diff --git a/internal/generated/snippets/privatecatalog/apiv1beta1/Client/SearchProducts/main.go b/internal/generated/snippets/privatecatalog/apiv1beta1/Client/SearchProducts/main.go index 5daa24e32f61..2b6331449d6f 100644 --- a/internal/generated/snippets/privatecatalog/apiv1beta1/Client/SearchProducts/main.go +++ b/internal/generated/snippets/privatecatalog/apiv1beta1/Client/SearchProducts/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" privatecatalog "cloud.google.com/go/privatecatalog/apiv1beta1" + privatecatalogpb "cloud.google.com/go/privatecatalog/apiv1beta1/privatecatalogpb" "google.golang.org/api/iterator" - privatecatalogpb "google.golang.org/genproto/googleapis/cloud/privatecatalog/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privatecatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &privatecatalogpb.SearchProductsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/privatecatalog/v1beta1#SearchProductsRequest. + // See https://pkg.go.dev/cloud.google.com/go/privatecatalog/apiv1beta1/privatecatalogpb#SearchProductsRequest. } it := c.SearchProducts(ctx, req) for { diff --git a/internal/generated/snippets/privatecatalog/apiv1beta1/Client/SearchVersions/main.go b/internal/generated/snippets/privatecatalog/apiv1beta1/Client/SearchVersions/main.go index d3c9d336da20..2e3287b3d2dc 100644 --- a/internal/generated/snippets/privatecatalog/apiv1beta1/Client/SearchVersions/main.go +++ b/internal/generated/snippets/privatecatalog/apiv1beta1/Client/SearchVersions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" privatecatalog "cloud.google.com/go/privatecatalog/apiv1beta1" + privatecatalogpb "cloud.google.com/go/privatecatalog/apiv1beta1/privatecatalogpb" "google.golang.org/api/iterator" - privatecatalogpb "google.golang.org/genproto/googleapis/cloud/privatecatalog/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privatecatalog.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &privatecatalogpb.SearchVersionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/privatecatalog/v1beta1#SearchVersionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/privatecatalog/apiv1beta1/privatecatalogpb#SearchVersionsRequest. } it := c.SearchVersions(ctx, req) for { diff --git a/internal/generated/snippets/privatecatalog/apiv1beta1/snippet_metadata.google.cloud.privatecatalog.v1beta1.json b/internal/generated/snippets/privatecatalog/apiv1beta1/snippet_metadata.google.cloud.privatecatalog.v1beta1.json new file mode 100644 index 000000000000..90860eee2133 --- /dev/null +++ b/internal/generated/snippets/privatecatalog/apiv1beta1/snippet_metadata.google.cloud.privatecatalog.v1beta1.json @@ -0,0 +1,153 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/privatecatalog/apiv1beta1", + "version": "0.7.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.privatecatalog.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "cloudprivatecatalog_v1beta1_generated_PrivateCatalog_SearchCatalogs_sync", + "title": "cloudprivatecatalog SearchCatalogs Sample", + "description": "SearchCatalogs search Catalog resources that consumers have access to, within the\nscope of the consumer cloud resource hierarchy context.", + "file": "Client/SearchCatalogs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SearchCatalogs", + "fullName": "google.cloud.privatecatalog.v1beta1.Client.SearchCatalogs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecatalogpb.SearchCatalogsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CatalogIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.privatecatalog.v1beta1.Client" + }, + "method": { + "shortName": "SearchCatalogs", + "fullName": "google.cloud.privatecatalog.v1beta1.PrivateCatalog.SearchCatalogs", + "service": { + "shortName": "PrivateCatalog", + "fullName": "google.cloud.privatecatalog.v1beta1.PrivateCatalog" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudprivatecatalog_v1beta1_generated_PrivateCatalog_SearchProducts_sync", + "title": "cloudprivatecatalog SearchProducts Sample", + "description": "SearchProducts search Product resources that consumers have access to, within the\nscope of the consumer cloud resource hierarchy context.", + "file": "Client/SearchProducts/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SearchProducts", + "fullName": "google.cloud.privatecatalog.v1beta1.Client.SearchProducts", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecatalogpb.SearchProductsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ProductIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.privatecatalog.v1beta1.Client" + }, + "method": { + "shortName": "SearchProducts", + "fullName": "google.cloud.privatecatalog.v1beta1.PrivateCatalog.SearchProducts", + "service": { + "shortName": "PrivateCatalog", + "fullName": "google.cloud.privatecatalog.v1beta1.PrivateCatalog" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudprivatecatalog_v1beta1_generated_PrivateCatalog_SearchVersions_sync", + "title": "cloudprivatecatalog SearchVersions Sample", + "description": "SearchVersions search Version resources that consumers have access to, within the\nscope of the consumer cloud resource hierarchy context.", + "file": "Client/SearchVersions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SearchVersions", + "fullName": "google.cloud.privatecatalog.v1beta1.Client.SearchVersions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecatalogpb.SearchVersionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "VersionIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.privatecatalog.v1beta1.Client" + }, + "method": { + "shortName": "SearchVersions", + "fullName": "google.cloud.privatecatalog.v1beta1.PrivateCatalog.SearchVersions", + "service": { + "shortName": "PrivateCatalog", + "fullName": "google.cloud.privatecatalog.v1beta1.PrivateCatalog" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/pubsub/apiv1/PublisherClient/CreateTopic/main.go b/internal/generated/snippets/pubsub/apiv1/PublisherClient/CreateTopic/main.go index abf856d04a8d..2b41050c3665 100644 --- a/internal/generated/snippets/pubsub/apiv1/PublisherClient/CreateTopic/main.go +++ b/internal/generated/snippets/pubsub/apiv1/PublisherClient/CreateTopic/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.Topic{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#Topic. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#Topic. } resp, err := c.CreateTopic(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/PublisherClient/DeleteTopic/main.go b/internal/generated/snippets/pubsub/apiv1/PublisherClient/DeleteTopic/main.go index 7b235573167e..2cc0b630d13d 100644 --- a/internal/generated/snippets/pubsub/apiv1/PublisherClient/DeleteTopic/main.go +++ b/internal/generated/snippets/pubsub/apiv1/PublisherClient/DeleteTopic/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.DeleteTopicRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#DeleteTopicRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#DeleteTopicRequest. } err = c.DeleteTopic(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/PublisherClient/DetachSubscription/main.go b/internal/generated/snippets/pubsub/apiv1/PublisherClient/DetachSubscription/main.go index 0af73a274442..6c5090820545 100644 --- a/internal/generated/snippets/pubsub/apiv1/PublisherClient/DetachSubscription/main.go +++ b/internal/generated/snippets/pubsub/apiv1/PublisherClient/DetachSubscription/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.DetachSubscriptionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#DetachSubscriptionRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#DetachSubscriptionRequest. } resp, err := c.DetachSubscription(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/PublisherClient/GetIamPolicy/main.go b/internal/generated/snippets/pubsub/apiv1/PublisherClient/GetIamPolicy/main.go index 44c144c7bac0..e1ac598af1b4 100644 --- a/internal/generated/snippets/pubsub/apiv1/PublisherClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/pubsub/apiv1/PublisherClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/pubsub/apiv1/PublisherClient/GetTopic/main.go b/internal/generated/snippets/pubsub/apiv1/PublisherClient/GetTopic/main.go index 6d1d590478bb..25f98b29ba89 100644 --- a/internal/generated/snippets/pubsub/apiv1/PublisherClient/GetTopic/main.go +++ b/internal/generated/snippets/pubsub/apiv1/PublisherClient/GetTopic/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.GetTopicRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#GetTopicRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#GetTopicRequest. } resp, err := c.GetTopic(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/PublisherClient/ListTopicSnapshots/main.go b/internal/generated/snippets/pubsub/apiv1/PublisherClient/ListTopicSnapshots/main.go index 7bf5dd98377d..dffbae39f785 100644 --- a/internal/generated/snippets/pubsub/apiv1/PublisherClient/ListTopicSnapshots/main.go +++ b/internal/generated/snippets/pubsub/apiv1/PublisherClient/ListTopicSnapshots/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" "google.golang.org/api/iterator" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &pubsubpb.ListTopicSnapshotsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#ListTopicSnapshotsRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#ListTopicSnapshotsRequest. } it := c.ListTopicSnapshots(ctx, req) for { diff --git a/internal/generated/snippets/pubsub/apiv1/PublisherClient/ListTopicSubscriptions/main.go b/internal/generated/snippets/pubsub/apiv1/PublisherClient/ListTopicSubscriptions/main.go index 6d9840ccdc9c..f88d77aa5695 100644 --- a/internal/generated/snippets/pubsub/apiv1/PublisherClient/ListTopicSubscriptions/main.go +++ b/internal/generated/snippets/pubsub/apiv1/PublisherClient/ListTopicSubscriptions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" "google.golang.org/api/iterator" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &pubsubpb.ListTopicSubscriptionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#ListTopicSubscriptionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#ListTopicSubscriptionsRequest. } it := c.ListTopicSubscriptions(ctx, req) for { diff --git a/internal/generated/snippets/pubsub/apiv1/PublisherClient/ListTopics/main.go b/internal/generated/snippets/pubsub/apiv1/PublisherClient/ListTopics/main.go index fde6cc9a3755..af3677a5de5c 100644 --- a/internal/generated/snippets/pubsub/apiv1/PublisherClient/ListTopics/main.go +++ b/internal/generated/snippets/pubsub/apiv1/PublisherClient/ListTopics/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" "google.golang.org/api/iterator" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &pubsubpb.ListTopicsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#ListTopicsRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#ListTopicsRequest. } it := c.ListTopics(ctx, req) for { diff --git a/internal/generated/snippets/pubsub/apiv1/PublisherClient/Publish/main.go b/internal/generated/snippets/pubsub/apiv1/PublisherClient/Publish/main.go index f6b5345bc142..3212cec24806 100644 --- a/internal/generated/snippets/pubsub/apiv1/PublisherClient/Publish/main.go +++ b/internal/generated/snippets/pubsub/apiv1/PublisherClient/Publish/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.PublishRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#PublishRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#PublishRequest. } resp, err := c.Publish(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/PublisherClient/SetIamPolicy/main.go b/internal/generated/snippets/pubsub/apiv1/PublisherClient/SetIamPolicy/main.go index 8bf8cd1906e9..1e99866f46c4 100644 --- a/internal/generated/snippets/pubsub/apiv1/PublisherClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/pubsub/apiv1/PublisherClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/pubsub/apiv1/PublisherClient/TestIamPermissions/main.go b/internal/generated/snippets/pubsub/apiv1/PublisherClient/TestIamPermissions/main.go index e027f518ff9b..95adc723dfce 100644 --- a/internal/generated/snippets/pubsub/apiv1/PublisherClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/pubsub/apiv1/PublisherClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/pubsub/apiv1/PublisherClient/UpdateTopic/main.go b/internal/generated/snippets/pubsub/apiv1/PublisherClient/UpdateTopic/main.go index e7f380298380..390b7c6568db 100644 --- a/internal/generated/snippets/pubsub/apiv1/PublisherClient/UpdateTopic/main.go +++ b/internal/generated/snippets/pubsub/apiv1/PublisherClient/UpdateTopic/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.UpdateTopicRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#UpdateTopicRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#UpdateTopicRequest. } resp, err := c.UpdateTopic(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/SchemaClient/CommitSchema/main.go b/internal/generated/snippets/pubsub/apiv1/SchemaClient/CommitSchema/main.go new file mode 100644 index 000000000000..c48b85de25d9 --- /dev/null +++ b/internal/generated/snippets/pubsub/apiv1/SchemaClient/CommitSchema/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsub_v1_generated_SchemaService_CommitSchema_sync] + +package main + +import ( + "context" + + pubsub "cloud.google.com/go/pubsub/apiv1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsub.NewSchemaClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &pubsubpb.CommitSchemaRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#CommitSchemaRequest. + } + resp, err := c.CommitSchema(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END pubsub_v1_generated_SchemaService_CommitSchema_sync] diff --git a/internal/generated/snippets/pubsub/apiv1/SchemaClient/CreateSchema/main.go b/internal/generated/snippets/pubsub/apiv1/SchemaClient/CreateSchema/main.go index eb0069d056a3..acf3adcbd9ce 100644 --- a/internal/generated/snippets/pubsub/apiv1/SchemaClient/CreateSchema/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SchemaClient/CreateSchema/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.CreateSchemaRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#CreateSchemaRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#CreateSchemaRequest. } resp, err := c.CreateSchema(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/SchemaClient/DeleteSchema/main.go b/internal/generated/snippets/pubsub/apiv1/SchemaClient/DeleteSchema/main.go index ece94d0d6e72..f9bbe308e965 100644 --- a/internal/generated/snippets/pubsub/apiv1/SchemaClient/DeleteSchema/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SchemaClient/DeleteSchema/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.DeleteSchemaRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#DeleteSchemaRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#DeleteSchemaRequest. } err = c.DeleteSchema(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/SchemaClient/DeleteSchemaRevision/main.go b/internal/generated/snippets/pubsub/apiv1/SchemaClient/DeleteSchemaRevision/main.go new file mode 100644 index 000000000000..4d361b8fdc78 --- /dev/null +++ b/internal/generated/snippets/pubsub/apiv1/SchemaClient/DeleteSchemaRevision/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsub_v1_generated_SchemaService_DeleteSchemaRevision_sync] + +package main + +import ( + "context" + + pubsub "cloud.google.com/go/pubsub/apiv1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsub.NewSchemaClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &pubsubpb.DeleteSchemaRevisionRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#DeleteSchemaRevisionRequest. + } + resp, err := c.DeleteSchemaRevision(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END pubsub_v1_generated_SchemaService_DeleteSchemaRevision_sync] diff --git a/internal/generated/snippets/pubsub/apiv1/SchemaClient/GetIamPolicy/main.go b/internal/generated/snippets/pubsub/apiv1/SchemaClient/GetIamPolicy/main.go index 30d9d8fc5c0e..943a31f15f62 100644 --- a/internal/generated/snippets/pubsub/apiv1/SchemaClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SchemaClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/pubsub/apiv1/SchemaClient/GetSchema/main.go b/internal/generated/snippets/pubsub/apiv1/SchemaClient/GetSchema/main.go index 60856c0db42a..1d6081af21fb 100644 --- a/internal/generated/snippets/pubsub/apiv1/SchemaClient/GetSchema/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SchemaClient/GetSchema/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.GetSchemaRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#GetSchemaRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#GetSchemaRequest. } resp, err := c.GetSchema(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/SchemaClient/ListSchemaRevisions/main.go b/internal/generated/snippets/pubsub/apiv1/SchemaClient/ListSchemaRevisions/main.go new file mode 100644 index 000000000000..c49f4b6ef845 --- /dev/null +++ b/internal/generated/snippets/pubsub/apiv1/SchemaClient/ListSchemaRevisions/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsub_v1_generated_SchemaService_ListSchemaRevisions_sync] + +package main + +import ( + "context" + + pubsub "cloud.google.com/go/pubsub/apiv1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsub.NewSchemaClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &pubsubpb.ListSchemaRevisionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#ListSchemaRevisionsRequest. + } + it := c.ListSchemaRevisions(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END pubsub_v1_generated_SchemaService_ListSchemaRevisions_sync] diff --git a/internal/generated/snippets/pubsub/apiv1/SchemaClient/ListSchemas/main.go b/internal/generated/snippets/pubsub/apiv1/SchemaClient/ListSchemas/main.go index 4fa2cd42343f..6c81204832eb 100644 --- a/internal/generated/snippets/pubsub/apiv1/SchemaClient/ListSchemas/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SchemaClient/ListSchemas/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" "google.golang.org/api/iterator" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &pubsubpb.ListSchemasRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#ListSchemasRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#ListSchemasRequest. } it := c.ListSchemas(ctx, req) for { diff --git a/internal/generated/snippets/pubsub/apiv1/SchemaClient/RollbackSchema/main.go b/internal/generated/snippets/pubsub/apiv1/SchemaClient/RollbackSchema/main.go new file mode 100644 index 000000000000..6a6da723636a --- /dev/null +++ b/internal/generated/snippets/pubsub/apiv1/SchemaClient/RollbackSchema/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsub_v1_generated_SchemaService_RollbackSchema_sync] + +package main + +import ( + "context" + + pubsub "cloud.google.com/go/pubsub/apiv1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsub.NewSchemaClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &pubsubpb.RollbackSchemaRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#RollbackSchemaRequest. + } + resp, err := c.RollbackSchema(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END pubsub_v1_generated_SchemaService_RollbackSchema_sync] diff --git a/internal/generated/snippets/pubsub/apiv1/SchemaClient/SetIamPolicy/main.go b/internal/generated/snippets/pubsub/apiv1/SchemaClient/SetIamPolicy/main.go index ccaeefa52ea3..49afa7b0b039 100644 --- a/internal/generated/snippets/pubsub/apiv1/SchemaClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SchemaClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/pubsub/apiv1/SchemaClient/TestIamPermissions/main.go b/internal/generated/snippets/pubsub/apiv1/SchemaClient/TestIamPermissions/main.go index cacfe74f5723..f803ce067651 100644 --- a/internal/generated/snippets/pubsub/apiv1/SchemaClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SchemaClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/pubsub/apiv1/SchemaClient/ValidateMessage/main.go b/internal/generated/snippets/pubsub/apiv1/SchemaClient/ValidateMessage/main.go index 001087299fa2..90b66f6f37a1 100644 --- a/internal/generated/snippets/pubsub/apiv1/SchemaClient/ValidateMessage/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SchemaClient/ValidateMessage/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.ValidateMessageRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#ValidateMessageRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#ValidateMessageRequest. } resp, err := c.ValidateMessage(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/SchemaClient/ValidateSchema/main.go b/internal/generated/snippets/pubsub/apiv1/SchemaClient/ValidateSchema/main.go index 3c3951f5004b..0885d0d2de9d 100644 --- a/internal/generated/snippets/pubsub/apiv1/SchemaClient/ValidateSchema/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SchemaClient/ValidateSchema/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSchemaClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.ValidateSchemaRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#ValidateSchemaRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#ValidateSchemaRequest. } resp, err := c.ValidateSchema(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/Acknowledge/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/Acknowledge/main.go index 5b804c4cc0c9..4bf657ba955d 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/Acknowledge/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/Acknowledge/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.AcknowledgeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#AcknowledgeRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#AcknowledgeRequest. } err = c.Acknowledge(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/CreateSnapshot/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/CreateSnapshot/main.go index d272300cca92..ecb13bf75a0a 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/CreateSnapshot/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/CreateSnapshot/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.CreateSnapshotRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#CreateSnapshotRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#CreateSnapshotRequest. } resp, err := c.CreateSnapshot(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/CreateSubscription/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/CreateSubscription/main.go index 42fdbe1868e3..07c252ff0f94 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/CreateSubscription/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/CreateSubscription/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.Subscription{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#Subscription. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#Subscription. } resp, err := c.CreateSubscription(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/DeleteSnapshot/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/DeleteSnapshot/main.go index 916f4811c36a..db6986fd9603 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/DeleteSnapshot/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/DeleteSnapshot/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.DeleteSnapshotRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#DeleteSnapshotRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#DeleteSnapshotRequest. } err = c.DeleteSnapshot(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/DeleteSubscription/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/DeleteSubscription/main.go index 57e09507a37c..7919476c398c 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/DeleteSubscription/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/DeleteSubscription/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.DeleteSubscriptionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#DeleteSubscriptionRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#DeleteSubscriptionRequest. } err = c.DeleteSubscription(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/GetIamPolicy/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/GetIamPolicy/main.go index 6a09b079e2d0..4dae72bef876 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/GetSnapshot/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/GetSnapshot/main.go index ee91349b5ec5..b09ada6a537d 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/GetSnapshot/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/GetSnapshot/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.GetSnapshotRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#GetSnapshotRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#GetSnapshotRequest. } resp, err := c.GetSnapshot(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/GetSubscription/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/GetSubscription/main.go index 38c906dd9689..d38e91639806 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/GetSubscription/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/GetSubscription/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.GetSubscriptionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#GetSubscriptionRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#GetSubscriptionRequest. } resp, err := c.GetSubscription(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/ListSnapshots/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/ListSnapshots/main.go index 56e81a6bbe50..e348652c6ebf 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/ListSnapshots/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/ListSnapshots/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" "google.golang.org/api/iterator" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &pubsubpb.ListSnapshotsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#ListSnapshotsRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#ListSnapshotsRequest. } it := c.ListSnapshots(ctx, req) for { diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/ListSubscriptions/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/ListSubscriptions/main.go index 89dff2453f59..412ebddeb718 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/ListSubscriptions/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/ListSubscriptions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" "google.golang.org/api/iterator" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &pubsubpb.ListSubscriptionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#ListSubscriptionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#ListSubscriptionsRequest. } it := c.ListSubscriptions(ctx, req) for { diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/ModifyAckDeadline/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/ModifyAckDeadline/main.go index 97e7465dcc86..0a5344c617a6 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/ModifyAckDeadline/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/ModifyAckDeadline/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.ModifyAckDeadlineRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#ModifyAckDeadlineRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#ModifyAckDeadlineRequest. } err = c.ModifyAckDeadline(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/ModifyPushConfig/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/ModifyPushConfig/main.go index e903c5d39fa9..161eb4a61f62 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/ModifyPushConfig/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/ModifyPushConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.ModifyPushConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#ModifyPushConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#ModifyPushConfigRequest. } err = c.ModifyPushConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/Pull/lengthyClientProcessing/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/Pull/lengthyClientProcessing/main.go index 7d36091f8e26..76bfbba253f9 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/Pull/lengthyClientProcessing/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/Pull/lengthyClientProcessing/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ import ( "time" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/Pull/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/Pull/main.go index 63c9f1d94343..e0b95c84f1e8 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/Pull/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/Pull/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.PullRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#PullRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#PullRequest. } resp, err := c.Pull(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/Seek/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/Seek/main.go index dbc4a4a80bd6..f169fd3db0ae 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/Seek/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/Seek/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.SeekRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#SeekRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#SeekRequest. } resp, err := c.Seek(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/SetIamPolicy/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/SetIamPolicy/main.go index 8c67396b389c..a44dc6f25ef0 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/StreamingPull/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/StreamingPull/main.go index 909a1ece7815..ee8e170242df 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/StreamingPull/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/StreamingPull/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,11 +23,16 @@ import ( "io" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/TestIamPermissions/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/TestIamPermissions/main.go index d418f2b426e3..3223c9ab2cbe 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/UpdateSnapshot/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/UpdateSnapshot/main.go index cb82ac341ef6..0de509a276f0 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/UpdateSnapshot/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/UpdateSnapshot/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.UpdateSnapshotRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#UpdateSnapshotRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#UpdateSnapshotRequest. } resp, err := c.UpdateSnapshot(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/UpdateSubscription/main.go b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/UpdateSubscription/main.go index 2c48c27ecca1..9e5979f55522 100644 --- a/internal/generated/snippets/pubsub/apiv1/SubscriberClient/UpdateSubscription/main.go +++ b/internal/generated/snippets/pubsub/apiv1/SubscriberClient/UpdateSubscription/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsub "cloud.google.com/go/pubsub/apiv1" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" + pubsubpb "cloud.google.com/go/pubsub/apiv1/pubsubpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsub.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsubpb.UpdateSubscriptionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/pubsub/v1#UpdateSubscriptionRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#UpdateSubscriptionRequest. } resp, err := c.UpdateSubscription(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsub/apiv1/snippet_metadata.google.pubsub.v1.json b/internal/generated/snippets/pubsub/apiv1/snippet_metadata.google.pubsub.v1.json new file mode 100644 index 000000000000..c8fa9dfeafec --- /dev/null +++ b/internal/generated/snippets/pubsub/apiv1/snippet_metadata.google.pubsub.v1.json @@ -0,0 +1,2027 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/pubsub/apiv1", + "version": "1.28.0", + "language": "GO", + "apis": [ + { + "id": "google.pubsub.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "pubsub_v1_generated_Publisher_CreateTopic_sync", + "title": "pubsub CreateTopic Sample", + "description": "CreateTopic creates the given topic with the given name. See the [resource name rules]\n(https: //cloud.google.com/pubsub/docs/admin#resource_names (at https: //cloud.google.com/pubsub/docs/admin#resource_names)).", + "file": "PublisherClient/CreateTopic/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateTopic", + "fullName": "google.pubsub.v1.PublisherClient.CreateTopic", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.Topic", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.Topic", + "client": { + "shortName": "PublisherClient", + "fullName": "google.pubsub.v1.PublisherClient" + }, + "method": { + "shortName": "CreateTopic", + "fullName": "google.pubsub.v1.Publisher.CreateTopic", + "service": { + "shortName": "Publisher", + "fullName": "google.pubsub.v1.Publisher" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Publisher_DeleteTopic_sync", + "title": "pubsub DeleteTopic Sample", + "description": "DeleteTopic deletes the topic with the given name. Returns NOT_FOUND if the topic\ndoes not exist. After a topic is deleted, a new topic may be created with\nthe same name; this is an entirely new topic with none of the old\nconfiguration or subscriptions. Existing subscriptions to this topic are\nnot deleted, but their topic field is set to _deleted-topic_.", + "file": "PublisherClient/DeleteTopic/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteTopic", + "fullName": "google.pubsub.v1.PublisherClient.DeleteTopic", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.DeleteTopicRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "PublisherClient", + "fullName": "google.pubsub.v1.PublisherClient" + }, + "method": { + "shortName": "DeleteTopic", + "fullName": "google.pubsub.v1.Publisher.DeleteTopic", + "service": { + "shortName": "Publisher", + "fullName": "google.pubsub.v1.Publisher" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Publisher_DetachSubscription_sync", + "title": "pubsub DetachSubscription Sample", + "description": "DetachSubscription detaches a subscription from this topic. All messages retained in the\nsubscription are dropped. Subsequent Pull and StreamingPull requests\nwill return FAILED_PRECONDITION. If the subscription is a push\nsubscription, pushes to the endpoint will stop.", + "file": "PublisherClient/DetachSubscription/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DetachSubscription", + "fullName": "google.pubsub.v1.PublisherClient.DetachSubscription", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.DetachSubscriptionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.DetachSubscriptionResponse", + "client": { + "shortName": "PublisherClient", + "fullName": "google.pubsub.v1.PublisherClient" + }, + "method": { + "shortName": "DetachSubscription", + "fullName": "google.pubsub.v1.Publisher.DetachSubscription", + "service": { + "shortName": "Publisher", + "fullName": "google.pubsub.v1.Publisher" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Publisher_GetIamPolicy_sync", + "title": "pubsub GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "PublisherClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.pubsub.v1.PublisherClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "PublisherClient", + "fullName": "google.pubsub.v1.PublisherClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.pubsub.v1.Publisher.GetIamPolicy", + "service": { + "shortName": "Publisher", + "fullName": "google.pubsub.v1.Publisher" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Publisher_GetTopic_sync", + "title": "pubsub GetTopic Sample", + "description": "GetTopic gets the configuration of a topic.", + "file": "PublisherClient/GetTopic/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetTopic", + "fullName": "google.pubsub.v1.PublisherClient.GetTopic", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.GetTopicRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.Topic", + "client": { + "shortName": "PublisherClient", + "fullName": "google.pubsub.v1.PublisherClient" + }, + "method": { + "shortName": "GetTopic", + "fullName": "google.pubsub.v1.Publisher.GetTopic", + "service": { + "shortName": "Publisher", + "fullName": "google.pubsub.v1.Publisher" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Publisher_ListTopicSnapshots_sync", + "title": "pubsub ListTopicSnapshots Sample", + "description": "ListTopicSnapshots lists the names of the snapshots on this topic. Snapshots are used in\nSeek (at https: //cloud.google.com/pubsub/docs/replay-overview) operations,\nwhich allow you to manage message acknowledgments in bulk. That is, you can\nset the acknowledgment state of messages in an existing subscription to the\nstate captured by a snapshot.", + "file": "PublisherClient/ListTopicSnapshots/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListTopicSnapshots", + "fullName": "google.pubsub.v1.PublisherClient.ListTopicSnapshots", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.ListTopicSnapshotsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "StringIterator", + "client": { + "shortName": "PublisherClient", + "fullName": "google.pubsub.v1.PublisherClient" + }, + "method": { + "shortName": "ListTopicSnapshots", + "fullName": "google.pubsub.v1.Publisher.ListTopicSnapshots", + "service": { + "shortName": "Publisher", + "fullName": "google.pubsub.v1.Publisher" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Publisher_ListTopicSubscriptions_sync", + "title": "pubsub ListTopicSubscriptions Sample", + "description": "ListTopicSubscriptions lists the names of the attached subscriptions on this topic.", + "file": "PublisherClient/ListTopicSubscriptions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListTopicSubscriptions", + "fullName": "google.pubsub.v1.PublisherClient.ListTopicSubscriptions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.ListTopicSubscriptionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "StringIterator", + "client": { + "shortName": "PublisherClient", + "fullName": "google.pubsub.v1.PublisherClient" + }, + "method": { + "shortName": "ListTopicSubscriptions", + "fullName": "google.pubsub.v1.Publisher.ListTopicSubscriptions", + "service": { + "shortName": "Publisher", + "fullName": "google.pubsub.v1.Publisher" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Publisher_ListTopics_sync", + "title": "pubsub ListTopics Sample", + "description": "ListTopics lists matching topics.", + "file": "PublisherClient/ListTopics/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListTopics", + "fullName": "google.pubsub.v1.PublisherClient.ListTopics", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.ListTopicsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "TopicIterator", + "client": { + "shortName": "PublisherClient", + "fullName": "google.pubsub.v1.PublisherClient" + }, + "method": { + "shortName": "ListTopics", + "fullName": "google.pubsub.v1.Publisher.ListTopics", + "service": { + "shortName": "Publisher", + "fullName": "google.pubsub.v1.Publisher" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Publisher_Publish_sync", + "title": "pubsub Publish Sample", + "description": "Publish adds one or more messages to the topic. Returns NOT_FOUND if the topic\ndoes not exist.", + "file": "PublisherClient/Publish/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Publish", + "fullName": "google.pubsub.v1.PublisherClient.Publish", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.PublishRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.PublishResponse", + "client": { + "shortName": "PublisherClient", + "fullName": "google.pubsub.v1.PublisherClient" + }, + "method": { + "shortName": "Publish", + "fullName": "google.pubsub.v1.Publisher.Publish", + "service": { + "shortName": "Publisher", + "fullName": "google.pubsub.v1.Publisher" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Publisher_SetIamPolicy_sync", + "title": "pubsub SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "PublisherClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.pubsub.v1.PublisherClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "PublisherClient", + "fullName": "google.pubsub.v1.PublisherClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.pubsub.v1.Publisher.SetIamPolicy", + "service": { + "shortName": "Publisher", + "fullName": "google.pubsub.v1.Publisher" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Publisher_TestIamPermissions_sync", + "title": "pubsub TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "PublisherClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.pubsub.v1.PublisherClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "PublisherClient", + "fullName": "google.pubsub.v1.PublisherClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.pubsub.v1.Publisher.TestIamPermissions", + "service": { + "shortName": "Publisher", + "fullName": "google.pubsub.v1.Publisher" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Publisher_UpdateTopic_sync", + "title": "pubsub UpdateTopic Sample", + "description": "UpdateTopic updates an existing topic. Note that certain properties of a\ntopic are not modifiable.", + "file": "PublisherClient/UpdateTopic/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateTopic", + "fullName": "google.pubsub.v1.PublisherClient.UpdateTopic", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.UpdateTopicRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.Topic", + "client": { + "shortName": "PublisherClient", + "fullName": "google.pubsub.v1.PublisherClient" + }, + "method": { + "shortName": "UpdateTopic", + "fullName": "google.pubsub.v1.Publisher.UpdateTopic", + "service": { + "shortName": "Publisher", + "fullName": "google.pubsub.v1.Publisher" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_SchemaService_CommitSchema_sync", + "title": "pubsub CommitSchema Sample", + "description": "CommitSchema commits a new schema revision to an existing schema.", + "file": "SchemaClient/CommitSchema/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CommitSchema", + "fullName": "google.pubsub.v1.SchemaClient.CommitSchema", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.CommitSchemaRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.Schema", + "client": { + "shortName": "SchemaClient", + "fullName": "google.pubsub.v1.SchemaClient" + }, + "method": { + "shortName": "CommitSchema", + "fullName": "google.pubsub.v1.SchemaService.CommitSchema", + "service": { + "shortName": "SchemaService", + "fullName": "google.pubsub.v1.SchemaService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_SchemaService_CreateSchema_sync", + "title": "pubsub CreateSchema Sample", + "description": "CreateSchema creates a schema.", + "file": "SchemaClient/CreateSchema/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSchema", + "fullName": "google.pubsub.v1.SchemaClient.CreateSchema", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.CreateSchemaRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.Schema", + "client": { + "shortName": "SchemaClient", + "fullName": "google.pubsub.v1.SchemaClient" + }, + "method": { + "shortName": "CreateSchema", + "fullName": "google.pubsub.v1.SchemaService.CreateSchema", + "service": { + "shortName": "SchemaService", + "fullName": "google.pubsub.v1.SchemaService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_SchemaService_DeleteSchema_sync", + "title": "pubsub DeleteSchema Sample", + "description": "DeleteSchema deletes a schema.", + "file": "SchemaClient/DeleteSchema/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteSchema", + "fullName": "google.pubsub.v1.SchemaClient.DeleteSchema", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.DeleteSchemaRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "SchemaClient", + "fullName": "google.pubsub.v1.SchemaClient" + }, + "method": { + "shortName": "DeleteSchema", + "fullName": "google.pubsub.v1.SchemaService.DeleteSchema", + "service": { + "shortName": "SchemaService", + "fullName": "google.pubsub.v1.SchemaService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_SchemaService_DeleteSchemaRevision_sync", + "title": "pubsub DeleteSchemaRevision Sample", + "description": "DeleteSchemaRevision deletes a specific schema revision.", + "file": "SchemaClient/DeleteSchemaRevision/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteSchemaRevision", + "fullName": "google.pubsub.v1.SchemaClient.DeleteSchemaRevision", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.DeleteSchemaRevisionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.Schema", + "client": { + "shortName": "SchemaClient", + "fullName": "google.pubsub.v1.SchemaClient" + }, + "method": { + "shortName": "DeleteSchemaRevision", + "fullName": "google.pubsub.v1.SchemaService.DeleteSchemaRevision", + "service": { + "shortName": "SchemaService", + "fullName": "google.pubsub.v1.SchemaService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_SchemaService_GetIamPolicy_sync", + "title": "pubsub GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "SchemaClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.pubsub.v1.SchemaClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "SchemaClient", + "fullName": "google.pubsub.v1.SchemaClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.pubsub.v1.SchemaService.GetIamPolicy", + "service": { + "shortName": "SchemaService", + "fullName": "google.pubsub.v1.SchemaService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_SchemaService_GetSchema_sync", + "title": "pubsub GetSchema Sample", + "description": "GetSchema gets a schema.", + "file": "SchemaClient/GetSchema/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSchema", + "fullName": "google.pubsub.v1.SchemaClient.GetSchema", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.GetSchemaRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.Schema", + "client": { + "shortName": "SchemaClient", + "fullName": "google.pubsub.v1.SchemaClient" + }, + "method": { + "shortName": "GetSchema", + "fullName": "google.pubsub.v1.SchemaService.GetSchema", + "service": { + "shortName": "SchemaService", + "fullName": "google.pubsub.v1.SchemaService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_SchemaService_ListSchemaRevisions_sync", + "title": "pubsub ListSchemaRevisions Sample", + "description": "ListSchemaRevisions lists all schema revisions for the named schema.", + "file": "SchemaClient/ListSchemaRevisions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListSchemaRevisions", + "fullName": "google.pubsub.v1.SchemaClient.ListSchemaRevisions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.ListSchemaRevisionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SchemaIterator", + "client": { + "shortName": "SchemaClient", + "fullName": "google.pubsub.v1.SchemaClient" + }, + "method": { + "shortName": "ListSchemaRevisions", + "fullName": "google.pubsub.v1.SchemaService.ListSchemaRevisions", + "service": { + "shortName": "SchemaService", + "fullName": "google.pubsub.v1.SchemaService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_SchemaService_ListSchemas_sync", + "title": "pubsub ListSchemas Sample", + "description": "ListSchemas lists schemas in a project.", + "file": "SchemaClient/ListSchemas/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListSchemas", + "fullName": "google.pubsub.v1.SchemaClient.ListSchemas", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.ListSchemasRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SchemaIterator", + "client": { + "shortName": "SchemaClient", + "fullName": "google.pubsub.v1.SchemaClient" + }, + "method": { + "shortName": "ListSchemas", + "fullName": "google.pubsub.v1.SchemaService.ListSchemas", + "service": { + "shortName": "SchemaService", + "fullName": "google.pubsub.v1.SchemaService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_SchemaService_RollbackSchema_sync", + "title": "pubsub RollbackSchema Sample", + "description": "RollbackSchema creates a new schema revision that is a copy of the provided revision_id.", + "file": "SchemaClient/RollbackSchema/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RollbackSchema", + "fullName": "google.pubsub.v1.SchemaClient.RollbackSchema", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.RollbackSchemaRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.Schema", + "client": { + "shortName": "SchemaClient", + "fullName": "google.pubsub.v1.SchemaClient" + }, + "method": { + "shortName": "RollbackSchema", + "fullName": "google.pubsub.v1.SchemaService.RollbackSchema", + "service": { + "shortName": "SchemaService", + "fullName": "google.pubsub.v1.SchemaService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_SchemaService_SetIamPolicy_sync", + "title": "pubsub SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "SchemaClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.pubsub.v1.SchemaClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "SchemaClient", + "fullName": "google.pubsub.v1.SchemaClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.pubsub.v1.SchemaService.SetIamPolicy", + "service": { + "shortName": "SchemaService", + "fullName": "google.pubsub.v1.SchemaService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_SchemaService_TestIamPermissions_sync", + "title": "pubsub TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "SchemaClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.pubsub.v1.SchemaClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "SchemaClient", + "fullName": "google.pubsub.v1.SchemaClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.pubsub.v1.SchemaService.TestIamPermissions", + "service": { + "shortName": "SchemaService", + "fullName": "google.pubsub.v1.SchemaService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_SchemaService_ValidateMessage_sync", + "title": "pubsub ValidateMessage Sample", + "description": "ValidateMessage validates a message against a schema.", + "file": "SchemaClient/ValidateMessage/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ValidateMessage", + "fullName": "google.pubsub.v1.SchemaClient.ValidateMessage", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.ValidateMessageRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.ValidateMessageResponse", + "client": { + "shortName": "SchemaClient", + "fullName": "google.pubsub.v1.SchemaClient" + }, + "method": { + "shortName": "ValidateMessage", + "fullName": "google.pubsub.v1.SchemaService.ValidateMessage", + "service": { + "shortName": "SchemaService", + "fullName": "google.pubsub.v1.SchemaService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_SchemaService_ValidateSchema_sync", + "title": "pubsub ValidateSchema Sample", + "description": "ValidateSchema validates a schema.", + "file": "SchemaClient/ValidateSchema/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ValidateSchema", + "fullName": "google.pubsub.v1.SchemaClient.ValidateSchema", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.ValidateSchemaRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.ValidateSchemaResponse", + "client": { + "shortName": "SchemaClient", + "fullName": "google.pubsub.v1.SchemaClient" + }, + "method": { + "shortName": "ValidateSchema", + "fullName": "google.pubsub.v1.SchemaService.ValidateSchema", + "service": { + "shortName": "SchemaService", + "fullName": "google.pubsub.v1.SchemaService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_Acknowledge_sync", + "title": "pubsub Acknowledge Sample", + "description": "Acknowledge acknowledges the messages associated with the ack_ids in the\nAcknowledgeRequest. The Pub/Sub system can remove the relevant messages\nfrom the subscription.\n\nAcknowledging a message whose ack deadline has expired may succeed,\nbut such a message may be redelivered later. Acknowledging a message more\nthan once will not result in an error.", + "file": "SubscriberClient/Acknowledge/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Acknowledge", + "fullName": "google.pubsub.v1.SubscriberClient.Acknowledge", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.AcknowledgeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "Acknowledge", + "fullName": "google.pubsub.v1.Subscriber.Acknowledge", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_CreateSnapshot_sync", + "title": "pubsub CreateSnapshot Sample", + "description": "CreateSnapshot creates a snapshot from the requested subscription. Snapshots are used in\nSeek (at https: //cloud.google.com/pubsub/docs/replay-overview) operations,\nwhich allow you to manage message acknowledgments in bulk. That is, you can\nset the acknowledgment state of messages in an existing subscription to the\nstate captured by a snapshot.\nIf the snapshot already exists, returns ALREADY_EXISTS.\nIf the requested subscription doesn’t exist, returns NOT_FOUND.\nIf the backlog in the subscription is too old – and the resulting snapshot\nwould expire in less than 1 hour – then FAILED_PRECONDITION is returned.\nSee also the Snapshot.expire_time field. If the name is not provided in\nthe request, the server will assign a random\nname for this snapshot on the same project as the subscription, conforming\nto the [resource name format]\n(https: //cloud.google.com/pubsub/docs/admin#resource_names (at https: //cloud.google.com/pubsub/docs/admin#resource_names)). The\ngenerated name is populated in the returned Snapshot object. Note that for\nREST API requests, you must specify a name in the request.", + "file": "SubscriberClient/CreateSnapshot/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSnapshot", + "fullName": "google.pubsub.v1.SubscriberClient.CreateSnapshot", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.CreateSnapshotRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.Snapshot", + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "CreateSnapshot", + "fullName": "google.pubsub.v1.Subscriber.CreateSnapshot", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_CreateSubscription_sync", + "title": "pubsub CreateSubscription Sample", + "description": "CreateSubscription creates a subscription to a given topic. See the [resource name rules]\n(https: //cloud.google.com/pubsub/docs/admin#resource_names (at https: //cloud.google.com/pubsub/docs/admin#resource_names)).\nIf the subscription already exists, returns ALREADY_EXISTS.\nIf the corresponding topic doesn’t exist, returns NOT_FOUND.\n\nIf the name is not provided in the request, the server will assign a random\nname for this subscription on the same project as the topic, conforming\nto the [resource name format]\n(https: //cloud.google.com/pubsub/docs/admin#resource_names (at https: //cloud.google.com/pubsub/docs/admin#resource_names)). The generated\nname is populated in the returned Subscription object. Note that for REST\nAPI requests, you must specify a name in the request.", + "file": "SubscriberClient/CreateSubscription/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSubscription", + "fullName": "google.pubsub.v1.SubscriberClient.CreateSubscription", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.Subscription", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.Subscription", + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "CreateSubscription", + "fullName": "google.pubsub.v1.Subscriber.CreateSubscription", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_DeleteSnapshot_sync", + "title": "pubsub DeleteSnapshot Sample", + "description": "DeleteSnapshot removes an existing snapshot. Snapshots are used in [Seek]\n(https: //cloud.google.com/pubsub/docs/replay-overview (at https: //cloud.google.com/pubsub/docs/replay-overview)) operations, which\nallow you to manage message acknowledgments in bulk. That is, you can set\nthe acknowledgment state of messages in an existing subscription to the\nstate captured by a snapshot.\nWhen the snapshot is deleted, all messages retained in the snapshot\nare immediately dropped. After a snapshot is deleted, a new one may be\ncreated with the same name, but the new one has no association with the old\nsnapshot or its subscription, unless the same subscription is specified.", + "file": "SubscriberClient/DeleteSnapshot/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteSnapshot", + "fullName": "google.pubsub.v1.SubscriberClient.DeleteSnapshot", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.DeleteSnapshotRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "DeleteSnapshot", + "fullName": "google.pubsub.v1.Subscriber.DeleteSnapshot", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_DeleteSubscription_sync", + "title": "pubsub DeleteSubscription Sample", + "description": "DeleteSubscription deletes an existing subscription. All messages retained in the subscription\nare immediately dropped. Calls to Pull after deletion will return\nNOT_FOUND. After a subscription is deleted, a new one may be created with\nthe same name, but the new one has no association with the old\nsubscription or its topic unless the same topic is specified.", + "file": "SubscriberClient/DeleteSubscription/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteSubscription", + "fullName": "google.pubsub.v1.SubscriberClient.DeleteSubscription", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.DeleteSubscriptionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "DeleteSubscription", + "fullName": "google.pubsub.v1.Subscriber.DeleteSubscription", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_GetIamPolicy_sync", + "title": "pubsub GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "SubscriberClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.pubsub.v1.SubscriberClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.pubsub.v1.Subscriber.GetIamPolicy", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_GetSnapshot_sync", + "title": "pubsub GetSnapshot Sample", + "description": "GetSnapshot gets the configuration details of a snapshot. Snapshots are used in\nSeek (at https: //cloud.google.com/pubsub/docs/replay-overview)\noperations, which allow you to manage message acknowledgments in bulk. That\nis, you can set the acknowledgment state of messages in an existing\nsubscription to the state captured by a snapshot.", + "file": "SubscriberClient/GetSnapshot/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSnapshot", + "fullName": "google.pubsub.v1.SubscriberClient.GetSnapshot", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.GetSnapshotRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.Snapshot", + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "GetSnapshot", + "fullName": "google.pubsub.v1.Subscriber.GetSnapshot", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_GetSubscription_sync", + "title": "pubsub GetSubscription Sample", + "description": "GetSubscription gets the configuration details of a subscription.", + "file": "SubscriberClient/GetSubscription/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSubscription", + "fullName": "google.pubsub.v1.SubscriberClient.GetSubscription", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.GetSubscriptionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.Subscription", + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "GetSubscription", + "fullName": "google.pubsub.v1.Subscriber.GetSubscription", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_ListSnapshots_sync", + "title": "pubsub ListSnapshots Sample", + "description": "ListSnapshots lists the existing snapshots. Snapshots are used in Seek (at https: //cloud.google.com/pubsub/docs/replay-overview) operations, which\nallow you to manage message acknowledgments in bulk. That is, you can set\nthe acknowledgment state of messages in an existing subscription to the\nstate captured by a snapshot.", + "file": "SubscriberClient/ListSnapshots/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListSnapshots", + "fullName": "google.pubsub.v1.SubscriberClient.ListSnapshots", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.ListSnapshotsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SnapshotIterator", + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "ListSnapshots", + "fullName": "google.pubsub.v1.Subscriber.ListSnapshots", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_ListSubscriptions_sync", + "title": "pubsub ListSubscriptions Sample", + "description": "ListSubscriptions lists matching subscriptions.", + "file": "SubscriberClient/ListSubscriptions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListSubscriptions", + "fullName": "google.pubsub.v1.SubscriberClient.ListSubscriptions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.ListSubscriptionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SubscriptionIterator", + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "ListSubscriptions", + "fullName": "google.pubsub.v1.Subscriber.ListSubscriptions", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_ModifyAckDeadline_sync", + "title": "pubsub ModifyAckDeadline Sample", + "description": "ModifyAckDeadline modifies the ack deadline for a specific message. This method is useful\nto indicate that more time is needed to process a message by the\nsubscriber, or to make the message available for redelivery if the\nprocessing was interrupted. Note that this does not modify the\nsubscription-level ackDeadlineSeconds used for subsequent messages.", + "file": "SubscriberClient/ModifyAckDeadline/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ModifyAckDeadline", + "fullName": "google.pubsub.v1.SubscriberClient.ModifyAckDeadline", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.ModifyAckDeadlineRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "ModifyAckDeadline", + "fullName": "google.pubsub.v1.Subscriber.ModifyAckDeadline", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_ModifyPushConfig_sync", + "title": "pubsub ModifyPushConfig Sample", + "description": "ModifyPushConfig modifies the PushConfig for a specified subscription.\n\nThis may be used to change a push subscription to a pull one (signified by\nan empty PushConfig) or vice versa, or change the endpoint URL and other\nattributes of a push subscription. Messages will accumulate for delivery\ncontinuously through the call regardless of changes to the PushConfig.", + "file": "SubscriberClient/ModifyPushConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ModifyPushConfig", + "fullName": "google.pubsub.v1.SubscriberClient.ModifyPushConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.ModifyPushConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "ModifyPushConfig", + "fullName": "google.pubsub.v1.Subscriber.ModifyPushConfig", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_Pull_sync", + "title": "pubsub Pull Sample", + "description": "Pull pulls messages from the server. The server may return UNAVAILABLE if\nthere are too many concurrent pull requests pending for the given\nsubscription.", + "file": "SubscriberClient/Pull/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Pull", + "fullName": "google.pubsub.v1.SubscriberClient.Pull", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.PullRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.PullResponse", + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "Pull", + "fullName": "google.pubsub.v1.Subscriber.Pull", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 112, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_Seek_sync", + "title": "pubsub Seek Sample", + "description": "Seek seeks an existing subscription to a point in time or to a given snapshot,\nwhichever is provided in the request. Snapshots are used in [Seek]\n(https: //cloud.google.com/pubsub/docs/replay-overview (at https: //cloud.google.com/pubsub/docs/replay-overview)) operations, which\nallow you to manage message acknowledgments in bulk. That is, you can set\nthe acknowledgment state of messages in an existing subscription to the\nstate captured by a snapshot. Note that both the subscription and the\nsnapshot must be on the same topic.", + "file": "SubscriberClient/Seek/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Seek", + "fullName": "google.pubsub.v1.SubscriberClient.Seek", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.SeekRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.SeekResponse", + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "Seek", + "fullName": "google.pubsub.v1.Subscriber.Seek", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_SetIamPolicy_sync", + "title": "pubsub SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "SubscriberClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.pubsub.v1.SubscriberClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.pubsub.v1.Subscriber.SetIamPolicy", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_StreamingPull_sync", + "title": "pubsub StreamingPull Sample", + "description": "StreamingPull establishes a stream with the server, which sends messages down to the\nclient. The client streams acknowledgements and ack deadline modifications\nback to the server. The server will close the stream and return the status\non any error. The server may close the stream with status UNAVAILABLE to\nreassign server-side resources, in which case, the client should\nre-establish the stream. Flow control can be achieved by configuring the\nunderlying RPC channel.\n\nThis method is not supported for the REST transport.", + "file": "SubscriberClient/StreamingPull/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StreamingPull", + "fullName": "google.pubsub.v1.SubscriberClient.StreamingPull", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "StreamingPull", + "fullName": "google.pubsub.v1.Subscriber.StreamingPull", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 69, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_TestIamPermissions_sync", + "title": "pubsub TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "SubscriberClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.pubsub.v1.SubscriberClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.pubsub.v1.Subscriber.TestIamPermissions", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_UpdateSnapshot_sync", + "title": "pubsub UpdateSnapshot Sample", + "description": "UpdateSnapshot updates an existing snapshot. Snapshots are used in\nSeek (at https: //cloud.google.com/pubsub/docs/replay-overview)\noperations, which allow\nyou to manage message acknowledgments in bulk. That is, you can set the\nacknowledgment state of messages in an existing subscription to the state\ncaptured by a snapshot.", + "file": "SubscriberClient/UpdateSnapshot/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSnapshot", + "fullName": "google.pubsub.v1.SubscriberClient.UpdateSnapshot", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.UpdateSnapshotRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.Snapshot", + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "UpdateSnapshot", + "fullName": "google.pubsub.v1.Subscriber.UpdateSnapshot", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsub_v1_generated_Subscriber_UpdateSubscription_sync", + "title": "pubsub UpdateSubscription Sample", + "description": "UpdateSubscription updates an existing subscription. Note that certain properties of a\nsubscription, such as its topic, are not modifiable.", + "file": "SubscriberClient/UpdateSubscription/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSubscription", + "fullName": "google.pubsub.v1.SubscriberClient.UpdateSubscription", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsubpb.UpdateSubscriptionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsubpb.Subscription", + "client": { + "shortName": "SubscriberClient", + "fullName": "google.pubsub.v1.SubscriberClient" + }, + "method": { + "shortName": "UpdateSubscription", + "fullName": "google.pubsub.v1.Subscriber.UpdateSubscription", + "service": { + "shortName": "Subscriber", + "fullName": "google.pubsub.v1.Subscriber" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/CancelOperation/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/CancelOperation/main.go new file mode 100644 index 000000000000..825cccd26f3a --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_AdminService_CancelOperation_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewAdminClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END pubsublite_v1_generated_AdminService_CancelOperation_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/CreateReservation/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/CreateReservation/main.go index 96dd6d7bce94..4864737ed508 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/CreateReservation/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/CreateReservation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsublitepb.CreateReservationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#CreateReservationRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#CreateReservationRequest. } resp, err := c.CreateReservation(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/CreateSubscription/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/CreateSubscription/main.go index a3ff05851736..9e4bc67edda7 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/CreateSubscription/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/CreateSubscription/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsublitepb.CreateSubscriptionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#CreateSubscriptionRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#CreateSubscriptionRequest. } resp, err := c.CreateSubscription(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/CreateTopic/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/CreateTopic/main.go index 551477b3576f..f04cf138dfd4 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/CreateTopic/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/CreateTopic/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsublitepb.CreateTopicRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#CreateTopicRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#CreateTopicRequest. } resp, err := c.CreateTopic(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/DeleteOperation/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/DeleteOperation/main.go new file mode 100644 index 000000000000..9b657b005c92 --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_AdminService_DeleteOperation_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewAdminClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END pubsublite_v1_generated_AdminService_DeleteOperation_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/DeleteReservation/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/DeleteReservation/main.go index f019a03a027e..bb460e808775 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/DeleteReservation/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/DeleteReservation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsublitepb.DeleteReservationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#DeleteReservationRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#DeleteReservationRequest. } err = c.DeleteReservation(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/DeleteSubscription/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/DeleteSubscription/main.go index f4c7d17e92cb..65bdd4d1bc2f 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/DeleteSubscription/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/DeleteSubscription/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsublitepb.DeleteSubscriptionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#DeleteSubscriptionRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#DeleteSubscriptionRequest. } err = c.DeleteSubscription(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/DeleteTopic/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/DeleteTopic/main.go index 54c4d2cf6550..41dd9f228b44 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/DeleteTopic/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/DeleteTopic/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsublitepb.DeleteTopicRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#DeleteTopicRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#DeleteTopicRequest. } err = c.DeleteTopic(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetOperation/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetOperation/main.go new file mode 100644 index 000000000000..f5da95e6b91d --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_AdminService_GetOperation_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewAdminClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END pubsublite_v1_generated_AdminService_GetOperation_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetReservation/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetReservation/main.go index 16dacf03bb09..17f373e6875a 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetReservation/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetReservation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsublitepb.GetReservationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#GetReservationRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#GetReservationRequest. } resp, err := c.GetReservation(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetSubscription/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetSubscription/main.go index e3030df7f13f..a74ff137dbea 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetSubscription/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetSubscription/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsublitepb.GetSubscriptionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#GetSubscriptionRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#GetSubscriptionRequest. } resp, err := c.GetSubscription(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetTopic/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetTopic/main.go index 4079e01bf5f9..87f02d22f517 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetTopic/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetTopic/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsublitepb.GetTopicRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#GetTopicRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#GetTopicRequest. } resp, err := c.GetTopic(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetTopicPartitions/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetTopicPartitions/main.go index 4bb38fb15fc2..dc5433668f7e 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetTopicPartitions/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/GetTopicPartitions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsublitepb.GetTopicPartitionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#GetTopicPartitionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#GetTopicPartitionsRequest. } resp, err := c.GetTopicPartitions(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListOperations/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListOperations/main.go new file mode 100644 index 000000000000..3b9d7cea2f4b --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_AdminService_ListOperations_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewAdminClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END pubsublite_v1_generated_AdminService_ListOperations_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListReservationTopics/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListReservationTopics/main.go index a62f1bc895eb..63acaf17679c 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListReservationTopics/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListReservationTopics/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" "google.golang.org/api/iterator" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &pubsublitepb.ListReservationTopicsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#ListReservationTopicsRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#ListReservationTopicsRequest. } it := c.ListReservationTopics(ctx, req) for { diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListReservations/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListReservations/main.go index 236a62bb3fbf..ad81851d4a57 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListReservations/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListReservations/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" "google.golang.org/api/iterator" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &pubsublitepb.ListReservationsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#ListReservationsRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#ListReservationsRequest. } it := c.ListReservations(ctx, req) for { diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListSubscriptions/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListSubscriptions/main.go index 426d2404f8a5..08616201924e 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListSubscriptions/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListSubscriptions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" "google.golang.org/api/iterator" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &pubsublitepb.ListSubscriptionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#ListSubscriptionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#ListSubscriptionsRequest. } it := c.ListSubscriptions(ctx, req) for { diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListTopicSubscriptions/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListTopicSubscriptions/main.go index 7917cb455156..4b79a09d35b0 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListTopicSubscriptions/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListTopicSubscriptions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" "google.golang.org/api/iterator" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &pubsublitepb.ListTopicSubscriptionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#ListTopicSubscriptionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#ListTopicSubscriptionsRequest. } it := c.ListTopicSubscriptions(ctx, req) for { diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListTopics/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListTopics/main.go index 8cd8ae4e221f..8d3cdf6855fd 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListTopics/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/ListTopics/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" "google.golang.org/api/iterator" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &pubsublitepb.ListTopicsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#ListTopicsRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#ListTopicsRequest. } it := c.ListTopics(ctx, req) for { diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/SeekSubscription/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/SeekSubscription/main.go index 78a88c99a338..33943217cd5e 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/SeekSubscription/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/SeekSubscription/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsublitepb.SeekSubscriptionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#SeekSubscriptionRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#SeekSubscriptionRequest. } op, err := c.SeekSubscription(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/UpdateReservation/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/UpdateReservation/main.go index c039e03e81a9..0de7b2da1284 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/UpdateReservation/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/UpdateReservation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsublitepb.UpdateReservationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#UpdateReservationRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#UpdateReservationRequest. } resp, err := c.UpdateReservation(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/UpdateSubscription/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/UpdateSubscription/main.go index ff1dc29c17f0..9589cae89df7 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/UpdateSubscription/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/UpdateSubscription/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsublitepb.UpdateSubscriptionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#UpdateSubscriptionRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#UpdateSubscriptionRequest. } resp, err := c.UpdateSubscription(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsublite/apiv1/AdminClient/UpdateTopic/main.go b/internal/generated/snippets/pubsublite/apiv1/AdminClient/UpdateTopic/main.go index 0fe7fdc2e1ee..ce544eead845 100644 --- a/internal/generated/snippets/pubsublite/apiv1/AdminClient/UpdateTopic/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/AdminClient/UpdateTopic/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsublitepb.UpdateTopicRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#UpdateTopicRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#UpdateTopicRequest. } resp, err := c.UpdateTopic(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsublite/apiv1/CursorClient/CancelOperation/main.go b/internal/generated/snippets/pubsublite/apiv1/CursorClient/CancelOperation/main.go new file mode 100644 index 000000000000..97c824ac2b3d --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/CursorClient/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_CursorService_CancelOperation_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewCursorClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END pubsublite_v1_generated_CursorService_CancelOperation_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/CursorClient/CommitCursor/main.go b/internal/generated/snippets/pubsublite/apiv1/CursorClient/CommitCursor/main.go index 3df3c51f59d7..96b653486b26 100644 --- a/internal/generated/snippets/pubsublite/apiv1/CursorClient/CommitCursor/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/CursorClient/CommitCursor/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewCursorClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsublitepb.CommitCursorRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#CommitCursorRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#CommitCursorRequest. } resp, err := c.CommitCursor(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsublite/apiv1/CursorClient/DeleteOperation/main.go b/internal/generated/snippets/pubsublite/apiv1/CursorClient/DeleteOperation/main.go new file mode 100644 index 000000000000..9321dc9231ce --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/CursorClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_CursorService_DeleteOperation_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewCursorClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END pubsublite_v1_generated_CursorService_DeleteOperation_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/CursorClient/GetOperation/main.go b/internal/generated/snippets/pubsublite/apiv1/CursorClient/GetOperation/main.go new file mode 100644 index 000000000000..8ac8e643c9e6 --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/CursorClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_CursorService_GetOperation_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewCursorClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END pubsublite_v1_generated_CursorService_GetOperation_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/CursorClient/ListOperations/main.go b/internal/generated/snippets/pubsublite/apiv1/CursorClient/ListOperations/main.go new file mode 100644 index 000000000000..7177b02514a7 --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/CursorClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_CursorService_ListOperations_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewCursorClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END pubsublite_v1_generated_CursorService_ListOperations_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/CursorClient/ListPartitionCursors/main.go b/internal/generated/snippets/pubsublite/apiv1/CursorClient/ListPartitionCursors/main.go index 151a95dbadfc..25512b358164 100644 --- a/internal/generated/snippets/pubsublite/apiv1/CursorClient/ListPartitionCursors/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/CursorClient/ListPartitionCursors/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" "google.golang.org/api/iterator" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewCursorClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &pubsublitepb.ListPartitionCursorsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#ListPartitionCursorsRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#ListPartitionCursorsRequest. } it := c.ListPartitionCursors(ctx, req) for { diff --git a/internal/generated/snippets/pubsublite/apiv1/CursorClient/StreamingCommitCursor/main.go b/internal/generated/snippets/pubsublite/apiv1/CursorClient/StreamingCommitCursor/main.go index a6ca2dfe3092..d3a9025b5c41 100644 --- a/internal/generated/snippets/pubsublite/apiv1/CursorClient/StreamingCommitCursor/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/CursorClient/StreamingCommitCursor/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,11 +23,16 @@ import ( "io" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewCursorClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/pubsublite/apiv1/PartitionAssignmentClient/AssignPartitions/main.go b/internal/generated/snippets/pubsublite/apiv1/PartitionAssignmentClient/AssignPartitions/main.go index d0505a0d51cf..95b4b82ddc91 100644 --- a/internal/generated/snippets/pubsublite/apiv1/PartitionAssignmentClient/AssignPartitions/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/PartitionAssignmentClient/AssignPartitions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,11 +23,16 @@ import ( "io" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewPartitionAssignmentClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/pubsublite/apiv1/PartitionAssignmentClient/CancelOperation/main.go b/internal/generated/snippets/pubsublite/apiv1/PartitionAssignmentClient/CancelOperation/main.go new file mode 100644 index 000000000000..72296ef77831 --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/PartitionAssignmentClient/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_PartitionAssignmentService_CancelOperation_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewPartitionAssignmentClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END pubsublite_v1_generated_PartitionAssignmentService_CancelOperation_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/PartitionAssignmentClient/DeleteOperation/main.go b/internal/generated/snippets/pubsublite/apiv1/PartitionAssignmentClient/DeleteOperation/main.go new file mode 100644 index 000000000000..6d658c20efef --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/PartitionAssignmentClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_PartitionAssignmentService_DeleteOperation_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewPartitionAssignmentClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END pubsublite_v1_generated_PartitionAssignmentService_DeleteOperation_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/PartitionAssignmentClient/GetOperation/main.go b/internal/generated/snippets/pubsublite/apiv1/PartitionAssignmentClient/GetOperation/main.go new file mode 100644 index 000000000000..22c46c3b25bf --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/PartitionAssignmentClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_PartitionAssignmentService_GetOperation_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewPartitionAssignmentClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END pubsublite_v1_generated_PartitionAssignmentService_GetOperation_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/PartitionAssignmentClient/ListOperations/main.go b/internal/generated/snippets/pubsublite/apiv1/PartitionAssignmentClient/ListOperations/main.go new file mode 100644 index 000000000000..4fe6b9c266bb --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/PartitionAssignmentClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_PartitionAssignmentService_ListOperations_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewPartitionAssignmentClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END pubsublite_v1_generated_PartitionAssignmentService_ListOperations_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/PublisherClient/CancelOperation/main.go b/internal/generated/snippets/pubsublite/apiv1/PublisherClient/CancelOperation/main.go new file mode 100644 index 000000000000..955832898705 --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/PublisherClient/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_PublisherService_CancelOperation_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewPublisherClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END pubsublite_v1_generated_PublisherService_CancelOperation_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/PublisherClient/DeleteOperation/main.go b/internal/generated/snippets/pubsublite/apiv1/PublisherClient/DeleteOperation/main.go new file mode 100644 index 000000000000..e0eca3906a2a --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/PublisherClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_PublisherService_DeleteOperation_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewPublisherClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END pubsublite_v1_generated_PublisherService_DeleteOperation_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/PublisherClient/GetOperation/main.go b/internal/generated/snippets/pubsublite/apiv1/PublisherClient/GetOperation/main.go new file mode 100644 index 000000000000..b0bd34c039ff --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/PublisherClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_PublisherService_GetOperation_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewPublisherClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END pubsublite_v1_generated_PublisherService_GetOperation_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/PublisherClient/ListOperations/main.go b/internal/generated/snippets/pubsublite/apiv1/PublisherClient/ListOperations/main.go new file mode 100644 index 000000000000..82b4e19518d5 --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/PublisherClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_PublisherService_ListOperations_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewPublisherClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END pubsublite_v1_generated_PublisherService_ListOperations_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/PublisherClient/Publish/main.go b/internal/generated/snippets/pubsublite/apiv1/PublisherClient/Publish/main.go index ba80c604f5b9..347810e5feac 100644 --- a/internal/generated/snippets/pubsublite/apiv1/PublisherClient/Publish/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/PublisherClient/Publish/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,11 +23,16 @@ import ( "io" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewPublisherClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/pubsublite/apiv1/SubscriberClient/CancelOperation/main.go b/internal/generated/snippets/pubsublite/apiv1/SubscriberClient/CancelOperation/main.go new file mode 100644 index 000000000000..cb94a5a5df08 --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/SubscriberClient/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_SubscriberService_CancelOperation_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewSubscriberClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END pubsublite_v1_generated_SubscriberService_CancelOperation_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/SubscriberClient/DeleteOperation/main.go b/internal/generated/snippets/pubsublite/apiv1/SubscriberClient/DeleteOperation/main.go new file mode 100644 index 000000000000..e06b6ce4e390 --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/SubscriberClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_SubscriberService_DeleteOperation_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewSubscriberClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END pubsublite_v1_generated_SubscriberService_DeleteOperation_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/SubscriberClient/GetOperation/main.go b/internal/generated/snippets/pubsublite/apiv1/SubscriberClient/GetOperation/main.go new file mode 100644 index 000000000000..bc71220261b2 --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/SubscriberClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_SubscriberService_GetOperation_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewSubscriberClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END pubsublite_v1_generated_SubscriberService_GetOperation_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/SubscriberClient/ListOperations/main.go b/internal/generated/snippets/pubsublite/apiv1/SubscriberClient/ListOperations/main.go new file mode 100644 index 000000000000..13d657c76448 --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/SubscriberClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_SubscriberService_ListOperations_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewSubscriberClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END pubsublite_v1_generated_SubscriberService_ListOperations_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/SubscriberClient/Subscribe/main.go b/internal/generated/snippets/pubsublite/apiv1/SubscriberClient/Subscribe/main.go index 43e9ba27d06f..91518ef31584 100644 --- a/internal/generated/snippets/pubsublite/apiv1/SubscriberClient/Subscribe/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/SubscriberClient/Subscribe/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,11 +23,16 @@ import ( "io" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewSubscriberClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/CancelOperation/main.go b/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/CancelOperation/main.go new file mode 100644 index 000000000000..421294328f81 --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_TopicStatsService_CancelOperation_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewTopicStatsClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END pubsublite_v1_generated_TopicStatsService_CancelOperation_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/ComputeHeadCursor/main.go b/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/ComputeHeadCursor/main.go index fdcdf0b6964f..59b29db2048f 100644 --- a/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/ComputeHeadCursor/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/ComputeHeadCursor/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewTopicStatsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsublitepb.ComputeHeadCursorRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#ComputeHeadCursorRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#ComputeHeadCursorRequest. } resp, err := c.ComputeHeadCursor(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/ComputeMessageStats/main.go b/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/ComputeMessageStats/main.go index a7e3b11fb2e7..ea58116970ce 100644 --- a/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/ComputeMessageStats/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/ComputeMessageStats/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewTopicStatsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsublitepb.ComputeMessageStatsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#ComputeMessageStatsRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#ComputeMessageStatsRequest. } resp, err := c.ComputeMessageStats(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/ComputeTimeCursor/main.go b/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/ComputeTimeCursor/main.go index e8fd3ac98051..6aaa12aa81bc 100644 --- a/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/ComputeTimeCursor/main.go +++ b/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/ComputeTimeCursor/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" pubsublite "cloud.google.com/go/pubsublite/apiv1" - pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1" + pubsublitepb "cloud.google.com/go/pubsublite/apiv1/pubsublitepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := pubsublite.NewTopicStatsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &pubsublitepb.ComputeTimeCursorRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/pubsublite/v1#ComputeTimeCursorRequest. + // See https://pkg.go.dev/cloud.google.com/go/pubsublite/apiv1/pubsublitepb#ComputeTimeCursorRequest. } resp, err := c.ComputeTimeCursor(ctx, req) if err != nil { diff --git a/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/DeleteOperation/main.go b/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/DeleteOperation/main.go new file mode 100644 index 000000000000..15f5975419b5 --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_TopicStatsService_DeleteOperation_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewTopicStatsClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END pubsublite_v1_generated_TopicStatsService_DeleteOperation_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/GetOperation/main.go b/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/GetOperation/main.go new file mode 100644 index 000000000000..500d32722dbd --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_TopicStatsService_GetOperation_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewTopicStatsClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END pubsublite_v1_generated_TopicStatsService_GetOperation_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/ListOperations/main.go b/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/ListOperations/main.go new file mode 100644 index 000000000000..c17eab4608d0 --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/TopicStatsClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START pubsublite_v1_generated_TopicStatsService_ListOperations_sync] + +package main + +import ( + "context" + + pubsublite "cloud.google.com/go/pubsublite/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsublite.NewTopicStatsClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END pubsublite_v1_generated_TopicStatsService_ListOperations_sync] diff --git a/internal/generated/snippets/pubsublite/apiv1/snippet_metadata.google.cloud.pubsublite.v1.json b/internal/generated/snippets/pubsublite/apiv1/snippet_metadata.google.cloud.pubsublite.v1.json new file mode 100644 index 000000000000..1075e6b10a35 --- /dev/null +++ b/internal/generated/snippets/pubsublite/apiv1/snippet_metadata.google.cloud.pubsublite.v1.json @@ -0,0 +1,2372 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/pubsublite/apiv1", + "version": "1.6.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.pubsublite.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "pubsublite_v1_generated_AdminService_CancelOperation_sync", + "title": "pubsublite CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "AdminClient/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.pubsublite.v1.AdminClient.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.pubsublite.v1.AdminService.CancelOperation", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_CreateReservation_sync", + "title": "pubsublite CreateReservation Sample", + "description": "CreateReservation creates a new reservation.", + "file": "AdminClient/CreateReservation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateReservation", + "fullName": "google.cloud.pubsublite.v1.AdminClient.CreateReservation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.CreateReservationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsublitepb.Reservation", + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "CreateReservation", + "fullName": "google.cloud.pubsublite.v1.AdminService.CreateReservation", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_CreateSubscription_sync", + "title": "pubsublite CreateSubscription Sample", + "description": "CreateSubscription creates a new subscription.", + "file": "AdminClient/CreateSubscription/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSubscription", + "fullName": "google.cloud.pubsublite.v1.AdminClient.CreateSubscription", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.CreateSubscriptionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsublitepb.Subscription", + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "CreateSubscription", + "fullName": "google.cloud.pubsublite.v1.AdminService.CreateSubscription", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_CreateTopic_sync", + "title": "pubsublite CreateTopic Sample", + "description": "CreateTopic creates a new topic.", + "file": "AdminClient/CreateTopic/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateTopic", + "fullName": "google.cloud.pubsublite.v1.AdminClient.CreateTopic", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.CreateTopicRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsublitepb.Topic", + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "CreateTopic", + "fullName": "google.cloud.pubsublite.v1.AdminService.CreateTopic", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_DeleteOperation_sync", + "title": "pubsublite DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "AdminClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.pubsublite.v1.AdminClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.pubsublite.v1.AdminService.DeleteOperation", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_DeleteReservation_sync", + "title": "pubsublite DeleteReservation Sample", + "description": "DeleteReservation deletes the specified reservation.", + "file": "AdminClient/DeleteReservation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteReservation", + "fullName": "google.cloud.pubsublite.v1.AdminClient.DeleteReservation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.DeleteReservationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "DeleteReservation", + "fullName": "google.cloud.pubsublite.v1.AdminService.DeleteReservation", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_DeleteSubscription_sync", + "title": "pubsublite DeleteSubscription Sample", + "description": "DeleteSubscription deletes the specified subscription.", + "file": "AdminClient/DeleteSubscription/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteSubscription", + "fullName": "google.cloud.pubsublite.v1.AdminClient.DeleteSubscription", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.DeleteSubscriptionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "DeleteSubscription", + "fullName": "google.cloud.pubsublite.v1.AdminService.DeleteSubscription", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_DeleteTopic_sync", + "title": "pubsublite DeleteTopic Sample", + "description": "DeleteTopic deletes the specified topic.", + "file": "AdminClient/DeleteTopic/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteTopic", + "fullName": "google.cloud.pubsublite.v1.AdminClient.DeleteTopic", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.DeleteTopicRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "DeleteTopic", + "fullName": "google.cloud.pubsublite.v1.AdminService.DeleteTopic", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_GetOperation_sync", + "title": "pubsublite GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "AdminClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.pubsublite.v1.AdminClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.pubsublite.v1.AdminService.GetOperation", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_GetReservation_sync", + "title": "pubsublite GetReservation Sample", + "description": "GetReservation returns the reservation configuration.", + "file": "AdminClient/GetReservation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetReservation", + "fullName": "google.cloud.pubsublite.v1.AdminClient.GetReservation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.GetReservationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsublitepb.Reservation", + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "GetReservation", + "fullName": "google.cloud.pubsublite.v1.AdminService.GetReservation", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_GetSubscription_sync", + "title": "pubsublite GetSubscription Sample", + "description": "GetSubscription returns the subscription configuration.", + "file": "AdminClient/GetSubscription/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSubscription", + "fullName": "google.cloud.pubsublite.v1.AdminClient.GetSubscription", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.GetSubscriptionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsublitepb.Subscription", + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "GetSubscription", + "fullName": "google.cloud.pubsublite.v1.AdminService.GetSubscription", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_GetTopic_sync", + "title": "pubsublite GetTopic Sample", + "description": "GetTopic returns the topic configuration.", + "file": "AdminClient/GetTopic/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetTopic", + "fullName": "google.cloud.pubsublite.v1.AdminClient.GetTopic", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.GetTopicRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsublitepb.Topic", + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "GetTopic", + "fullName": "google.cloud.pubsublite.v1.AdminService.GetTopic", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_GetTopicPartitions_sync", + "title": "pubsublite GetTopicPartitions Sample", + "description": "GetTopicPartitions returns the partition information for the requested topic.", + "file": "AdminClient/GetTopicPartitions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetTopicPartitions", + "fullName": "google.cloud.pubsublite.v1.AdminClient.GetTopicPartitions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.GetTopicPartitionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsublitepb.TopicPartitions", + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "GetTopicPartitions", + "fullName": "google.cloud.pubsublite.v1.AdminService.GetTopicPartitions", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_ListOperations_sync", + "title": "pubsublite ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "AdminClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.pubsublite.v1.AdminClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.pubsublite.v1.AdminService.ListOperations", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_ListReservationTopics_sync", + "title": "pubsublite ListReservationTopics Sample", + "description": "ListReservationTopics lists the topics attached to the specified reservation.", + "file": "AdminClient/ListReservationTopics/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListReservationTopics", + "fullName": "google.cloud.pubsublite.v1.AdminClient.ListReservationTopics", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.ListReservationTopicsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "StringIterator", + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "ListReservationTopics", + "fullName": "google.cloud.pubsublite.v1.AdminService.ListReservationTopics", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_ListReservations_sync", + "title": "pubsublite ListReservations Sample", + "description": "ListReservations returns the list of reservations for the given project.", + "file": "AdminClient/ListReservations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListReservations", + "fullName": "google.cloud.pubsublite.v1.AdminClient.ListReservations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.ListReservationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ReservationIterator", + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "ListReservations", + "fullName": "google.cloud.pubsublite.v1.AdminService.ListReservations", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_ListSubscriptions_sync", + "title": "pubsublite ListSubscriptions Sample", + "description": "ListSubscriptions returns the list of subscriptions for the given project.", + "file": "AdminClient/ListSubscriptions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListSubscriptions", + "fullName": "google.cloud.pubsublite.v1.AdminClient.ListSubscriptions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.ListSubscriptionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SubscriptionIterator", + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "ListSubscriptions", + "fullName": "google.cloud.pubsublite.v1.AdminService.ListSubscriptions", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_ListTopicSubscriptions_sync", + "title": "pubsublite ListTopicSubscriptions Sample", + "description": "ListTopicSubscriptions lists the subscriptions attached to the specified topic.", + "file": "AdminClient/ListTopicSubscriptions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListTopicSubscriptions", + "fullName": "google.cloud.pubsublite.v1.AdminClient.ListTopicSubscriptions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.ListTopicSubscriptionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "StringIterator", + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "ListTopicSubscriptions", + "fullName": "google.cloud.pubsublite.v1.AdminService.ListTopicSubscriptions", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_ListTopics_sync", + "title": "pubsublite ListTopics Sample", + "description": "ListTopics returns the list of topics for the given project.", + "file": "AdminClient/ListTopics/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListTopics", + "fullName": "google.cloud.pubsublite.v1.AdminClient.ListTopics", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.ListTopicsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "TopicIterator", + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "ListTopics", + "fullName": "google.cloud.pubsublite.v1.AdminService.ListTopics", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_SeekSubscription_sync", + "title": "pubsublite SeekSubscription Sample", + "description": "SeekSubscription performs an out-of-band seek for a subscription to a specified target,\nwhich may be timestamps or named positions within the message backlog.\nSeek translates these targets to cursors for each partition and\norchestrates subscribers to start consuming messages from these seek\ncursors.\n\nIf an operation is returned, the seek has been registered and subscribers\nwill eventually receive messages from the seek cursors (i.e. eventual\nconsistency), as long as they are using a minimum supported client library\nversion and not a system that tracks cursors independently of Pub/Sub Lite\n(e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for\nunsupported clients.\n\nIf clients would like to know when subscribers react to the seek (or not),\nthey can poll the operation. The seek operation will succeed and complete\nonce subscribers are ready to receive messages from the seek cursors for\nall partitions of the topic. This means that the seek operation will not\ncomplete until all subscribers come online.\n\nIf the previous seek operation has not yet completed, it will be aborted\nand the new invocation of seek will supersede it.", + "file": "AdminClient/SeekSubscription/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SeekSubscription", + "fullName": "google.cloud.pubsublite.v1.AdminClient.SeekSubscription", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.SeekSubscriptionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SeekSubscriptionOperation", + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "SeekSubscription", + "fullName": "google.cloud.pubsublite.v1.AdminService.SeekSubscription", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_UpdateReservation_sync", + "title": "pubsublite UpdateReservation Sample", + "description": "UpdateReservation updates properties of the specified reservation.", + "file": "AdminClient/UpdateReservation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateReservation", + "fullName": "google.cloud.pubsublite.v1.AdminClient.UpdateReservation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.UpdateReservationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsublitepb.Reservation", + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "UpdateReservation", + "fullName": "google.cloud.pubsublite.v1.AdminService.UpdateReservation", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_UpdateSubscription_sync", + "title": "pubsublite UpdateSubscription Sample", + "description": "UpdateSubscription updates properties of the specified subscription.", + "file": "AdminClient/UpdateSubscription/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSubscription", + "fullName": "google.cloud.pubsublite.v1.AdminClient.UpdateSubscription", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.UpdateSubscriptionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsublitepb.Subscription", + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "UpdateSubscription", + "fullName": "google.cloud.pubsublite.v1.AdminService.UpdateSubscription", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_AdminService_UpdateTopic_sync", + "title": "pubsublite UpdateTopic Sample", + "description": "UpdateTopic updates properties of the specified topic.", + "file": "AdminClient/UpdateTopic/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateTopic", + "fullName": "google.cloud.pubsublite.v1.AdminClient.UpdateTopic", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.UpdateTopicRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsublitepb.Topic", + "client": { + "shortName": "AdminClient", + "fullName": "google.cloud.pubsublite.v1.AdminClient" + }, + "method": { + "shortName": "UpdateTopic", + "fullName": "google.cloud.pubsublite.v1.AdminService.UpdateTopic", + "service": { + "shortName": "AdminService", + "fullName": "google.cloud.pubsublite.v1.AdminService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_CursorService_CancelOperation_sync", + "title": "pubsublite CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "CursorClient/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.pubsublite.v1.CursorClient.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "CursorClient", + "fullName": "google.cloud.pubsublite.v1.CursorClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.pubsublite.v1.CursorService.CancelOperation", + "service": { + "shortName": "CursorService", + "fullName": "google.cloud.pubsublite.v1.CursorService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_CursorService_CommitCursor_sync", + "title": "pubsublite CommitCursor Sample", + "description": "CommitCursor updates the committed cursor.", + "file": "CursorClient/CommitCursor/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CommitCursor", + "fullName": "google.cloud.pubsublite.v1.CursorClient.CommitCursor", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.CommitCursorRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsublitepb.CommitCursorResponse", + "client": { + "shortName": "CursorClient", + "fullName": "google.cloud.pubsublite.v1.CursorClient" + }, + "method": { + "shortName": "CommitCursor", + "fullName": "google.cloud.pubsublite.v1.CursorService.CommitCursor", + "service": { + "shortName": "CursorService", + "fullName": "google.cloud.pubsublite.v1.CursorService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_CursorService_DeleteOperation_sync", + "title": "pubsublite DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "CursorClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.pubsublite.v1.CursorClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "CursorClient", + "fullName": "google.cloud.pubsublite.v1.CursorClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.pubsublite.v1.CursorService.DeleteOperation", + "service": { + "shortName": "CursorService", + "fullName": "google.cloud.pubsublite.v1.CursorService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_CursorService_GetOperation_sync", + "title": "pubsublite GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "CursorClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.pubsublite.v1.CursorClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "CursorClient", + "fullName": "google.cloud.pubsublite.v1.CursorClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.pubsublite.v1.CursorService.GetOperation", + "service": { + "shortName": "CursorService", + "fullName": "google.cloud.pubsublite.v1.CursorService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_CursorService_ListOperations_sync", + "title": "pubsublite ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "CursorClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.pubsublite.v1.CursorClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "CursorClient", + "fullName": "google.cloud.pubsublite.v1.CursorClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.pubsublite.v1.CursorService.ListOperations", + "service": { + "shortName": "CursorService", + "fullName": "google.cloud.pubsublite.v1.CursorService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_CursorService_ListPartitionCursors_sync", + "title": "pubsublite ListPartitionCursors Sample", + "description": "ListPartitionCursors returns all committed cursor information for a subscription.", + "file": "CursorClient/ListPartitionCursors/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListPartitionCursors", + "fullName": "google.cloud.pubsublite.v1.CursorClient.ListPartitionCursors", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.ListPartitionCursorsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PartitionCursorIterator", + "client": { + "shortName": "CursorClient", + "fullName": "google.cloud.pubsublite.v1.CursorClient" + }, + "method": { + "shortName": "ListPartitionCursors", + "fullName": "google.cloud.pubsublite.v1.CursorService.ListPartitionCursors", + "service": { + "shortName": "CursorService", + "fullName": "google.cloud.pubsublite.v1.CursorService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_CursorService_StreamingCommitCursor_sync", + "title": "pubsublite StreamingCommitCursor Sample", + "description": "StreamingCommitCursor establishes a stream with the server for managing committed cursors.", + "file": "CursorClient/StreamingCommitCursor/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StreamingCommitCursor", + "fullName": "google.cloud.pubsublite.v1.CursorClient.StreamingCommitCursor", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "CursorClient", + "fullName": "google.cloud.pubsublite.v1.CursorClient" + }, + "method": { + "shortName": "StreamingCommitCursor", + "fullName": "google.cloud.pubsublite.v1.CursorService.StreamingCommitCursor", + "service": { + "shortName": "CursorService", + "fullName": "google.cloud.pubsublite.v1.CursorService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 69, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_PartitionAssignmentService_AssignPartitions_sync", + "title": "pubsublite AssignPartitions Sample", + "description": "AssignPartitions assign partitions for this client to handle for the specified subscription.\n\nThe client must send an InitialPartitionAssignmentRequest first.\nThe server will then send at most one unacknowledged PartitionAssignment\noutstanding on the stream at a time.\nThe client should send a PartitionAssignmentAck after updating the\npartitions it is connected to to reflect the new assignment.", + "file": "PartitionAssignmentClient/AssignPartitions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AssignPartitions", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentClient.AssignPartitions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "PartitionAssignmentClient", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentClient" + }, + "method": { + "shortName": "AssignPartitions", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentService.AssignPartitions", + "service": { + "shortName": "PartitionAssignmentService", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 69, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_PartitionAssignmentService_CancelOperation_sync", + "title": "pubsublite CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "PartitionAssignmentClient/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentClient.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "PartitionAssignmentClient", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentService.CancelOperation", + "service": { + "shortName": "PartitionAssignmentService", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_PartitionAssignmentService_DeleteOperation_sync", + "title": "pubsublite DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "PartitionAssignmentClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "PartitionAssignmentClient", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentService.DeleteOperation", + "service": { + "shortName": "PartitionAssignmentService", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_PartitionAssignmentService_GetOperation_sync", + "title": "pubsublite GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "PartitionAssignmentClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "PartitionAssignmentClient", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentService.GetOperation", + "service": { + "shortName": "PartitionAssignmentService", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_PartitionAssignmentService_ListOperations_sync", + "title": "pubsublite ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "PartitionAssignmentClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "PartitionAssignmentClient", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentService.ListOperations", + "service": { + "shortName": "PartitionAssignmentService", + "fullName": "google.cloud.pubsublite.v1.PartitionAssignmentService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_PublisherService_CancelOperation_sync", + "title": "pubsublite CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "PublisherClient/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.pubsublite.v1.PublisherClient.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "PublisherClient", + "fullName": "google.cloud.pubsublite.v1.PublisherClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.pubsublite.v1.PublisherService.CancelOperation", + "service": { + "shortName": "PublisherService", + "fullName": "google.cloud.pubsublite.v1.PublisherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_PublisherService_DeleteOperation_sync", + "title": "pubsublite DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "PublisherClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.pubsublite.v1.PublisherClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "PublisherClient", + "fullName": "google.cloud.pubsublite.v1.PublisherClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.pubsublite.v1.PublisherService.DeleteOperation", + "service": { + "shortName": "PublisherService", + "fullName": "google.cloud.pubsublite.v1.PublisherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_PublisherService_GetOperation_sync", + "title": "pubsublite GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "PublisherClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.pubsublite.v1.PublisherClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "PublisherClient", + "fullName": "google.cloud.pubsublite.v1.PublisherClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.pubsublite.v1.PublisherService.GetOperation", + "service": { + "shortName": "PublisherService", + "fullName": "google.cloud.pubsublite.v1.PublisherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_PublisherService_ListOperations_sync", + "title": "pubsublite ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "PublisherClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.pubsublite.v1.PublisherClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "PublisherClient", + "fullName": "google.cloud.pubsublite.v1.PublisherClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.pubsublite.v1.PublisherService.ListOperations", + "service": { + "shortName": "PublisherService", + "fullName": "google.cloud.pubsublite.v1.PublisherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_PublisherService_Publish_sync", + "title": "pubsublite Publish Sample", + "description": "Publish establishes a stream with the server for publishing messages. Once the\nstream is initialized, the client publishes messages by sending publish\nrequests on the stream. The server responds with a PublishResponse for each\nPublishRequest sent by the client, in the same order that the requests\nwere sent. Note that multiple PublishRequests can be in flight\nsimultaneously, but they will be processed by the server in the order that\nthey are sent by the client on a given stream.", + "file": "PublisherClient/Publish/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Publish", + "fullName": "google.cloud.pubsublite.v1.PublisherClient.Publish", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "PublisherClient", + "fullName": "google.cloud.pubsublite.v1.PublisherClient" + }, + "method": { + "shortName": "Publish", + "fullName": "google.cloud.pubsublite.v1.PublisherService.Publish", + "service": { + "shortName": "PublisherService", + "fullName": "google.cloud.pubsublite.v1.PublisherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 69, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_SubscriberService_CancelOperation_sync", + "title": "pubsublite CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "SubscriberClient/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.pubsublite.v1.SubscriberClient.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "SubscriberClient", + "fullName": "google.cloud.pubsublite.v1.SubscriberClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.pubsublite.v1.SubscriberService.CancelOperation", + "service": { + "shortName": "SubscriberService", + "fullName": "google.cloud.pubsublite.v1.SubscriberService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_SubscriberService_DeleteOperation_sync", + "title": "pubsublite DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "SubscriberClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.pubsublite.v1.SubscriberClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "SubscriberClient", + "fullName": "google.cloud.pubsublite.v1.SubscriberClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.pubsublite.v1.SubscriberService.DeleteOperation", + "service": { + "shortName": "SubscriberService", + "fullName": "google.cloud.pubsublite.v1.SubscriberService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_SubscriberService_GetOperation_sync", + "title": "pubsublite GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "SubscriberClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.pubsublite.v1.SubscriberClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "SubscriberClient", + "fullName": "google.cloud.pubsublite.v1.SubscriberClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.pubsublite.v1.SubscriberService.GetOperation", + "service": { + "shortName": "SubscriberService", + "fullName": "google.cloud.pubsublite.v1.SubscriberService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_SubscriberService_ListOperations_sync", + "title": "pubsublite ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "SubscriberClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.pubsublite.v1.SubscriberClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "SubscriberClient", + "fullName": "google.cloud.pubsublite.v1.SubscriberClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.pubsublite.v1.SubscriberService.ListOperations", + "service": { + "shortName": "SubscriberService", + "fullName": "google.cloud.pubsublite.v1.SubscriberService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_SubscriberService_Subscribe_sync", + "title": "pubsublite Subscribe Sample", + "description": "Subscribe establishes a stream with the server for receiving messages.", + "file": "SubscriberClient/Subscribe/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Subscribe", + "fullName": "google.cloud.pubsublite.v1.SubscriberClient.Subscribe", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "SubscriberClient", + "fullName": "google.cloud.pubsublite.v1.SubscriberClient" + }, + "method": { + "shortName": "Subscribe", + "fullName": "google.cloud.pubsublite.v1.SubscriberService.Subscribe", + "service": { + "shortName": "SubscriberService", + "fullName": "google.cloud.pubsublite.v1.SubscriberService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 69, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_TopicStatsService_CancelOperation_sync", + "title": "pubsublite CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "TopicStatsClient/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.pubsublite.v1.TopicStatsClient.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "TopicStatsClient", + "fullName": "google.cloud.pubsublite.v1.TopicStatsClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.pubsublite.v1.TopicStatsService.CancelOperation", + "service": { + "shortName": "TopicStatsService", + "fullName": "google.cloud.pubsublite.v1.TopicStatsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_TopicStatsService_ComputeHeadCursor_sync", + "title": "pubsublite ComputeHeadCursor Sample", + "description": "ComputeHeadCursor compute the head cursor for the partition.\nThe head cursor’s offset is guaranteed to be less than or equal to all\nmessages which have not yet been acknowledged as published, and\ngreater than the offset of any message whose publish has already\nbeen acknowledged. It is zero if there have never been messages in the\npartition.", + "file": "TopicStatsClient/ComputeHeadCursor/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ComputeHeadCursor", + "fullName": "google.cloud.pubsublite.v1.TopicStatsClient.ComputeHeadCursor", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.ComputeHeadCursorRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsublitepb.ComputeHeadCursorResponse", + "client": { + "shortName": "TopicStatsClient", + "fullName": "google.cloud.pubsublite.v1.TopicStatsClient" + }, + "method": { + "shortName": "ComputeHeadCursor", + "fullName": "google.cloud.pubsublite.v1.TopicStatsService.ComputeHeadCursor", + "service": { + "shortName": "TopicStatsService", + "fullName": "google.cloud.pubsublite.v1.TopicStatsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_TopicStatsService_ComputeMessageStats_sync", + "title": "pubsublite ComputeMessageStats Sample", + "description": "ComputeMessageStats compute statistics about a range of messages in a given topic and\npartition.", + "file": "TopicStatsClient/ComputeMessageStats/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ComputeMessageStats", + "fullName": "google.cloud.pubsublite.v1.TopicStatsClient.ComputeMessageStats", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.ComputeMessageStatsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsublitepb.ComputeMessageStatsResponse", + "client": { + "shortName": "TopicStatsClient", + "fullName": "google.cloud.pubsublite.v1.TopicStatsClient" + }, + "method": { + "shortName": "ComputeMessageStats", + "fullName": "google.cloud.pubsublite.v1.TopicStatsService.ComputeMessageStats", + "service": { + "shortName": "TopicStatsService", + "fullName": "google.cloud.pubsublite.v1.TopicStatsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_TopicStatsService_ComputeTimeCursor_sync", + "title": "pubsublite ComputeTimeCursor Sample", + "description": "ComputeTimeCursor compute the corresponding cursor for a publish or event time in a topic\npartition.", + "file": "TopicStatsClient/ComputeTimeCursor/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ComputeTimeCursor", + "fullName": "google.cloud.pubsublite.v1.TopicStatsClient.ComputeTimeCursor", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "pubsublitepb.ComputeTimeCursorRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "pubsublitepb.ComputeTimeCursorResponse", + "client": { + "shortName": "TopicStatsClient", + "fullName": "google.cloud.pubsublite.v1.TopicStatsClient" + }, + "method": { + "shortName": "ComputeTimeCursor", + "fullName": "google.cloud.pubsublite.v1.TopicStatsService.ComputeTimeCursor", + "service": { + "shortName": "TopicStatsService", + "fullName": "google.cloud.pubsublite.v1.TopicStatsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_TopicStatsService_DeleteOperation_sync", + "title": "pubsublite DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "TopicStatsClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.pubsublite.v1.TopicStatsClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "TopicStatsClient", + "fullName": "google.cloud.pubsublite.v1.TopicStatsClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.pubsublite.v1.TopicStatsService.DeleteOperation", + "service": { + "shortName": "TopicStatsService", + "fullName": "google.cloud.pubsublite.v1.TopicStatsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_TopicStatsService_GetOperation_sync", + "title": "pubsublite GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "TopicStatsClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.pubsublite.v1.TopicStatsClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "TopicStatsClient", + "fullName": "google.cloud.pubsublite.v1.TopicStatsClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.pubsublite.v1.TopicStatsService.GetOperation", + "service": { + "shortName": "TopicStatsService", + "fullName": "google.cloud.pubsublite.v1.TopicStatsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "pubsublite_v1_generated_TopicStatsService_ListOperations_sync", + "title": "pubsublite ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "TopicStatsClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.pubsublite.v1.TopicStatsClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "TopicStatsClient", + "fullName": "google.cloud.pubsublite.v1.TopicStatsClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.pubsublite.v1.TopicStatsService.ListOperations", + "service": { + "shortName": "TopicStatsService", + "fullName": "google.cloud.pubsublite.v1.TopicStatsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/AnnotateAssessment/main.go b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/AnnotateAssessment/main.go new file mode 100644 index 000000000000..97fba7b9262f --- /dev/null +++ b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/AnnotateAssessment/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_AnnotateAssessment_sync] + +package main + +import ( + "context" + + recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/v2/apiv1" + recaptchaenterprisepb "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recaptchaenterprise.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recaptchaenterprisepb.AnnotateAssessmentRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb#AnnotateAssessmentRequest. + } + resp, err := c.AnnotateAssessment(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_AnnotateAssessment_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/CreateAssessment/main.go b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/CreateAssessment/main.go new file mode 100644 index 000000000000..c82a8da0c21f --- /dev/null +++ b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/CreateAssessment/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateAssessment_sync] + +package main + +import ( + "context" + + recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/v2/apiv1" + recaptchaenterprisepb "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recaptchaenterprise.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recaptchaenterprisepb.CreateAssessmentRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb#CreateAssessmentRequest. + } + resp, err := c.CreateAssessment(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateAssessment_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/CreateKey/main.go b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/CreateKey/main.go new file mode 100644 index 000000000000..08b66c91d404 --- /dev/null +++ b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/CreateKey/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateKey_sync] + +package main + +import ( + "context" + + recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/v2/apiv1" + recaptchaenterprisepb "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recaptchaenterprise.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recaptchaenterprisepb.CreateKeyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb#CreateKeyRequest. + } + resp, err := c.CreateKey(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateKey_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/DeleteKey/main.go b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/DeleteKey/main.go new file mode 100644 index 000000000000..62f1ba99dac6 --- /dev/null +++ b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/DeleteKey/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteKey_sync] + +package main + +import ( + "context" + + recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/v2/apiv1" + recaptchaenterprisepb "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recaptchaenterprise.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recaptchaenterprisepb.DeleteKeyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb#DeleteKeyRequest. + } + err = c.DeleteKey(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteKey_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/GetKey/main.go b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/GetKey/main.go new file mode 100644 index 000000000000..26b06119f5c3 --- /dev/null +++ b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/GetKey/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetKey_sync] + +package main + +import ( + "context" + + recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/v2/apiv1" + recaptchaenterprisepb "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recaptchaenterprise.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recaptchaenterprisepb.GetKeyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb#GetKeyRequest. + } + resp, err := c.GetKey(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetKey_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/GetMetrics/main.go b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/GetMetrics/main.go new file mode 100644 index 000000000000..039586fa50b0 --- /dev/null +++ b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/GetMetrics/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetMetrics_sync] + +package main + +import ( + "context" + + recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/v2/apiv1" + recaptchaenterprisepb "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recaptchaenterprise.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recaptchaenterprisepb.GetMetricsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb#GetMetricsRequest. + } + resp, err := c.GetMetrics(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetMetrics_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/ListKeys/main.go b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/ListKeys/main.go new file mode 100644 index 000000000000..b77c36a535be --- /dev/null +++ b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/ListKeys/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListKeys_sync] + +package main + +import ( + "context" + + recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/v2/apiv1" + recaptchaenterprisepb "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recaptchaenterprise.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recaptchaenterprisepb.ListKeysRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb#ListKeysRequest. + } + it := c.ListKeys(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListKeys_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/ListRelatedAccountGroupMemberships/main.go b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/ListRelatedAccountGroupMemberships/main.go new file mode 100644 index 000000000000..84b5f45561cf --- /dev/null +++ b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/ListRelatedAccountGroupMemberships/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListRelatedAccountGroupMemberships_sync] + +package main + +import ( + "context" + + recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/v2/apiv1" + recaptchaenterprisepb "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recaptchaenterprise.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recaptchaenterprisepb.ListRelatedAccountGroupMembershipsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb#ListRelatedAccountGroupMembershipsRequest. + } + it := c.ListRelatedAccountGroupMemberships(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListRelatedAccountGroupMemberships_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/ListRelatedAccountGroups/main.go b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/ListRelatedAccountGroups/main.go new file mode 100644 index 000000000000..08862f8d6a36 --- /dev/null +++ b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/ListRelatedAccountGroups/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListRelatedAccountGroups_sync] + +package main + +import ( + "context" + + recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/v2/apiv1" + recaptchaenterprisepb "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recaptchaenterprise.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recaptchaenterprisepb.ListRelatedAccountGroupsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb#ListRelatedAccountGroupsRequest. + } + it := c.ListRelatedAccountGroups(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListRelatedAccountGroups_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/MigrateKey/main.go b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/MigrateKey/main.go new file mode 100644 index 000000000000..92aaf22011da --- /dev/null +++ b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/MigrateKey/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_MigrateKey_sync] + +package main + +import ( + "context" + + recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/v2/apiv1" + recaptchaenterprisepb "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recaptchaenterprise.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recaptchaenterprisepb.MigrateKeyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb#MigrateKeyRequest. + } + resp, err := c.MigrateKey(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_MigrateKey_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/RetrieveLegacySecretKey/main.go b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/RetrieveLegacySecretKey/main.go new file mode 100644 index 000000000000..e7ed6f8b5aa3 --- /dev/null +++ b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/RetrieveLegacySecretKey/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_RetrieveLegacySecretKey_sync] + +package main + +import ( + "context" + + recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/v2/apiv1" + recaptchaenterprisepb "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recaptchaenterprise.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recaptchaenterprisepb.RetrieveLegacySecretKeyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb#RetrieveLegacySecretKeyRequest. + } + resp, err := c.RetrieveLegacySecretKey(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_RetrieveLegacySecretKey_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/SearchRelatedAccountGroupMemberships/main.go b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/SearchRelatedAccountGroupMemberships/main.go new file mode 100644 index 000000000000..5cfab7f51145 --- /dev/null +++ b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/SearchRelatedAccountGroupMemberships/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_SearchRelatedAccountGroupMemberships_sync] + +package main + +import ( + "context" + + recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/v2/apiv1" + recaptchaenterprisepb "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recaptchaenterprise.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recaptchaenterprisepb.SearchRelatedAccountGroupMembershipsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb#SearchRelatedAccountGroupMembershipsRequest. + } + it := c.SearchRelatedAccountGroupMemberships(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_SearchRelatedAccountGroupMemberships_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/UpdateKey/main.go b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/UpdateKey/main.go new file mode 100644 index 000000000000..6fc5f620c02d --- /dev/null +++ b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/Client/UpdateKey/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateKey_sync] + +package main + +import ( + "context" + + recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/v2/apiv1" + recaptchaenterprisepb "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recaptchaenterprise.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recaptchaenterprisepb.UpdateKeyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb#UpdateKeyRequest. + } + resp, err := c.UpdateKey(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateKey_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/v2/apiv1/snippet_metadata.google.cloud.recaptchaenterprise.v1.json b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/snippet_metadata.google.cloud.recaptchaenterprise.v1.json new file mode 100644 index 000000000000..dcf30a82bff6 --- /dev/null +++ b/internal/generated/snippets/recaptchaenterprise/v2/apiv1/snippet_metadata.google.cloud.recaptchaenterprise.v1.json @@ -0,0 +1,612 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/recaptchaenterprise/v2/apiv1", + "version": "2.6.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.recaptchaenterprise.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_AnnotateAssessment_sync", + "title": "recaptchaenterprise AnnotateAssessment Sample", + "description": "AnnotateAssessment annotates a previously created Assessment to provide additional information\non whether the event turned out to be authentic or fraudulent.", + "file": "Client/AnnotateAssessment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AnnotateAssessment", + "fullName": "google.cloud.recaptchaenterprise.v1.Client.AnnotateAssessment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recaptchaenterprisepb.AnnotateAssessmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recaptchaenterprisepb.AnnotateAssessmentResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recaptchaenterprise.v1.Client" + }, + "method": { + "shortName": "AnnotateAssessment", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.AnnotateAssessment", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateAssessment_sync", + "title": "recaptchaenterprise CreateAssessment Sample", + "description": "CreateAssessment creates an Assessment of the likelihood an event is legitimate.", + "file": "Client/CreateAssessment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateAssessment", + "fullName": "google.cloud.recaptchaenterprise.v1.Client.CreateAssessment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recaptchaenterprisepb.CreateAssessmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recaptchaenterprisepb.Assessment", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recaptchaenterprise.v1.Client" + }, + "method": { + "shortName": "CreateAssessment", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateAssessment", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateKey_sync", + "title": "recaptchaenterprise CreateKey Sample", + "description": "CreateKey creates a new reCAPTCHA Enterprise key.", + "file": "Client/CreateKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateKey", + "fullName": "google.cloud.recaptchaenterprise.v1.Client.CreateKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recaptchaenterprisepb.CreateKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recaptchaenterprisepb.Key", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recaptchaenterprise.v1.Client" + }, + "method": { + "shortName": "CreateKey", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateKey", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteKey_sync", + "title": "recaptchaenterprise DeleteKey Sample", + "description": "DeleteKey deletes the specified key.", + "file": "Client/DeleteKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteKey", + "fullName": "google.cloud.recaptchaenterprise.v1.Client.DeleteKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recaptchaenterprisepb.DeleteKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.recaptchaenterprise.v1.Client" + }, + "method": { + "shortName": "DeleteKey", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteKey", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetKey_sync", + "title": "recaptchaenterprise GetKey Sample", + "description": "GetKey returns the specified key.", + "file": "Client/GetKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetKey", + "fullName": "google.cloud.recaptchaenterprise.v1.Client.GetKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recaptchaenterprisepb.GetKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recaptchaenterprisepb.Key", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recaptchaenterprise.v1.Client" + }, + "method": { + "shortName": "GetKey", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetKey", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetMetrics_sync", + "title": "recaptchaenterprise GetMetrics Sample", + "description": "GetMetrics get some aggregated metrics for a Key. This data can be used to build\ndashboards.", + "file": "Client/GetMetrics/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetMetrics", + "fullName": "google.cloud.recaptchaenterprise.v1.Client.GetMetrics", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recaptchaenterprisepb.GetMetricsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recaptchaenterprisepb.Metrics", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recaptchaenterprise.v1.Client" + }, + "method": { + "shortName": "GetMetrics", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetMetrics", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListKeys_sync", + "title": "recaptchaenterprise ListKeys Sample", + "description": "ListKeys returns the list of all keys that belong to a project.", + "file": "Client/ListKeys/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListKeys", + "fullName": "google.cloud.recaptchaenterprise.v1.Client.ListKeys", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recaptchaenterprisepb.ListKeysRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "KeyIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recaptchaenterprise.v1.Client" + }, + "method": { + "shortName": "ListKeys", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListKeys", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListRelatedAccountGroupMemberships_sync", + "title": "recaptchaenterprise ListRelatedAccountGroupMemberships Sample", + "description": "ListRelatedAccountGroupMemberships get memberships in a group of related accounts.", + "file": "Client/ListRelatedAccountGroupMemberships/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListRelatedAccountGroupMemberships", + "fullName": "google.cloud.recaptchaenterprise.v1.Client.ListRelatedAccountGroupMemberships", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recaptchaenterprisepb.ListRelatedAccountGroupMembershipsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RelatedAccountGroupMembershipIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recaptchaenterprise.v1.Client" + }, + "method": { + "shortName": "ListRelatedAccountGroupMemberships", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListRelatedAccountGroupMemberships", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListRelatedAccountGroups_sync", + "title": "recaptchaenterprise ListRelatedAccountGroups Sample", + "description": "ListRelatedAccountGroups list groups of related accounts.", + "file": "Client/ListRelatedAccountGroups/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListRelatedAccountGroups", + "fullName": "google.cloud.recaptchaenterprise.v1.Client.ListRelatedAccountGroups", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recaptchaenterprisepb.ListRelatedAccountGroupsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RelatedAccountGroupIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recaptchaenterprise.v1.Client" + }, + "method": { + "shortName": "ListRelatedAccountGroups", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListRelatedAccountGroups", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_MigrateKey_sync", + "title": "recaptchaenterprise MigrateKey Sample", + "description": "MigrateKey migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.\nOnce a key is migrated, it can be used from either product. SiteVerify\nrequests are billed as CreateAssessment calls. You must be\nauthenticated as one of the current owners of the reCAPTCHA Site Key, and\nyour user must have the reCAPTCHA Enterprise Admin IAM role in the\ndestination project.", + "file": "Client/MigrateKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "MigrateKey", + "fullName": "google.cloud.recaptchaenterprise.v1.Client.MigrateKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recaptchaenterprisepb.MigrateKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recaptchaenterprisepb.Key", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recaptchaenterprise.v1.Client" + }, + "method": { + "shortName": "MigrateKey", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.MigrateKey", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_RetrieveLegacySecretKey_sync", + "title": "recaptchaenterprise RetrieveLegacySecretKey Sample", + "description": "RetrieveLegacySecretKey returns the secret key related to the specified public key.\nYou must use the legacy secret key only in a 3rd party integration with\nlegacy reCAPTCHA.", + "file": "Client/RetrieveLegacySecretKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RetrieveLegacySecretKey", + "fullName": "google.cloud.recaptchaenterprise.v1.Client.RetrieveLegacySecretKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recaptchaenterprisepb.RetrieveLegacySecretKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recaptchaenterprisepb.RetrieveLegacySecretKeyResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recaptchaenterprise.v1.Client" + }, + "method": { + "shortName": "RetrieveLegacySecretKey", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.RetrieveLegacySecretKey", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_SearchRelatedAccountGroupMemberships_sync", + "title": "recaptchaenterprise SearchRelatedAccountGroupMemberships Sample", + "description": "SearchRelatedAccountGroupMemberships search group memberships related to a given account.", + "file": "Client/SearchRelatedAccountGroupMemberships/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SearchRelatedAccountGroupMemberships", + "fullName": "google.cloud.recaptchaenterprise.v1.Client.SearchRelatedAccountGroupMemberships", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recaptchaenterprisepb.SearchRelatedAccountGroupMembershipsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RelatedAccountGroupMembershipIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recaptchaenterprise.v1.Client" + }, + "method": { + "shortName": "SearchRelatedAccountGroupMemberships", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.SearchRelatedAccountGroupMemberships", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateKey_sync", + "title": "recaptchaenterprise UpdateKey Sample", + "description": "UpdateKey updates the specified key.", + "file": "Client/UpdateKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateKey", + "fullName": "google.cloud.recaptchaenterprise.v1.Client.UpdateKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recaptchaenterprisepb.UpdateKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recaptchaenterprisepb.Key", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recaptchaenterprise.v1.Client" + }, + "method": { + "shortName": "UpdateKey", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateKey", + "service": { + "shortName": "RecaptchaEnterpriseService", + "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/recaptchaenterprise/v2/apiv1beta1/RecaptchaEnterpriseServiceV1Beta1Client/AnnotateAssessment/main.go b/internal/generated/snippets/recaptchaenterprise/v2/apiv1beta1/RecaptchaEnterpriseServiceV1Beta1Client/AnnotateAssessment/main.go new file mode 100644 index 000000000000..644ed2cc8871 --- /dev/null +++ b/internal/generated/snippets/recaptchaenterprise/v2/apiv1beta1/RecaptchaEnterpriseServiceV1Beta1Client/AnnotateAssessment/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_AnnotateAssessment_sync] + +package main + +import ( + "context" + + recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/v2/apiv1beta1" + recaptchaenterprisepb "cloud.google.com/go/recaptchaenterprise/v2/apiv1beta1/recaptchaenterprisepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recaptchaenterprise.NewRecaptchaEnterpriseServiceV1Beta1Client(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recaptchaenterprisepb.AnnotateAssessmentRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recaptchaenterprise/v2/apiv1beta1/recaptchaenterprisepb#AnnotateAssessmentRequest. + } + resp, err := c.AnnotateAssessment(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_AnnotateAssessment_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/v2/apiv1beta1/RecaptchaEnterpriseServiceV1Beta1Client/CreateAssessment/main.go b/internal/generated/snippets/recaptchaenterprise/v2/apiv1beta1/RecaptchaEnterpriseServiceV1Beta1Client/CreateAssessment/main.go new file mode 100644 index 000000000000..caa428ecb325 --- /dev/null +++ b/internal/generated/snippets/recaptchaenterprise/v2/apiv1beta1/RecaptchaEnterpriseServiceV1Beta1Client/CreateAssessment/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_CreateAssessment_sync] + +package main + +import ( + "context" + + recaptchaenterprise "cloud.google.com/go/recaptchaenterprise/v2/apiv1beta1" + recaptchaenterprisepb "cloud.google.com/go/recaptchaenterprise/v2/apiv1beta1/recaptchaenterprisepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recaptchaenterprise.NewRecaptchaEnterpriseServiceV1Beta1Client(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recaptchaenterprisepb.CreateAssessmentRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recaptchaenterprise/v2/apiv1beta1/recaptchaenterprisepb#CreateAssessmentRequest. + } + resp, err := c.CreateAssessment(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_CreateAssessment_sync] diff --git a/internal/generated/snippets/recaptchaenterprise/v2/apiv1beta1/snippet_metadata.google.cloud.recaptchaenterprise.v1beta1.json b/internal/generated/snippets/recaptchaenterprise/v2/apiv1beta1/snippet_metadata.google.cloud.recaptchaenterprise.v1beta1.json new file mode 100644 index 000000000000..e0e629bf93e2 --- /dev/null +++ b/internal/generated/snippets/recaptchaenterprise/v2/apiv1beta1/snippet_metadata.google.cloud.recaptchaenterprise.v1beta1.json @@ -0,0 +1,107 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/recaptchaenterprise/v2/apiv1beta1", + "version": "2.6.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.recaptchaenterprise.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_AnnotateAssessment_sync", + "title": "recaptchaenterprise AnnotateAssessment Sample", + "description": "AnnotateAssessment annotates a previously created Assessment to provide additional information\non whether the event turned out to be authentic or fradulent.", + "file": "RecaptchaEnterpriseServiceV1Beta1Client/AnnotateAssessment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AnnotateAssessment", + "fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client.AnnotateAssessment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recaptchaenterprisepb.AnnotateAssessmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recaptchaenterprisepb.AnnotateAssessmentResponse", + "client": { + "shortName": "RecaptchaEnterpriseServiceV1Beta1Client", + "fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client" + }, + "method": { + "shortName": "AnnotateAssessment", + "fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.AnnotateAssessment", + "service": { + "shortName": "RecaptchaEnterpriseServiceV1Beta1", + "fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_CreateAssessment_sync", + "title": "recaptchaenterprise CreateAssessment Sample", + "description": "CreateAssessment creates an Assessment of the likelihood an event is legitimate.", + "file": "RecaptchaEnterpriseServiceV1Beta1Client/CreateAssessment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateAssessment", + "fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client.CreateAssessment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recaptchaenterprisepb.CreateAssessmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recaptchaenterprisepb.Assessment", + "client": { + "shortName": "RecaptchaEnterpriseServiceV1Beta1Client", + "fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client" + }, + "method": { + "shortName": "CreateAssessment", + "fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.CreateAssessment", + "service": { + "shortName": "RecaptchaEnterpriseServiceV1Beta1", + "fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/CreateCatalogItem/main.go b/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/CreateCatalogItem/main.go index d16922e61f8a..f34256a84621 100644 --- a/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/CreateCatalogItem/main.go +++ b/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/CreateCatalogItem/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommendationengine "cloud.google.com/go/recommendationengine/apiv1beta1" - recommendationenginepb "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1" + recommendationenginepb "cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -35,6 +40,7 @@ func main() { req := &recommendationenginepb.CreateCatalogItemRequest{ // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb#CreateCatalogItemRequest. } resp, err := c.CreateCatalogItem(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/DeleteCatalogItem/main.go b/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/DeleteCatalogItem/main.go index 4019f1e5dff2..82e594b4c51a 100644 --- a/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/DeleteCatalogItem/main.go +++ b/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/DeleteCatalogItem/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommendationengine "cloud.google.com/go/recommendationengine/apiv1beta1" - recommendationenginepb "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1" + recommendationenginepb "cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -35,6 +40,7 @@ func main() { req := &recommendationenginepb.DeleteCatalogItemRequest{ // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb#DeleteCatalogItemRequest. } err = c.DeleteCatalogItem(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/GetCatalogItem/main.go b/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/GetCatalogItem/main.go index 80d83ffbdeb3..e17dceb276d3 100644 --- a/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/GetCatalogItem/main.go +++ b/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/GetCatalogItem/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommendationengine "cloud.google.com/go/recommendationengine/apiv1beta1" - recommendationenginepb "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1" + recommendationenginepb "cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -35,6 +40,7 @@ func main() { req := &recommendationenginepb.GetCatalogItemRequest{ // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb#GetCatalogItemRequest. } resp, err := c.GetCatalogItem(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/ImportCatalogItems/main.go b/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/ImportCatalogItems/main.go index d89cdd2d1540..98ba7e44efb1 100644 --- a/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/ImportCatalogItems/main.go +++ b/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/ImportCatalogItems/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommendationengine "cloud.google.com/go/recommendationengine/apiv1beta1" - recommendationenginepb "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1" + recommendationenginepb "cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -35,6 +40,7 @@ func main() { req := &recommendationenginepb.ImportCatalogItemsRequest{ // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb#ImportCatalogItemsRequest. } op, err := c.ImportCatalogItems(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/ListCatalogItems/main.go b/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/ListCatalogItems/main.go index 449bf82141e7..90bf360ba4ad 100644 --- a/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/ListCatalogItems/main.go +++ b/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/ListCatalogItems/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" recommendationengine "cloud.google.com/go/recommendationengine/apiv1beta1" + recommendationenginepb "cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb" "google.golang.org/api/iterator" - recommendationenginepb "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -36,6 +41,7 @@ func main() { req := &recommendationenginepb.ListCatalogItemsRequest{ // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb#ListCatalogItemsRequest. } it := c.ListCatalogItems(ctx, req) for { diff --git a/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/UpdateCatalogItem/main.go b/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/UpdateCatalogItem/main.go index 7d93d68f9fdb..89b2a440dd5c 100644 --- a/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/UpdateCatalogItem/main.go +++ b/internal/generated/snippets/recommendationengine/apiv1beta1/CatalogClient/UpdateCatalogItem/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommendationengine "cloud.google.com/go/recommendationengine/apiv1beta1" - recommendationenginepb "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1" + recommendationenginepb "cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -35,6 +40,7 @@ func main() { req := &recommendationenginepb.UpdateCatalogItemRequest{ // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb#UpdateCatalogItemRequest. } resp, err := c.UpdateCatalogItem(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommendationengine/apiv1beta1/PredictionApiKeyRegistryClient/CreatePredictionApiKeyRegistration/main.go b/internal/generated/snippets/recommendationengine/apiv1beta1/PredictionApiKeyRegistryClient/CreatePredictionApiKeyRegistration/main.go index 527ff1ac9586..6db4db004800 100644 --- a/internal/generated/snippets/recommendationengine/apiv1beta1/PredictionApiKeyRegistryClient/CreatePredictionApiKeyRegistration/main.go +++ b/internal/generated/snippets/recommendationengine/apiv1beta1/PredictionApiKeyRegistryClient/CreatePredictionApiKeyRegistration/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommendationengine "cloud.google.com/go/recommendationengine/apiv1beta1" - recommendationenginepb "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1" + recommendationenginepb "cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewPredictionApiKeyRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -35,6 +40,7 @@ func main() { req := &recommendationenginepb.CreatePredictionApiKeyRegistrationRequest{ // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb#CreatePredictionApiKeyRegistrationRequest. } resp, err := c.CreatePredictionApiKeyRegistration(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommendationengine/apiv1beta1/PredictionApiKeyRegistryClient/DeletePredictionApiKeyRegistration/main.go b/internal/generated/snippets/recommendationengine/apiv1beta1/PredictionApiKeyRegistryClient/DeletePredictionApiKeyRegistration/main.go index 05fa71a76a68..a35b7cc9b1f5 100644 --- a/internal/generated/snippets/recommendationengine/apiv1beta1/PredictionApiKeyRegistryClient/DeletePredictionApiKeyRegistration/main.go +++ b/internal/generated/snippets/recommendationengine/apiv1beta1/PredictionApiKeyRegistryClient/DeletePredictionApiKeyRegistration/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommendationengine "cloud.google.com/go/recommendationengine/apiv1beta1" - recommendationenginepb "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1" + recommendationenginepb "cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewPredictionApiKeyRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -35,6 +40,7 @@ func main() { req := &recommendationenginepb.DeletePredictionApiKeyRegistrationRequest{ // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb#DeletePredictionApiKeyRegistrationRequest. } err = c.DeletePredictionApiKeyRegistration(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommendationengine/apiv1beta1/PredictionApiKeyRegistryClient/ListPredictionApiKeyRegistrations/main.go b/internal/generated/snippets/recommendationengine/apiv1beta1/PredictionApiKeyRegistryClient/ListPredictionApiKeyRegistrations/main.go index 765379e28081..731ea8a93618 100644 --- a/internal/generated/snippets/recommendationengine/apiv1beta1/PredictionApiKeyRegistryClient/ListPredictionApiKeyRegistrations/main.go +++ b/internal/generated/snippets/recommendationengine/apiv1beta1/PredictionApiKeyRegistryClient/ListPredictionApiKeyRegistrations/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" recommendationengine "cloud.google.com/go/recommendationengine/apiv1beta1" + recommendationenginepb "cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb" "google.golang.org/api/iterator" - recommendationenginepb "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewPredictionApiKeyRegistryClient(ctx) if err != nil { // TODO: Handle error. @@ -36,6 +41,7 @@ func main() { req := &recommendationenginepb.ListPredictionApiKeyRegistrationsRequest{ // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb#ListPredictionApiKeyRegistrationsRequest. } it := c.ListPredictionApiKeyRegistrations(ctx, req) for { diff --git a/internal/generated/snippets/recommendationengine/apiv1beta1/PredictionClient/Predict/main.go b/internal/generated/snippets/recommendationengine/apiv1beta1/PredictionClient/Predict/main.go index 92badcbda75b..209fb57ab1d3 100644 --- a/internal/generated/snippets/recommendationengine/apiv1beta1/PredictionClient/Predict/main.go +++ b/internal/generated/snippets/recommendationengine/apiv1beta1/PredictionClient/Predict/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" recommendationengine "cloud.google.com/go/recommendationengine/apiv1beta1" + recommendationenginepb "cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb" "google.golang.org/api/iterator" - recommendationenginepb "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -36,6 +41,7 @@ func main() { req := &recommendationenginepb.PredictRequest{ // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb#PredictRequest. } it := c.Predict(ctx, req) for { diff --git a/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/CollectUserEvent/main.go b/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/CollectUserEvent/main.go index 628376df3fd5..538db43ec6f3 100644 --- a/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/CollectUserEvent/main.go +++ b/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/CollectUserEvent/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommendationengine "cloud.google.com/go/recommendationengine/apiv1beta1" - recommendationenginepb "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1" + recommendationenginepb "cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -35,6 +40,7 @@ func main() { req := &recommendationenginepb.CollectUserEventRequest{ // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb#CollectUserEventRequest. } resp, err := c.CollectUserEvent(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/ImportUserEvents/main.go b/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/ImportUserEvents/main.go index 3d5d708fdcec..e4b24ec4b8fd 100644 --- a/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/ImportUserEvents/main.go +++ b/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/ImportUserEvents/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommendationengine "cloud.google.com/go/recommendationengine/apiv1beta1" - recommendationenginepb "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1" + recommendationenginepb "cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -35,6 +40,7 @@ func main() { req := &recommendationenginepb.ImportUserEventsRequest{ // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb#ImportUserEventsRequest. } op, err := c.ImportUserEvents(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/ListUserEvents/main.go b/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/ListUserEvents/main.go index 8020c00649a6..29a160446bcc 100644 --- a/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/ListUserEvents/main.go +++ b/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/ListUserEvents/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" recommendationengine "cloud.google.com/go/recommendationengine/apiv1beta1" + recommendationenginepb "cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb" "google.golang.org/api/iterator" - recommendationenginepb "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -36,6 +41,7 @@ func main() { req := &recommendationenginepb.ListUserEventsRequest{ // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb#ListUserEventsRequest. } it := c.ListUserEvents(ctx, req) for { diff --git a/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/PurgeUserEvents/main.go b/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/PurgeUserEvents/main.go index 63fcbc83813a..4cea9817bf80 100644 --- a/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/PurgeUserEvents/main.go +++ b/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/PurgeUserEvents/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommendationengine "cloud.google.com/go/recommendationengine/apiv1beta1" - recommendationenginepb "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1" + recommendationenginepb "cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -35,6 +40,7 @@ func main() { req := &recommendationenginepb.PurgeUserEventsRequest{ // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb#PurgeUserEventsRequest. } op, err := c.PurgeUserEvents(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/WriteUserEvent/main.go b/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/WriteUserEvent/main.go index 72b645b611bc..3cbfe15d90d4 100644 --- a/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/WriteUserEvent/main.go +++ b/internal/generated/snippets/recommendationengine/apiv1beta1/UserEventClient/WriteUserEvent/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommendationengine "cloud.google.com/go/recommendationengine/apiv1beta1" - recommendationenginepb "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1" + recommendationenginepb "cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommendationengine.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -35,6 +40,7 @@ func main() { req := &recommendationenginepb.WriteUserEventRequest{ // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb#WriteUserEventRequest. } resp, err := c.WriteUserEvent(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommendationengine/apiv1beta1/snippet_metadata.google.cloud.recommendationengine.v1beta1.json b/internal/generated/snippets/recommendationengine/apiv1beta1/snippet_metadata.google.cloud.recommendationengine.v1beta1.json new file mode 100644 index 000000000000..a42dc8e9ef6a --- /dev/null +++ b/internal/generated/snippets/recommendationengine/apiv1beta1/snippet_metadata.google.cloud.recommendationengine.v1beta1.json @@ -0,0 +1,703 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/recommendationengine/apiv1beta1", + "version": "0.7.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.recommendationengine.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "recommendationengine_v1beta1_generated_CatalogService_CreateCatalogItem_sync", + "title": "recommendationengine CreateCatalogItem Sample", + "description": "CreateCatalogItem creates a catalog item.", + "file": "CatalogClient/CreateCatalogItem/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateCatalogItem", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogClient.CreateCatalogItem", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommendationenginepb.CreateCatalogItemRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommendationenginepb.CatalogItem", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogClient" + }, + "method": { + "shortName": "CreateCatalogItem", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogService.CreateCatalogItem", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommendationengine_v1beta1_generated_CatalogService_DeleteCatalogItem_sync", + "title": "recommendationengine DeleteCatalogItem Sample", + "description": "DeleteCatalogItem deletes a catalog item.", + "file": "CatalogClient/DeleteCatalogItem/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteCatalogItem", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogClient.DeleteCatalogItem", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommendationenginepb.DeleteCatalogItemRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogClient" + }, + "method": { + "shortName": "DeleteCatalogItem", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogService.DeleteCatalogItem", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommendationengine_v1beta1_generated_CatalogService_GetCatalogItem_sync", + "title": "recommendationengine GetCatalogItem Sample", + "description": "GetCatalogItem gets a specific catalog item.", + "file": "CatalogClient/GetCatalogItem/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCatalogItem", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogClient.GetCatalogItem", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommendationenginepb.GetCatalogItemRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommendationenginepb.CatalogItem", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogClient" + }, + "method": { + "shortName": "GetCatalogItem", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogService.GetCatalogItem", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommendationengine_v1beta1_generated_CatalogService_ImportCatalogItems_sync", + "title": "recommendationengine ImportCatalogItems Sample", + "description": "ImportCatalogItems bulk import of multiple catalog items. Request processing may be\nsynchronous. No partial updating supported. Non-existing items will be\ncreated.\n\nOperation.response is of type ImportResponse. Note that it is\npossible for a subset of the items to be successfully updated.", + "file": "CatalogClient/ImportCatalogItems/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ImportCatalogItems", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogClient.ImportCatalogItems", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommendationenginepb.ImportCatalogItemsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ImportCatalogItemsOperation", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogClient" + }, + "method": { + "shortName": "ImportCatalogItems", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogService.ImportCatalogItems", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommendationengine_v1beta1_generated_CatalogService_ListCatalogItems_sync", + "title": "recommendationengine ListCatalogItems Sample", + "description": "ListCatalogItems gets a list of catalog items.", + "file": "CatalogClient/ListCatalogItems/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCatalogItems", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogClient.ListCatalogItems", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommendationenginepb.ListCatalogItemsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CatalogItemIterator", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogClient" + }, + "method": { + "shortName": "ListCatalogItems", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogService.ListCatalogItems", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommendationengine_v1beta1_generated_CatalogService_UpdateCatalogItem_sync", + "title": "recommendationengine UpdateCatalogItem Sample", + "description": "UpdateCatalogItem updates a catalog item. Partial updating is supported. Non-existing\nitems will be created.", + "file": "CatalogClient/UpdateCatalogItem/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCatalogItem", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogClient.UpdateCatalogItem", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommendationenginepb.UpdateCatalogItemRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommendationenginepb.CatalogItem", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogClient" + }, + "method": { + "shortName": "UpdateCatalogItem", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogService.UpdateCatalogItem", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.recommendationengine.v1beta1.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommendationengine_v1beta1_generated_PredictionApiKeyRegistry_CreatePredictionApiKeyRegistration_sync", + "title": "recommendationengine CreatePredictionApiKeyRegistration Sample", + "description": "CreatePredictionApiKeyRegistration register an API key for use with predict method.", + "file": "PredictionApiKeyRegistryClient/CreatePredictionApiKeyRegistration/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreatePredictionApiKeyRegistration", + "fullName": "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient.CreatePredictionApiKeyRegistration", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommendationenginepb.CreatePredictionApiKeyRegistrationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommendationenginepb.PredictionApiKeyRegistration", + "client": { + "shortName": "PredictionApiKeyRegistryClient", + "fullName": "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient" + }, + "method": { + "shortName": "CreatePredictionApiKeyRegistration", + "fullName": "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry.CreatePredictionApiKeyRegistration", + "service": { + "shortName": "PredictionApiKeyRegistry", + "fullName": "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommendationengine_v1beta1_generated_PredictionApiKeyRegistry_DeletePredictionApiKeyRegistration_sync", + "title": "recommendationengine DeletePredictionApiKeyRegistration Sample", + "description": "DeletePredictionApiKeyRegistration unregister an apiKey from using for predict method.", + "file": "PredictionApiKeyRegistryClient/DeletePredictionApiKeyRegistration/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeletePredictionApiKeyRegistration", + "fullName": "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient.DeletePredictionApiKeyRegistration", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommendationenginepb.DeletePredictionApiKeyRegistrationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "PredictionApiKeyRegistryClient", + "fullName": "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient" + }, + "method": { + "shortName": "DeletePredictionApiKeyRegistration", + "fullName": "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry.DeletePredictionApiKeyRegistration", + "service": { + "shortName": "PredictionApiKeyRegistry", + "fullName": "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommendationengine_v1beta1_generated_PredictionApiKeyRegistry_ListPredictionApiKeyRegistrations_sync", + "title": "recommendationengine ListPredictionApiKeyRegistrations Sample", + "description": "ListPredictionApiKeyRegistrations list the registered apiKeys for use with predict method.", + "file": "PredictionApiKeyRegistryClient/ListPredictionApiKeyRegistrations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListPredictionApiKeyRegistrations", + "fullName": "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient.ListPredictionApiKeyRegistrations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommendationenginepb.ListPredictionApiKeyRegistrationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PredictionApiKeyRegistrationIterator", + "client": { + "shortName": "PredictionApiKeyRegistryClient", + "fullName": "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistryClient" + }, + "method": { + "shortName": "ListPredictionApiKeyRegistrations", + "fullName": "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry.ListPredictionApiKeyRegistrations", + "service": { + "shortName": "PredictionApiKeyRegistry", + "fullName": "google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommendationengine_v1beta1_generated_PredictionService_Predict_sync", + "title": "recommendationengine Predict Sample", + "description": "Predict makes a recommendation prediction. If using API Key based authentication,\nthe API Key must be registered using the\nPredictionApiKeyRegistry\nservice. Learn more (at /recommendations-ai/docs/setting-up#register-key).", + "file": "PredictionClient/Predict/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Predict", + "fullName": "google.cloud.recommendationengine.v1beta1.PredictionClient.Predict", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommendationenginepb.PredictRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PredictResponse_PredictionResultIterator", + "client": { + "shortName": "PredictionClient", + "fullName": "google.cloud.recommendationengine.v1beta1.PredictionClient" + }, + "method": { + "shortName": "Predict", + "fullName": "google.cloud.recommendationengine.v1beta1.PredictionService.Predict", + "service": { + "shortName": "PredictionService", + "fullName": "google.cloud.recommendationengine.v1beta1.PredictionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommendationengine_v1beta1_generated_UserEventService_CollectUserEvent_sync", + "title": "recommendationengine CollectUserEvent Sample", + "description": "CollectUserEvent writes a single user event from the browser. This uses a GET request to\ndue to browser restriction of POST-ing to a 3rd party domain.\n\nThis method is used only by the Recommendations AI JavaScript pixel.\nUsers should not call this method directly.", + "file": "UserEventClient/CollectUserEvent/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CollectUserEvent", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventClient.CollectUserEvent", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommendationenginepb.CollectUserEventRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "httpbodypb.HttpBody", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventClient" + }, + "method": { + "shortName": "CollectUserEvent", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventService.CollectUserEvent", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommendationengine_v1beta1_generated_UserEventService_ImportUserEvents_sync", + "title": "recommendationengine ImportUserEvents Sample", + "description": "ImportUserEvents bulk import of User events. Request processing might be\nsynchronous. Events that already exist are skipped.\nUse this method for backfilling historical user events.\n\nOperation.response is of type ImportResponse. Note that it is\npossible for a subset of the items to be successfully inserted.\nOperation.metadata is of type ImportMetadata.", + "file": "UserEventClient/ImportUserEvents/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ImportUserEvents", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventClient.ImportUserEvents", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommendationenginepb.ImportUserEventsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ImportUserEventsOperation", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventClient" + }, + "method": { + "shortName": "ImportUserEvents", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventService.ImportUserEvents", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommendationengine_v1beta1_generated_UserEventService_ListUserEvents_sync", + "title": "recommendationengine ListUserEvents Sample", + "description": "ListUserEvents gets a list of user events within a time range, with potential filtering.", + "file": "UserEventClient/ListUserEvents/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListUserEvents", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventClient.ListUserEvents", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommendationenginepb.ListUserEventsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UserEventIterator", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventClient" + }, + "method": { + "shortName": "ListUserEvents", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventService.ListUserEvents", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommendationengine_v1beta1_generated_UserEventService_PurgeUserEvents_sync", + "title": "recommendationengine PurgeUserEvents Sample", + "description": "PurgeUserEvents deletes permanently all user events specified by the filter provided.\nDepending on the number of events specified by the filter, this operation\ncould take hours or days to complete. To test a filter, use the list\ncommand first.", + "file": "UserEventClient/PurgeUserEvents/main.go", + "language": "GO", + "clientMethod": { + "shortName": "PurgeUserEvents", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventClient.PurgeUserEvents", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommendationenginepb.PurgeUserEventsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PurgeUserEventsOperation", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventClient" + }, + "method": { + "shortName": "PurgeUserEvents", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventService.PurgeUserEvents", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommendationengine_v1beta1_generated_UserEventService_WriteUserEvent_sync", + "title": "recommendationengine WriteUserEvent Sample", + "description": "WriteUserEvent writes a single user event.", + "file": "UserEventClient/WriteUserEvent/main.go", + "language": "GO", + "clientMethod": { + "shortName": "WriteUserEvent", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventClient.WriteUserEvent", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommendationenginepb.WriteUserEventRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommendationenginepb.UserEvent", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventClient" + }, + "method": { + "shortName": "WriteUserEvent", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventService.WriteUserEvent", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.recommendationengine.v1beta1.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/recommender/apiv1/Client/GetInsight/main.go b/internal/generated/snippets/recommender/apiv1/Client/GetInsight/main.go index e1ddf898691d..c1bdb160c9fc 100644 --- a/internal/generated/snippets/recommender/apiv1/Client/GetInsight/main.go +++ b/internal/generated/snippets/recommender/apiv1/Client/GetInsight/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1" + recommenderpb "cloud.google.com/go/recommender/apiv1/recommenderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &recommenderpb.GetInsightRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1#GetInsightRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1/recommenderpb#GetInsightRequest. } resp, err := c.GetInsight(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommender/apiv1/Client/GetInsightTypeConfig/main.go b/internal/generated/snippets/recommender/apiv1/Client/GetInsightTypeConfig/main.go new file mode 100644 index 000000000000..c1fc0878b73b --- /dev/null +++ b/internal/generated/snippets/recommender/apiv1/Client/GetInsightTypeConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recommender_v1_generated_Recommender_GetInsightTypeConfig_sync] + +package main + +import ( + "context" + + recommender "cloud.google.com/go/recommender/apiv1" + recommenderpb "cloud.google.com/go/recommender/apiv1/recommenderpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recommender.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recommenderpb.GetInsightTypeConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1/recommenderpb#GetInsightTypeConfigRequest. + } + resp, err := c.GetInsightTypeConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END recommender_v1_generated_Recommender_GetInsightTypeConfig_sync] diff --git a/internal/generated/snippets/recommender/apiv1/Client/GetRecommendation/main.go b/internal/generated/snippets/recommender/apiv1/Client/GetRecommendation/main.go index 69a348ab4898..9258c6529ded 100644 --- a/internal/generated/snippets/recommender/apiv1/Client/GetRecommendation/main.go +++ b/internal/generated/snippets/recommender/apiv1/Client/GetRecommendation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1" + recommenderpb "cloud.google.com/go/recommender/apiv1/recommenderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &recommenderpb.GetRecommendationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1#GetRecommendationRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1/recommenderpb#GetRecommendationRequest. } resp, err := c.GetRecommendation(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommender/apiv1/Client/GetRecommenderConfig/main.go b/internal/generated/snippets/recommender/apiv1/Client/GetRecommenderConfig/main.go new file mode 100644 index 000000000000..fd629c20dadc --- /dev/null +++ b/internal/generated/snippets/recommender/apiv1/Client/GetRecommenderConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recommender_v1_generated_Recommender_GetRecommenderConfig_sync] + +package main + +import ( + "context" + + recommender "cloud.google.com/go/recommender/apiv1" + recommenderpb "cloud.google.com/go/recommender/apiv1/recommenderpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recommender.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recommenderpb.GetRecommenderConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1/recommenderpb#GetRecommenderConfigRequest. + } + resp, err := c.GetRecommenderConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END recommender_v1_generated_Recommender_GetRecommenderConfig_sync] diff --git a/internal/generated/snippets/recommender/apiv1/Client/ListInsights/main.go b/internal/generated/snippets/recommender/apiv1/Client/ListInsights/main.go index fd232dff1944..6c6b9a0a75c8 100644 --- a/internal/generated/snippets/recommender/apiv1/Client/ListInsights/main.go +++ b/internal/generated/snippets/recommender/apiv1/Client/ListInsights/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1" + recommenderpb "cloud.google.com/go/recommender/apiv1/recommenderpb" "google.golang.org/api/iterator" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &recommenderpb.ListInsightsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1#ListInsightsRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1/recommenderpb#ListInsightsRequest. } it := c.ListInsights(ctx, req) for { diff --git a/internal/generated/snippets/recommender/apiv1/Client/ListRecommendations/main.go b/internal/generated/snippets/recommender/apiv1/Client/ListRecommendations/main.go index affd9e89956b..ab3670d60a31 100644 --- a/internal/generated/snippets/recommender/apiv1/Client/ListRecommendations/main.go +++ b/internal/generated/snippets/recommender/apiv1/Client/ListRecommendations/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1" + recommenderpb "cloud.google.com/go/recommender/apiv1/recommenderpb" "google.golang.org/api/iterator" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &recommenderpb.ListRecommendationsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1#ListRecommendationsRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1/recommenderpb#ListRecommendationsRequest. } it := c.ListRecommendations(ctx, req) for { diff --git a/internal/generated/snippets/recommender/apiv1/Client/MarkInsightAccepted/main.go b/internal/generated/snippets/recommender/apiv1/Client/MarkInsightAccepted/main.go index a3dfdf350e29..48b076bcbd6e 100644 --- a/internal/generated/snippets/recommender/apiv1/Client/MarkInsightAccepted/main.go +++ b/internal/generated/snippets/recommender/apiv1/Client/MarkInsightAccepted/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1" + recommenderpb "cloud.google.com/go/recommender/apiv1/recommenderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &recommenderpb.MarkInsightAcceptedRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1#MarkInsightAcceptedRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1/recommenderpb#MarkInsightAcceptedRequest. } resp, err := c.MarkInsightAccepted(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommender/apiv1/Client/MarkRecommendationClaimed/main.go b/internal/generated/snippets/recommender/apiv1/Client/MarkRecommendationClaimed/main.go index 3377519da578..074f6a58355e 100644 --- a/internal/generated/snippets/recommender/apiv1/Client/MarkRecommendationClaimed/main.go +++ b/internal/generated/snippets/recommender/apiv1/Client/MarkRecommendationClaimed/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1" + recommenderpb "cloud.google.com/go/recommender/apiv1/recommenderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &recommenderpb.MarkRecommendationClaimedRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1#MarkRecommendationClaimedRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1/recommenderpb#MarkRecommendationClaimedRequest. } resp, err := c.MarkRecommendationClaimed(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommender/apiv1/Client/MarkRecommendationFailed/main.go b/internal/generated/snippets/recommender/apiv1/Client/MarkRecommendationFailed/main.go index 5c9d6f8484d2..2276ae1fc959 100644 --- a/internal/generated/snippets/recommender/apiv1/Client/MarkRecommendationFailed/main.go +++ b/internal/generated/snippets/recommender/apiv1/Client/MarkRecommendationFailed/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1" + recommenderpb "cloud.google.com/go/recommender/apiv1/recommenderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &recommenderpb.MarkRecommendationFailedRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1#MarkRecommendationFailedRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1/recommenderpb#MarkRecommendationFailedRequest. } resp, err := c.MarkRecommendationFailed(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommender/apiv1/Client/MarkRecommendationSucceeded/main.go b/internal/generated/snippets/recommender/apiv1/Client/MarkRecommendationSucceeded/main.go index e9ebcf88be37..3d2b9034c428 100644 --- a/internal/generated/snippets/recommender/apiv1/Client/MarkRecommendationSucceeded/main.go +++ b/internal/generated/snippets/recommender/apiv1/Client/MarkRecommendationSucceeded/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1" + recommenderpb "cloud.google.com/go/recommender/apiv1/recommenderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &recommenderpb.MarkRecommendationSucceededRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1#MarkRecommendationSucceededRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1/recommenderpb#MarkRecommendationSucceededRequest. } resp, err := c.MarkRecommendationSucceeded(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommender/apiv1/Client/UpdateInsightTypeConfig/main.go b/internal/generated/snippets/recommender/apiv1/Client/UpdateInsightTypeConfig/main.go new file mode 100644 index 000000000000..78ab8e291162 --- /dev/null +++ b/internal/generated/snippets/recommender/apiv1/Client/UpdateInsightTypeConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recommender_v1_generated_Recommender_UpdateInsightTypeConfig_sync] + +package main + +import ( + "context" + + recommender "cloud.google.com/go/recommender/apiv1" + recommenderpb "cloud.google.com/go/recommender/apiv1/recommenderpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recommender.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recommenderpb.UpdateInsightTypeConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1/recommenderpb#UpdateInsightTypeConfigRequest. + } + resp, err := c.UpdateInsightTypeConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END recommender_v1_generated_Recommender_UpdateInsightTypeConfig_sync] diff --git a/internal/generated/snippets/recommender/apiv1/Client/UpdateRecommenderConfig/main.go b/internal/generated/snippets/recommender/apiv1/Client/UpdateRecommenderConfig/main.go new file mode 100644 index 000000000000..4c28e714cb95 --- /dev/null +++ b/internal/generated/snippets/recommender/apiv1/Client/UpdateRecommenderConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START recommender_v1_generated_Recommender_UpdateRecommenderConfig_sync] + +package main + +import ( + "context" + + recommender "cloud.google.com/go/recommender/apiv1" + recommenderpb "cloud.google.com/go/recommender/apiv1/recommenderpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := recommender.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &recommenderpb.UpdateRecommenderConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1/recommenderpb#UpdateRecommenderConfigRequest. + } + resp, err := c.UpdateRecommenderConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END recommender_v1_generated_Recommender_UpdateRecommenderConfig_sync] diff --git a/internal/generated/snippets/recommender/apiv1/snippet_metadata.google.cloud.recommender.v1.json b/internal/generated/snippets/recommender/apiv1/snippet_metadata.google.cloud.recommender.v1.json new file mode 100644 index 000000000000..014c4ff83154 --- /dev/null +++ b/internal/generated/snippets/recommender/apiv1/snippet_metadata.google.cloud.recommender.v1.json @@ -0,0 +1,567 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/recommender/apiv1", + "version": "1.9.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.recommender.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "recommender_v1_generated_Recommender_GetInsight_sync", + "title": "recommender GetInsight Sample", + "description": "GetInsight gets the requested insight. Requires the recommender.*.get IAM permission\nfor the specified insight type.", + "file": "Client/GetInsight/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInsight", + "fullName": "google.cloud.recommender.v1.Client.GetInsight", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.GetInsightRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.Insight", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1.Client" + }, + "method": { + "shortName": "GetInsight", + "fullName": "google.cloud.recommender.v1.Recommender.GetInsight", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1_generated_Recommender_GetInsightTypeConfig_sync", + "title": "recommender GetInsightTypeConfig Sample", + "description": "GetInsightTypeConfig gets the requested InsightTypeConfig. There is only one instance of the\nconfig for each InsightType.", + "file": "Client/GetInsightTypeConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInsightTypeConfig", + "fullName": "google.cloud.recommender.v1.Client.GetInsightTypeConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.GetInsightTypeConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.InsightTypeConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1.Client" + }, + "method": { + "shortName": "GetInsightTypeConfig", + "fullName": "google.cloud.recommender.v1.Recommender.GetInsightTypeConfig", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1_generated_Recommender_GetRecommendation_sync", + "title": "recommender GetRecommendation Sample", + "description": "GetRecommendation gets the requested recommendation. Requires the recommender.*.get\nIAM permission for the specified recommender.", + "file": "Client/GetRecommendation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetRecommendation", + "fullName": "google.cloud.recommender.v1.Client.GetRecommendation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.GetRecommendationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.Recommendation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1.Client" + }, + "method": { + "shortName": "GetRecommendation", + "fullName": "google.cloud.recommender.v1.Recommender.GetRecommendation", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1_generated_Recommender_GetRecommenderConfig_sync", + "title": "recommender GetRecommenderConfig Sample", + "description": "GetRecommenderConfig gets the requested Recommender Config. There is only one instance of the\nconfig for each Recommender.", + "file": "Client/GetRecommenderConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetRecommenderConfig", + "fullName": "google.cloud.recommender.v1.Client.GetRecommenderConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.GetRecommenderConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.RecommenderConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1.Client" + }, + "method": { + "shortName": "GetRecommenderConfig", + "fullName": "google.cloud.recommender.v1.Recommender.GetRecommenderConfig", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1_generated_Recommender_ListInsights_sync", + "title": "recommender ListInsights Sample", + "description": "ListInsights lists insights for the specified Cloud Resource. Requires the\nrecommender.*.list IAM permission for the specified insight type.", + "file": "Client/ListInsights/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListInsights", + "fullName": "google.cloud.recommender.v1.Client.ListInsights", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.ListInsightsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "InsightIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1.Client" + }, + "method": { + "shortName": "ListInsights", + "fullName": "google.cloud.recommender.v1.Recommender.ListInsights", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1_generated_Recommender_ListRecommendations_sync", + "title": "recommender ListRecommendations Sample", + "description": "ListRecommendations lists recommendations for the specified Cloud Resource. Requires the\nrecommender.*.list IAM permission for the specified recommender.", + "file": "Client/ListRecommendations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListRecommendations", + "fullName": "google.cloud.recommender.v1.Client.ListRecommendations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.ListRecommendationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RecommendationIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1.Client" + }, + "method": { + "shortName": "ListRecommendations", + "fullName": "google.cloud.recommender.v1.Recommender.ListRecommendations", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1_generated_Recommender_MarkInsightAccepted_sync", + "title": "recommender MarkInsightAccepted Sample", + "description": "MarkInsightAccepted marks the Insight State as Accepted. Users can use this method to\nindicate to the Recommender API that they have applied some action based\non the insight. This stops the insight content from being updated.\n\nMarkInsightAccepted can be applied to insights in ACTIVE state. Requires\nthe recommender.*.update IAM permission for the specified insight.", + "file": "Client/MarkInsightAccepted/main.go", + "language": "GO", + "clientMethod": { + "shortName": "MarkInsightAccepted", + "fullName": "google.cloud.recommender.v1.Client.MarkInsightAccepted", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.MarkInsightAcceptedRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.Insight", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1.Client" + }, + "method": { + "shortName": "MarkInsightAccepted", + "fullName": "google.cloud.recommender.v1.Recommender.MarkInsightAccepted", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1_generated_Recommender_MarkRecommendationClaimed_sync", + "title": "recommender MarkRecommendationClaimed Sample", + "description": "MarkRecommendationClaimed marks the Recommendation State as Claimed. Users can use this method to\nindicate to the Recommender API that they are starting to apply the\nrecommendation themselves. This stops the recommendation content from being\nupdated. Associated insights are frozen and placed in the ACCEPTED state.\n\nMarkRecommendationClaimed can be applied to recommendations in CLAIMED,\nSUCCEEDED, FAILED, or ACTIVE state.\n\nRequires the recommender.*.update IAM permission for the specified\nrecommender.", + "file": "Client/MarkRecommendationClaimed/main.go", + "language": "GO", + "clientMethod": { + "shortName": "MarkRecommendationClaimed", + "fullName": "google.cloud.recommender.v1.Client.MarkRecommendationClaimed", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.MarkRecommendationClaimedRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.Recommendation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1.Client" + }, + "method": { + "shortName": "MarkRecommendationClaimed", + "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationClaimed", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1_generated_Recommender_MarkRecommendationFailed_sync", + "title": "recommender MarkRecommendationFailed Sample", + "description": "MarkRecommendationFailed marks the Recommendation State as Failed. Users can use this method to\nindicate to the Recommender API that they have applied the recommendation\nthemselves, and the operation failed. This stops the recommendation content\nfrom being updated. Associated insights are frozen and placed in the\nACCEPTED state.\n\nMarkRecommendationFailed can be applied to recommendations in ACTIVE,\nCLAIMED, SUCCEEDED, or FAILED state.\n\nRequires the recommender.*.update IAM permission for the specified\nrecommender.", + "file": "Client/MarkRecommendationFailed/main.go", + "language": "GO", + "clientMethod": { + "shortName": "MarkRecommendationFailed", + "fullName": "google.cloud.recommender.v1.Client.MarkRecommendationFailed", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.MarkRecommendationFailedRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.Recommendation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1.Client" + }, + "method": { + "shortName": "MarkRecommendationFailed", + "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationFailed", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1_generated_Recommender_MarkRecommendationSucceeded_sync", + "title": "recommender MarkRecommendationSucceeded Sample", + "description": "MarkRecommendationSucceeded marks the Recommendation State as Succeeded. Users can use this method to\nindicate to the Recommender API that they have applied the recommendation\nthemselves, and the operation was successful. This stops the recommendation\ncontent from being updated. Associated insights are frozen and placed in\nthe ACCEPTED state.\n\nMarkRecommendationSucceeded can be applied to recommendations in ACTIVE,\nCLAIMED, SUCCEEDED, or FAILED state.\n\nRequires the recommender.*.update IAM permission for the specified\nrecommender.", + "file": "Client/MarkRecommendationSucceeded/main.go", + "language": "GO", + "clientMethod": { + "shortName": "MarkRecommendationSucceeded", + "fullName": "google.cloud.recommender.v1.Client.MarkRecommendationSucceeded", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.MarkRecommendationSucceededRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.Recommendation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1.Client" + }, + "method": { + "shortName": "MarkRecommendationSucceeded", + "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationSucceeded", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1_generated_Recommender_UpdateInsightTypeConfig_sync", + "title": "recommender UpdateInsightTypeConfig Sample", + "description": "UpdateInsightTypeConfig updates an InsightTypeConfig change. This will create a new revision of the\nconfig.", + "file": "Client/UpdateInsightTypeConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateInsightTypeConfig", + "fullName": "google.cloud.recommender.v1.Client.UpdateInsightTypeConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.UpdateInsightTypeConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.InsightTypeConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1.Client" + }, + "method": { + "shortName": "UpdateInsightTypeConfig", + "fullName": "google.cloud.recommender.v1.Recommender.UpdateInsightTypeConfig", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1_generated_Recommender_UpdateRecommenderConfig_sync", + "title": "recommender UpdateRecommenderConfig Sample", + "description": "UpdateRecommenderConfig updates a Recommender Config. This will create a new revision of the\nconfig.", + "file": "Client/UpdateRecommenderConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateRecommenderConfig", + "fullName": "google.cloud.recommender.v1.Client.UpdateRecommenderConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.UpdateRecommenderConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.RecommenderConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1.Client" + }, + "method": { + "shortName": "UpdateRecommenderConfig", + "fullName": "google.cloud.recommender.v1.Recommender.UpdateRecommenderConfig", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/recommender/apiv1beta1/Client/GetInsight/main.go b/internal/generated/snippets/recommender/apiv1beta1/Client/GetInsight/main.go index 207b4f4c8e10..1604c3836f0f 100644 --- a/internal/generated/snippets/recommender/apiv1beta1/Client/GetInsight/main.go +++ b/internal/generated/snippets/recommender/apiv1beta1/Client/GetInsight/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1beta1" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1beta1" + recommenderpb "cloud.google.com/go/recommender/apiv1beta1/recommenderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &recommenderpb.GetInsightRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1beta1#GetInsightRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1beta1/recommenderpb#GetInsightRequest. } resp, err := c.GetInsight(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommender/apiv1beta1/Client/GetInsightTypeConfig/main.go b/internal/generated/snippets/recommender/apiv1beta1/Client/GetInsightTypeConfig/main.go index 2671cac90e51..53b5996c394e 100644 --- a/internal/generated/snippets/recommender/apiv1beta1/Client/GetInsightTypeConfig/main.go +++ b/internal/generated/snippets/recommender/apiv1beta1/Client/GetInsightTypeConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1beta1" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1beta1" + recommenderpb "cloud.google.com/go/recommender/apiv1beta1/recommenderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &recommenderpb.GetInsightTypeConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1beta1#GetInsightTypeConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1beta1/recommenderpb#GetInsightTypeConfigRequest. } resp, err := c.GetInsightTypeConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommender/apiv1beta1/Client/GetRecommendation/main.go b/internal/generated/snippets/recommender/apiv1beta1/Client/GetRecommendation/main.go index 4ff768e0d564..45eb7e452044 100644 --- a/internal/generated/snippets/recommender/apiv1beta1/Client/GetRecommendation/main.go +++ b/internal/generated/snippets/recommender/apiv1beta1/Client/GetRecommendation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1beta1" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1beta1" + recommenderpb "cloud.google.com/go/recommender/apiv1beta1/recommenderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &recommenderpb.GetRecommendationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1beta1#GetRecommendationRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1beta1/recommenderpb#GetRecommendationRequest. } resp, err := c.GetRecommendation(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommender/apiv1beta1/Client/GetRecommenderConfig/main.go b/internal/generated/snippets/recommender/apiv1beta1/Client/GetRecommenderConfig/main.go index 573e68cf0af9..8275e566b5e7 100644 --- a/internal/generated/snippets/recommender/apiv1beta1/Client/GetRecommenderConfig/main.go +++ b/internal/generated/snippets/recommender/apiv1beta1/Client/GetRecommenderConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1beta1" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1beta1" + recommenderpb "cloud.google.com/go/recommender/apiv1beta1/recommenderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &recommenderpb.GetRecommenderConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1beta1#GetRecommenderConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1beta1/recommenderpb#GetRecommenderConfigRequest. } resp, err := c.GetRecommenderConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommender/apiv1beta1/Client/ListInsights/main.go b/internal/generated/snippets/recommender/apiv1beta1/Client/ListInsights/main.go index 1a9599703bc1..690750ae1b38 100644 --- a/internal/generated/snippets/recommender/apiv1beta1/Client/ListInsights/main.go +++ b/internal/generated/snippets/recommender/apiv1beta1/Client/ListInsights/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1beta1" + recommenderpb "cloud.google.com/go/recommender/apiv1beta1/recommenderpb" "google.golang.org/api/iterator" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &recommenderpb.ListInsightsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1beta1#ListInsightsRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1beta1/recommenderpb#ListInsightsRequest. } it := c.ListInsights(ctx, req) for { diff --git a/internal/generated/snippets/recommender/apiv1beta1/Client/ListRecommendations/main.go b/internal/generated/snippets/recommender/apiv1beta1/Client/ListRecommendations/main.go index e556c74c1150..1d9ffa83efc2 100644 --- a/internal/generated/snippets/recommender/apiv1beta1/Client/ListRecommendations/main.go +++ b/internal/generated/snippets/recommender/apiv1beta1/Client/ListRecommendations/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1beta1" + recommenderpb "cloud.google.com/go/recommender/apiv1beta1/recommenderpb" "google.golang.org/api/iterator" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &recommenderpb.ListRecommendationsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1beta1#ListRecommendationsRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1beta1/recommenderpb#ListRecommendationsRequest. } it := c.ListRecommendations(ctx, req) for { diff --git a/internal/generated/snippets/recommender/apiv1beta1/Client/MarkInsightAccepted/main.go b/internal/generated/snippets/recommender/apiv1beta1/Client/MarkInsightAccepted/main.go index 61c34b7aaffa..ab8ec2e3aaa0 100644 --- a/internal/generated/snippets/recommender/apiv1beta1/Client/MarkInsightAccepted/main.go +++ b/internal/generated/snippets/recommender/apiv1beta1/Client/MarkInsightAccepted/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1beta1" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1beta1" + recommenderpb "cloud.google.com/go/recommender/apiv1beta1/recommenderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &recommenderpb.MarkInsightAcceptedRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1beta1#MarkInsightAcceptedRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1beta1/recommenderpb#MarkInsightAcceptedRequest. } resp, err := c.MarkInsightAccepted(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommender/apiv1beta1/Client/MarkRecommendationClaimed/main.go b/internal/generated/snippets/recommender/apiv1beta1/Client/MarkRecommendationClaimed/main.go index c897428377bf..6e072ae3c8c5 100644 --- a/internal/generated/snippets/recommender/apiv1beta1/Client/MarkRecommendationClaimed/main.go +++ b/internal/generated/snippets/recommender/apiv1beta1/Client/MarkRecommendationClaimed/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1beta1" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1beta1" + recommenderpb "cloud.google.com/go/recommender/apiv1beta1/recommenderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &recommenderpb.MarkRecommendationClaimedRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1beta1#MarkRecommendationClaimedRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1beta1/recommenderpb#MarkRecommendationClaimedRequest. } resp, err := c.MarkRecommendationClaimed(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommender/apiv1beta1/Client/MarkRecommendationFailed/main.go b/internal/generated/snippets/recommender/apiv1beta1/Client/MarkRecommendationFailed/main.go index 2f424b17a941..a14d7e334de0 100644 --- a/internal/generated/snippets/recommender/apiv1beta1/Client/MarkRecommendationFailed/main.go +++ b/internal/generated/snippets/recommender/apiv1beta1/Client/MarkRecommendationFailed/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1beta1" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1beta1" + recommenderpb "cloud.google.com/go/recommender/apiv1beta1/recommenderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &recommenderpb.MarkRecommendationFailedRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1beta1#MarkRecommendationFailedRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1beta1/recommenderpb#MarkRecommendationFailedRequest. } resp, err := c.MarkRecommendationFailed(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommender/apiv1beta1/Client/MarkRecommendationSucceeded/main.go b/internal/generated/snippets/recommender/apiv1beta1/Client/MarkRecommendationSucceeded/main.go index c4a6edb6014f..2669f40e62ea 100644 --- a/internal/generated/snippets/recommender/apiv1beta1/Client/MarkRecommendationSucceeded/main.go +++ b/internal/generated/snippets/recommender/apiv1beta1/Client/MarkRecommendationSucceeded/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1beta1" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1beta1" + recommenderpb "cloud.google.com/go/recommender/apiv1beta1/recommenderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &recommenderpb.MarkRecommendationSucceededRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1beta1#MarkRecommendationSucceededRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1beta1/recommenderpb#MarkRecommendationSucceededRequest. } resp, err := c.MarkRecommendationSucceeded(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommender/apiv1beta1/Client/UpdateInsightTypeConfig/main.go b/internal/generated/snippets/recommender/apiv1beta1/Client/UpdateInsightTypeConfig/main.go index aafbe2b6b0b7..0cc01b909e3d 100644 --- a/internal/generated/snippets/recommender/apiv1beta1/Client/UpdateInsightTypeConfig/main.go +++ b/internal/generated/snippets/recommender/apiv1beta1/Client/UpdateInsightTypeConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1beta1" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1beta1" + recommenderpb "cloud.google.com/go/recommender/apiv1beta1/recommenderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &recommenderpb.UpdateInsightTypeConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1beta1#UpdateInsightTypeConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1beta1/recommenderpb#UpdateInsightTypeConfigRequest. } resp, err := c.UpdateInsightTypeConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommender/apiv1beta1/Client/UpdateRecommenderConfig/main.go b/internal/generated/snippets/recommender/apiv1beta1/Client/UpdateRecommenderConfig/main.go index 2a5f67fccc25..030259cf6b63 100644 --- a/internal/generated/snippets/recommender/apiv1beta1/Client/UpdateRecommenderConfig/main.go +++ b/internal/generated/snippets/recommender/apiv1beta1/Client/UpdateRecommenderConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" recommender "cloud.google.com/go/recommender/apiv1beta1" - recommenderpb "google.golang.org/genproto/googleapis/cloud/recommender/v1beta1" + recommenderpb "cloud.google.com/go/recommender/apiv1beta1/recommenderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := recommender.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &recommenderpb.UpdateRecommenderConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/recommender/v1beta1#UpdateRecommenderConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/recommender/apiv1beta1/recommenderpb#UpdateRecommenderConfigRequest. } resp, err := c.UpdateRecommenderConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/recommender/apiv1beta1/snippet_metadata.google.cloud.recommender.v1beta1.json b/internal/generated/snippets/recommender/apiv1beta1/snippet_metadata.google.cloud.recommender.v1beta1.json new file mode 100644 index 000000000000..6302a865fac4 --- /dev/null +++ b/internal/generated/snippets/recommender/apiv1beta1/snippet_metadata.google.cloud.recommender.v1beta1.json @@ -0,0 +1,567 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/recommender/apiv1beta1", + "version": "1.9.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.recommender.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "recommender_v1beta1_generated_Recommender_GetInsight_sync", + "title": "recommender GetInsight Sample", + "description": "GetInsight gets the requested insight. Requires the recommender.*.get IAM permission\nfor the specified insight type.", + "file": "Client/GetInsight/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInsight", + "fullName": "google.cloud.recommender.v1beta1.Client.GetInsight", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.GetInsightRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.Insight", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1beta1.Client" + }, + "method": { + "shortName": "GetInsight", + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetInsight", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_GetInsightTypeConfig_sync", + "title": "recommender GetInsightTypeConfig Sample", + "description": "GetInsightTypeConfig gets the requested InsightTypeConfig. There is only one instance of the\nconfig for each InsightType.", + "file": "Client/GetInsightTypeConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInsightTypeConfig", + "fullName": "google.cloud.recommender.v1beta1.Client.GetInsightTypeConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.GetInsightTypeConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.InsightTypeConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1beta1.Client" + }, + "method": { + "shortName": "GetInsightTypeConfig", + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetInsightTypeConfig", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_GetRecommendation_sync", + "title": "recommender GetRecommendation Sample", + "description": "GetRecommendation gets the requested recommendation. Requires the recommender.*.get\nIAM permission for the specified recommender.", + "file": "Client/GetRecommendation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetRecommendation", + "fullName": "google.cloud.recommender.v1beta1.Client.GetRecommendation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.GetRecommendationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.Recommendation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1beta1.Client" + }, + "method": { + "shortName": "GetRecommendation", + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetRecommendation", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_GetRecommenderConfig_sync", + "title": "recommender GetRecommenderConfig Sample", + "description": "GetRecommenderConfig gets the requested Recommender Config. There is only one instance of the\nconfig for each Recommender.", + "file": "Client/GetRecommenderConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetRecommenderConfig", + "fullName": "google.cloud.recommender.v1beta1.Client.GetRecommenderConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.GetRecommenderConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.RecommenderConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1beta1.Client" + }, + "method": { + "shortName": "GetRecommenderConfig", + "fullName": "google.cloud.recommender.v1beta1.Recommender.GetRecommenderConfig", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_ListInsights_sync", + "title": "recommender ListInsights Sample", + "description": "ListInsights lists insights for the specified Cloud Resource. Requires the\nrecommender.*.list IAM permission for the specified insight type.", + "file": "Client/ListInsights/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListInsights", + "fullName": "google.cloud.recommender.v1beta1.Client.ListInsights", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.ListInsightsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "InsightIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1beta1.Client" + }, + "method": { + "shortName": "ListInsights", + "fullName": "google.cloud.recommender.v1beta1.Recommender.ListInsights", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_ListRecommendations_sync", + "title": "recommender ListRecommendations Sample", + "description": "ListRecommendations lists recommendations for the specified Cloud Resource. Requires the\nrecommender.*.list IAM permission for the specified recommender.", + "file": "Client/ListRecommendations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListRecommendations", + "fullName": "google.cloud.recommender.v1beta1.Client.ListRecommendations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.ListRecommendationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RecommendationIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1beta1.Client" + }, + "method": { + "shortName": "ListRecommendations", + "fullName": "google.cloud.recommender.v1beta1.Recommender.ListRecommendations", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_MarkInsightAccepted_sync", + "title": "recommender MarkInsightAccepted Sample", + "description": "MarkInsightAccepted marks the Insight State as Accepted. Users can use this method to\nindicate to the Recommender API that they have applied some action based\non the insight. This stops the insight content from being updated.\n\nMarkInsightAccepted can be applied to insights in ACTIVE state. Requires\nthe recommender.*.update IAM permission for the specified insight.", + "file": "Client/MarkInsightAccepted/main.go", + "language": "GO", + "clientMethod": { + "shortName": "MarkInsightAccepted", + "fullName": "google.cloud.recommender.v1beta1.Client.MarkInsightAccepted", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.MarkInsightAcceptedRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.Insight", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1beta1.Client" + }, + "method": { + "shortName": "MarkInsightAccepted", + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkInsightAccepted", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_MarkRecommendationClaimed_sync", + "title": "recommender MarkRecommendationClaimed Sample", + "description": "MarkRecommendationClaimed marks the Recommendation State as Claimed. Users can use this method to\nindicate to the Recommender API that they are starting to apply the\nrecommendation themselves. This stops the recommendation content from being\nupdated. Associated insights are frozen and placed in the ACCEPTED state.\n\nMarkRecommendationClaimed can be applied to recommendations in CLAIMED or\nACTIVE state.\n\nRequires the recommender.*.update IAM permission for the specified\nrecommender.", + "file": "Client/MarkRecommendationClaimed/main.go", + "language": "GO", + "clientMethod": { + "shortName": "MarkRecommendationClaimed", + "fullName": "google.cloud.recommender.v1beta1.Client.MarkRecommendationClaimed", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.MarkRecommendationClaimedRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.Recommendation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1beta1.Client" + }, + "method": { + "shortName": "MarkRecommendationClaimed", + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationClaimed", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_MarkRecommendationFailed_sync", + "title": "recommender MarkRecommendationFailed Sample", + "description": "MarkRecommendationFailed marks the Recommendation State as Failed. Users can use this method to\nindicate to the Recommender API that they have applied the recommendation\nthemselves, and the operation failed. This stops the recommendation content\nfrom being updated. Associated insights are frozen and placed in the\nACCEPTED state.\n\nMarkRecommendationFailed can be applied to recommendations in ACTIVE,\nCLAIMED, SUCCEEDED, or FAILED state.\n\nRequires the recommender.*.update IAM permission for the specified\nrecommender.", + "file": "Client/MarkRecommendationFailed/main.go", + "language": "GO", + "clientMethod": { + "shortName": "MarkRecommendationFailed", + "fullName": "google.cloud.recommender.v1beta1.Client.MarkRecommendationFailed", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.MarkRecommendationFailedRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.Recommendation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1beta1.Client" + }, + "method": { + "shortName": "MarkRecommendationFailed", + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationFailed", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_MarkRecommendationSucceeded_sync", + "title": "recommender MarkRecommendationSucceeded Sample", + "description": "MarkRecommendationSucceeded marks the Recommendation State as Succeeded. Users can use this method to\nindicate to the Recommender API that they have applied the recommendation\nthemselves, and the operation was successful. This stops the recommendation\ncontent from being updated. Associated insights are frozen and placed in\nthe ACCEPTED state.\n\nMarkRecommendationSucceeded can be applied to recommendations in ACTIVE,\nCLAIMED, SUCCEEDED, or FAILED state.\n\nRequires the recommender.*.update IAM permission for the specified\nrecommender.", + "file": "Client/MarkRecommendationSucceeded/main.go", + "language": "GO", + "clientMethod": { + "shortName": "MarkRecommendationSucceeded", + "fullName": "google.cloud.recommender.v1beta1.Client.MarkRecommendationSucceeded", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.MarkRecommendationSucceededRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.Recommendation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1beta1.Client" + }, + "method": { + "shortName": "MarkRecommendationSucceeded", + "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationSucceeded", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_UpdateInsightTypeConfig_sync", + "title": "recommender UpdateInsightTypeConfig Sample", + "description": "UpdateInsightTypeConfig updates an InsightTypeConfig change. This will create a new revision of the\nconfig.", + "file": "Client/UpdateInsightTypeConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateInsightTypeConfig", + "fullName": "google.cloud.recommender.v1beta1.Client.UpdateInsightTypeConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.UpdateInsightTypeConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.InsightTypeConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1beta1.Client" + }, + "method": { + "shortName": "UpdateInsightTypeConfig", + "fullName": "google.cloud.recommender.v1beta1.Recommender.UpdateInsightTypeConfig", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "recommender_v1beta1_generated_Recommender_UpdateRecommenderConfig_sync", + "title": "recommender UpdateRecommenderConfig Sample", + "description": "UpdateRecommenderConfig updates a Recommender Config. This will create a new revision of the\nconfig.", + "file": "Client/UpdateRecommenderConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateRecommenderConfig", + "fullName": "google.cloud.recommender.v1beta1.Client.UpdateRecommenderConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "recommenderpb.UpdateRecommenderConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "recommenderpb.RecommenderConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.recommender.v1beta1.Client" + }, + "method": { + "shortName": "UpdateRecommenderConfig", + "fullName": "google.cloud.recommender.v1beta1.Recommender.UpdateRecommenderConfig", + "service": { + "shortName": "Recommender", + "fullName": "google.cloud.recommender.v1beta1.Recommender" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/redis/apiv1/CloudRedisClient/CreateInstance/main.go b/internal/generated/snippets/redis/apiv1/CloudRedisClient/CreateInstance/main.go index 1b33931c14c7..b632073d933b 100644 --- a/internal/generated/snippets/redis/apiv1/CloudRedisClient/CreateInstance/main.go +++ b/internal/generated/snippets/redis/apiv1/CloudRedisClient/CreateInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1" + redispb "cloud.google.com/go/redis/apiv1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.CreateInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1#CreateInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1/redispb#CreateInstanceRequest. } op, err := c.CreateInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1/CloudRedisClient/DeleteInstance/main.go b/internal/generated/snippets/redis/apiv1/CloudRedisClient/DeleteInstance/main.go index 37db45e87111..d725d2a9eff8 100644 --- a/internal/generated/snippets/redis/apiv1/CloudRedisClient/DeleteInstance/main.go +++ b/internal/generated/snippets/redis/apiv1/CloudRedisClient/DeleteInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1" + redispb "cloud.google.com/go/redis/apiv1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.DeleteInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1#DeleteInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1/redispb#DeleteInstanceRequest. } op, err := c.DeleteInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1/CloudRedisClient/ExportInstance/main.go b/internal/generated/snippets/redis/apiv1/CloudRedisClient/ExportInstance/main.go index 3b6235b89e12..f97434fa1ddc 100644 --- a/internal/generated/snippets/redis/apiv1/CloudRedisClient/ExportInstance/main.go +++ b/internal/generated/snippets/redis/apiv1/CloudRedisClient/ExportInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1" + redispb "cloud.google.com/go/redis/apiv1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.ExportInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1#ExportInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1/redispb#ExportInstanceRequest. } op, err := c.ExportInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1/CloudRedisClient/FailoverInstance/main.go b/internal/generated/snippets/redis/apiv1/CloudRedisClient/FailoverInstance/main.go index cd78f41dda39..957a7bb4e845 100644 --- a/internal/generated/snippets/redis/apiv1/CloudRedisClient/FailoverInstance/main.go +++ b/internal/generated/snippets/redis/apiv1/CloudRedisClient/FailoverInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1" + redispb "cloud.google.com/go/redis/apiv1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.FailoverInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1#FailoverInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1/redispb#FailoverInstanceRequest. } op, err := c.FailoverInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1/CloudRedisClient/GetInstance/main.go b/internal/generated/snippets/redis/apiv1/CloudRedisClient/GetInstance/main.go index 6fde7d0b514e..fe66aca7eebf 100644 --- a/internal/generated/snippets/redis/apiv1/CloudRedisClient/GetInstance/main.go +++ b/internal/generated/snippets/redis/apiv1/CloudRedisClient/GetInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1" + redispb "cloud.google.com/go/redis/apiv1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.GetInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1#GetInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1/redispb#GetInstanceRequest. } resp, err := c.GetInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1/CloudRedisClient/GetInstanceAuthString/main.go b/internal/generated/snippets/redis/apiv1/CloudRedisClient/GetInstanceAuthString/main.go index ba7ba5a48431..f94186933b82 100644 --- a/internal/generated/snippets/redis/apiv1/CloudRedisClient/GetInstanceAuthString/main.go +++ b/internal/generated/snippets/redis/apiv1/CloudRedisClient/GetInstanceAuthString/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1" + redispb "cloud.google.com/go/redis/apiv1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.GetInstanceAuthStringRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1#GetInstanceAuthStringRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1/redispb#GetInstanceAuthStringRequest. } resp, err := c.GetInstanceAuthString(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1/CloudRedisClient/ImportInstance/main.go b/internal/generated/snippets/redis/apiv1/CloudRedisClient/ImportInstance/main.go index 4edc2f59685e..b85747a2f29f 100644 --- a/internal/generated/snippets/redis/apiv1/CloudRedisClient/ImportInstance/main.go +++ b/internal/generated/snippets/redis/apiv1/CloudRedisClient/ImportInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1" + redispb "cloud.google.com/go/redis/apiv1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.ImportInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1#ImportInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1/redispb#ImportInstanceRequest. } op, err := c.ImportInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1/CloudRedisClient/ListInstances/main.go b/internal/generated/snippets/redis/apiv1/CloudRedisClient/ListInstances/main.go index f5ba96f8b4dc..a62c7b6aa63c 100644 --- a/internal/generated/snippets/redis/apiv1/CloudRedisClient/ListInstances/main.go +++ b/internal/generated/snippets/redis/apiv1/CloudRedisClient/ListInstances/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1" + redispb "cloud.google.com/go/redis/apiv1/redispb" "google.golang.org/api/iterator" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &redispb.ListInstancesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1#ListInstancesRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1/redispb#ListInstancesRequest. } it := c.ListInstances(ctx, req) for { diff --git a/internal/generated/snippets/redis/apiv1/CloudRedisClient/RescheduleMaintenance/main.go b/internal/generated/snippets/redis/apiv1/CloudRedisClient/RescheduleMaintenance/main.go index c6dba4c3e228..ec4253888abb 100644 --- a/internal/generated/snippets/redis/apiv1/CloudRedisClient/RescheduleMaintenance/main.go +++ b/internal/generated/snippets/redis/apiv1/CloudRedisClient/RescheduleMaintenance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1" + redispb "cloud.google.com/go/redis/apiv1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.RescheduleMaintenanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1#RescheduleMaintenanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1/redispb#RescheduleMaintenanceRequest. } op, err := c.RescheduleMaintenance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1/CloudRedisClient/UpdateInstance/main.go b/internal/generated/snippets/redis/apiv1/CloudRedisClient/UpdateInstance/main.go index 174fff9ddf4b..0c8ed9d3fedd 100644 --- a/internal/generated/snippets/redis/apiv1/CloudRedisClient/UpdateInstance/main.go +++ b/internal/generated/snippets/redis/apiv1/CloudRedisClient/UpdateInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1" + redispb "cloud.google.com/go/redis/apiv1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.UpdateInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1#UpdateInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1/redispb#UpdateInstanceRequest. } op, err := c.UpdateInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1/CloudRedisClient/UpgradeInstance/main.go b/internal/generated/snippets/redis/apiv1/CloudRedisClient/UpgradeInstance/main.go index 123cd7f58e70..694d846a94ff 100644 --- a/internal/generated/snippets/redis/apiv1/CloudRedisClient/UpgradeInstance/main.go +++ b/internal/generated/snippets/redis/apiv1/CloudRedisClient/UpgradeInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1" + redispb "cloud.google.com/go/redis/apiv1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.UpgradeInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1#UpgradeInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1/redispb#UpgradeInstanceRequest. } op, err := c.UpgradeInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1/snippet_metadata.google.cloud.redis.v1.json b/internal/generated/snippets/redis/apiv1/snippet_metadata.google.cloud.redis.v1.json new file mode 100644 index 000000000000..0c954b4a1990 --- /dev/null +++ b/internal/generated/snippets/redis/apiv1/snippet_metadata.google.cloud.redis.v1.json @@ -0,0 +1,521 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/redis/apiv1", + "version": "1.11.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.redis.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "redis_v1_generated_CloudRedis_CreateInstance_sync", + "title": "redis CreateInstance Sample", + "description": "CreateInstance creates a Redis instance based on the specified tier and memory size.\n\nBy default, the instance is accessible from the project’s\ndefault network (at https: //cloud.google.com/vpc/docs/vpc).\n\nThe creation is executed asynchronously and callers may check the returned\noperation to track its progress. Once the operation is completed the Redis\ninstance will be fully functional. Completed longrunning.Operation will\ncontain the new instance object in the response field.\n\nThe returned operation is automatically deleted after a few hours, so there\nis no need to call DeleteOperation.", + "file": "CloudRedisClient/CreateInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateInstance", + "fullName": "google.cloud.redis.v1.CloudRedisClient.CreateInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.CreateInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateInstanceOperation", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1.CloudRedisClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.cloud.redis.v1.CloudRedis.CreateInstance", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1_generated_CloudRedis_DeleteInstance_sync", + "title": "redis DeleteInstance Sample", + "description": "DeleteInstance deletes a specific Redis instance. Instance stops serving and data is\ndeleted.", + "file": "CloudRedisClient/DeleteInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.redis.v1.CloudRedisClient.DeleteInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.DeleteInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteInstanceOperation", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1.CloudRedisClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.redis.v1.CloudRedis.DeleteInstance", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1_generated_CloudRedis_ExportInstance_sync", + "title": "redis ExportInstance Sample", + "description": "ExportInstance export Redis instance data into a Redis RDB format file in Cloud Storage.\n\nRedis will continue serving during this operation.\n\nThe returned operation is automatically deleted after a few hours, so\nthere is no need to call DeleteOperation.", + "file": "CloudRedisClient/ExportInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ExportInstance", + "fullName": "google.cloud.redis.v1.CloudRedisClient.ExportInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.ExportInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ExportInstanceOperation", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1.CloudRedisClient" + }, + "method": { + "shortName": "ExportInstance", + "fullName": "google.cloud.redis.v1.CloudRedis.ExportInstance", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1_generated_CloudRedis_FailoverInstance_sync", + "title": "redis FailoverInstance Sample", + "description": "FailoverInstance initiates a failover of the primary node to current replica node for a\nspecific STANDARD tier Cloud Memorystore for Redis instance.", + "file": "CloudRedisClient/FailoverInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "FailoverInstance", + "fullName": "google.cloud.redis.v1.CloudRedisClient.FailoverInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.FailoverInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "FailoverInstanceOperation", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1.CloudRedisClient" + }, + "method": { + "shortName": "FailoverInstance", + "fullName": "google.cloud.redis.v1.CloudRedis.FailoverInstance", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1_generated_CloudRedis_GetInstance_sync", + "title": "redis GetInstance Sample", + "description": "GetInstance gets the details of a specific Redis instance.", + "file": "CloudRedisClient/GetInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInstance", + "fullName": "google.cloud.redis.v1.CloudRedisClient.GetInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.GetInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "redispb.Instance", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1.CloudRedisClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.cloud.redis.v1.CloudRedis.GetInstance", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1_generated_CloudRedis_GetInstanceAuthString_sync", + "title": "redis GetInstanceAuthString Sample", + "description": "GetInstanceAuthString gets the AUTH string for a Redis instance. If AUTH is not enabled for the\ninstance the response will be empty. This information is not included in\nthe details returned to GetInstance.", + "file": "CloudRedisClient/GetInstanceAuthString/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInstanceAuthString", + "fullName": "google.cloud.redis.v1.CloudRedisClient.GetInstanceAuthString", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.GetInstanceAuthStringRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "redispb.InstanceAuthString", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1.CloudRedisClient" + }, + "method": { + "shortName": "GetInstanceAuthString", + "fullName": "google.cloud.redis.v1.CloudRedis.GetInstanceAuthString", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1_generated_CloudRedis_ImportInstance_sync", + "title": "redis ImportInstance Sample", + "description": "ImportInstance import a Redis RDB snapshot file from Cloud Storage into a Redis instance.\n\nRedis may stop serving during this operation. Instance state will be\nIMPORTING for entire operation. When complete, the instance will contain\nonly data from the imported file.\n\nThe returned operation is automatically deleted after a few hours, so\nthere is no need to call DeleteOperation.", + "file": "CloudRedisClient/ImportInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ImportInstance", + "fullName": "google.cloud.redis.v1.CloudRedisClient.ImportInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.ImportInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ImportInstanceOperation", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1.CloudRedisClient" + }, + "method": { + "shortName": "ImportInstance", + "fullName": "google.cloud.redis.v1.CloudRedis.ImportInstance", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1_generated_CloudRedis_ListInstances_sync", + "title": "redis ListInstances Sample", + "description": "ListInstances lists all Redis instances owned by a project in either the specified\nlocation (region) or all locations.\n\nThe location should have the following format: \n\n\tprojects/{project_id}/locations/{location_id}\n\nIf location_id is specified as - (wildcard), then all regions\navailable to the project are queried, and the results are aggregated.", + "file": "CloudRedisClient/ListInstances/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListInstances", + "fullName": "google.cloud.redis.v1.CloudRedisClient.ListInstances", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.ListInstancesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "InstanceIterator", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1.CloudRedisClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.cloud.redis.v1.CloudRedis.ListInstances", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1_generated_CloudRedis_RescheduleMaintenance_sync", + "title": "redis RescheduleMaintenance Sample", + "description": "RescheduleMaintenance reschedule maintenance for a given instance in a given project and\nlocation.", + "file": "CloudRedisClient/RescheduleMaintenance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RescheduleMaintenance", + "fullName": "google.cloud.redis.v1.CloudRedisClient.RescheduleMaintenance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.RescheduleMaintenanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RescheduleMaintenanceOperation", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1.CloudRedisClient" + }, + "method": { + "shortName": "RescheduleMaintenance", + "fullName": "google.cloud.redis.v1.CloudRedis.RescheduleMaintenance", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1_generated_CloudRedis_UpdateInstance_sync", + "title": "redis UpdateInstance Sample", + "description": "UpdateInstance updates the metadata and configuration of a specific Redis instance.\n\nCompleted longrunning.Operation will contain the new instance object\nin the response field. The returned operation is automatically deleted\nafter a few hours, so there is no need to call DeleteOperation.", + "file": "CloudRedisClient/UpdateInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateInstance", + "fullName": "google.cloud.redis.v1.CloudRedisClient.UpdateInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.UpdateInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateInstanceOperation", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1.CloudRedisClient" + }, + "method": { + "shortName": "UpdateInstance", + "fullName": "google.cloud.redis.v1.CloudRedis.UpdateInstance", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1_generated_CloudRedis_UpgradeInstance_sync", + "title": "redis UpgradeInstance Sample", + "description": "UpgradeInstance upgrades Redis instance to the newer Redis version specified in the\nrequest.", + "file": "CloudRedisClient/UpgradeInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpgradeInstance", + "fullName": "google.cloud.redis.v1.CloudRedisClient.UpgradeInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.UpgradeInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpgradeInstanceOperation", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1.CloudRedisClient" + }, + "method": { + "shortName": "UpgradeInstance", + "fullName": "google.cloud.redis.v1.CloudRedis.UpgradeInstance", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/CreateInstance/main.go b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/CreateInstance/main.go index 0ae9c188822f..3dece982f5ef 100644 --- a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/CreateInstance/main.go +++ b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/CreateInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1beta1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1beta1" + redispb "cloud.google.com/go/redis/apiv1beta1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.CreateInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1beta1#CreateInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1beta1/redispb#CreateInstanceRequest. } op, err := c.CreateInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/DeleteInstance/main.go b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/DeleteInstance/main.go index afaf3743085c..b092b1bf0c87 100644 --- a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/DeleteInstance/main.go +++ b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/DeleteInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1beta1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1beta1" + redispb "cloud.google.com/go/redis/apiv1beta1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.DeleteInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1beta1#DeleteInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1beta1/redispb#DeleteInstanceRequest. } op, err := c.DeleteInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/ExportInstance/main.go b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/ExportInstance/main.go index b362bbd5c8f7..7844f4b481a7 100644 --- a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/ExportInstance/main.go +++ b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/ExportInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1beta1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1beta1" + redispb "cloud.google.com/go/redis/apiv1beta1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.ExportInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1beta1#ExportInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1beta1/redispb#ExportInstanceRequest. } op, err := c.ExportInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/FailoverInstance/main.go b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/FailoverInstance/main.go index eb134d4bbdbd..6074f84badfe 100644 --- a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/FailoverInstance/main.go +++ b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/FailoverInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1beta1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1beta1" + redispb "cloud.google.com/go/redis/apiv1beta1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.FailoverInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1beta1#FailoverInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1beta1/redispb#FailoverInstanceRequest. } op, err := c.FailoverInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/GetInstance/main.go b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/GetInstance/main.go index fb66b16b2585..94ee04de57d4 100644 --- a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/GetInstance/main.go +++ b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/GetInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1beta1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1beta1" + redispb "cloud.google.com/go/redis/apiv1beta1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.GetInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1beta1#GetInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1beta1/redispb#GetInstanceRequest. } resp, err := c.GetInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/GetInstanceAuthString/main.go b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/GetInstanceAuthString/main.go index c21215b9755d..b4c6bf437462 100644 --- a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/GetInstanceAuthString/main.go +++ b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/GetInstanceAuthString/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1beta1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1beta1" + redispb "cloud.google.com/go/redis/apiv1beta1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.GetInstanceAuthStringRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1beta1#GetInstanceAuthStringRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1beta1/redispb#GetInstanceAuthStringRequest. } resp, err := c.GetInstanceAuthString(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/ImportInstance/main.go b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/ImportInstance/main.go index 64dbeb3cf7d8..550adc1b3bee 100644 --- a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/ImportInstance/main.go +++ b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/ImportInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1beta1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1beta1" + redispb "cloud.google.com/go/redis/apiv1beta1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.ImportInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1beta1#ImportInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1beta1/redispb#ImportInstanceRequest. } op, err := c.ImportInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/ListInstances/main.go b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/ListInstances/main.go index bf9b7513db90..97deb4757da4 100644 --- a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/ListInstances/main.go +++ b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/ListInstances/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1beta1" + redispb "cloud.google.com/go/redis/apiv1beta1/redispb" "google.golang.org/api/iterator" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &redispb.ListInstancesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1beta1#ListInstancesRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1beta1/redispb#ListInstancesRequest. } it := c.ListInstances(ctx, req) for { diff --git a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/RescheduleMaintenance/main.go b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/RescheduleMaintenance/main.go index 7f55c9791c80..b5346adee86f 100644 --- a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/RescheduleMaintenance/main.go +++ b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/RescheduleMaintenance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1beta1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1beta1" + redispb "cloud.google.com/go/redis/apiv1beta1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.RescheduleMaintenanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1beta1#RescheduleMaintenanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1beta1/redispb#RescheduleMaintenanceRequest. } op, err := c.RescheduleMaintenance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/UpdateInstance/main.go b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/UpdateInstance/main.go index 811531bbb690..f7aa667d7ca4 100644 --- a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/UpdateInstance/main.go +++ b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/UpdateInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1beta1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1beta1" + redispb "cloud.google.com/go/redis/apiv1beta1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.UpdateInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1beta1#UpdateInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1beta1/redispb#UpdateInstanceRequest. } op, err := c.UpdateInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/UpgradeInstance/main.go b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/UpgradeInstance/main.go index 7bf964aad75d..484e31046c74 100644 --- a/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/UpgradeInstance/main.go +++ b/internal/generated/snippets/redis/apiv1beta1/CloudRedisClient/UpgradeInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" redis "cloud.google.com/go/redis/apiv1beta1" - redispb "google.golang.org/genproto/googleapis/cloud/redis/v1beta1" + redispb "cloud.google.com/go/redis/apiv1beta1/redispb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := redis.NewCloudRedisClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &redispb.UpgradeInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/redis/v1beta1#UpgradeInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/redis/apiv1beta1/redispb#UpgradeInstanceRequest. } op, err := c.UpgradeInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/redis/apiv1beta1/snippet_metadata.google.cloud.redis.v1beta1.json b/internal/generated/snippets/redis/apiv1beta1/snippet_metadata.google.cloud.redis.v1beta1.json new file mode 100644 index 000000000000..f016c78a1250 --- /dev/null +++ b/internal/generated/snippets/redis/apiv1beta1/snippet_metadata.google.cloud.redis.v1beta1.json @@ -0,0 +1,521 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/redis/apiv1beta1", + "version": "1.11.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.redis.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "redis_v1beta1_generated_CloudRedis_CreateInstance_sync", + "title": "redis CreateInstance Sample", + "description": "CreateInstance creates a Redis instance based on the specified tier and memory size.\n\nBy default, the instance is accessible from the project’s\ndefault network (at https: //cloud.google.com/vpc/docs/vpc).\n\nThe creation is executed asynchronously and callers may check the returned\noperation to track its progress. Once the operation is completed the Redis\ninstance will be fully functional. The completed longrunning.Operation will\ncontain the new instance object in the response field.\n\nThe returned operation is automatically deleted after a few hours, so there\nis no need to call DeleteOperation.", + "file": "CloudRedisClient/CreateInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateInstance", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient.CreateInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.CreateInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateInstanceOperation", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.cloud.redis.v1beta1.CloudRedis.CreateInstance", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1beta1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1beta1_generated_CloudRedis_DeleteInstance_sync", + "title": "redis DeleteInstance Sample", + "description": "DeleteInstance deletes a specific Redis instance. Instance stops serving and data is\ndeleted.", + "file": "CloudRedisClient/DeleteInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient.DeleteInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.DeleteInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteInstanceOperation", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.cloud.redis.v1beta1.CloudRedis.DeleteInstance", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1beta1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1beta1_generated_CloudRedis_ExportInstance_sync", + "title": "redis ExportInstance Sample", + "description": "ExportInstance export Redis instance data into a Redis RDB format file in Cloud Storage.\n\nRedis will continue serving during this operation.\n\nThe returned operation is automatically deleted after a few hours, so\nthere is no need to call DeleteOperation.", + "file": "CloudRedisClient/ExportInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ExportInstance", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient.ExportInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.ExportInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ExportInstanceOperation", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" + }, + "method": { + "shortName": "ExportInstance", + "fullName": "google.cloud.redis.v1beta1.CloudRedis.ExportInstance", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1beta1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1beta1_generated_CloudRedis_FailoverInstance_sync", + "title": "redis FailoverInstance Sample", + "description": "FailoverInstance initiates a failover of the primary node to current replica node for a\nspecific STANDARD tier Cloud Memorystore for Redis instance.", + "file": "CloudRedisClient/FailoverInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "FailoverInstance", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient.FailoverInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.FailoverInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "FailoverInstanceOperation", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" + }, + "method": { + "shortName": "FailoverInstance", + "fullName": "google.cloud.redis.v1beta1.CloudRedis.FailoverInstance", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1beta1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1beta1_generated_CloudRedis_GetInstance_sync", + "title": "redis GetInstance Sample", + "description": "GetInstance gets the details of a specific Redis instance.", + "file": "CloudRedisClient/GetInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInstance", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient.GetInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.GetInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "redispb.Instance", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.cloud.redis.v1beta1.CloudRedis.GetInstance", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1beta1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1beta1_generated_CloudRedis_GetInstanceAuthString_sync", + "title": "redis GetInstanceAuthString Sample", + "description": "GetInstanceAuthString gets the AUTH string for a Redis instance. If AUTH is not enabled for the\ninstance the response will be empty. This information is not included in\nthe details returned to GetInstance.", + "file": "CloudRedisClient/GetInstanceAuthString/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInstanceAuthString", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient.GetInstanceAuthString", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.GetInstanceAuthStringRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "redispb.InstanceAuthString", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" + }, + "method": { + "shortName": "GetInstanceAuthString", + "fullName": "google.cloud.redis.v1beta1.CloudRedis.GetInstanceAuthString", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1beta1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1beta1_generated_CloudRedis_ImportInstance_sync", + "title": "redis ImportInstance Sample", + "description": "ImportInstance import a Redis RDB snapshot file from Cloud Storage into a Redis instance.\n\nRedis may stop serving during this operation. Instance state will be\nIMPORTING for entire operation. When complete, the instance will contain\nonly data from the imported file.\n\nThe returned operation is automatically deleted after a few hours, so\nthere is no need to call DeleteOperation.", + "file": "CloudRedisClient/ImportInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ImportInstance", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient.ImportInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.ImportInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ImportInstanceOperation", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" + }, + "method": { + "shortName": "ImportInstance", + "fullName": "google.cloud.redis.v1beta1.CloudRedis.ImportInstance", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1beta1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1beta1_generated_CloudRedis_ListInstances_sync", + "title": "redis ListInstances Sample", + "description": "ListInstances lists all Redis instances owned by a project in either the specified\nlocation (region) or all locations.\n\nThe location should have the following format: \n\n\tprojects/{project_id}/locations/{location_id}\n\nIf location_id is specified as - (wildcard), then all regions\navailable to the project are queried, and the results are aggregated.", + "file": "CloudRedisClient/ListInstances/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListInstances", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient.ListInstances", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.ListInstancesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "InstanceIterator", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.cloud.redis.v1beta1.CloudRedis.ListInstances", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1beta1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1beta1_generated_CloudRedis_RescheduleMaintenance_sync", + "title": "redis RescheduleMaintenance Sample", + "description": "RescheduleMaintenance reschedule maintenance for a given instance in a given project and\nlocation.", + "file": "CloudRedisClient/RescheduleMaintenance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RescheduleMaintenance", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient.RescheduleMaintenance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.RescheduleMaintenanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RescheduleMaintenanceOperation", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" + }, + "method": { + "shortName": "RescheduleMaintenance", + "fullName": "google.cloud.redis.v1beta1.CloudRedis.RescheduleMaintenance", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1beta1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1beta1_generated_CloudRedis_UpdateInstance_sync", + "title": "redis UpdateInstance Sample", + "description": "UpdateInstance updates the metadata and configuration of a specific Redis instance.\n\nCompleted longrunning.Operation will contain the new instance object\nin the response field. The returned operation is automatically deleted\nafter a few hours, so there is no need to call DeleteOperation.", + "file": "CloudRedisClient/UpdateInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateInstance", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient.UpdateInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.UpdateInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateInstanceOperation", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" + }, + "method": { + "shortName": "UpdateInstance", + "fullName": "google.cloud.redis.v1beta1.CloudRedis.UpdateInstance", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1beta1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "redis_v1beta1_generated_CloudRedis_UpgradeInstance_sync", + "title": "redis UpgradeInstance Sample", + "description": "UpgradeInstance upgrades Redis instance to the newer Redis version specified in the\nrequest.", + "file": "CloudRedisClient/UpgradeInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpgradeInstance", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient.UpgradeInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "redispb.UpgradeInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpgradeInstanceOperation", + "client": { + "shortName": "CloudRedisClient", + "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" + }, + "method": { + "shortName": "UpgradeInstance", + "fullName": "google.cloud.redis.v1beta1.CloudRedis.UpgradeInstance", + "service": { + "shortName": "CloudRedis", + "fullName": "google.cloud.redis.v1beta1.CloudRedis" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/CreateFolder/main.go b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/CreateFolder/main.go index de93c68e351f..2feb663fbc4f 100644 --- a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/CreateFolder/main.go +++ b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/CreateFolder/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv2" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v2" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv2/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.CreateFolderRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v2#CreateFolderRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv2/resourcemanagerpb#CreateFolderRequest. } op, err := c.CreateFolder(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/DeleteFolder/main.go b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/DeleteFolder/main.go index bee4f4e75faa..a4ff6785f115 100644 --- a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/DeleteFolder/main.go +++ b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/DeleteFolder/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv2" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v2" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv2/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.DeleteFolderRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v2#DeleteFolderRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv2/resourcemanagerpb#DeleteFolderRequest. } resp, err := c.DeleteFolder(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/GetFolder/main.go b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/GetFolder/main.go index d6bb7332be78..39f6e13d830d 100644 --- a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/GetFolder/main.go +++ b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/GetFolder/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv2" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v2" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv2/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.GetFolderRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v2#GetFolderRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv2/resourcemanagerpb#GetFolderRequest. } resp, err := c.GetFolder(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/GetIamPolicy/main.go b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/GetIamPolicy/main.go index 8c11c8f36652..1f0960865820 100644 --- a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv2" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/ListFolders/main.go b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/ListFolders/main.go index de0037f6417a..adf414b69ed5 100644 --- a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/ListFolders/main.go +++ b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/ListFolders/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv2" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv2/resourcemanagerpb" "google.golang.org/api/iterator" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v2" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &resourcemanagerpb.ListFoldersRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v2#ListFoldersRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv2/resourcemanagerpb#ListFoldersRequest. } it := c.ListFolders(ctx, req) for { diff --git a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/MoveFolder/main.go b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/MoveFolder/main.go index 4fddc6d4af20..bcfed67fcb2f 100644 --- a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/MoveFolder/main.go +++ b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/MoveFolder/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv2" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v2" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv2/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.MoveFolderRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v2#MoveFolderRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv2/resourcemanagerpb#MoveFolderRequest. } op, err := c.MoveFolder(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/SearchFolders/main.go b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/SearchFolders/main.go index 87f6cf3f167a..0b6806991ee8 100644 --- a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/SearchFolders/main.go +++ b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/SearchFolders/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv2" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv2/resourcemanagerpb" "google.golang.org/api/iterator" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v2" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &resourcemanagerpb.SearchFoldersRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v2#SearchFoldersRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv2/resourcemanagerpb#SearchFoldersRequest. } it := c.SearchFolders(ctx, req) for { diff --git a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/SetIamPolicy/main.go b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/SetIamPolicy/main.go index 7753caca27f2..9335b4a223b7 100644 --- a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv2" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/TestIamPermissions/main.go b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/TestIamPermissions/main.go index b6d76c6f49d9..77e6350b15f8 100644 --- a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv2" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/UndeleteFolder/main.go b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/UndeleteFolder/main.go index 905a67f042f4..59183a05e2a1 100644 --- a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/UndeleteFolder/main.go +++ b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/UndeleteFolder/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv2" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v2" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv2/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.UndeleteFolderRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v2#UndeleteFolderRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv2/resourcemanagerpb#UndeleteFolderRequest. } resp, err := c.UndeleteFolder(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/UpdateFolder/main.go b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/UpdateFolder/main.go index a45fefb8742f..4de445958047 100644 --- a/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/UpdateFolder/main.go +++ b/internal/generated/snippets/resourcemanager/apiv2/FoldersClient/UpdateFolder/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv2" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v2" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv2/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.UpdateFolderRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v2#UpdateFolderRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv2/resourcemanagerpb#UpdateFolderRequest. } resp, err := c.UpdateFolder(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv2/snippet_metadata.google.cloud.resourcemanager.v2.json b/internal/generated/snippets/resourcemanager/apiv2/snippet_metadata.google.cloud.resourcemanager.v2.json new file mode 100644 index 000000000000..af6a82b29359 --- /dev/null +++ b/internal/generated/snippets/resourcemanager/apiv2/snippet_metadata.google.cloud.resourcemanager.v2.json @@ -0,0 +1,521 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/resourcemanager/apiv2", + "version": "1.5.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.resourcemanager.v2", + "version": "v2" + } + ] + }, + "snippets": [ + { + "regionTag": "cloudresourcemanager_v2_generated_Folders_CreateFolder_sync", + "title": "cloudresourcemanager CreateFolder Sample", + "description": "CreateFolder creates a Folder in the resource hierarchy.\nReturns an Operation which can be used to track the progress of the\nfolder creation workflow.\nUpon success the Operation.response field will be populated with the\ncreated Folder.\n\nIn order to succeed, the addition of this new Folder must not violate\nthe Folder naming, height or fanout constraints.\n\n\tThe Folder’s display_name must be distinct from all other Folder’s that\n\tshare its parent.\n\n\tThe addition of the Folder must not cause the active Folder hierarchy\n\tto exceed a height of 4. Note, the full active + deleted Folder hierarchy\n\tis allowed to reach a height of 8; this provides additional headroom when\n\tmoving folders that contain deleted folders.\n\n\tThe addition of the Folder must not cause the total number of Folders\n\tunder its parent to exceed 100.\n\nIf the operation fails due to a folder constraint violation, some errors\nmay be returned by the CreateFolder request, with status code\nFAILED_PRECONDITION and an error description. Other folder constraint\nviolations will be communicated in the Operation, with the specific\nPreconditionFailure returned via the details list in the Operation.error\nfield.\n\nThe caller must have resourcemanager.folders.create permission on the\nidentified parent.", + "file": "FoldersClient/CreateFolder/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateFolder", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient.CreateFolder", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.CreateFolderRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateFolderOperation", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient" + }, + "method": { + "shortName": "CreateFolder", + "fullName": "google.cloud.resourcemanager.v2.Folders.CreateFolder", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v2.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v2_generated_Folders_DeleteFolder_sync", + "title": "cloudresourcemanager DeleteFolder Sample", + "description": "DeleteFolder requests deletion of a Folder. The Folder is moved into the\nDELETE_REQUESTED state\nimmediately, and is deleted approximately 30 days later. This method may\nonly be called on an empty Folder in the\n[ACTIVE][google.cloud.resourcemanager.v2.Folder.LifecycleState.ACTIVE (at http: //google.cloud.resourcemanager.v2.Folder.LifecycleState.ACTIVE)] state, where a Folder is empty if\nit doesn’t contain any Folders or Projects in the\n[ACTIVE][google.cloud.resourcemanager.v2.Folder.LifecycleState.ACTIVE (at http: //google.cloud.resourcemanager.v2.Folder.LifecycleState.ACTIVE)] state.\nThe caller must have resourcemanager.folders.delete permission on the\nidentified folder.", + "file": "FoldersClient/DeleteFolder/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteFolder", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient.DeleteFolder", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.DeleteFolderRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "resourcemanagerpb.Folder", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient" + }, + "method": { + "shortName": "DeleteFolder", + "fullName": "google.cloud.resourcemanager.v2.Folders.DeleteFolder", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v2.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v2_generated_Folders_GetFolder_sync", + "title": "cloudresourcemanager GetFolder Sample", + "description": "GetFolder retrieves a Folder identified by the supplied resource name.\nValid Folder resource names have the format folders/{folder_id}\n(for example, folders/1234).\nThe caller must have resourcemanager.folders.get permission on the\nidentified folder.", + "file": "FoldersClient/GetFolder/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetFolder", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient.GetFolder", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.GetFolderRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "resourcemanagerpb.Folder", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient" + }, + "method": { + "shortName": "GetFolder", + "fullName": "google.cloud.resourcemanager.v2.Folders.GetFolder", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v2.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v2_generated_Folders_GetIamPolicy_sync", + "title": "cloudresourcemanager GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a Folder. The returned policy may be\nempty if no such policy or resource exists. The resource field should\nbe the Folder’s resource name, e.g. “folders/1234”.\nThe caller must have resourcemanager.folders.getIamPolicy permission\non the identified folder.", + "file": "FoldersClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.resourcemanager.v2.Folders.GetIamPolicy", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v2.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v2_generated_Folders_ListFolders_sync", + "title": "cloudresourcemanager ListFolders Sample", + "description": "ListFolders lists the Folders that are direct descendants of supplied parent resource.\nList provides a strongly consistent view of the Folders underneath\nthe specified parent resource.\nList returns Folders sorted based upon the (ascending) lexical ordering\nof their display_name.\nThe caller must have resourcemanager.folders.list permission on the\nidentified parent.", + "file": "FoldersClient/ListFolders/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListFolders", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient.ListFolders", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.ListFoldersRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "FolderIterator", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient" + }, + "method": { + "shortName": "ListFolders", + "fullName": "google.cloud.resourcemanager.v2.Folders.ListFolders", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v2.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v2_generated_Folders_MoveFolder_sync", + "title": "cloudresourcemanager MoveFolder Sample", + "description": "MoveFolder moves a Folder under a new resource parent.\nReturns an Operation which can be used to track the progress of the\nfolder move workflow.\nUpon success the Operation.response field will be populated with the\nmoved Folder.\nUpon failure, a FolderOperationError categorizing the failure cause will\nbe returned - if the failure occurs synchronously then the\nFolderOperationError will be returned via the Status.details field\nand if it occurs asynchronously then the FolderOperation will be returned\nvia the Operation.error field.\nIn addition, the Operation.metadata field will be populated with a\nFolderOperation message as an aid to stateless clients.\nFolder moves will be rejected if they violate either the naming, height\nor fanout constraints described in the\nCreateFolder documentation.\nThe caller must have resourcemanager.folders.move permission on the\nfolder’s current and proposed new parent.", + "file": "FoldersClient/MoveFolder/main.go", + "language": "GO", + "clientMethod": { + "shortName": "MoveFolder", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient.MoveFolder", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.MoveFolderRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "MoveFolderOperation", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient" + }, + "method": { + "shortName": "MoveFolder", + "fullName": "google.cloud.resourcemanager.v2.Folders.MoveFolder", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v2.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v2_generated_Folders_SearchFolders_sync", + "title": "cloudresourcemanager SearchFolders Sample", + "description": "SearchFolders search for folders that match specific filter criteria.\nSearch provides an eventually consistent view of the folders a user has\naccess to which meet the specified filter criteria.\n\nThis will only return folders on which the caller has the\npermission resourcemanager.folders.get.", + "file": "FoldersClient/SearchFolders/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SearchFolders", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient.SearchFolders", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.SearchFoldersRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "FolderIterator", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient" + }, + "method": { + "shortName": "SearchFolders", + "fullName": "google.cloud.resourcemanager.v2.Folders.SearchFolders", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v2.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v2_generated_Folders_SetIamPolicy_sync", + "title": "cloudresourcemanager SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on a Folder, replacing any existing policy.\nThe resource field should be the Folder’s resource name, e.g.\n“folders/1234”.\nThe caller must have resourcemanager.folders.setIamPolicy permission\non the identified folder.", + "file": "FoldersClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.resourcemanager.v2.Folders.SetIamPolicy", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v2.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v2_generated_Folders_TestIamPermissions_sync", + "title": "cloudresourcemanager TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified Folder.\nThe resource field should be the Folder’s resource name,\ne.g. “folders/1234”.\n\nThere are no permissions required for making this API call.", + "file": "FoldersClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.resourcemanager.v2.Folders.TestIamPermissions", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v2.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v2_generated_Folders_UndeleteFolder_sync", + "title": "cloudresourcemanager UndeleteFolder Sample", + "description": "UndeleteFolder cancels the deletion request for a Folder. This method may only be\ncalled on a Folder in the\nDELETE_REQUESTED state.\nIn order to succeed, the Folder’s parent must be in the\n[ACTIVE][google.cloud.resourcemanager.v2.Folder.LifecycleState.ACTIVE (at http: //google.cloud.resourcemanager.v2.Folder.LifecycleState.ACTIVE)] state.\nIn addition, reintroducing the folder into the tree must not violate\nfolder naming, height and fanout constraints described in the\nCreateFolder documentation.\nThe caller must have resourcemanager.folders.undelete permission on the\nidentified folder.", + "file": "FoldersClient/UndeleteFolder/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UndeleteFolder", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient.UndeleteFolder", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.UndeleteFolderRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "resourcemanagerpb.Folder", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient" + }, + "method": { + "shortName": "UndeleteFolder", + "fullName": "google.cloud.resourcemanager.v2.Folders.UndeleteFolder", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v2.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v2_generated_Folders_UpdateFolder_sync", + "title": "cloudresourcemanager UpdateFolder Sample", + "description": "UpdateFolder updates a Folder, changing its display_name.\nChanges to the folder display_name will be rejected if they violate either\nthe display_name formatting rules or naming constraints described in\nthe CreateFolder documentation.\n\nThe Folder’s display name must start and end with a letter or digit,\nmay contain letters, digits, spaces, hyphens and underscores and can be\nno longer than 30 characters. This is captured by the regular expression: \n[\\p{L}\\p{N}]([\\p{L}\\p{N}_- ]{0,28}[\\p{L}\\p{N}])?.\nThe caller must have resourcemanager.folders.update permission on the\nidentified folder.\n\nIf the update fails due to the unique name constraint then a\nPreconditionFailure explaining this violation will be returned\nin the Status.details field.", + "file": "FoldersClient/UpdateFolder/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateFolder", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient.UpdateFolder", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.UpdateFolderRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "resourcemanagerpb.Folder", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v2.FoldersClient" + }, + "method": { + "shortName": "UpdateFolder", + "fullName": "google.cloud.resourcemanager.v2.Folders.UpdateFolder", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v2.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/CreateFolder/main.go b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/CreateFolder/main.go index 551d17ede03d..35a75cc75a3b 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/CreateFolder/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/CreateFolder/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.CreateFolderRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#CreateFolderRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#CreateFolderRequest. } op, err := c.CreateFolder(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/DeleteFolder/main.go b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/DeleteFolder/main.go index 180775c4d95c..5da01e7465d8 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/DeleteFolder/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/DeleteFolder/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.DeleteFolderRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#DeleteFolderRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#DeleteFolderRequest. } op, err := c.DeleteFolder(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/GetFolder/main.go b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/GetFolder/main.go index 903a35c1746d..314dab7a236a 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/GetFolder/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/GetFolder/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.GetFolderRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#GetFolderRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#GetFolderRequest. } resp, err := c.GetFolder(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/GetIamPolicy/main.go b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/GetIamPolicy/main.go index 311992bafb8e..1aed3b6884f5 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/ListFolders/main.go b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/ListFolders/main.go index 154f4c22f374..b63f8c68544b 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/ListFolders/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/ListFolders/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" "google.golang.org/api/iterator" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &resourcemanagerpb.ListFoldersRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#ListFoldersRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#ListFoldersRequest. } it := c.ListFolders(ctx, req) for { diff --git a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/MoveFolder/main.go b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/MoveFolder/main.go index a02d7c2ba544..282a6d961d0b 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/MoveFolder/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/MoveFolder/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.MoveFolderRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#MoveFolderRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#MoveFolderRequest. } op, err := c.MoveFolder(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/SearchFolders/main.go b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/SearchFolders/main.go index 1c41f165a9ef..45a2015df427 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/SearchFolders/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/SearchFolders/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" "google.golang.org/api/iterator" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &resourcemanagerpb.SearchFoldersRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#SearchFoldersRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#SearchFoldersRequest. } it := c.SearchFolders(ctx, req) for { diff --git a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/SetIamPolicy/main.go b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/SetIamPolicy/main.go index bff462319caf..da66eb04a862 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/TestIamPermissions/main.go b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/TestIamPermissions/main.go index 2bb086f2c716..9e4db643f92d 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/UndeleteFolder/main.go b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/UndeleteFolder/main.go index 0ce1f96dd21d..7375bba509d2 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/UndeleteFolder/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/UndeleteFolder/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.UndeleteFolderRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#UndeleteFolderRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#UndeleteFolderRequest. } op, err := c.UndeleteFolder(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/UpdateFolder/main.go b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/UpdateFolder/main.go index e87a4ed5901a..18dd2786571b 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/UpdateFolder/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/FoldersClient/UpdateFolder/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewFoldersClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.UpdateFolderRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#UpdateFolderRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#UpdateFolderRequest. } op, err := c.UpdateFolder(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/GetIamPolicy/main.go b/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/GetIamPolicy/main.go index 73c6d0d660d4..7e9100ac644a 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewOrganizationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/GetOrganization/main.go b/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/GetOrganization/main.go index de70ed584a63..dd3e668d1cbb 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/GetOrganization/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/GetOrganization/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewOrganizationsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.GetOrganizationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#GetOrganizationRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#GetOrganizationRequest. } resp, err := c.GetOrganization(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/SearchOrganizations/main.go b/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/SearchOrganizations/main.go index 839800ddc53a..ed8895cf27cc 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/SearchOrganizations/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/SearchOrganizations/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" "google.golang.org/api/iterator" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewOrganizationsClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &resourcemanagerpb.SearchOrganizationsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#SearchOrganizationsRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#SearchOrganizationsRequest. } it := c.SearchOrganizations(ctx, req) for { diff --git a/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/SetIamPolicy/main.go b/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/SetIamPolicy/main.go index aeb05f173822..111883041968 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewOrganizationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/TestIamPermissions/main.go b/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/TestIamPermissions/main.go index 3bc53216d593..0cf2c5eff7dd 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/OrganizationsClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewOrganizationsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/CreateProject/main.go b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/CreateProject/main.go index 04325ad49f8d..6f8473d7e1de 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/CreateProject/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/CreateProject/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.CreateProjectRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#CreateProjectRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#CreateProjectRequest. } op, err := c.CreateProject(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/DeleteProject/main.go b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/DeleteProject/main.go index f186d8f877eb..123f210e17e5 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/DeleteProject/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/DeleteProject/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.DeleteProjectRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#DeleteProjectRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#DeleteProjectRequest. } op, err := c.DeleteProject(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/GetIamPolicy/main.go b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/GetIamPolicy/main.go index 51430e487f99..47f37c2bf0f3 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/GetProject/main.go b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/GetProject/main.go index 6392ba73e657..4d91a7b55c21 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/GetProject/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/GetProject/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.GetProjectRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#GetProjectRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#GetProjectRequest. } resp, err := c.GetProject(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/ListProjects/main.go b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/ListProjects/main.go index 74027a42ea4a..cf0cc0d4dd9e 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/ListProjects/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/ListProjects/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" "google.golang.org/api/iterator" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &resourcemanagerpb.ListProjectsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#ListProjectsRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#ListProjectsRequest. } it := c.ListProjects(ctx, req) for { diff --git a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/MoveProject/main.go b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/MoveProject/main.go index 57974c23c5b5..a7270eb9f0ca 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/MoveProject/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/MoveProject/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.MoveProjectRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#MoveProjectRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#MoveProjectRequest. } op, err := c.MoveProject(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/SearchProjects/main.go b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/SearchProjects/main.go index 3a59250a848d..5123546f10f9 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/SearchProjects/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/SearchProjects/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" "google.golang.org/api/iterator" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &resourcemanagerpb.SearchProjectsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#SearchProjectsRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#SearchProjectsRequest. } it := c.SearchProjects(ctx, req) for { diff --git a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/SetIamPolicy/main.go b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/SetIamPolicy/main.go index 1db9f9d9966c..12463dbd47e5 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/TestIamPermissions/main.go b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/TestIamPermissions/main.go index c85387e83fb9..ae3707f4c4e5 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/UndeleteProject/main.go b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/UndeleteProject/main.go index 109bf56d2028..9f4eb3d36f8d 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/UndeleteProject/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/UndeleteProject/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.UndeleteProjectRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#UndeleteProjectRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#UndeleteProjectRequest. } op, err := c.UndeleteProject(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/UpdateProject/main.go b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/UpdateProject/main.go index 1c67cb6c73f5..f060f916ab9d 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/UpdateProject/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/ProjectsClient/UpdateProject/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewProjectsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.UpdateProjectRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#UpdateProjectRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#UpdateProjectRequest. } op, err := c.UpdateProject(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagBindingsClient/CreateTagBinding/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagBindingsClient/CreateTagBinding/main.go index 24ccb4c473aa..0c0a637719ac 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagBindingsClient/CreateTagBinding/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagBindingsClient/CreateTagBinding/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagBindingsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.CreateTagBindingRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#CreateTagBindingRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#CreateTagBindingRequest. } op, err := c.CreateTagBinding(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagBindingsClient/DeleteTagBinding/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagBindingsClient/DeleteTagBinding/main.go index 578ba147be5a..7f895bc67830 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagBindingsClient/DeleteTagBinding/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagBindingsClient/DeleteTagBinding/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagBindingsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.DeleteTagBindingRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#DeleteTagBindingRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#DeleteTagBindingRequest. } op, err := c.DeleteTagBinding(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagBindingsClient/ListTagBindings/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagBindingsClient/ListTagBindings/main.go index 060c714824af..2b9ce163a8d7 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagBindingsClient/ListTagBindings/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagBindingsClient/ListTagBindings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" "google.golang.org/api/iterator" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagBindingsClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &resourcemanagerpb.ListTagBindingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#ListTagBindingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#ListTagBindingsRequest. } it := c.ListTagBindings(ctx, req) for { diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/CreateTagKey/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/CreateTagKey/main.go index 11feb00e28d1..9e95e2c9ab8e 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/CreateTagKey/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/CreateTagKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagKeysClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.CreateTagKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#CreateTagKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#CreateTagKeyRequest. } op, err := c.CreateTagKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/DeleteTagKey/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/DeleteTagKey/main.go index cf3c44a0728f..28ef160154b9 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/DeleteTagKey/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/DeleteTagKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagKeysClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.DeleteTagKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#DeleteTagKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#DeleteTagKeyRequest. } op, err := c.DeleteTagKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/GetIamPolicy/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/GetIamPolicy/main.go index ead48f114744..8d6a855265ae 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagKeysClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/GetTagKey/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/GetTagKey/main.go index 75ab4f1b9c7c..005eb049a0c6 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/GetTagKey/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/GetTagKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagKeysClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.GetTagKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#GetTagKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#GetTagKeyRequest. } resp, err := c.GetTagKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/ListTagKeys/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/ListTagKeys/main.go index a0889900f69f..04015cd87e2f 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/ListTagKeys/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/ListTagKeys/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" "google.golang.org/api/iterator" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagKeysClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &resourcemanagerpb.ListTagKeysRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#ListTagKeysRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#ListTagKeysRequest. } it := c.ListTagKeys(ctx, req) for { diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/SetIamPolicy/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/SetIamPolicy/main.go index fe5ce8f82fe0..4df06dd429f3 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagKeysClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/TestIamPermissions/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/TestIamPermissions/main.go index 45a2f3bc3e69..288159d94c1f 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagKeysClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/UpdateTagKey/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/UpdateTagKey/main.go index 0e25e174f2bd..23b40cd9cf07 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/UpdateTagKey/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagKeysClient/UpdateTagKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagKeysClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.UpdateTagKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#UpdateTagKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#UpdateTagKeyRequest. } op, err := c.UpdateTagKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/CreateTagValue/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/CreateTagValue/main.go index 6052267004f6..61efb0c3d4f5 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/CreateTagValue/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/CreateTagValue/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagValuesClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.CreateTagValueRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#CreateTagValueRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#CreateTagValueRequest. } op, err := c.CreateTagValue(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/DeleteTagValue/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/DeleteTagValue/main.go index 46ddc6e2f31a..53c6e6390383 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/DeleteTagValue/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/DeleteTagValue/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagValuesClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.DeleteTagValueRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#DeleteTagValueRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#DeleteTagValueRequest. } op, err := c.DeleteTagValue(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/GetIamPolicy/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/GetIamPolicy/main.go index 027e460ab5a4..d4534a1d5978 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagValuesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/GetTagValue/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/GetTagValue/main.go index 820754759a27..be76bb653dd0 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/GetTagValue/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/GetTagValue/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagValuesClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.GetTagValueRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#GetTagValueRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#GetTagValueRequest. } resp, err := c.GetTagValue(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/ListTagValues/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/ListTagValues/main.go index a15cd849ed1e..4a1d6c757402 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/ListTagValues/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/ListTagValues/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" "google.golang.org/api/iterator" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagValuesClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &resourcemanagerpb.ListTagValuesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#ListTagValuesRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#ListTagValuesRequest. } it := c.ListTagValues(ctx, req) for { diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/SetIamPolicy/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/SetIamPolicy/main.go index 620b422de8e6..7f9b3b33ba17 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagValuesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/TestIamPermissions/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/TestIamPermissions/main.go index 8a0bd4493b0c..c7f0c8cd4770 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagValuesClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/UpdateTagValue/main.go b/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/UpdateTagValue/main.go index a1db7ba08cd7..ecd229d0a501 100644 --- a/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/UpdateTagValue/main.go +++ b/internal/generated/snippets/resourcemanager/apiv3/TagValuesClient/UpdateTagValue/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - resourcemanagerpb "google.golang.org/genproto/googleapis/cloud/resourcemanager/v3" + resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcemanager.NewTagValuesClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcemanagerpb.UpdateTagValueRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcemanager/v3#UpdateTagValueRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb#UpdateTagValueRequest. } op, err := c.UpdateTagValue(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcemanager/apiv3/snippet_metadata.google.cloud.resourcemanager.v3.json b/internal/generated/snippets/resourcemanager/apiv3/snippet_metadata.google.cloud.resourcemanager.v3.json new file mode 100644 index 000000000000..548815435441 --- /dev/null +++ b/internal/generated/snippets/resourcemanager/apiv3/snippet_metadata.google.cloud.resourcemanager.v3.json @@ -0,0 +1,2131 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/resourcemanager/apiv3", + "version": "1.5.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.resourcemanager.v3", + "version": "v3" + } + ] + }, + "snippets": [ + { + "regionTag": "cloudresourcemanager_v3_generated_Folders_CreateFolder_sync", + "title": "cloudresourcemanager CreateFolder Sample", + "description": "CreateFolder creates a folder in the resource hierarchy.\nReturns an Operation which can be used to track the progress of the\nfolder creation workflow.\nUpon success, the Operation.response field will be populated with the\ncreated Folder.\n\nIn order to succeed, the addition of this new folder must not violate\nthe folder naming, height, or fanout constraints.\n\n\tThe folder’s display_name must be distinct from all other folders that\n\tshare its parent.\n\n\tThe addition of the folder must not cause the active folder hierarchy\n\tto exceed a height of 10. Note, the full active + deleted folder hierarchy\n\tis allowed to reach a height of 20; this provides additional headroom when\n\tmoving folders that contain deleted folders.\n\n\tThe addition of the folder must not cause the total number of folders\n\tunder its parent to exceed 300.\n\nIf the operation fails due to a folder constraint violation, some errors\nmay be returned by the CreateFolder request, with status code\nFAILED_PRECONDITION and an error description. Other folder constraint\nviolations will be communicated in the Operation, with the specific\nPreconditionFailure returned in the details list in the Operation.error\nfield.\n\nThe caller must have resourcemanager.folders.create permission on the\nidentified parent.", + "file": "FoldersClient/CreateFolder/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateFolder", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient.CreateFolder", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.CreateFolderRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateFolderOperation", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient" + }, + "method": { + "shortName": "CreateFolder", + "fullName": "google.cloud.resourcemanager.v3.Folders.CreateFolder", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v3.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Folders_DeleteFolder_sync", + "title": "cloudresourcemanager DeleteFolder Sample", + "description": "DeleteFolder requests deletion of a folder. The folder is moved into the\nDELETE_REQUESTED state\nimmediately, and is deleted approximately 30 days later. This method may\nonly be called on an empty folder, where a folder is empty if it doesn’t\ncontain any folders or projects in the [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE (at http: //google.cloud.resourcemanager.v3.Folder.State.ACTIVE)] state.\nIf called on a folder in DELETE_REQUESTED\nstate the operation will result in a no-op success.\nThe caller must have resourcemanager.folders.delete permission on the\nidentified folder.", + "file": "FoldersClient/DeleteFolder/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteFolder", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient.DeleteFolder", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.DeleteFolderRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteFolderOperation", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient" + }, + "method": { + "shortName": "DeleteFolder", + "fullName": "google.cloud.resourcemanager.v3.Folders.DeleteFolder", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v3.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Folders_GetFolder_sync", + "title": "cloudresourcemanager GetFolder Sample", + "description": "GetFolder retrieves a folder identified by the supplied resource name.\nValid folder resource names have the format folders/{folder_id}\n(for example, folders/1234).\nThe caller must have resourcemanager.folders.get permission on the\nidentified folder.", + "file": "FoldersClient/GetFolder/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetFolder", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient.GetFolder", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.GetFolderRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "resourcemanagerpb.Folder", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient" + }, + "method": { + "shortName": "GetFolder", + "fullName": "google.cloud.resourcemanager.v3.Folders.GetFolder", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v3.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Folders_GetIamPolicy_sync", + "title": "cloudresourcemanager GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a folder. The returned policy may be\nempty if no such policy or resource exists. The resource field should\nbe the folder’s resource name, for example: “folders/1234”.\nThe caller must have resourcemanager.folders.getIamPolicy permission\non the identified folder.", + "file": "FoldersClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.Folders.GetIamPolicy", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v3.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Folders_ListFolders_sync", + "title": "cloudresourcemanager ListFolders Sample", + "description": "ListFolders lists the folders that are direct descendants of supplied parent resource.\nlist() provides a strongly consistent view of the folders underneath\nthe specified parent resource.\nlist() returns folders sorted based upon the (ascending) lexical ordering\nof their display_name.\nThe caller must have resourcemanager.folders.list permission on the\nidentified parent.", + "file": "FoldersClient/ListFolders/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListFolders", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient.ListFolders", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.ListFoldersRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "FolderIterator", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient" + }, + "method": { + "shortName": "ListFolders", + "fullName": "google.cloud.resourcemanager.v3.Folders.ListFolders", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v3.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Folders_MoveFolder_sync", + "title": "cloudresourcemanager MoveFolder Sample", + "description": "MoveFolder moves a folder under a new resource parent.\nReturns an Operation which can be used to track the progress of the\nfolder move workflow.\nUpon success, the Operation.response field will be populated with the\nmoved folder.\nUpon failure, a FolderOperationError categorizing the failure cause will\nbe returned - if the failure occurs synchronously then the\nFolderOperationError will be returned in the Status.details field.\nIf it occurs asynchronously, then the FolderOperation will be returned\nin the Operation.error field.\nIn addition, the Operation.metadata field will be populated with a\nFolderOperation message as an aid to stateless clients.\nFolder moves will be rejected if they violate either the naming, height,\nor fanout constraints described in the\nCreateFolder documentation.\nThe caller must have resourcemanager.folders.move permission on the\nfolder’s current and proposed new parent.", + "file": "FoldersClient/MoveFolder/main.go", + "language": "GO", + "clientMethod": { + "shortName": "MoveFolder", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient.MoveFolder", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.MoveFolderRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "MoveFolderOperation", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient" + }, + "method": { + "shortName": "MoveFolder", + "fullName": "google.cloud.resourcemanager.v3.Folders.MoveFolder", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v3.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Folders_SearchFolders_sync", + "title": "cloudresourcemanager SearchFolders Sample", + "description": "SearchFolders search for folders that match specific filter criteria.\nsearch() provides an eventually consistent view of the folders a user has\naccess to which meet the specified filter criteria.\n\nThis will only return folders on which the caller has the\npermission resourcemanager.folders.get.", + "file": "FoldersClient/SearchFolders/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SearchFolders", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient.SearchFolders", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.SearchFoldersRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "FolderIterator", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient" + }, + "method": { + "shortName": "SearchFolders", + "fullName": "google.cloud.resourcemanager.v3.Folders.SearchFolders", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v3.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Folders_SetIamPolicy_sync", + "title": "cloudresourcemanager SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on a folder, replacing any existing policy.\nThe resource field should be the folder’s resource name, for example: \n“folders/1234”.\nThe caller must have resourcemanager.folders.setIamPolicy permission\non the identified folder.", + "file": "FoldersClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.Folders.SetIamPolicy", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v3.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Folders_TestIamPermissions_sync", + "title": "cloudresourcemanager TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified folder.\nThe resource field should be the folder’s resource name,\nfor example: “folders/1234”.\n\nThere are no permissions required for making this API call.", + "file": "FoldersClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.resourcemanager.v3.Folders.TestIamPermissions", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v3.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Folders_UndeleteFolder_sync", + "title": "cloudresourcemanager UndeleteFolder Sample", + "description": "UndeleteFolder cancels the deletion request for a folder. This method may be called on a\nfolder in any state. If the folder is in the [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE (at http: //google.cloud.resourcemanager.v3.Folder.State.ACTIVE)]\nstate the result will be a no-op success. In order to succeed, the folder’s\nparent must be in the [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE (at http: //google.cloud.resourcemanager.v3.Folder.State.ACTIVE)] state. In addition,\nreintroducing the folder into the tree must not violate folder naming,\nheight, and fanout constraints described in the\nCreateFolder documentation.\nThe caller must have resourcemanager.folders.undelete permission on the\nidentified folder.", + "file": "FoldersClient/UndeleteFolder/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UndeleteFolder", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient.UndeleteFolder", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.UndeleteFolderRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UndeleteFolderOperation", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient" + }, + "method": { + "shortName": "UndeleteFolder", + "fullName": "google.cloud.resourcemanager.v3.Folders.UndeleteFolder", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v3.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Folders_UpdateFolder_sync", + "title": "cloudresourcemanager UpdateFolder Sample", + "description": "UpdateFolder updates a folder, changing its display_name.\nChanges to the folder display_name will be rejected if they violate\neither the display_name formatting rules or the naming constraints\ndescribed in the CreateFolder documentation.\n\nThe folder’s display_name must start and end with a letter or digit,\nmay contain letters, digits, spaces, hyphens and underscores and can be\nbetween 3 and 30 characters. This is captured by the regular expression: \n[\\p{L}\\p{N}][\\p{L}\\p{N}_- ]{1,28}[\\p{L}\\p{N}].\nThe caller must have resourcemanager.folders.update permission on the\nidentified folder.\n\nIf the update fails due to the unique name constraint then a\nPreconditionFailure explaining this violation will be returned\nin the Status.details field.", + "file": "FoldersClient/UpdateFolder/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateFolder", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient.UpdateFolder", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.UpdateFolderRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateFolderOperation", + "client": { + "shortName": "FoldersClient", + "fullName": "google.cloud.resourcemanager.v3.FoldersClient" + }, + "method": { + "shortName": "UpdateFolder", + "fullName": "google.cloud.resourcemanager.v3.Folders.UpdateFolder", + "service": { + "shortName": "Folders", + "fullName": "google.cloud.resourcemanager.v3.Folders" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Organizations_GetIamPolicy_sync", + "title": "cloudresourcemanager GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for an organization resource. The policy may\nbe empty if no such policy or resource exists. The resource field should\nbe the organization’s resource name, for example: “organizations/123”.\n\nAuthorization requires the IAM permission\nresourcemanager.organizations.getIamPolicy on the specified organization.", + "file": "OrganizationsClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.OrganizationsClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "OrganizationsClient", + "fullName": "google.cloud.resourcemanager.v3.OrganizationsClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.Organizations.GetIamPolicy", + "service": { + "shortName": "Organizations", + "fullName": "google.cloud.resourcemanager.v3.Organizations" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Organizations_GetOrganization_sync", + "title": "cloudresourcemanager GetOrganization Sample", + "description": "GetOrganization fetches an organization resource identified by the specified resource name.", + "file": "OrganizationsClient/GetOrganization/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOrganization", + "fullName": "google.cloud.resourcemanager.v3.OrganizationsClient.GetOrganization", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.GetOrganizationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "resourcemanagerpb.Organization", + "client": { + "shortName": "OrganizationsClient", + "fullName": "google.cloud.resourcemanager.v3.OrganizationsClient" + }, + "method": { + "shortName": "GetOrganization", + "fullName": "google.cloud.resourcemanager.v3.Organizations.GetOrganization", + "service": { + "shortName": "Organizations", + "fullName": "google.cloud.resourcemanager.v3.Organizations" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Organizations_SearchOrganizations_sync", + "title": "cloudresourcemanager SearchOrganizations Sample", + "description": "SearchOrganizations searches organization resources that are visible to the user and satisfy\nthe specified filter. This method returns organizations in an unspecified\norder. New organizations do not necessarily appear at the end of the\nresults, and may take a small amount of time to appear.\n\nSearch will only return organizations on which the user has the permission\nresourcemanager.organizations.get", + "file": "OrganizationsClient/SearchOrganizations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SearchOrganizations", + "fullName": "google.cloud.resourcemanager.v3.OrganizationsClient.SearchOrganizations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.SearchOrganizationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OrganizationIterator", + "client": { + "shortName": "OrganizationsClient", + "fullName": "google.cloud.resourcemanager.v3.OrganizationsClient" + }, + "method": { + "shortName": "SearchOrganizations", + "fullName": "google.cloud.resourcemanager.v3.Organizations.SearchOrganizations", + "service": { + "shortName": "Organizations", + "fullName": "google.cloud.resourcemanager.v3.Organizations" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Organizations_SetIamPolicy_sync", + "title": "cloudresourcemanager SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on an organization resource. Replaces any\nexisting policy. The resource field should be the organization’s resource\nname, for example: “organizations/123”.\n\nAuthorization requires the IAM permission\nresourcemanager.organizations.setIamPolicy on the specified organization.", + "file": "OrganizationsClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.OrganizationsClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "OrganizationsClient", + "fullName": "google.cloud.resourcemanager.v3.OrganizationsClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.Organizations.SetIamPolicy", + "service": { + "shortName": "Organizations", + "fullName": "google.cloud.resourcemanager.v3.Organizations" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Organizations_TestIamPermissions_sync", + "title": "cloudresourcemanager TestIamPermissions Sample", + "description": "TestIamPermissions returns the permissions that a caller has on the specified organization.\nThe resource field should be the organization’s resource name,\nfor example: “organizations/123”.\n\nThere are no permissions required for making this API call.", + "file": "OrganizationsClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.resourcemanager.v3.OrganizationsClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "OrganizationsClient", + "fullName": "google.cloud.resourcemanager.v3.OrganizationsClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.resourcemanager.v3.Organizations.TestIamPermissions", + "service": { + "shortName": "Organizations", + "fullName": "google.cloud.resourcemanager.v3.Organizations" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Projects_CreateProject_sync", + "title": "cloudresourcemanager CreateProject Sample", + "description": "CreateProject request that a new project be created. The result is an Operation which\ncan be used to track the creation process. This process usually takes a few\nseconds, but can sometimes take much longer. The tracking Operation is\nautomatically deleted after a few hours, so there is no need to call\nDeleteOperation.", + "file": "ProjectsClient/CreateProject/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateProject", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient.CreateProject", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.CreateProjectRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateProjectOperation", + "client": { + "shortName": "ProjectsClient", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" + }, + "method": { + "shortName": "CreateProject", + "fullName": "google.cloud.resourcemanager.v3.Projects.CreateProject", + "service": { + "shortName": "Projects", + "fullName": "google.cloud.resourcemanager.v3.Projects" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Projects_DeleteProject_sync", + "title": "cloudresourcemanager DeleteProject Sample", + "description": "DeleteProject marks the project identified by the specified\nname (for example, projects/415104041262) for deletion.\n\nThis method will only affect the project if it has a lifecycle state of\n[ACTIVE][google.cloud.resourcemanager.v3.Project.State.ACTIVE (at http: //google.cloud.resourcemanager.v3.Project.State.ACTIVE)].\n\nThis method changes the Project’s lifecycle state from\n[ACTIVE][google.cloud.resourcemanager.v3.Project.State.ACTIVE (at http: //google.cloud.resourcemanager.v3.Project.State.ACTIVE)]\nto DELETE_REQUESTED.\nThe deletion starts at an unspecified time,\nat which point the Project is no longer accessible.\n\nUntil the deletion completes, you can check the lifecycle state\nchecked by retrieving the project with [GetProject]\n[google.cloud.resourcemanager.v3.Projects.GetProject],\nand the project remains visible to [ListProjects]\n[google.cloud.resourcemanager.v3.Projects.ListProjects].\nHowever, you cannot update the project.\n\nAfter the deletion completes, the project is not retrievable by\nthe [GetProject]\n[google.cloud.resourcemanager.v3.Projects.GetProject],\n[ListProjects]\n[google.cloud.resourcemanager.v3.Projects.ListProjects], and\nSearchProjects\nmethods.\n\nThis method behaves idempotently, such that deleting a DELETE_REQUESTED\nproject will not cause an error, but also won’t do anything.\n\nThe caller must have resourcemanager.projects.delete permissions for this\nproject.", + "file": "ProjectsClient/DeleteProject/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteProject", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient.DeleteProject", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.DeleteProjectRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteProjectOperation", + "client": { + "shortName": "ProjectsClient", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" + }, + "method": { + "shortName": "DeleteProject", + "fullName": "google.cloud.resourcemanager.v3.Projects.DeleteProject", + "service": { + "shortName": "Projects", + "fullName": "google.cloud.resourcemanager.v3.Projects" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Projects_GetIamPolicy_sync", + "title": "cloudresourcemanager GetIamPolicy Sample", + "description": "GetIamPolicy returns the IAM access control policy for the specified project.\nPermission is denied if the policy or the resource do not exist.", + "file": "ProjectsClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "ProjectsClient", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.Projects.GetIamPolicy", + "service": { + "shortName": "Projects", + "fullName": "google.cloud.resourcemanager.v3.Projects" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Projects_GetProject_sync", + "title": "cloudresourcemanager GetProject Sample", + "description": "GetProject retrieves the project identified by the specified name (for example,\nprojects/415104041262).\n\nThe caller must have resourcemanager.projects.get permission\nfor this project.", + "file": "ProjectsClient/GetProject/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetProject", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient.GetProject", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.GetProjectRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "resourcemanagerpb.Project", + "client": { + "shortName": "ProjectsClient", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" + }, + "method": { + "shortName": "GetProject", + "fullName": "google.cloud.resourcemanager.v3.Projects.GetProject", + "service": { + "shortName": "Projects", + "fullName": "google.cloud.resourcemanager.v3.Projects" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Projects_ListProjects_sync", + "title": "cloudresourcemanager ListProjects Sample", + "description": "ListProjects lists projects that are direct children of the specified folder or\norganization resource. list() provides a strongly consistent view of the\nprojects underneath the specified parent resource. list() returns\nprojects sorted based upon the (ascending) lexical ordering of their\ndisplay_name. The caller must have resourcemanager.projects.list\npermission on the identified parent.", + "file": "ProjectsClient/ListProjects/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListProjects", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient.ListProjects", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.ListProjectsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ProjectIterator", + "client": { + "shortName": "ProjectsClient", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" + }, + "method": { + "shortName": "ListProjects", + "fullName": "google.cloud.resourcemanager.v3.Projects.ListProjects", + "service": { + "shortName": "Projects", + "fullName": "google.cloud.resourcemanager.v3.Projects" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Projects_MoveProject_sync", + "title": "cloudresourcemanager MoveProject Sample", + "description": "MoveProject move a project to another place in your resource hierarchy, under a new\nresource parent.\n\nReturns an operation which can be used to track the process of the project\nmove workflow.\nUpon success, the Operation.response field will be populated with the\nmoved project.\n\nThe caller must have resourcemanager.projects.update permission on the\nproject and have resourcemanager.projects.move permission on the\nproject’s current and proposed new parent.", + "file": "ProjectsClient/MoveProject/main.go", + "language": "GO", + "clientMethod": { + "shortName": "MoveProject", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient.MoveProject", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.MoveProjectRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "MoveProjectOperation", + "client": { + "shortName": "ProjectsClient", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" + }, + "method": { + "shortName": "MoveProject", + "fullName": "google.cloud.resourcemanager.v3.Projects.MoveProject", + "service": { + "shortName": "Projects", + "fullName": "google.cloud.resourcemanager.v3.Projects" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Projects_SearchProjects_sync", + "title": "cloudresourcemanager SearchProjects Sample", + "description": "SearchProjects search for projects that the caller has both resourcemanager.projects.get\npermission on, and also satisfy the specified query.\n\nThis method returns projects in an unspecified order.\n\nThis method is eventually consistent with project mutations; this means\nthat a newly created project may not appear in the results or recent\nupdates to an existing project may not be reflected in the results. To\nretrieve the latest state of a project, use the\nGetProject method.", + "file": "ProjectsClient/SearchProjects/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SearchProjects", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient.SearchProjects", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.SearchProjectsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ProjectIterator", + "client": { + "shortName": "ProjectsClient", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" + }, + "method": { + "shortName": "SearchProjects", + "fullName": "google.cloud.resourcemanager.v3.Projects.SearchProjects", + "service": { + "shortName": "Projects", + "fullName": "google.cloud.resourcemanager.v3.Projects" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Projects_SetIamPolicy_sync", + "title": "cloudresourcemanager SetIamPolicy Sample", + "description": "SetIamPolicy sets the IAM access control policy for the specified project.\n\nCAUTION: This method will replace the existing policy, and cannot be used\nto append additional IAM settings.\n\nNote: Removing service accounts from policies or changing their roles can\nrender services completely inoperable. It is important to understand how\nthe service account is being used before removing or updating its roles.\n\nThe following constraints apply when using setIamPolicy(): \n\n\tProject does not support allUsers and allAuthenticatedUsers as\n\tmembers in a Binding of a Policy.\n\n\tThe owner role can be granted to a user, serviceAccount, or a group\n\tthat is part of an organization. For example,\n\tgroup@myownpersonaldomain.com (at mailto: group@myownpersonaldomain.com) could be added as an owner to a project in\n\tthe myownpersonaldomain.com (at http: //myownpersonaldomain.com) organization, but not the examplepetstore.com (at http: //examplepetstore.com)\n\torganization.\n\n\tService accounts can be made owners of a project directly\n\twithout any restrictions. However, to be added as an owner, a user must be\n\tinvited using the Cloud Platform console and must accept the invitation.\n\n\tA user cannot be granted the owner role using setIamPolicy(). The user\n\tmust be granted the owner role using the Cloud Platform Console and must\n\texplicitly accept the invitation.\n\n\tInvitations to grant the owner role cannot be sent using\n\tsetIamPolicy();\n\tthey must be sent only using the Cloud Platform Console.\n\n\tMembership changes that leave the project without any owners that have\n\taccepted the Terms of Service (ToS) will be rejected.\n\n\tIf the project is not part of an organization, there must be at least\n\tone owner who has accepted the Terms of Service (ToS) agreement in the\n\tpolicy. Calling setIamPolicy() to remove the last ToS-accepted owner\n\tfrom the policy will fail. This restriction also applies to legacy\n\tprojects that no longer have owners who have accepted the ToS. Edits to\n\tIAM policies will be rejected until the lack of a ToS-accepting owner is\n\trectified.\n\n\tCalling this method requires enabling the App Engine Admin API.", + "file": "ProjectsClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "ProjectsClient", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.Projects.SetIamPolicy", + "service": { + "shortName": "Projects", + "fullName": "google.cloud.resourcemanager.v3.Projects" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Projects_TestIamPermissions_sync", + "title": "cloudresourcemanager TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified project.", + "file": "ProjectsClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "ProjectsClient", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.resourcemanager.v3.Projects.TestIamPermissions", + "service": { + "shortName": "Projects", + "fullName": "google.cloud.resourcemanager.v3.Projects" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Projects_UndeleteProject_sync", + "title": "cloudresourcemanager UndeleteProject Sample", + "description": "UndeleteProject restores the project identified by the specified\nname (for example, projects/415104041262).\nYou can only use this method for a project that has a lifecycle state of\n[DELETE_REQUESTED]\n[Projects.State.DELETE_REQUESTED].\nAfter deletion starts, the project cannot be restored.\n\nThe caller must have resourcemanager.projects.undelete permission for\nthis project.", + "file": "ProjectsClient/UndeleteProject/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UndeleteProject", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient.UndeleteProject", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.UndeleteProjectRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UndeleteProjectOperation", + "client": { + "shortName": "ProjectsClient", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" + }, + "method": { + "shortName": "UndeleteProject", + "fullName": "google.cloud.resourcemanager.v3.Projects.UndeleteProject", + "service": { + "shortName": "Projects", + "fullName": "google.cloud.resourcemanager.v3.Projects" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_Projects_UpdateProject_sync", + "title": "cloudresourcemanager UpdateProject Sample", + "description": "UpdateProject updates the display_name and labels of the project identified by the\nspecified name (for example, projects/415104041262). Deleting all\nlabels requires an update mask for labels field.\n\nThe caller must have resourcemanager.projects.update permission for this\nproject.", + "file": "ProjectsClient/UpdateProject/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateProject", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient.UpdateProject", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.UpdateProjectRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateProjectOperation", + "client": { + "shortName": "ProjectsClient", + "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" + }, + "method": { + "shortName": "UpdateProject", + "fullName": "google.cloud.resourcemanager.v3.Projects.UpdateProject", + "service": { + "shortName": "Projects", + "fullName": "google.cloud.resourcemanager.v3.Projects" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagBindings_CreateTagBinding_sync", + "title": "cloudresourcemanager CreateTagBinding Sample", + "description": "CreateTagBinding creates a TagBinding between a TagValue and a cloud resource\n(currently project, folder, or organization).", + "file": "TagBindingsClient/CreateTagBinding/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateTagBinding", + "fullName": "google.cloud.resourcemanager.v3.TagBindingsClient.CreateTagBinding", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.CreateTagBindingRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateTagBindingOperation", + "client": { + "shortName": "TagBindingsClient", + "fullName": "google.cloud.resourcemanager.v3.TagBindingsClient" + }, + "method": { + "shortName": "CreateTagBinding", + "fullName": "google.cloud.resourcemanager.v3.TagBindings.CreateTagBinding", + "service": { + "shortName": "TagBindings", + "fullName": "google.cloud.resourcemanager.v3.TagBindings" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagBindings_DeleteTagBinding_sync", + "title": "cloudresourcemanager DeleteTagBinding Sample", + "description": "DeleteTagBinding deletes a TagBinding.", + "file": "TagBindingsClient/DeleteTagBinding/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteTagBinding", + "fullName": "google.cloud.resourcemanager.v3.TagBindingsClient.DeleteTagBinding", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.DeleteTagBindingRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteTagBindingOperation", + "client": { + "shortName": "TagBindingsClient", + "fullName": "google.cloud.resourcemanager.v3.TagBindingsClient" + }, + "method": { + "shortName": "DeleteTagBinding", + "fullName": "google.cloud.resourcemanager.v3.TagBindings.DeleteTagBinding", + "service": { + "shortName": "TagBindings", + "fullName": "google.cloud.resourcemanager.v3.TagBindings" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagBindings_ListTagBindings_sync", + "title": "cloudresourcemanager ListTagBindings Sample", + "description": "ListTagBindings lists the TagBindings for the given cloud resource, as specified with\nparent.\n\nNOTE: The parent field is expected to be a full resource name: \nhttps: //cloud.google.com/apis/design/resource_names#full_resource_name (at https: //cloud.google.com/apis/design/resource_names#full_resource_name)", + "file": "TagBindingsClient/ListTagBindings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListTagBindings", + "fullName": "google.cloud.resourcemanager.v3.TagBindingsClient.ListTagBindings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.ListTagBindingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "TagBindingIterator", + "client": { + "shortName": "TagBindingsClient", + "fullName": "google.cloud.resourcemanager.v3.TagBindingsClient" + }, + "method": { + "shortName": "ListTagBindings", + "fullName": "google.cloud.resourcemanager.v3.TagBindings.ListTagBindings", + "service": { + "shortName": "TagBindings", + "fullName": "google.cloud.resourcemanager.v3.TagBindings" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagKeys_CreateTagKey_sync", + "title": "cloudresourcemanager CreateTagKey Sample", + "description": "CreateTagKey creates a new TagKey. If another request with the same parameters is\nsent while the original request is in process, the second request\nwill receive an error. A maximum of 300 TagKeys can exist under a parent at\nany given time.", + "file": "TagKeysClient/CreateTagKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateTagKey", + "fullName": "google.cloud.resourcemanager.v3.TagKeysClient.CreateTagKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.CreateTagKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateTagKeyOperation", + "client": { + "shortName": "TagKeysClient", + "fullName": "google.cloud.resourcemanager.v3.TagKeysClient" + }, + "method": { + "shortName": "CreateTagKey", + "fullName": "google.cloud.resourcemanager.v3.TagKeys.CreateTagKey", + "service": { + "shortName": "TagKeys", + "fullName": "google.cloud.resourcemanager.v3.TagKeys" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagKeys_DeleteTagKey_sync", + "title": "cloudresourcemanager DeleteTagKey Sample", + "description": "DeleteTagKey deletes a TagKey. The TagKey cannot be deleted if it has any child\nTagValues.", + "file": "TagKeysClient/DeleteTagKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteTagKey", + "fullName": "google.cloud.resourcemanager.v3.TagKeysClient.DeleteTagKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.DeleteTagKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteTagKeyOperation", + "client": { + "shortName": "TagKeysClient", + "fullName": "google.cloud.resourcemanager.v3.TagKeysClient" + }, + "method": { + "shortName": "DeleteTagKey", + "fullName": "google.cloud.resourcemanager.v3.TagKeys.DeleteTagKey", + "service": { + "shortName": "TagKeys", + "fullName": "google.cloud.resourcemanager.v3.TagKeys" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagKeys_GetIamPolicy_sync", + "title": "cloudresourcemanager GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a TagKey. The returned policy may be\nempty if no such policy or resource exists. The resource field should\nbe the TagKey’s resource name. For example, “tagKeys/1234”.\nThe caller must have\ncloudresourcemanager.googleapis.com/tagKeys.getIamPolicy permission on\nthe specified TagKey.", + "file": "TagKeysClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.TagKeysClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "TagKeysClient", + "fullName": "google.cloud.resourcemanager.v3.TagKeysClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.TagKeys.GetIamPolicy", + "service": { + "shortName": "TagKeys", + "fullName": "google.cloud.resourcemanager.v3.TagKeys" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagKeys_GetTagKey_sync", + "title": "cloudresourcemanager GetTagKey Sample", + "description": "GetTagKey retrieves a TagKey. This method will return PERMISSION_DENIED if the\nkey does not exist or the user does not have permission to view it.", + "file": "TagKeysClient/GetTagKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetTagKey", + "fullName": "google.cloud.resourcemanager.v3.TagKeysClient.GetTagKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.GetTagKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "resourcemanagerpb.TagKey", + "client": { + "shortName": "TagKeysClient", + "fullName": "google.cloud.resourcemanager.v3.TagKeysClient" + }, + "method": { + "shortName": "GetTagKey", + "fullName": "google.cloud.resourcemanager.v3.TagKeys.GetTagKey", + "service": { + "shortName": "TagKeys", + "fullName": "google.cloud.resourcemanager.v3.TagKeys" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagKeys_ListTagKeys_sync", + "title": "cloudresourcemanager ListTagKeys Sample", + "description": "ListTagKeys lists all TagKeys for a parent resource.", + "file": "TagKeysClient/ListTagKeys/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListTagKeys", + "fullName": "google.cloud.resourcemanager.v3.TagKeysClient.ListTagKeys", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.ListTagKeysRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "TagKeyIterator", + "client": { + "shortName": "TagKeysClient", + "fullName": "google.cloud.resourcemanager.v3.TagKeysClient" + }, + "method": { + "shortName": "ListTagKeys", + "fullName": "google.cloud.resourcemanager.v3.TagKeys.ListTagKeys", + "service": { + "shortName": "TagKeys", + "fullName": "google.cloud.resourcemanager.v3.TagKeys" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagKeys_SetIamPolicy_sync", + "title": "cloudresourcemanager SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on a TagKey, replacing any existing\npolicy. The resource field should be the TagKey’s resource name.\nFor example, “tagKeys/1234”.\nThe caller must have resourcemanager.tagKeys.setIamPolicy permission\non the identified tagValue.", + "file": "TagKeysClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.TagKeysClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "TagKeysClient", + "fullName": "google.cloud.resourcemanager.v3.TagKeysClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.TagKeys.SetIamPolicy", + "service": { + "shortName": "TagKeys", + "fullName": "google.cloud.resourcemanager.v3.TagKeys" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagKeys_TestIamPermissions_sync", + "title": "cloudresourcemanager TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified TagKey.\nThe resource field should be the TagKey’s resource name.\nFor example, “tagKeys/1234”.\n\nThere are no permissions required for making this API call.", + "file": "TagKeysClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.resourcemanager.v3.TagKeysClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "TagKeysClient", + "fullName": "google.cloud.resourcemanager.v3.TagKeysClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.resourcemanager.v3.TagKeys.TestIamPermissions", + "service": { + "shortName": "TagKeys", + "fullName": "google.cloud.resourcemanager.v3.TagKeys" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagKeys_UpdateTagKey_sync", + "title": "cloudresourcemanager UpdateTagKey Sample", + "description": "UpdateTagKey updates the attributes of the TagKey resource.", + "file": "TagKeysClient/UpdateTagKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateTagKey", + "fullName": "google.cloud.resourcemanager.v3.TagKeysClient.UpdateTagKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.UpdateTagKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateTagKeyOperation", + "client": { + "shortName": "TagKeysClient", + "fullName": "google.cloud.resourcemanager.v3.TagKeysClient" + }, + "method": { + "shortName": "UpdateTagKey", + "fullName": "google.cloud.resourcemanager.v3.TagKeys.UpdateTagKey", + "service": { + "shortName": "TagKeys", + "fullName": "google.cloud.resourcemanager.v3.TagKeys" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagValues_CreateTagValue_sync", + "title": "cloudresourcemanager CreateTagValue Sample", + "description": "CreateTagValue creates a TagValue as a child of the specified TagKey. If a another\nrequest with the same parameters is sent while the original request is in\nprocess the second request will receive an error. A maximum of 300\nTagValues can exist under a TagKey at any given time.", + "file": "TagValuesClient/CreateTagValue/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateTagValue", + "fullName": "google.cloud.resourcemanager.v3.TagValuesClient.CreateTagValue", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.CreateTagValueRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateTagValueOperation", + "client": { + "shortName": "TagValuesClient", + "fullName": "google.cloud.resourcemanager.v3.TagValuesClient" + }, + "method": { + "shortName": "CreateTagValue", + "fullName": "google.cloud.resourcemanager.v3.TagValues.CreateTagValue", + "service": { + "shortName": "TagValues", + "fullName": "google.cloud.resourcemanager.v3.TagValues" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagValues_DeleteTagValue_sync", + "title": "cloudresourcemanager DeleteTagValue Sample", + "description": "DeleteTagValue deletes a TagValue. The TagValue cannot have any bindings when it is\ndeleted.", + "file": "TagValuesClient/DeleteTagValue/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteTagValue", + "fullName": "google.cloud.resourcemanager.v3.TagValuesClient.DeleteTagValue", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.DeleteTagValueRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteTagValueOperation", + "client": { + "shortName": "TagValuesClient", + "fullName": "google.cloud.resourcemanager.v3.TagValuesClient" + }, + "method": { + "shortName": "DeleteTagValue", + "fullName": "google.cloud.resourcemanager.v3.TagValues.DeleteTagValue", + "service": { + "shortName": "TagValues", + "fullName": "google.cloud.resourcemanager.v3.TagValues" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagValues_GetIamPolicy_sync", + "title": "cloudresourcemanager GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a TagValue. The returned policy may be\nempty if no such policy or resource exists. The resource field should\nbe the TagValue’s resource name. For example: tagValues/1234.\nThe caller must have the\ncloudresourcemanager.googleapis.com/tagValues.getIamPolicy permission on\nthe identified TagValue to get the access control policy.", + "file": "TagValuesClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.TagValuesClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "TagValuesClient", + "fullName": "google.cloud.resourcemanager.v3.TagValuesClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.TagValues.GetIamPolicy", + "service": { + "shortName": "TagValues", + "fullName": "google.cloud.resourcemanager.v3.TagValues" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagValues_GetTagValue_sync", + "title": "cloudresourcemanager GetTagValue Sample", + "description": "GetTagValue retrieves TagValue. If the TagValue or namespaced name does not exist, or\nif the user does not have permission to view it, this method will return\nPERMISSION_DENIED.", + "file": "TagValuesClient/GetTagValue/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetTagValue", + "fullName": "google.cloud.resourcemanager.v3.TagValuesClient.GetTagValue", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.GetTagValueRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "resourcemanagerpb.TagValue", + "client": { + "shortName": "TagValuesClient", + "fullName": "google.cloud.resourcemanager.v3.TagValuesClient" + }, + "method": { + "shortName": "GetTagValue", + "fullName": "google.cloud.resourcemanager.v3.TagValues.GetTagValue", + "service": { + "shortName": "TagValues", + "fullName": "google.cloud.resourcemanager.v3.TagValues" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagValues_ListTagValues_sync", + "title": "cloudresourcemanager ListTagValues Sample", + "description": "ListTagValues lists all TagValues for a specific TagKey.", + "file": "TagValuesClient/ListTagValues/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListTagValues", + "fullName": "google.cloud.resourcemanager.v3.TagValuesClient.ListTagValues", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.ListTagValuesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "TagValueIterator", + "client": { + "shortName": "TagValuesClient", + "fullName": "google.cloud.resourcemanager.v3.TagValuesClient" + }, + "method": { + "shortName": "ListTagValues", + "fullName": "google.cloud.resourcemanager.v3.TagValues.ListTagValues", + "service": { + "shortName": "TagValues", + "fullName": "google.cloud.resourcemanager.v3.TagValues" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagValues_SetIamPolicy_sync", + "title": "cloudresourcemanager SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on a TagValue, replacing any existing\npolicy. The resource field should be the TagValue’s resource name.\nFor example: tagValues/1234.\nThe caller must have resourcemanager.tagValues.setIamPolicy permission\non the identified tagValue.", + "file": "TagValuesClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.TagValuesClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "TagValuesClient", + "fullName": "google.cloud.resourcemanager.v3.TagValuesClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.resourcemanager.v3.TagValues.SetIamPolicy", + "service": { + "shortName": "TagValues", + "fullName": "google.cloud.resourcemanager.v3.TagValues" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagValues_TestIamPermissions_sync", + "title": "cloudresourcemanager TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified TagValue.\nThe resource field should be the TagValue’s resource name. For example: \ntagValues/1234.\n\nThere are no permissions required for making this API call.", + "file": "TagValuesClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.resourcemanager.v3.TagValuesClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "TagValuesClient", + "fullName": "google.cloud.resourcemanager.v3.TagValuesClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.resourcemanager.v3.TagValues.TestIamPermissions", + "service": { + "shortName": "TagValues", + "fullName": "google.cloud.resourcemanager.v3.TagValues" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudresourcemanager_v3_generated_TagValues_UpdateTagValue_sync", + "title": "cloudresourcemanager UpdateTagValue Sample", + "description": "UpdateTagValue updates the attributes of the TagValue resource.", + "file": "TagValuesClient/UpdateTagValue/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateTagValue", + "fullName": "google.cloud.resourcemanager.v3.TagValuesClient.UpdateTagValue", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcemanagerpb.UpdateTagValueRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateTagValueOperation", + "client": { + "shortName": "TagValuesClient", + "fullName": "google.cloud.resourcemanager.v3.TagValuesClient" + }, + "method": { + "shortName": "UpdateTagValue", + "fullName": "google.cloud.resourcemanager.v3.TagValues.UpdateTagValue", + "service": { + "shortName": "TagValues", + "fullName": "google.cloud.resourcemanager.v3.TagValues" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/resourcesettings/apiv1/Client/GetSetting/main.go b/internal/generated/snippets/resourcesettings/apiv1/Client/GetSetting/main.go index d393df716752..cd6ba62a5f2d 100644 --- a/internal/generated/snippets/resourcesettings/apiv1/Client/GetSetting/main.go +++ b/internal/generated/snippets/resourcesettings/apiv1/Client/GetSetting/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcesettings "cloud.google.com/go/resourcesettings/apiv1" - resourcesettingspb "google.golang.org/genproto/googleapis/cloud/resourcesettings/v1" + resourcesettingspb "cloud.google.com/go/resourcesettings/apiv1/resourcesettingspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcesettings.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcesettingspb.GetSettingRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcesettings/v1#GetSettingRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcesettings/apiv1/resourcesettingspb#GetSettingRequest. } resp, err := c.GetSetting(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcesettings/apiv1/Client/ListSettings/main.go b/internal/generated/snippets/resourcesettings/apiv1/Client/ListSettings/main.go index 1cdbb48d65cb..75a09afb680b 100644 --- a/internal/generated/snippets/resourcesettings/apiv1/Client/ListSettings/main.go +++ b/internal/generated/snippets/resourcesettings/apiv1/Client/ListSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" resourcesettings "cloud.google.com/go/resourcesettings/apiv1" + resourcesettingspb "cloud.google.com/go/resourcesettings/apiv1/resourcesettingspb" "google.golang.org/api/iterator" - resourcesettingspb "google.golang.org/genproto/googleapis/cloud/resourcesettings/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcesettings.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &resourcesettingspb.ListSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcesettings/v1#ListSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcesettings/apiv1/resourcesettingspb#ListSettingsRequest. } it := c.ListSettings(ctx, req) for { diff --git a/internal/generated/snippets/resourcesettings/apiv1/Client/UpdateSetting/main.go b/internal/generated/snippets/resourcesettings/apiv1/Client/UpdateSetting/main.go index 3ae859528fb5..3243c3abe5e9 100644 --- a/internal/generated/snippets/resourcesettings/apiv1/Client/UpdateSetting/main.go +++ b/internal/generated/snippets/resourcesettings/apiv1/Client/UpdateSetting/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" resourcesettings "cloud.google.com/go/resourcesettings/apiv1" - resourcesettingspb "google.golang.org/genproto/googleapis/cloud/resourcesettings/v1" + resourcesettingspb "cloud.google.com/go/resourcesettings/apiv1/resourcesettingspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := resourcesettings.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &resourcesettingspb.UpdateSettingRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/resourcesettings/v1#UpdateSettingRequest. + // See https://pkg.go.dev/cloud.google.com/go/resourcesettings/apiv1/resourcesettingspb#UpdateSettingRequest. } resp, err := c.UpdateSetting(ctx, req) if err != nil { diff --git a/internal/generated/snippets/resourcesettings/apiv1/snippet_metadata.google.cloud.resourcesettings.v1.json b/internal/generated/snippets/resourcesettings/apiv1/snippet_metadata.google.cloud.resourcesettings.v1.json new file mode 100644 index 000000000000..e253ddb89dfa --- /dev/null +++ b/internal/generated/snippets/resourcesettings/apiv1/snippet_metadata.google.cloud.resourcesettings.v1.json @@ -0,0 +1,153 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/resourcesettings/apiv1", + "version": "1.5.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.resourcesettings.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "resourcesettings_v1_generated_ResourceSettingsService_GetSetting_sync", + "title": "resourcesettings GetSetting Sample", + "description": "GetSetting gets a setting.\n\nReturns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the\nsetting does not exist.", + "file": "Client/GetSetting/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSetting", + "fullName": "google.cloud.resourcesettings.v1.Client.GetSetting", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcesettingspb.GetSettingRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "resourcesettingspb.Setting", + "client": { + "shortName": "Client", + "fullName": "google.cloud.resourcesettings.v1.Client" + }, + "method": { + "shortName": "GetSetting", + "fullName": "google.cloud.resourcesettings.v1.ResourceSettingsService.GetSetting", + "service": { + "shortName": "ResourceSettingsService", + "fullName": "google.cloud.resourcesettings.v1.ResourceSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "resourcesettings_v1_generated_ResourceSettingsService_ListSettings_sync", + "title": "resourcesettings ListSettings Sample", + "description": "ListSettings lists all the settings that are available on the Cloud resource parent.", + "file": "Client/ListSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListSettings", + "fullName": "google.cloud.resourcesettings.v1.Client.ListSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcesettingspb.ListSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SettingIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.resourcesettings.v1.Client" + }, + "method": { + "shortName": "ListSettings", + "fullName": "google.cloud.resourcesettings.v1.ResourceSettingsService.ListSettings", + "service": { + "shortName": "ResourceSettingsService", + "fullName": "google.cloud.resourcesettings.v1.ResourceSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "resourcesettings_v1_generated_ResourceSettingsService_UpdateSetting_sync", + "title": "resourcesettings UpdateSetting Sample", + "description": "UpdateSetting updates a setting.\n\nReturns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the\nsetting does not exist.\nReturns a google.rpc.Status with google.rpc.Code.FAILED_PRECONDITION if\nthe setting is flagged as read only.\nReturns a google.rpc.Status with google.rpc.Code.ABORTED if the etag\nsupplied in the request does not match the persisted etag of the setting\nvalue.\n\nOn success, the response will contain only name, local_value and\netag. The metadata and effective_value cannot be updated through\nthis API.\n\nNote: the supplied setting will perform a full overwrite of the\nlocal_value field.", + "file": "Client/UpdateSetting/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSetting", + "fullName": "google.cloud.resourcesettings.v1.Client.UpdateSetting", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "resourcesettingspb.UpdateSettingRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "resourcesettingspb.Setting", + "client": { + "shortName": "Client", + "fullName": "google.cloud.resourcesettings.v1.Client" + }, + "method": { + "shortName": "UpdateSetting", + "fullName": "google.cloud.resourcesettings.v1.ResourceSettingsService.UpdateSetting", + "service": { + "shortName": "ResourceSettingsService", + "fullName": "google.cloud.resourcesettings.v1.ResourceSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/retail/apiv2/CatalogClient/AddCatalogAttribute/main.go b/internal/generated/snippets/retail/apiv2/CatalogClient/AddCatalogAttribute/main.go new file mode 100644 index 000000000000..184324780fff --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/CatalogClient/AddCatalogAttribute/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_CatalogService_AddCatalogAttribute_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.AddCatalogAttributeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#AddCatalogAttributeRequest. + } + resp, err := c.AddCatalogAttribute(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_CatalogService_AddCatalogAttribute_sync] diff --git a/internal/generated/snippets/retail/apiv2/CatalogClient/GetAttributesConfig/main.go b/internal/generated/snippets/retail/apiv2/CatalogClient/GetAttributesConfig/main.go new file mode 100644 index 000000000000..fa6938ae8a6e --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/CatalogClient/GetAttributesConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_CatalogService_GetAttributesConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.GetAttributesConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#GetAttributesConfigRequest. + } + resp, err := c.GetAttributesConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_CatalogService_GetAttributesConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2/CatalogClient/GetCompletionConfig/main.go b/internal/generated/snippets/retail/apiv2/CatalogClient/GetCompletionConfig/main.go new file mode 100644 index 000000000000..85b1a204f217 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/CatalogClient/GetCompletionConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_CatalogService_GetCompletionConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.GetCompletionConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#GetCompletionConfigRequest. + } + resp, err := c.GetCompletionConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_CatalogService_GetCompletionConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2/CatalogClient/GetDefaultBranch/main.go b/internal/generated/snippets/retail/apiv2/CatalogClient/GetDefaultBranch/main.go index bd7163db64ed..1b46d7ca4f89 100644 --- a/internal/generated/snippets/retail/apiv2/CatalogClient/GetDefaultBranch/main.go +++ b/internal/generated/snippets/retail/apiv2/CatalogClient/GetDefaultBranch/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.GetDefaultBranchRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#GetDefaultBranchRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#GetDefaultBranchRequest. } resp, err := c.GetDefaultBranch(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/CatalogClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2/CatalogClient/GetOperation/main.go new file mode 100644 index 000000000000..22e9c508b466 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/CatalogClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_CatalogService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_CatalogService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2/CatalogClient/ListCatalogs/main.go b/internal/generated/snippets/retail/apiv2/CatalogClient/ListCatalogs/main.go index 857059df368e..639a4ad2e1a7 100644 --- a/internal/generated/snippets/retail/apiv2/CatalogClient/ListCatalogs/main.go +++ b/internal/generated/snippets/retail/apiv2/CatalogClient/ListCatalogs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" "google.golang.org/api/iterator" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &retailpb.ListCatalogsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#ListCatalogsRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#ListCatalogsRequest. } it := c.ListCatalogs(ctx, req) for { diff --git a/internal/generated/snippets/retail/apiv2/CatalogClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2/CatalogClient/ListOperations/main.go new file mode 100644 index 000000000000..3528fde9f651 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/CatalogClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_CatalogService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2_generated_CatalogService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2/CatalogClient/RemoveCatalogAttribute/main.go b/internal/generated/snippets/retail/apiv2/CatalogClient/RemoveCatalogAttribute/main.go new file mode 100644 index 000000000000..5a23734dc27e --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/CatalogClient/RemoveCatalogAttribute/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_CatalogService_RemoveCatalogAttribute_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.RemoveCatalogAttributeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#RemoveCatalogAttributeRequest. + } + resp, err := c.RemoveCatalogAttribute(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_CatalogService_RemoveCatalogAttribute_sync] diff --git a/internal/generated/snippets/retail/apiv2/CatalogClient/ReplaceCatalogAttribute/main.go b/internal/generated/snippets/retail/apiv2/CatalogClient/ReplaceCatalogAttribute/main.go new file mode 100644 index 000000000000..a7cb4093d47e --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/CatalogClient/ReplaceCatalogAttribute/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_CatalogService_ReplaceCatalogAttribute_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ReplaceCatalogAttributeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#ReplaceCatalogAttributeRequest. + } + resp, err := c.ReplaceCatalogAttribute(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_CatalogService_ReplaceCatalogAttribute_sync] diff --git a/internal/generated/snippets/retail/apiv2/CatalogClient/SetDefaultBranch/main.go b/internal/generated/snippets/retail/apiv2/CatalogClient/SetDefaultBranch/main.go index 10f69d158dbb..6892092c8f20 100644 --- a/internal/generated/snippets/retail/apiv2/CatalogClient/SetDefaultBranch/main.go +++ b/internal/generated/snippets/retail/apiv2/CatalogClient/SetDefaultBranch/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.SetDefaultBranchRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#SetDefaultBranchRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#SetDefaultBranchRequest. } err = c.SetDefaultBranch(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/CatalogClient/UpdateAttributesConfig/main.go b/internal/generated/snippets/retail/apiv2/CatalogClient/UpdateAttributesConfig/main.go new file mode 100644 index 000000000000..454bf0447f9d --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/CatalogClient/UpdateAttributesConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_CatalogService_UpdateAttributesConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateAttributesConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#UpdateAttributesConfigRequest. + } + resp, err := c.UpdateAttributesConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_CatalogService_UpdateAttributesConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2/CatalogClient/UpdateCatalog/main.go b/internal/generated/snippets/retail/apiv2/CatalogClient/UpdateCatalog/main.go index cf644cf9ae83..1d41b1fe593b 100644 --- a/internal/generated/snippets/retail/apiv2/CatalogClient/UpdateCatalog/main.go +++ b/internal/generated/snippets/retail/apiv2/CatalogClient/UpdateCatalog/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCatalogClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.UpdateCatalogRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#UpdateCatalogRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#UpdateCatalogRequest. } resp, err := c.UpdateCatalog(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/CatalogClient/UpdateCompletionConfig/main.go b/internal/generated/snippets/retail/apiv2/CatalogClient/UpdateCompletionConfig/main.go new file mode 100644 index 000000000000..c3d75e27f741 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/CatalogClient/UpdateCompletionConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_CatalogService_UpdateCompletionConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateCompletionConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#UpdateCompletionConfigRequest. + } + resp, err := c.UpdateCompletionConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_CatalogService_UpdateCompletionConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2/CompletionClient/CompleteQuery/main.go b/internal/generated/snippets/retail/apiv2/CompletionClient/CompleteQuery/main.go index 35cbb1c0dd97..a3cde1868dd9 100644 --- a/internal/generated/snippets/retail/apiv2/CompletionClient/CompleteQuery/main.go +++ b/internal/generated/snippets/retail/apiv2/CompletionClient/CompleteQuery/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.CompleteQueryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#CompleteQueryRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#CompleteQueryRequest. } resp, err := c.CompleteQuery(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/CompletionClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2/CompletionClient/GetOperation/main.go new file mode 100644 index 000000000000..080072e86742 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/CompletionClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_CompletionService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCompletionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_CompletionService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2/CompletionClient/ImportCompletionData/main.go b/internal/generated/snippets/retail/apiv2/CompletionClient/ImportCompletionData/main.go index 3b95734173eb..23def2d08c3a 100644 --- a/internal/generated/snippets/retail/apiv2/CompletionClient/ImportCompletionData/main.go +++ b/internal/generated/snippets/retail/apiv2/CompletionClient/ImportCompletionData/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.ImportCompletionDataRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#ImportCompletionDataRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#ImportCompletionDataRequest. } op, err := c.ImportCompletionData(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/CompletionClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2/CompletionClient/ListOperations/main.go new file mode 100644 index 000000000000..739a82b76493 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/CompletionClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_CompletionService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCompletionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2_generated_CompletionService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2/ControlClient/CreateControl/main.go b/internal/generated/snippets/retail/apiv2/ControlClient/CreateControl/main.go new file mode 100644 index 000000000000..e5764fda1965 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/ControlClient/CreateControl/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_ControlService_CreateControl_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.CreateControlRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#CreateControlRequest. + } + resp, err := c.CreateControl(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_ControlService_CreateControl_sync] diff --git a/internal/generated/snippets/retail/apiv2/ControlClient/DeleteControl/main.go b/internal/generated/snippets/retail/apiv2/ControlClient/DeleteControl/main.go new file mode 100644 index 000000000000..60097208ae82 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/ControlClient/DeleteControl/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_ControlService_DeleteControl_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.DeleteControlRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#DeleteControlRequest. + } + err = c.DeleteControl(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END retail_v2_generated_ControlService_DeleteControl_sync] diff --git a/internal/generated/snippets/retail/apiv2/ControlClient/GetControl/main.go b/internal/generated/snippets/retail/apiv2/ControlClient/GetControl/main.go new file mode 100644 index 000000000000..17e882da93cc --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/ControlClient/GetControl/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_ControlService_GetControl_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.GetControlRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#GetControlRequest. + } + resp, err := c.GetControl(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_ControlService_GetControl_sync] diff --git a/internal/generated/snippets/retail/apiv2/ControlClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2/ControlClient/GetOperation/main.go new file mode 100644 index 000000000000..6d6d5042b5dd --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/ControlClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_ControlService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_ControlService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2/ControlClient/ListControls/main.go b/internal/generated/snippets/retail/apiv2/ControlClient/ListControls/main.go new file mode 100644 index 000000000000..4d81bba73e08 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/ControlClient/ListControls/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_ControlService_ListControls_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ListControlsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#ListControlsRequest. + } + it := c.ListControls(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2_generated_ControlService_ListControls_sync] diff --git a/internal/generated/snippets/retail/apiv2/ControlClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2/ControlClient/ListOperations/main.go new file mode 100644 index 000000000000..92fea3726db1 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/ControlClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_ControlService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2_generated_ControlService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2/ControlClient/UpdateControl/main.go b/internal/generated/snippets/retail/apiv2/ControlClient/UpdateControl/main.go new file mode 100644 index 000000000000..5e24fbcc48f0 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/ControlClient/UpdateControl/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_ControlService_UpdateControl_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateControlRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#UpdateControlRequest. + } + resp, err := c.UpdateControl(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_ControlService_UpdateControl_sync] diff --git a/internal/generated/snippets/retail/apiv2/PredictionClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2/PredictionClient/GetOperation/main.go new file mode 100644 index 000000000000..b156753d5e6b --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/PredictionClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_PredictionService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewPredictionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_PredictionService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2/PredictionClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2/PredictionClient/ListOperations/main.go new file mode 100644 index 000000000000..688c4c229e3a --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/PredictionClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_PredictionService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewPredictionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2_generated_PredictionService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2/PredictionClient/Predict/main.go b/internal/generated/snippets/retail/apiv2/PredictionClient/Predict/main.go index 289f4ecdae25..df3890b8db7f 100644 --- a/internal/generated/snippets/retail/apiv2/PredictionClient/Predict/main.go +++ b/internal/generated/snippets/retail/apiv2/PredictionClient/Predict/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewPredictionClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.PredictRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#PredictRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#PredictRequest. } resp, err := c.Predict(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/ProductClient/AddFulfillmentPlaces/main.go b/internal/generated/snippets/retail/apiv2/ProductClient/AddFulfillmentPlaces/main.go index cfcdf84bb742..b9bec7bf407c 100644 --- a/internal/generated/snippets/retail/apiv2/ProductClient/AddFulfillmentPlaces/main.go +++ b/internal/generated/snippets/retail/apiv2/ProductClient/AddFulfillmentPlaces/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.AddFulfillmentPlacesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#AddFulfillmentPlacesRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#AddFulfillmentPlacesRequest. } op, err := c.AddFulfillmentPlaces(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/ProductClient/AddLocalInventories/main.go b/internal/generated/snippets/retail/apiv2/ProductClient/AddLocalInventories/main.go index 0d567b06ca22..67e6c1fc7e1b 100644 --- a/internal/generated/snippets/retail/apiv2/ProductClient/AddLocalInventories/main.go +++ b/internal/generated/snippets/retail/apiv2/ProductClient/AddLocalInventories/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.AddLocalInventoriesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#AddLocalInventoriesRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#AddLocalInventoriesRequest. } op, err := c.AddLocalInventories(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/ProductClient/CreateProduct/main.go b/internal/generated/snippets/retail/apiv2/ProductClient/CreateProduct/main.go index 5196d441abed..af1f8324be08 100644 --- a/internal/generated/snippets/retail/apiv2/ProductClient/CreateProduct/main.go +++ b/internal/generated/snippets/retail/apiv2/ProductClient/CreateProduct/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.CreateProductRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#CreateProductRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#CreateProductRequest. } resp, err := c.CreateProduct(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/ProductClient/DeleteProduct/main.go b/internal/generated/snippets/retail/apiv2/ProductClient/DeleteProduct/main.go index 1dafaa5349b1..48c23f8a4c69 100644 --- a/internal/generated/snippets/retail/apiv2/ProductClient/DeleteProduct/main.go +++ b/internal/generated/snippets/retail/apiv2/ProductClient/DeleteProduct/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.DeleteProductRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#DeleteProductRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#DeleteProductRequest. } err = c.DeleteProduct(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/ProductClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2/ProductClient/GetOperation/main.go new file mode 100644 index 000000000000..f9061a2b2aad --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/ProductClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_ProductService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_ProductService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2/ProductClient/GetProduct/main.go b/internal/generated/snippets/retail/apiv2/ProductClient/GetProduct/main.go index 6047bacf8156..118165d8ca17 100644 --- a/internal/generated/snippets/retail/apiv2/ProductClient/GetProduct/main.go +++ b/internal/generated/snippets/retail/apiv2/ProductClient/GetProduct/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.GetProductRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#GetProductRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#GetProductRequest. } resp, err := c.GetProduct(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/ProductClient/ImportProducts/main.go b/internal/generated/snippets/retail/apiv2/ProductClient/ImportProducts/main.go index 26cf02c911a7..f4ef3def0096 100644 --- a/internal/generated/snippets/retail/apiv2/ProductClient/ImportProducts/main.go +++ b/internal/generated/snippets/retail/apiv2/ProductClient/ImportProducts/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.ImportProductsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#ImportProductsRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#ImportProductsRequest. } op, err := c.ImportProducts(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/ProductClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2/ProductClient/ListOperations/main.go new file mode 100644 index 000000000000..e3817452115b --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/ProductClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_ProductService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2_generated_ProductService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2/ProductClient/ListProducts/main.go b/internal/generated/snippets/retail/apiv2/ProductClient/ListProducts/main.go index 0ae00f2ea135..38319995ebd4 100644 --- a/internal/generated/snippets/retail/apiv2/ProductClient/ListProducts/main.go +++ b/internal/generated/snippets/retail/apiv2/ProductClient/ListProducts/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" "google.golang.org/api/iterator" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &retailpb.ListProductsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#ListProductsRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#ListProductsRequest. } it := c.ListProducts(ctx, req) for { diff --git a/internal/generated/snippets/retail/apiv2/ProductClient/RemoveFulfillmentPlaces/main.go b/internal/generated/snippets/retail/apiv2/ProductClient/RemoveFulfillmentPlaces/main.go index 7006948d65c1..3763e6a2c195 100644 --- a/internal/generated/snippets/retail/apiv2/ProductClient/RemoveFulfillmentPlaces/main.go +++ b/internal/generated/snippets/retail/apiv2/ProductClient/RemoveFulfillmentPlaces/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.RemoveFulfillmentPlacesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#RemoveFulfillmentPlacesRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#RemoveFulfillmentPlacesRequest. } op, err := c.RemoveFulfillmentPlaces(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/ProductClient/RemoveLocalInventories/main.go b/internal/generated/snippets/retail/apiv2/ProductClient/RemoveLocalInventories/main.go index afe08e018b2a..6e28a76deeeb 100644 --- a/internal/generated/snippets/retail/apiv2/ProductClient/RemoveLocalInventories/main.go +++ b/internal/generated/snippets/retail/apiv2/ProductClient/RemoveLocalInventories/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.RemoveLocalInventoriesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#RemoveLocalInventoriesRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#RemoveLocalInventoriesRequest. } op, err := c.RemoveLocalInventories(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/ProductClient/SetInventory/main.go b/internal/generated/snippets/retail/apiv2/ProductClient/SetInventory/main.go index 285ab0353e16..fb4e0079fa19 100644 --- a/internal/generated/snippets/retail/apiv2/ProductClient/SetInventory/main.go +++ b/internal/generated/snippets/retail/apiv2/ProductClient/SetInventory/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.SetInventoryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#SetInventoryRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#SetInventoryRequest. } op, err := c.SetInventory(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/ProductClient/UpdateProduct/main.go b/internal/generated/snippets/retail/apiv2/ProductClient/UpdateProduct/main.go index 5500700b41ee..113eae10ef21 100644 --- a/internal/generated/snippets/retail/apiv2/ProductClient/UpdateProduct/main.go +++ b/internal/generated/snippets/retail/apiv2/ProductClient/UpdateProduct/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewProductClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.UpdateProductRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#UpdateProductRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#UpdateProductRequest. } resp, err := c.UpdateProduct(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/SearchClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2/SearchClient/GetOperation/main.go new file mode 100644 index 000000000000..d354e57fdd86 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/SearchClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_SearchService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_SearchService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2/SearchClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2/SearchClient/ListOperations/main.go new file mode 100644 index 000000000000..b0c3a3052c5b --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/SearchClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_SearchService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2_generated_SearchService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2/SearchClient/Search/main.go b/internal/generated/snippets/retail/apiv2/SearchClient/Search/main.go index 9198233d9b9a..94e1dfd0cec0 100644 --- a/internal/generated/snippets/retail/apiv2/SearchClient/Search/main.go +++ b/internal/generated/snippets/retail/apiv2/SearchClient/Search/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" "google.golang.org/api/iterator" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewSearchClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &retailpb.SearchRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#SearchRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#SearchRequest. } it := c.Search(ctx, req) for { diff --git a/internal/generated/snippets/retail/apiv2/ServingConfigClient/AddControl/main.go b/internal/generated/snippets/retail/apiv2/ServingConfigClient/AddControl/main.go new file mode 100644 index 000000000000..6e3d53dfe4ef --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/ServingConfigClient/AddControl/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_ServingConfigService_AddControl_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.AddControlRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#AddControlRequest. + } + resp, err := c.AddControl(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_ServingConfigService_AddControl_sync] diff --git a/internal/generated/snippets/retail/apiv2/ServingConfigClient/CreateServingConfig/main.go b/internal/generated/snippets/retail/apiv2/ServingConfigClient/CreateServingConfig/main.go new file mode 100644 index 000000000000..c6a40a31f26a --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/ServingConfigClient/CreateServingConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_ServingConfigService_CreateServingConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.CreateServingConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#CreateServingConfigRequest. + } + resp, err := c.CreateServingConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_ServingConfigService_CreateServingConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2/ServingConfigClient/DeleteServingConfig/main.go b/internal/generated/snippets/retail/apiv2/ServingConfigClient/DeleteServingConfig/main.go new file mode 100644 index 000000000000..48647af35b8d --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/ServingConfigClient/DeleteServingConfig/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_ServingConfigService_DeleteServingConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.DeleteServingConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#DeleteServingConfigRequest. + } + err = c.DeleteServingConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END retail_v2_generated_ServingConfigService_DeleteServingConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2/ServingConfigClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2/ServingConfigClient/GetOperation/main.go new file mode 100644 index 000000000000..a836cbf037c2 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/ServingConfigClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_ServingConfigService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_ServingConfigService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2/ServingConfigClient/GetServingConfig/main.go b/internal/generated/snippets/retail/apiv2/ServingConfigClient/GetServingConfig/main.go new file mode 100644 index 000000000000..88bd62748993 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/ServingConfigClient/GetServingConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_ServingConfigService_GetServingConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.GetServingConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#GetServingConfigRequest. + } + resp, err := c.GetServingConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_ServingConfigService_GetServingConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2/ServingConfigClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2/ServingConfigClient/ListOperations/main.go new file mode 100644 index 000000000000..6a115340f6e9 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/ServingConfigClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_ServingConfigService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2_generated_ServingConfigService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2/ServingConfigClient/ListServingConfigs/main.go b/internal/generated/snippets/retail/apiv2/ServingConfigClient/ListServingConfigs/main.go new file mode 100644 index 000000000000..e756fadf6979 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/ServingConfigClient/ListServingConfigs/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_ServingConfigService_ListServingConfigs_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ListServingConfigsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#ListServingConfigsRequest. + } + it := c.ListServingConfigs(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2_generated_ServingConfigService_ListServingConfigs_sync] diff --git a/internal/generated/snippets/retail/apiv2/ServingConfigClient/RemoveControl/main.go b/internal/generated/snippets/retail/apiv2/ServingConfigClient/RemoveControl/main.go new file mode 100644 index 000000000000..4ee77bb806cc --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/ServingConfigClient/RemoveControl/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_ServingConfigService_RemoveControl_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.RemoveControlRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#RemoveControlRequest. + } + resp, err := c.RemoveControl(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_ServingConfigService_RemoveControl_sync] diff --git a/internal/generated/snippets/retail/apiv2/ServingConfigClient/UpdateServingConfig/main.go b/internal/generated/snippets/retail/apiv2/ServingConfigClient/UpdateServingConfig/main.go new file mode 100644 index 000000000000..f7479b4fc791 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/ServingConfigClient/UpdateServingConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_ServingConfigService_UpdateServingConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateServingConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#UpdateServingConfigRequest. + } + resp, err := c.UpdateServingConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_ServingConfigService_UpdateServingConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2/UserEventClient/CollectUserEvent/main.go b/internal/generated/snippets/retail/apiv2/UserEventClient/CollectUserEvent/main.go index dae83681d175..35660db1f271 100644 --- a/internal/generated/snippets/retail/apiv2/UserEventClient/CollectUserEvent/main.go +++ b/internal/generated/snippets/retail/apiv2/UserEventClient/CollectUserEvent/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.CollectUserEventRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#CollectUserEventRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#CollectUserEventRequest. } resp, err := c.CollectUserEvent(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/UserEventClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2/UserEventClient/GetOperation/main.go new file mode 100644 index 000000000000..9cca58b065bd --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/UserEventClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_UserEventService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewUserEventClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2_generated_UserEventService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2/UserEventClient/ImportUserEvents/main.go b/internal/generated/snippets/retail/apiv2/UserEventClient/ImportUserEvents/main.go index 2d282eb52664..f65907e42b2c 100644 --- a/internal/generated/snippets/retail/apiv2/UserEventClient/ImportUserEvents/main.go +++ b/internal/generated/snippets/retail/apiv2/UserEventClient/ImportUserEvents/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.ImportUserEventsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#ImportUserEventsRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#ImportUserEventsRequest. } op, err := c.ImportUserEvents(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/UserEventClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2/UserEventClient/ListOperations/main.go new file mode 100644 index 000000000000..a98fd316fa1a --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/UserEventClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2_generated_UserEventService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewUserEventClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2_generated_UserEventService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2/UserEventClient/PurgeUserEvents/main.go b/internal/generated/snippets/retail/apiv2/UserEventClient/PurgeUserEvents/main.go index 8467b9aab8a3..4e794cef9a78 100644 --- a/internal/generated/snippets/retail/apiv2/UserEventClient/PurgeUserEvents/main.go +++ b/internal/generated/snippets/retail/apiv2/UserEventClient/PurgeUserEvents/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.PurgeUserEventsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#PurgeUserEventsRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#PurgeUserEventsRequest. } op, err := c.PurgeUserEvents(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/UserEventClient/RejoinUserEvents/main.go b/internal/generated/snippets/retail/apiv2/UserEventClient/RejoinUserEvents/main.go index 333656fd067a..c872d9f29fbe 100644 --- a/internal/generated/snippets/retail/apiv2/UserEventClient/RejoinUserEvents/main.go +++ b/internal/generated/snippets/retail/apiv2/UserEventClient/RejoinUserEvents/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.RejoinUserEventsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#RejoinUserEventsRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#RejoinUserEventsRequest. } op, err := c.RejoinUserEvents(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/UserEventClient/WriteUserEvent/main.go b/internal/generated/snippets/retail/apiv2/UserEventClient/WriteUserEvent/main.go index 4dd635e27d9e..ae3359502c5c 100644 --- a/internal/generated/snippets/retail/apiv2/UserEventClient/WriteUserEvent/main.go +++ b/internal/generated/snippets/retail/apiv2/UserEventClient/WriteUserEvent/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" retail "cloud.google.com/go/retail/apiv2" - retailpb "google.golang.org/genproto/googleapis/cloud/retail/v2" + retailpb "cloud.google.com/go/retail/apiv2/retailpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := retail.NewUserEventClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &retailpb.WriteUserEventRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/retail/v2#WriteUserEventRequest. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2/retailpb#WriteUserEventRequest. } resp, err := c.WriteUserEvent(ctx, req) if err != nil { diff --git a/internal/generated/snippets/retail/apiv2/snippet_metadata.google.cloud.retail.v2.json b/internal/generated/snippets/retail/apiv2/snippet_metadata.google.cloud.retail.v2.json new file mode 100644 index 000000000000..3bd3f6d1adab --- /dev/null +++ b/internal/generated/snippets/retail/apiv2/snippet_metadata.google.cloud.retail.v2.json @@ -0,0 +1,2725 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/retail/apiv2", + "version": "1.12.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.retail.v2", + "version": "v2" + } + ] + }, + "snippets": [ + { + "regionTag": "retail_v2_generated_CatalogService_AddCatalogAttribute_sync", + "title": "retail AddCatalogAttribute Sample", + "description": "AddCatalogAttribute adds the specified\nCatalogAttribute to the\nAttributesConfig.\n\nIf the CatalogAttribute to add\nalready exists, an ALREADY_EXISTS error is returned.", + "file": "CatalogClient/AddCatalogAttribute/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AddCatalogAttribute", + "fullName": "google.cloud.retail.v2.CatalogClient.AddCatalogAttribute", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.AddCatalogAttributeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.AttributesConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2.CatalogClient" + }, + "method": { + "shortName": "AddCatalogAttribute", + "fullName": "google.cloud.retail.v2.CatalogService.AddCatalogAttribute", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_CatalogService_GetAttributesConfig_sync", + "title": "retail GetAttributesConfig Sample", + "description": "GetAttributesConfig gets an AttributesConfig.", + "file": "CatalogClient/GetAttributesConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetAttributesConfig", + "fullName": "google.cloud.retail.v2.CatalogClient.GetAttributesConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.GetAttributesConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.AttributesConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2.CatalogClient" + }, + "method": { + "shortName": "GetAttributesConfig", + "fullName": "google.cloud.retail.v2.CatalogService.GetAttributesConfig", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_CatalogService_GetCompletionConfig_sync", + "title": "retail GetCompletionConfig Sample", + "description": "GetCompletionConfig gets a CompletionConfig.", + "file": "CatalogClient/GetCompletionConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCompletionConfig", + "fullName": "google.cloud.retail.v2.CatalogClient.GetCompletionConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.GetCompletionConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.CompletionConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2.CatalogClient" + }, + "method": { + "shortName": "GetCompletionConfig", + "fullName": "google.cloud.retail.v2.CatalogService.GetCompletionConfig", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_CatalogService_GetDefaultBranch_sync", + "title": "retail GetDefaultBranch Sample", + "description": "GetDefaultBranch get which branch is currently default branch set by\nCatalogService.SetDefaultBranch\nmethod under a specified parent catalog.", + "file": "CatalogClient/GetDefaultBranch/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetDefaultBranch", + "fullName": "google.cloud.retail.v2.CatalogClient.GetDefaultBranch", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.GetDefaultBranchRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.GetDefaultBranchResponse", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2.CatalogClient" + }, + "method": { + "shortName": "GetDefaultBranch", + "fullName": "google.cloud.retail.v2.CatalogService.GetDefaultBranch", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_CatalogService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "CatalogClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2.CatalogClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2.CatalogClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2.CatalogService.GetOperation", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_CatalogService_ListCatalogs_sync", + "title": "retail ListCatalogs Sample", + "description": "ListCatalogs lists all the Catalogs associated with\nthe project.", + "file": "CatalogClient/ListCatalogs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCatalogs", + "fullName": "google.cloud.retail.v2.CatalogClient.ListCatalogs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ListCatalogsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CatalogIterator", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2.CatalogClient" + }, + "method": { + "shortName": "ListCatalogs", + "fullName": "google.cloud.retail.v2.CatalogService.ListCatalogs", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_CatalogService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "CatalogClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2.CatalogClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2.CatalogClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2.CatalogService.ListOperations", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_CatalogService_RemoveCatalogAttribute_sync", + "title": "retail RemoveCatalogAttribute Sample", + "description": "RemoveCatalogAttribute removes the specified\nCatalogAttribute from the\nAttributesConfig.\n\nIf the CatalogAttribute to\nremove does not exist, a NOT_FOUND error is returned.", + "file": "CatalogClient/RemoveCatalogAttribute/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RemoveCatalogAttribute", + "fullName": "google.cloud.retail.v2.CatalogClient.RemoveCatalogAttribute", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.RemoveCatalogAttributeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.AttributesConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2.CatalogClient" + }, + "method": { + "shortName": "RemoveCatalogAttribute", + "fullName": "google.cloud.retail.v2.CatalogService.RemoveCatalogAttribute", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_CatalogService_ReplaceCatalogAttribute_sync", + "title": "retail ReplaceCatalogAttribute Sample", + "description": "ReplaceCatalogAttribute replaces the specified\nCatalogAttribute in the\nAttributesConfig by updating the\ncatalog attribute with the same\nCatalogAttribute.key.\n\nIf the CatalogAttribute to\nreplace does not exist, a NOT_FOUND error is returned.", + "file": "CatalogClient/ReplaceCatalogAttribute/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReplaceCatalogAttribute", + "fullName": "google.cloud.retail.v2.CatalogClient.ReplaceCatalogAttribute", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ReplaceCatalogAttributeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.AttributesConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2.CatalogClient" + }, + "method": { + "shortName": "ReplaceCatalogAttribute", + "fullName": "google.cloud.retail.v2.CatalogService.ReplaceCatalogAttribute", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_CatalogService_SetDefaultBranch_sync", + "title": "retail SetDefaultBranch Sample", + "description": "SetDefaultBranch set a specified branch id as default branch. API methods such as\nSearchService.Search,\nProductService.GetProduct,\nProductService.ListProducts\nwill treat requests using “default_branch” to the actual branch id set as\ndefault.\n\nFor example, if projects/*/locations/*/catalogs/*/branches/1 is set as\ndefault, setting\nSearchRequest.branch to\nprojects/*/locations/*/catalogs/*/branches/default_branch is equivalent\nto setting\nSearchRequest.branch to\nprojects/*/locations/*/catalogs/*/branches/1.\n\nUsing multiple branches can be useful when developers would like\nto have a staging branch to test and verify for future usage. When it\nbecomes ready, developers switch on the staging branch using this API while\nkeeping using projects/*/locations/*/catalogs/*/branches/default_branch\nas SearchRequest.branch to\nroute the traffic to this staging branch.\n\nCAUTION: If you have live predict/search traffic, switching the default\nbranch could potentially cause outages if the ID space of the new branch is\nvery different from the old one.\n\nMore specifically: \n\n\tPredictionService will only return product IDs from branch {newBranch}.\n\n\tSearchService will only return product IDs from branch {newBranch}\n\t(if branch is not explicitly set).\n\n\tUserEventService will only join events with products from branch\n\t{newBranch}.", + "file": "CatalogClient/SetDefaultBranch/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetDefaultBranch", + "fullName": "google.cloud.retail.v2.CatalogClient.SetDefaultBranch", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.SetDefaultBranchRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2.CatalogClient" + }, + "method": { + "shortName": "SetDefaultBranch", + "fullName": "google.cloud.retail.v2.CatalogService.SetDefaultBranch", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_CatalogService_UpdateAttributesConfig_sync", + "title": "retail UpdateAttributesConfig Sample", + "description": "UpdateAttributesConfig updates the AttributesConfig.\n\nThe catalog attributes in the request will be updated in the catalog, or\ninserted if they do not exist. Existing catalog attributes not included in\nthe request will remain unchanged. Attributes that are assigned to\nproducts, but do not exist at the catalog level, are always included in the\nresponse. The product attribute is assigned default values for missing\ncatalog attribute fields, e.g., searchable and dynamic facetable options.", + "file": "CatalogClient/UpdateAttributesConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateAttributesConfig", + "fullName": "google.cloud.retail.v2.CatalogClient.UpdateAttributesConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateAttributesConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.AttributesConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2.CatalogClient" + }, + "method": { + "shortName": "UpdateAttributesConfig", + "fullName": "google.cloud.retail.v2.CatalogService.UpdateAttributesConfig", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_CatalogService_UpdateCatalog_sync", + "title": "retail UpdateCatalog Sample", + "description": "UpdateCatalog updates the Catalogs.", + "file": "CatalogClient/UpdateCatalog/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCatalog", + "fullName": "google.cloud.retail.v2.CatalogClient.UpdateCatalog", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateCatalogRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Catalog", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2.CatalogClient" + }, + "method": { + "shortName": "UpdateCatalog", + "fullName": "google.cloud.retail.v2.CatalogService.UpdateCatalog", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_CatalogService_UpdateCompletionConfig_sync", + "title": "retail UpdateCompletionConfig Sample", + "description": "UpdateCompletionConfig updates the CompletionConfigs.", + "file": "CatalogClient/UpdateCompletionConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCompletionConfig", + "fullName": "google.cloud.retail.v2.CatalogClient.UpdateCompletionConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateCompletionConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.CompletionConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2.CatalogClient" + }, + "method": { + "shortName": "UpdateCompletionConfig", + "fullName": "google.cloud.retail.v2.CatalogService.UpdateCompletionConfig", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_CompletionService_CompleteQuery_sync", + "title": "retail CompleteQuery Sample", + "description": "CompleteQuery completes the specified prefix with keyword suggestions.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "CompletionClient/CompleteQuery/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CompleteQuery", + "fullName": "google.cloud.retail.v2.CompletionClient.CompleteQuery", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.CompleteQueryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.CompleteQueryResponse", + "client": { + "shortName": "CompletionClient", + "fullName": "google.cloud.retail.v2.CompletionClient" + }, + "method": { + "shortName": "CompleteQuery", + "fullName": "google.cloud.retail.v2.CompletionService.CompleteQuery", + "service": { + "shortName": "CompletionService", + "fullName": "google.cloud.retail.v2.CompletionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_CompletionService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "CompletionClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2.CompletionClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "CompletionClient", + "fullName": "google.cloud.retail.v2.CompletionClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2.CompletionService.GetOperation", + "service": { + "shortName": "CompletionService", + "fullName": "google.cloud.retail.v2.CompletionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_CompletionService_ImportCompletionData_sync", + "title": "retail ImportCompletionData Sample", + "description": "ImportCompletionData bulk import of processed completion dataset.\n\nRequest processing is asynchronous. Partial updating is not supported.\n\nThe operation is successfully finished only after the imported suggestions\nare indexed successfully and ready for serving. The process takes hours.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "CompletionClient/ImportCompletionData/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ImportCompletionData", + "fullName": "google.cloud.retail.v2.CompletionClient.ImportCompletionData", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ImportCompletionDataRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ImportCompletionDataOperation", + "client": { + "shortName": "CompletionClient", + "fullName": "google.cloud.retail.v2.CompletionClient" + }, + "method": { + "shortName": "ImportCompletionData", + "fullName": "google.cloud.retail.v2.CompletionService.ImportCompletionData", + "service": { + "shortName": "CompletionService", + "fullName": "google.cloud.retail.v2.CompletionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_CompletionService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "CompletionClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2.CompletionClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "CompletionClient", + "fullName": "google.cloud.retail.v2.CompletionClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2.CompletionService.ListOperations", + "service": { + "shortName": "CompletionService", + "fullName": "google.cloud.retail.v2.CompletionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ControlService_CreateControl_sync", + "title": "retail CreateControl Sample", + "description": "CreateControl creates a Control.\n\nIf the Control to create already exists,\nan ALREADY_EXISTS error is returned.", + "file": "ControlClient/CreateControl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateControl", + "fullName": "google.cloud.retail.v2.ControlClient.CreateControl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.CreateControlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Control", + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2.ControlClient" + }, + "method": { + "shortName": "CreateControl", + "fullName": "google.cloud.retail.v2.ControlService.CreateControl", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ControlService_DeleteControl_sync", + "title": "retail DeleteControl Sample", + "description": "DeleteControl deletes a Control.\n\nIf the Control to delete does not exist,\na NOT_FOUND error is returned.", + "file": "ControlClient/DeleteControl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteControl", + "fullName": "google.cloud.retail.v2.ControlClient.DeleteControl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.DeleteControlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2.ControlClient" + }, + "method": { + "shortName": "DeleteControl", + "fullName": "google.cloud.retail.v2.ControlService.DeleteControl", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ControlService_GetControl_sync", + "title": "retail GetControl Sample", + "description": "GetControl gets a Control.", + "file": "ControlClient/GetControl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetControl", + "fullName": "google.cloud.retail.v2.ControlClient.GetControl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.GetControlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Control", + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2.ControlClient" + }, + "method": { + "shortName": "GetControl", + "fullName": "google.cloud.retail.v2.ControlService.GetControl", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ControlService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "ControlClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2.ControlClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2.ControlClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2.ControlService.GetOperation", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ControlService_ListControls_sync", + "title": "retail ListControls Sample", + "description": "ListControls lists all Controls by their parent\nCatalog.", + "file": "ControlClient/ListControls/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListControls", + "fullName": "google.cloud.retail.v2.ControlClient.ListControls", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ListControlsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ControlIterator", + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2.ControlClient" + }, + "method": { + "shortName": "ListControls", + "fullName": "google.cloud.retail.v2.ControlService.ListControls", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ControlService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "ControlClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2.ControlClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2.ControlClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2.ControlService.ListOperations", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ControlService_UpdateControl_sync", + "title": "retail UpdateControl Sample", + "description": "UpdateControl updates a Control.\n\nControl cannot be set to a different\noneof field, if so an INVALID_ARGUMENT is returned. If the\nControl to update does not exist, a\nNOT_FOUND error is returned.", + "file": "ControlClient/UpdateControl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateControl", + "fullName": "google.cloud.retail.v2.ControlClient.UpdateControl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateControlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Control", + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2.ControlClient" + }, + "method": { + "shortName": "UpdateControl", + "fullName": "google.cloud.retail.v2.ControlService.UpdateControl", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_PredictionService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "PredictionClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2.PredictionClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "PredictionClient", + "fullName": "google.cloud.retail.v2.PredictionClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2.PredictionService.GetOperation", + "service": { + "shortName": "PredictionService", + "fullName": "google.cloud.retail.v2.PredictionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_PredictionService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "PredictionClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2.PredictionClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "PredictionClient", + "fullName": "google.cloud.retail.v2.PredictionClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2.PredictionService.ListOperations", + "service": { + "shortName": "PredictionService", + "fullName": "google.cloud.retail.v2.PredictionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_PredictionService_Predict_sync", + "title": "retail Predict Sample", + "description": "Predict makes a recommendation prediction.", + "file": "PredictionClient/Predict/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Predict", + "fullName": "google.cloud.retail.v2.PredictionClient.Predict", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.PredictRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.PredictResponse", + "client": { + "shortName": "PredictionClient", + "fullName": "google.cloud.retail.v2.PredictionClient" + }, + "method": { + "shortName": "Predict", + "fullName": "google.cloud.retail.v2.PredictionService.Predict", + "service": { + "shortName": "PredictionService", + "fullName": "google.cloud.retail.v2.PredictionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ProductService_AddFulfillmentPlaces_sync", + "title": "retail AddFulfillmentPlaces Sample", + "description": "AddFulfillmentPlaces incrementally adds place IDs to\nProduct.fulfillment_info.place_ids.\n\nThis process is asynchronous and does not require the\nProduct to exist before updating\nfulfillment information. If the request is valid, the update will be\nenqueued and processed downstream. As a consequence, when a response is\nreturned, the added place IDs are not immediately manifested in the\nProduct queried by\nProductService.GetProduct\nor\nProductService.ListProducts.\n\nThe returned Operations will be obsolete\nafter 1 day, and GetOperation\nAPI will return NOT_FOUND afterwards.\n\nIf conflicting updates are issued, the\nOperations associated with the stale\nupdates will not be marked as done\nuntil being obsolete.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "ProductClient/AddFulfillmentPlaces/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AddFulfillmentPlaces", + "fullName": "google.cloud.retail.v2.ProductClient.AddFulfillmentPlaces", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.AddFulfillmentPlacesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AddFulfillmentPlacesOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2.ProductClient" + }, + "method": { + "shortName": "AddFulfillmentPlaces", + "fullName": "google.cloud.retail.v2.ProductService.AddFulfillmentPlaces", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ProductService_AddLocalInventories_sync", + "title": "retail AddLocalInventories Sample", + "description": "AddLocalInventories updates local inventory information for a\nProduct at a list of places, while\nrespecting the last update timestamps of each inventory field.\n\nThis process is asynchronous and does not require the\nProduct to exist before updating\ninventory information. If the request is valid, the update will be enqueued\nand processed downstream. As a consequence, when a response is returned,\nupdates are not immediately manifested in the\nProduct queried by\nProductService.GetProduct\nor\nProductService.ListProducts.\n\nLocal inventory information can only be modified using this method.\nProductService.CreateProduct\nand\nProductService.UpdateProduct\nhas no effect on local inventories.\n\nThe returned Operations will be obsolete\nafter 1 day, and GetOperation\nAPI will return NOT_FOUND afterwards.\n\nIf conflicting updates are issued, the\nOperations associated with the stale\nupdates will not be marked as done\nuntil being obsolete.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "ProductClient/AddLocalInventories/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AddLocalInventories", + "fullName": "google.cloud.retail.v2.ProductClient.AddLocalInventories", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.AddLocalInventoriesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AddLocalInventoriesOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2.ProductClient" + }, + "method": { + "shortName": "AddLocalInventories", + "fullName": "google.cloud.retail.v2.ProductService.AddLocalInventories", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ProductService_CreateProduct_sync", + "title": "retail CreateProduct Sample", + "description": "CreateProduct creates a Product.", + "file": "ProductClient/CreateProduct/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateProduct", + "fullName": "google.cloud.retail.v2.ProductClient.CreateProduct", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.CreateProductRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Product", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2.ProductClient" + }, + "method": { + "shortName": "CreateProduct", + "fullName": "google.cloud.retail.v2.ProductService.CreateProduct", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ProductService_DeleteProduct_sync", + "title": "retail DeleteProduct Sample", + "description": "DeleteProduct deletes a Product.", + "file": "ProductClient/DeleteProduct/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteProduct", + "fullName": "google.cloud.retail.v2.ProductClient.DeleteProduct", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.DeleteProductRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2.ProductClient" + }, + "method": { + "shortName": "DeleteProduct", + "fullName": "google.cloud.retail.v2.ProductService.DeleteProduct", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ProductService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "ProductClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2.ProductClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2.ProductClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2.ProductService.GetOperation", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ProductService_GetProduct_sync", + "title": "retail GetProduct Sample", + "description": "GetProduct gets a Product.", + "file": "ProductClient/GetProduct/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetProduct", + "fullName": "google.cloud.retail.v2.ProductClient.GetProduct", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.GetProductRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Product", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2.ProductClient" + }, + "method": { + "shortName": "GetProduct", + "fullName": "google.cloud.retail.v2.ProductService.GetProduct", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ProductService_ImportProducts_sync", + "title": "retail ImportProducts Sample", + "description": "ImportProducts bulk import of multiple Products.\n\nRequest processing may be synchronous.\nNon-existing items are created.\n\nNote that it is possible for a subset of the\nProducts to be successfully updated.", + "file": "ProductClient/ImportProducts/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ImportProducts", + "fullName": "google.cloud.retail.v2.ProductClient.ImportProducts", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ImportProductsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ImportProductsOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2.ProductClient" + }, + "method": { + "shortName": "ImportProducts", + "fullName": "google.cloud.retail.v2.ProductService.ImportProducts", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ProductService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "ProductClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2.ProductClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2.ProductClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2.ProductService.ListOperations", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ProductService_ListProducts_sync", + "title": "retail ListProducts Sample", + "description": "ListProducts gets a list of Products.", + "file": "ProductClient/ListProducts/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListProducts", + "fullName": "google.cloud.retail.v2.ProductClient.ListProducts", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ListProductsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ProductIterator", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2.ProductClient" + }, + "method": { + "shortName": "ListProducts", + "fullName": "google.cloud.retail.v2.ProductService.ListProducts", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ProductService_RemoveFulfillmentPlaces_sync", + "title": "retail RemoveFulfillmentPlaces Sample", + "description": "RemoveFulfillmentPlaces incrementally removes place IDs from a\nProduct.fulfillment_info.place_ids.\n\nThis process is asynchronous and does not require the\nProduct to exist before updating\nfulfillment information. If the request is valid, the update will be\nenqueued and processed downstream. As a consequence, when a response is\nreturned, the removed place IDs are not immediately manifested in the\nProduct queried by\nProductService.GetProduct\nor\nProductService.ListProducts.\n\nThe returned Operations will be obsolete\nafter 1 day, and GetOperation\nAPI will return NOT_FOUND afterwards.\n\nIf conflicting updates are issued, the\nOperations associated with the stale\nupdates will not be marked as done\nuntil being obsolete.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "ProductClient/RemoveFulfillmentPlaces/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RemoveFulfillmentPlaces", + "fullName": "google.cloud.retail.v2.ProductClient.RemoveFulfillmentPlaces", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.RemoveFulfillmentPlacesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RemoveFulfillmentPlacesOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2.ProductClient" + }, + "method": { + "shortName": "RemoveFulfillmentPlaces", + "fullName": "google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ProductService_RemoveLocalInventories_sync", + "title": "retail RemoveLocalInventories Sample", + "description": "RemoveLocalInventories remove local inventory information for a\nProduct at a list of places at a removal\ntimestamp.\n\nThis process is asynchronous. If the request is valid, the removal will be\nenqueued and processed downstream. As a consequence, when a response is\nreturned, removals are not immediately manifested in the\nProduct queried by\nProductService.GetProduct\nor\nProductService.ListProducts.\n\nLocal inventory information can only be removed using this method.\nProductService.CreateProduct\nand\nProductService.UpdateProduct\nhas no effect on local inventories.\n\nThe returned Operations will be obsolete\nafter 1 day, and GetOperation\nAPI will return NOT_FOUND afterwards.\n\nIf conflicting updates are issued, the\nOperations associated with the stale\nupdates will not be marked as done\nuntil being obsolete.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "ProductClient/RemoveLocalInventories/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RemoveLocalInventories", + "fullName": "google.cloud.retail.v2.ProductClient.RemoveLocalInventories", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.RemoveLocalInventoriesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RemoveLocalInventoriesOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2.ProductClient" + }, + "method": { + "shortName": "RemoveLocalInventories", + "fullName": "google.cloud.retail.v2.ProductService.RemoveLocalInventories", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ProductService_SetInventory_sync", + "title": "retail SetInventory Sample", + "description": "SetInventory updates inventory information for a\nProduct while respecting the last update\ntimestamps of each inventory field.\n\nThis process is asynchronous and does not require the\nProduct to exist before updating\nfulfillment information. If the request is valid, the update is enqueued\nand processed downstream. As a consequence, when a response is returned,\nupdates are not immediately manifested in the\nProduct queried by\nProductService.GetProduct\nor\nProductService.ListProducts.\n\nWhen inventory is updated with\nProductService.CreateProduct\nand\nProductService.UpdateProduct,\nthe specified inventory field value(s) overwrite any existing value(s)\nwhile ignoring the last update time for this field. Furthermore, the last\nupdate times for the specified inventory fields are overwritten by the\ntimes of the\nProductService.CreateProduct\nor\nProductService.UpdateProduct\nrequest.\n\nIf no inventory fields are set in\nCreateProductRequest.product,\nthen any pre-existing inventory information for this product is used.\n\nIf no inventory fields are set in\nSetInventoryRequest.set_mask,\nthen any existing inventory information is preserved.\n\nPre-existing inventory information can only be updated with\nProductService.SetInventory,\nProductService.AddFulfillmentPlaces,\nand\nProductService.RemoveFulfillmentPlaces.\n\nThe returned Operations is obsolete after\none day, and the GetOperation\nAPI returns NOT_FOUND afterwards.\n\nIf conflicting updates are issued, the\nOperations associated with the stale\nupdates are not marked as done until\nthey are obsolete.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "ProductClient/SetInventory/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetInventory", + "fullName": "google.cloud.retail.v2.ProductClient.SetInventory", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.SetInventoryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SetInventoryOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2.ProductClient" + }, + "method": { + "shortName": "SetInventory", + "fullName": "google.cloud.retail.v2.ProductService.SetInventory", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ProductService_UpdateProduct_sync", + "title": "retail UpdateProduct Sample", + "description": "UpdateProduct updates a Product.", + "file": "ProductClient/UpdateProduct/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateProduct", + "fullName": "google.cloud.retail.v2.ProductClient.UpdateProduct", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateProductRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Product", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2.ProductClient" + }, + "method": { + "shortName": "UpdateProduct", + "fullName": "google.cloud.retail.v2.ProductService.UpdateProduct", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_SearchService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "SearchClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2.SearchClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "SearchClient", + "fullName": "google.cloud.retail.v2.SearchClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2.SearchService.GetOperation", + "service": { + "shortName": "SearchService", + "fullName": "google.cloud.retail.v2.SearchService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_SearchService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "SearchClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2.SearchClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "SearchClient", + "fullName": "google.cloud.retail.v2.SearchClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2.SearchService.ListOperations", + "service": { + "shortName": "SearchService", + "fullName": "google.cloud.retail.v2.SearchService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_SearchService_Search_sync", + "title": "retail Search Sample", + "description": "Search performs a search.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "SearchClient/Search/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Search", + "fullName": "google.cloud.retail.v2.SearchClient.Search", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.SearchRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SearchResponse_SearchResultIterator", + "client": { + "shortName": "SearchClient", + "fullName": "google.cloud.retail.v2.SearchClient" + }, + "method": { + "shortName": "Search", + "fullName": "google.cloud.retail.v2.SearchService.Search", + "service": { + "shortName": "SearchService", + "fullName": "google.cloud.retail.v2.SearchService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ServingConfigService_AddControl_sync", + "title": "retail AddControl Sample", + "description": "AddControl enables a Control on the specified ServingConfig.\nThe control is added in the last position of the list of controls\nit belongs to (e.g. if it’s a facet spec control it will be applied\nin the last position of servingConfig.facetSpecIds)\nReturns a ALREADY_EXISTS error if the control has already been applied.\nReturns a FAILED_PRECONDITION error if the addition could exceed maximum\nnumber of control allowed for that type of control.", + "file": "ServingConfigClient/AddControl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AddControl", + "fullName": "google.cloud.retail.v2.ServingConfigClient.AddControl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.AddControlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.ServingConfig", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2.ServingConfigClient" + }, + "method": { + "shortName": "AddControl", + "fullName": "google.cloud.retail.v2.ServingConfigService.AddControl", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ServingConfigService_CreateServingConfig_sync", + "title": "retail CreateServingConfig Sample", + "description": "CreateServingConfig creates a ServingConfig.\n\nA maximum of 100 ServingConfigs are\nallowed in a Catalog, otherwise a\nFAILED_PRECONDITION error is returned.", + "file": "ServingConfigClient/CreateServingConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateServingConfig", + "fullName": "google.cloud.retail.v2.ServingConfigClient.CreateServingConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.CreateServingConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.ServingConfig", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2.ServingConfigClient" + }, + "method": { + "shortName": "CreateServingConfig", + "fullName": "google.cloud.retail.v2.ServingConfigService.CreateServingConfig", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ServingConfigService_DeleteServingConfig_sync", + "title": "retail DeleteServingConfig Sample", + "description": "DeleteServingConfig deletes a ServingConfig.\n\nReturns a NotFound error if the ServingConfig does not exist.", + "file": "ServingConfigClient/DeleteServingConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteServingConfig", + "fullName": "google.cloud.retail.v2.ServingConfigClient.DeleteServingConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.DeleteServingConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2.ServingConfigClient" + }, + "method": { + "shortName": "DeleteServingConfig", + "fullName": "google.cloud.retail.v2.ServingConfigService.DeleteServingConfig", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ServingConfigService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "ServingConfigClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2.ServingConfigClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2.ServingConfigClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2.ServingConfigService.GetOperation", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ServingConfigService_GetServingConfig_sync", + "title": "retail GetServingConfig Sample", + "description": "GetServingConfig gets a ServingConfig.\n\nReturns a NotFound error if the ServingConfig does not exist.", + "file": "ServingConfigClient/GetServingConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetServingConfig", + "fullName": "google.cloud.retail.v2.ServingConfigClient.GetServingConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.GetServingConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.ServingConfig", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2.ServingConfigClient" + }, + "method": { + "shortName": "GetServingConfig", + "fullName": "google.cloud.retail.v2.ServingConfigService.GetServingConfig", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ServingConfigService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "ServingConfigClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2.ServingConfigClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2.ServingConfigClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2.ServingConfigService.ListOperations", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ServingConfigService_ListServingConfigs_sync", + "title": "retail ListServingConfigs Sample", + "description": "ListServingConfigs lists all ServingConfigs linked to this catalog.", + "file": "ServingConfigClient/ListServingConfigs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListServingConfigs", + "fullName": "google.cloud.retail.v2.ServingConfigClient.ListServingConfigs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ListServingConfigsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ServingConfigIterator", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2.ServingConfigClient" + }, + "method": { + "shortName": "ListServingConfigs", + "fullName": "google.cloud.retail.v2.ServingConfigService.ListServingConfigs", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ServingConfigService_RemoveControl_sync", + "title": "retail RemoveControl Sample", + "description": "RemoveControl disables a Control on the specified ServingConfig.\nThe control is removed from the ServingConfig.\nReturns a NOT_FOUND error if the Control is not enabled for the\nServingConfig.", + "file": "ServingConfigClient/RemoveControl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RemoveControl", + "fullName": "google.cloud.retail.v2.ServingConfigClient.RemoveControl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.RemoveControlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.ServingConfig", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2.ServingConfigClient" + }, + "method": { + "shortName": "RemoveControl", + "fullName": "google.cloud.retail.v2.ServingConfigService.RemoveControl", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_ServingConfigService_UpdateServingConfig_sync", + "title": "retail UpdateServingConfig Sample", + "description": "UpdateServingConfig updates a ServingConfig.", + "file": "ServingConfigClient/UpdateServingConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateServingConfig", + "fullName": "google.cloud.retail.v2.ServingConfigClient.UpdateServingConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateServingConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.ServingConfig", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2.ServingConfigClient" + }, + "method": { + "shortName": "UpdateServingConfig", + "fullName": "google.cloud.retail.v2.ServingConfigService.UpdateServingConfig", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_UserEventService_CollectUserEvent_sync", + "title": "retail CollectUserEvent Sample", + "description": "CollectUserEvent writes a single user event from the browser. This uses a GET request to\ndue to browser restriction of POST-ing to a 3rd party domain.\n\nThis method is used only by the Retail API JavaScript pixel and Google Tag\nManager. Users should not call this method directly.", + "file": "UserEventClient/CollectUserEvent/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CollectUserEvent", + "fullName": "google.cloud.retail.v2.UserEventClient.CollectUserEvent", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.CollectUserEventRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "httpbodypb.HttpBody", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2.UserEventClient" + }, + "method": { + "shortName": "CollectUserEvent", + "fullName": "google.cloud.retail.v2.UserEventService.CollectUserEvent", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_UserEventService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "UserEventClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2.UserEventClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2.UserEventClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2.UserEventService.GetOperation", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_UserEventService_ImportUserEvents_sync", + "title": "retail ImportUserEvents Sample", + "description": "ImportUserEvents bulk import of User events. Request processing might be\nsynchronous. Events that already exist are skipped.\nUse this method for backfilling historical user events.\n\nOperation.response is of type ImportResponse. Note that it is\npossible for a subset of the items to be successfully inserted.\nOperation.metadata is of type ImportMetadata.", + "file": "UserEventClient/ImportUserEvents/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ImportUserEvents", + "fullName": "google.cloud.retail.v2.UserEventClient.ImportUserEvents", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ImportUserEventsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ImportUserEventsOperation", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2.UserEventClient" + }, + "method": { + "shortName": "ImportUserEvents", + "fullName": "google.cloud.retail.v2.UserEventService.ImportUserEvents", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_UserEventService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "UserEventClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2.UserEventClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2.UserEventClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2.UserEventService.ListOperations", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_UserEventService_PurgeUserEvents_sync", + "title": "retail PurgeUserEvents Sample", + "description": "PurgeUserEvents deletes permanently all user events specified by the filter provided.\nDepending on the number of events specified by the filter, this operation\ncould take hours or days to complete. To test a filter, use the list\ncommand first.", + "file": "UserEventClient/PurgeUserEvents/main.go", + "language": "GO", + "clientMethod": { + "shortName": "PurgeUserEvents", + "fullName": "google.cloud.retail.v2.UserEventClient.PurgeUserEvents", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.PurgeUserEventsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PurgeUserEventsOperation", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2.UserEventClient" + }, + "method": { + "shortName": "PurgeUserEvents", + "fullName": "google.cloud.retail.v2.UserEventService.PurgeUserEvents", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_UserEventService_RejoinUserEvents_sync", + "title": "retail RejoinUserEvents Sample", + "description": "RejoinUserEvents starts a user-event rejoin operation with latest product catalog. Events\nare not annotated with detailed product information for products that are\nmissing from the catalog when the user event is ingested. These\nevents are stored as unjoined events with limited usage on training and\nserving. You can use this method to start a join operation on specified\nevents with the latest version of product catalog. You can also use this\nmethod to correct events joined with the wrong product catalog. A rejoin\noperation can take hours or days to complete.", + "file": "UserEventClient/RejoinUserEvents/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RejoinUserEvents", + "fullName": "google.cloud.retail.v2.UserEventClient.RejoinUserEvents", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.RejoinUserEventsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RejoinUserEventsOperation", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2.UserEventClient" + }, + "method": { + "shortName": "RejoinUserEvents", + "fullName": "google.cloud.retail.v2.UserEventService.RejoinUserEvents", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2_generated_UserEventService_WriteUserEvent_sync", + "title": "retail WriteUserEvent Sample", + "description": "WriteUserEvent writes a single user event.", + "file": "UserEventClient/WriteUserEvent/main.go", + "language": "GO", + "clientMethod": { + "shortName": "WriteUserEvent", + "fullName": "google.cloud.retail.v2.UserEventClient.WriteUserEvent", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.WriteUserEventRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.UserEvent", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2.UserEventClient" + }, + "method": { + "shortName": "WriteUserEvent", + "fullName": "google.cloud.retail.v2.UserEventService.WriteUserEvent", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/retail/apiv2alpha/CatalogClient/AddCatalogAttribute/main.go b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/AddCatalogAttribute/main.go new file mode 100644 index 000000000000..adb7a7747372 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/AddCatalogAttribute/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_CatalogService_AddCatalogAttribute_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.AddCatalogAttributeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#AddCatalogAttributeRequest. + } + resp, err := c.AddCatalogAttribute(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_CatalogService_AddCatalogAttribute_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/CatalogClient/BatchRemoveCatalogAttributes/main.go b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/BatchRemoveCatalogAttributes/main.go new file mode 100644 index 000000000000..5f7c9dd5d903 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/BatchRemoveCatalogAttributes/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_CatalogService_BatchRemoveCatalogAttributes_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.BatchRemoveCatalogAttributesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#BatchRemoveCatalogAttributesRequest. + } + resp, err := c.BatchRemoveCatalogAttributes(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_CatalogService_BatchRemoveCatalogAttributes_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/CatalogClient/GetAttributesConfig/main.go b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/GetAttributesConfig/main.go new file mode 100644 index 000000000000..41353c608204 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/GetAttributesConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_CatalogService_GetAttributesConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.GetAttributesConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#GetAttributesConfigRequest. + } + resp, err := c.GetAttributesConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_CatalogService_GetAttributesConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/CatalogClient/GetCompletionConfig/main.go b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/GetCompletionConfig/main.go new file mode 100644 index 000000000000..b6aad355dad3 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/GetCompletionConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_CatalogService_GetCompletionConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.GetCompletionConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#GetCompletionConfigRequest. + } + resp, err := c.GetCompletionConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_CatalogService_GetCompletionConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/CatalogClient/GetDefaultBranch/main.go b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/GetDefaultBranch/main.go new file mode 100644 index 000000000000..2a8f57527fdc --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/GetDefaultBranch/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_CatalogService_GetDefaultBranch_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.GetDefaultBranchRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#GetDefaultBranchRequest. + } + resp, err := c.GetDefaultBranch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_CatalogService_GetDefaultBranch_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/CatalogClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/GetOperation/main.go new file mode 100644 index 000000000000..1556e097f2ee --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_CatalogService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_CatalogService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/CatalogClient/ListCatalogs/main.go b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/ListCatalogs/main.go new file mode 100644 index 000000000000..2a2fd23891b9 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/ListCatalogs/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_CatalogService_ListCatalogs_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ListCatalogsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#ListCatalogsRequest. + } + it := c.ListCatalogs(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2alpha_generated_CatalogService_ListCatalogs_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/CatalogClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/ListOperations/main.go new file mode 100644 index 000000000000..573106847343 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_CatalogService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2alpha_generated_CatalogService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/CatalogClient/RemoveCatalogAttribute/main.go b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/RemoveCatalogAttribute/main.go new file mode 100644 index 000000000000..59539a369d6f --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/RemoveCatalogAttribute/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_CatalogService_RemoveCatalogAttribute_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.RemoveCatalogAttributeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#RemoveCatalogAttributeRequest. + } + resp, err := c.RemoveCatalogAttribute(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_CatalogService_RemoveCatalogAttribute_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/CatalogClient/ReplaceCatalogAttribute/main.go b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/ReplaceCatalogAttribute/main.go new file mode 100644 index 000000000000..5e62fa412e4e --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/ReplaceCatalogAttribute/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_CatalogService_ReplaceCatalogAttribute_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ReplaceCatalogAttributeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#ReplaceCatalogAttributeRequest. + } + resp, err := c.ReplaceCatalogAttribute(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_CatalogService_ReplaceCatalogAttribute_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/CatalogClient/SetDefaultBranch/main.go b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/SetDefaultBranch/main.go new file mode 100644 index 000000000000..e8859c041c93 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/SetDefaultBranch/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_CatalogService_SetDefaultBranch_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.SetDefaultBranchRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#SetDefaultBranchRequest. + } + err = c.SetDefaultBranch(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END retail_v2alpha_generated_CatalogService_SetDefaultBranch_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/CatalogClient/UpdateAttributesConfig/main.go b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/UpdateAttributesConfig/main.go new file mode 100644 index 000000000000..a7fe2b9f0173 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/UpdateAttributesConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_CatalogService_UpdateAttributesConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateAttributesConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#UpdateAttributesConfigRequest. + } + resp, err := c.UpdateAttributesConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_CatalogService_UpdateAttributesConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/CatalogClient/UpdateCatalog/main.go b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/UpdateCatalog/main.go new file mode 100644 index 000000000000..cd207c7e6d97 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/UpdateCatalog/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_CatalogService_UpdateCatalog_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateCatalogRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#UpdateCatalogRequest. + } + resp, err := c.UpdateCatalog(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_CatalogService_UpdateCatalog_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/CatalogClient/UpdateCompletionConfig/main.go b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/UpdateCompletionConfig/main.go new file mode 100644 index 000000000000..14e22bdd722c --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/CatalogClient/UpdateCompletionConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_CatalogService_UpdateCompletionConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateCompletionConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#UpdateCompletionConfigRequest. + } + resp, err := c.UpdateCompletionConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_CatalogService_UpdateCompletionConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/CompletionClient/CompleteQuery/main.go b/internal/generated/snippets/retail/apiv2alpha/CompletionClient/CompleteQuery/main.go new file mode 100644 index 000000000000..44900127056f --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/CompletionClient/CompleteQuery/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_CompletionService_CompleteQuery_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCompletionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.CompleteQueryRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#CompleteQueryRequest. + } + resp, err := c.CompleteQuery(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_CompletionService_CompleteQuery_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/CompletionClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2alpha/CompletionClient/GetOperation/main.go new file mode 100644 index 000000000000..9259d21e8ed8 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/CompletionClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_CompletionService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCompletionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_CompletionService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/CompletionClient/ImportCompletionData/main.go b/internal/generated/snippets/retail/apiv2alpha/CompletionClient/ImportCompletionData/main.go new file mode 100644 index 000000000000..e8859ec7378b --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/CompletionClient/ImportCompletionData/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_CompletionService_ImportCompletionData_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCompletionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ImportCompletionDataRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#ImportCompletionDataRequest. + } + op, err := c.ImportCompletionData(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_CompletionService_ImportCompletionData_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/CompletionClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2alpha/CompletionClient/ListOperations/main.go new file mode 100644 index 000000000000..082bb77aeea8 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/CompletionClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_CompletionService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCompletionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2alpha_generated_CompletionService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ControlClient/CreateControl/main.go b/internal/generated/snippets/retail/apiv2alpha/ControlClient/CreateControl/main.go new file mode 100644 index 000000000000..4d315622bb18 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ControlClient/CreateControl/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ControlService_CreateControl_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.CreateControlRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#CreateControlRequest. + } + resp, err := c.CreateControl(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ControlService_CreateControl_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ControlClient/DeleteControl/main.go b/internal/generated/snippets/retail/apiv2alpha/ControlClient/DeleteControl/main.go new file mode 100644 index 000000000000..61b6581852aa --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ControlClient/DeleteControl/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ControlService_DeleteControl_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.DeleteControlRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#DeleteControlRequest. + } + err = c.DeleteControl(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END retail_v2alpha_generated_ControlService_DeleteControl_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ControlClient/GetControl/main.go b/internal/generated/snippets/retail/apiv2alpha/ControlClient/GetControl/main.go new file mode 100644 index 000000000000..1adfa9e139cb --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ControlClient/GetControl/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ControlService_GetControl_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.GetControlRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#GetControlRequest. + } + resp, err := c.GetControl(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ControlService_GetControl_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ControlClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2alpha/ControlClient/GetOperation/main.go new file mode 100644 index 000000000000..a198b3545d89 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ControlClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ControlService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ControlService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ControlClient/ListControls/main.go b/internal/generated/snippets/retail/apiv2alpha/ControlClient/ListControls/main.go new file mode 100644 index 000000000000..eedc3fe3213f --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ControlClient/ListControls/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ControlService_ListControls_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ListControlsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#ListControlsRequest. + } + it := c.ListControls(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2alpha_generated_ControlService_ListControls_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ControlClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2alpha/ControlClient/ListOperations/main.go new file mode 100644 index 000000000000..54e737086004 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ControlClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ControlService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2alpha_generated_ControlService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ControlClient/UpdateControl/main.go b/internal/generated/snippets/retail/apiv2alpha/ControlClient/UpdateControl/main.go new file mode 100644 index 000000000000..078234780b33 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ControlClient/UpdateControl/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ControlService_UpdateControl_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateControlRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#UpdateControlRequest. + } + resp, err := c.UpdateControl(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ControlService_UpdateControl_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ModelClient/CreateModel/main.go b/internal/generated/snippets/retail/apiv2alpha/ModelClient/CreateModel/main.go new file mode 100644 index 000000000000..7fe7f01ff2da --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ModelClient/CreateModel/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ModelService_CreateModel_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.CreateModelRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#CreateModelRequest. + } + op, err := c.CreateModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ModelService_CreateModel_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ModelClient/DeleteModel/main.go b/internal/generated/snippets/retail/apiv2alpha/ModelClient/DeleteModel/main.go new file mode 100644 index 000000000000..f03d030401ca --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ModelClient/DeleteModel/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ModelService_DeleteModel_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.DeleteModelRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#DeleteModelRequest. + } + err = c.DeleteModel(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END retail_v2alpha_generated_ModelService_DeleteModel_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ModelClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2alpha/ModelClient/GetOperation/main.go new file mode 100644 index 000000000000..3edd6f7adc22 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ModelClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ModelService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ModelService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ModelClient/ListModels/main.go b/internal/generated/snippets/retail/apiv2alpha/ModelClient/ListModels/main.go new file mode 100644 index 000000000000..f90bb0728291 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ModelClient/ListModels/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ModelService_ListModels_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ListModelsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#ListModelsRequest. + } + it := c.ListModels(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2alpha_generated_ModelService_ListModels_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ModelClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2alpha/ModelClient/ListOperations/main.go new file mode 100644 index 000000000000..aa5acb15bd4f --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ModelClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ModelService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2alpha_generated_ModelService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ModelClient/PauseModel/main.go b/internal/generated/snippets/retail/apiv2alpha/ModelClient/PauseModel/main.go new file mode 100644 index 000000000000..6fb7c8ff5b4d --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ModelClient/PauseModel/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ModelService_PauseModel_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.PauseModelRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#PauseModelRequest. + } + resp, err := c.PauseModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ModelService_PauseModel_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ModelClient/ResumeModel/main.go b/internal/generated/snippets/retail/apiv2alpha/ModelClient/ResumeModel/main.go new file mode 100644 index 000000000000..0cd5adec84c0 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ModelClient/ResumeModel/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ModelService_ResumeModel_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ResumeModelRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#ResumeModelRequest. + } + resp, err := c.ResumeModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ModelService_ResumeModel_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ModelClient/TuneModel/main.go b/internal/generated/snippets/retail/apiv2alpha/ModelClient/TuneModel/main.go new file mode 100644 index 000000000000..25140d42fa05 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ModelClient/TuneModel/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ModelService_TuneModel_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.TuneModelRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#TuneModelRequest. + } + op, err := c.TuneModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ModelService_TuneModel_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ModelClient/UpdateModel/main.go b/internal/generated/snippets/retail/apiv2alpha/ModelClient/UpdateModel/main.go new file mode 100644 index 000000000000..bd5389fd9175 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ModelClient/UpdateModel/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ModelService_UpdateModel_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateModelRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#UpdateModelRequest. + } + resp, err := c.UpdateModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ModelService_UpdateModel_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/PredictionClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2alpha/PredictionClient/GetOperation/main.go new file mode 100644 index 000000000000..5f17900bd982 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/PredictionClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_PredictionService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewPredictionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_PredictionService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/PredictionClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2alpha/PredictionClient/ListOperations/main.go new file mode 100644 index 000000000000..feb7d97d1e72 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/PredictionClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_PredictionService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewPredictionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2alpha_generated_PredictionService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/PredictionClient/Predict/main.go b/internal/generated/snippets/retail/apiv2alpha/PredictionClient/Predict/main.go new file mode 100644 index 000000000000..82705c73cdd3 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/PredictionClient/Predict/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_PredictionService_Predict_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewPredictionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.PredictRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#PredictRequest. + } + resp, err := c.Predict(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_PredictionService_Predict_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ProductClient/AddFulfillmentPlaces/main.go b/internal/generated/snippets/retail/apiv2alpha/ProductClient/AddFulfillmentPlaces/main.go new file mode 100644 index 000000000000..16b509f5d4c3 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ProductClient/AddFulfillmentPlaces/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ProductService_AddFulfillmentPlaces_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.AddFulfillmentPlacesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#AddFulfillmentPlacesRequest. + } + op, err := c.AddFulfillmentPlaces(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ProductService_AddFulfillmentPlaces_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ProductClient/AddLocalInventories/main.go b/internal/generated/snippets/retail/apiv2alpha/ProductClient/AddLocalInventories/main.go new file mode 100644 index 000000000000..acb77de6a852 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ProductClient/AddLocalInventories/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ProductService_AddLocalInventories_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.AddLocalInventoriesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#AddLocalInventoriesRequest. + } + op, err := c.AddLocalInventories(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ProductService_AddLocalInventories_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ProductClient/CreateProduct/main.go b/internal/generated/snippets/retail/apiv2alpha/ProductClient/CreateProduct/main.go new file mode 100644 index 000000000000..0f3d1f6e490a --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ProductClient/CreateProduct/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ProductService_CreateProduct_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.CreateProductRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#CreateProductRequest. + } + resp, err := c.CreateProduct(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ProductService_CreateProduct_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ProductClient/DeleteProduct/main.go b/internal/generated/snippets/retail/apiv2alpha/ProductClient/DeleteProduct/main.go new file mode 100644 index 000000000000..08616fd3e0ff --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ProductClient/DeleteProduct/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ProductService_DeleteProduct_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.DeleteProductRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#DeleteProductRequest. + } + err = c.DeleteProduct(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END retail_v2alpha_generated_ProductService_DeleteProduct_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ProductClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2alpha/ProductClient/GetOperation/main.go new file mode 100644 index 000000000000..974e958b6165 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ProductClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ProductService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ProductService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ProductClient/GetProduct/main.go b/internal/generated/snippets/retail/apiv2alpha/ProductClient/GetProduct/main.go new file mode 100644 index 000000000000..c8b24dd71c84 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ProductClient/GetProduct/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ProductService_GetProduct_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.GetProductRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#GetProductRequest. + } + resp, err := c.GetProduct(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ProductService_GetProduct_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ProductClient/ImportProducts/main.go b/internal/generated/snippets/retail/apiv2alpha/ProductClient/ImportProducts/main.go new file mode 100644 index 000000000000..da924832540b --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ProductClient/ImportProducts/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ProductService_ImportProducts_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ImportProductsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#ImportProductsRequest. + } + op, err := c.ImportProducts(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ProductService_ImportProducts_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ProductClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2alpha/ProductClient/ListOperations/main.go new file mode 100644 index 000000000000..499dca3d5a90 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ProductClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ProductService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2alpha_generated_ProductService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ProductClient/ListProducts/main.go b/internal/generated/snippets/retail/apiv2alpha/ProductClient/ListProducts/main.go new file mode 100644 index 000000000000..1e9ebbb71c72 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ProductClient/ListProducts/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ProductService_ListProducts_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ListProductsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#ListProductsRequest. + } + it := c.ListProducts(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2alpha_generated_ProductService_ListProducts_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ProductClient/PurgeProducts/main.go b/internal/generated/snippets/retail/apiv2alpha/ProductClient/PurgeProducts/main.go new file mode 100644 index 000000000000..158ce6198925 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ProductClient/PurgeProducts/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ProductService_PurgeProducts_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.PurgeProductsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#PurgeProductsRequest. + } + op, err := c.PurgeProducts(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ProductService_PurgeProducts_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ProductClient/RemoveFulfillmentPlaces/main.go b/internal/generated/snippets/retail/apiv2alpha/ProductClient/RemoveFulfillmentPlaces/main.go new file mode 100644 index 000000000000..fff5a5b3b2bd --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ProductClient/RemoveFulfillmentPlaces/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ProductService_RemoveFulfillmentPlaces_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.RemoveFulfillmentPlacesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#RemoveFulfillmentPlacesRequest. + } + op, err := c.RemoveFulfillmentPlaces(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ProductService_RemoveFulfillmentPlaces_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ProductClient/RemoveLocalInventories/main.go b/internal/generated/snippets/retail/apiv2alpha/ProductClient/RemoveLocalInventories/main.go new file mode 100644 index 000000000000..66806c92b708 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ProductClient/RemoveLocalInventories/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ProductService_RemoveLocalInventories_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.RemoveLocalInventoriesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#RemoveLocalInventoriesRequest. + } + op, err := c.RemoveLocalInventories(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ProductService_RemoveLocalInventories_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ProductClient/SetInventory/main.go b/internal/generated/snippets/retail/apiv2alpha/ProductClient/SetInventory/main.go new file mode 100644 index 000000000000..7906c2b2a2e8 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ProductClient/SetInventory/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ProductService_SetInventory_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.SetInventoryRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#SetInventoryRequest. + } + op, err := c.SetInventory(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ProductService_SetInventory_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ProductClient/UpdateProduct/main.go b/internal/generated/snippets/retail/apiv2alpha/ProductClient/UpdateProduct/main.go new file mode 100644 index 000000000000..ee0967ba1f07 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ProductClient/UpdateProduct/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ProductService_UpdateProduct_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateProductRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#UpdateProductRequest. + } + resp, err := c.UpdateProduct(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ProductService_UpdateProduct_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/SearchClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2alpha/SearchClient/GetOperation/main.go new file mode 100644 index 000000000000..fa3f00132c0e --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/SearchClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_SearchService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_SearchService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/SearchClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2alpha/SearchClient/ListOperations/main.go new file mode 100644 index 000000000000..2b9cd064d2d4 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/SearchClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_SearchService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2alpha_generated_SearchService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/SearchClient/Search/main.go b/internal/generated/snippets/retail/apiv2alpha/SearchClient/Search/main.go new file mode 100644 index 000000000000..f67bb1580141 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/SearchClient/Search/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_SearchService_Search_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.SearchRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#SearchRequest. + } + it := c.Search(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2alpha_generated_SearchService_Search_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/AddControl/main.go b/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/AddControl/main.go new file mode 100644 index 000000000000..0e50daab47b3 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/AddControl/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ServingConfigService_AddControl_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.AddControlRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#AddControlRequest. + } + resp, err := c.AddControl(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ServingConfigService_AddControl_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/CreateServingConfig/main.go b/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/CreateServingConfig/main.go new file mode 100644 index 000000000000..88c789a9a37e --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/CreateServingConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ServingConfigService_CreateServingConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.CreateServingConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#CreateServingConfigRequest. + } + resp, err := c.CreateServingConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ServingConfigService_CreateServingConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/DeleteServingConfig/main.go b/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/DeleteServingConfig/main.go new file mode 100644 index 000000000000..964046f6f979 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/DeleteServingConfig/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ServingConfigService_DeleteServingConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.DeleteServingConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#DeleteServingConfigRequest. + } + err = c.DeleteServingConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END retail_v2alpha_generated_ServingConfigService_DeleteServingConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/GetOperation/main.go new file mode 100644 index 000000000000..1d0de186d804 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ServingConfigService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ServingConfigService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/GetServingConfig/main.go b/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/GetServingConfig/main.go new file mode 100644 index 000000000000..0e5d33dba5fb --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/GetServingConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ServingConfigService_GetServingConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.GetServingConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#GetServingConfigRequest. + } + resp, err := c.GetServingConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ServingConfigService_GetServingConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/ListOperations/main.go new file mode 100644 index 000000000000..847a77f47858 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ServingConfigService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2alpha_generated_ServingConfigService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/ListServingConfigs/main.go b/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/ListServingConfigs/main.go new file mode 100644 index 000000000000..d48decb4e47e --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/ListServingConfigs/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ServingConfigService_ListServingConfigs_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ListServingConfigsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#ListServingConfigsRequest. + } + it := c.ListServingConfigs(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2alpha_generated_ServingConfigService_ListServingConfigs_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/RemoveControl/main.go b/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/RemoveControl/main.go new file mode 100644 index 000000000000..a5083a00cd6a --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/RemoveControl/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ServingConfigService_RemoveControl_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.RemoveControlRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#RemoveControlRequest. + } + resp, err := c.RemoveControl(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ServingConfigService_RemoveControl_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/UpdateServingConfig/main.go b/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/UpdateServingConfig/main.go new file mode 100644 index 000000000000..13d35c4448ca --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/ServingConfigClient/UpdateServingConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_ServingConfigService_UpdateServingConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateServingConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#UpdateServingConfigRequest. + } + resp, err := c.UpdateServingConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_ServingConfigService_UpdateServingConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/UserEventClient/CollectUserEvent/main.go b/internal/generated/snippets/retail/apiv2alpha/UserEventClient/CollectUserEvent/main.go new file mode 100644 index 000000000000..ba7e9f388045 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/UserEventClient/CollectUserEvent/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_UserEventService_CollectUserEvent_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewUserEventClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.CollectUserEventRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#CollectUserEventRequest. + } + resp, err := c.CollectUserEvent(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_UserEventService_CollectUserEvent_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/UserEventClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2alpha/UserEventClient/GetOperation/main.go new file mode 100644 index 000000000000..77b3048c13f3 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/UserEventClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_UserEventService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewUserEventClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_UserEventService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/UserEventClient/ImportUserEvents/main.go b/internal/generated/snippets/retail/apiv2alpha/UserEventClient/ImportUserEvents/main.go new file mode 100644 index 000000000000..bd3392a9d89c --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/UserEventClient/ImportUserEvents/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_UserEventService_ImportUserEvents_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewUserEventClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ImportUserEventsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#ImportUserEventsRequest. + } + op, err := c.ImportUserEvents(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_UserEventService_ImportUserEvents_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/UserEventClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2alpha/UserEventClient/ListOperations/main.go new file mode 100644 index 000000000000..66b5bc5f0db3 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/UserEventClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_UserEventService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewUserEventClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2alpha_generated_UserEventService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/UserEventClient/PurgeUserEvents/main.go b/internal/generated/snippets/retail/apiv2alpha/UserEventClient/PurgeUserEvents/main.go new file mode 100644 index 000000000000..5576630206b9 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/UserEventClient/PurgeUserEvents/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_UserEventService_PurgeUserEvents_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewUserEventClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.PurgeUserEventsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#PurgeUserEventsRequest. + } + op, err := c.PurgeUserEvents(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_UserEventService_PurgeUserEvents_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/UserEventClient/RejoinUserEvents/main.go b/internal/generated/snippets/retail/apiv2alpha/UserEventClient/RejoinUserEvents/main.go new file mode 100644 index 000000000000..7c8afac4c607 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/UserEventClient/RejoinUserEvents/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_UserEventService_RejoinUserEvents_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewUserEventClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.RejoinUserEventsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#RejoinUserEventsRequest. + } + op, err := c.RejoinUserEvents(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_UserEventService_RejoinUserEvents_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/UserEventClient/WriteUserEvent/main.go b/internal/generated/snippets/retail/apiv2alpha/UserEventClient/WriteUserEvent/main.go new file mode 100644 index 000000000000..08fca74881c2 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/UserEventClient/WriteUserEvent/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2alpha_generated_UserEventService_WriteUserEvent_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2alpha" + retailpb "cloud.google.com/go/retail/apiv2alpha/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewUserEventClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.WriteUserEventRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2alpha/retailpb#WriteUserEventRequest. + } + resp, err := c.WriteUserEvent(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2alpha_generated_UserEventService_WriteUserEvent_sync] diff --git a/internal/generated/snippets/retail/apiv2alpha/snippet_metadata.google.cloud.retail.v2alpha.json b/internal/generated/snippets/retail/apiv2alpha/snippet_metadata.google.cloud.retail.v2alpha.json new file mode 100644 index 000000000000..ed9f8040f93b --- /dev/null +++ b/internal/generated/snippets/retail/apiv2alpha/snippet_metadata.google.cloud.retail.v2alpha.json @@ -0,0 +1,3230 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/retail/apiv2alpha", + "version": "1.12.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.retail.v2alpha", + "version": "v2alpha" + } + ] + }, + "snippets": [ + { + "regionTag": "retail_v2alpha_generated_CatalogService_AddCatalogAttribute_sync", + "title": "retail AddCatalogAttribute Sample", + "description": "AddCatalogAttribute adds the specified\nCatalogAttribute to the\nAttributesConfig.\n\nIf the CatalogAttribute to\nadd already exists, an ALREADY_EXISTS error is returned.", + "file": "CatalogClient/AddCatalogAttribute/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AddCatalogAttribute", + "fullName": "google.cloud.retail.v2alpha.CatalogClient.AddCatalogAttribute", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.AddCatalogAttributeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.AttributesConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2alpha.CatalogClient" + }, + "method": { + "shortName": "AddCatalogAttribute", + "fullName": "google.cloud.retail.v2alpha.CatalogService.AddCatalogAttribute", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2alpha.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_CatalogService_BatchRemoveCatalogAttributes_sync", + "title": "retail BatchRemoveCatalogAttributes Sample", + "description": "BatchRemoveCatalogAttributes removes all specified\nCatalogAttributes from the\nAttributesConfig.", + "file": "CatalogClient/BatchRemoveCatalogAttributes/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchRemoveCatalogAttributes", + "fullName": "google.cloud.retail.v2alpha.CatalogClient.BatchRemoveCatalogAttributes", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.BatchRemoveCatalogAttributesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.BatchRemoveCatalogAttributesResponse", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2alpha.CatalogClient" + }, + "method": { + "shortName": "BatchRemoveCatalogAttributes", + "fullName": "google.cloud.retail.v2alpha.CatalogService.BatchRemoveCatalogAttributes", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2alpha.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_CatalogService_GetAttributesConfig_sync", + "title": "retail GetAttributesConfig Sample", + "description": "GetAttributesConfig gets an AttributesConfig.", + "file": "CatalogClient/GetAttributesConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetAttributesConfig", + "fullName": "google.cloud.retail.v2alpha.CatalogClient.GetAttributesConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.GetAttributesConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.AttributesConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2alpha.CatalogClient" + }, + "method": { + "shortName": "GetAttributesConfig", + "fullName": "google.cloud.retail.v2alpha.CatalogService.GetAttributesConfig", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2alpha.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_CatalogService_GetCompletionConfig_sync", + "title": "retail GetCompletionConfig Sample", + "description": "GetCompletionConfig gets a CompletionConfig.", + "file": "CatalogClient/GetCompletionConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCompletionConfig", + "fullName": "google.cloud.retail.v2alpha.CatalogClient.GetCompletionConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.GetCompletionConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.CompletionConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2alpha.CatalogClient" + }, + "method": { + "shortName": "GetCompletionConfig", + "fullName": "google.cloud.retail.v2alpha.CatalogService.GetCompletionConfig", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2alpha.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_CatalogService_GetDefaultBranch_sync", + "title": "retail GetDefaultBranch Sample", + "description": "GetDefaultBranch get which branch is currently default branch set by\nCatalogService.SetDefaultBranch\nmethod under a specified parent catalog.", + "file": "CatalogClient/GetDefaultBranch/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetDefaultBranch", + "fullName": "google.cloud.retail.v2alpha.CatalogClient.GetDefaultBranch", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.GetDefaultBranchRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.GetDefaultBranchResponse", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2alpha.CatalogClient" + }, + "method": { + "shortName": "GetDefaultBranch", + "fullName": "google.cloud.retail.v2alpha.CatalogService.GetDefaultBranch", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2alpha.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_CatalogService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "CatalogClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2alpha.CatalogClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2alpha.CatalogClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2alpha.CatalogService.GetOperation", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2alpha.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_CatalogService_ListCatalogs_sync", + "title": "retail ListCatalogs Sample", + "description": "ListCatalogs lists all the Catalogs associated\nwith the project.", + "file": "CatalogClient/ListCatalogs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCatalogs", + "fullName": "google.cloud.retail.v2alpha.CatalogClient.ListCatalogs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ListCatalogsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CatalogIterator", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2alpha.CatalogClient" + }, + "method": { + "shortName": "ListCatalogs", + "fullName": "google.cloud.retail.v2alpha.CatalogService.ListCatalogs", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2alpha.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_CatalogService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "CatalogClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2alpha.CatalogClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2alpha.CatalogClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2alpha.CatalogService.ListOperations", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2alpha.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_CatalogService_RemoveCatalogAttribute_sync", + "title": "retail RemoveCatalogAttribute Sample", + "description": "RemoveCatalogAttribute removes the specified\nCatalogAttribute from the\nAttributesConfig.\n\nIf the CatalogAttribute to\nremove does not exist, a NOT_FOUND error is returned.", + "file": "CatalogClient/RemoveCatalogAttribute/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RemoveCatalogAttribute", + "fullName": "google.cloud.retail.v2alpha.CatalogClient.RemoveCatalogAttribute", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.RemoveCatalogAttributeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.AttributesConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2alpha.CatalogClient" + }, + "method": { + "shortName": "RemoveCatalogAttribute", + "fullName": "google.cloud.retail.v2alpha.CatalogService.RemoveCatalogAttribute", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2alpha.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_CatalogService_ReplaceCatalogAttribute_sync", + "title": "retail ReplaceCatalogAttribute Sample", + "description": "ReplaceCatalogAttribute replaces the specified\nCatalogAttribute in the\nAttributesConfig by\nupdating the catalog attribute with the same\nCatalogAttribute.key.\n\nIf the CatalogAttribute to\nreplace does not exist, a NOT_FOUND error is returned.", + "file": "CatalogClient/ReplaceCatalogAttribute/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReplaceCatalogAttribute", + "fullName": "google.cloud.retail.v2alpha.CatalogClient.ReplaceCatalogAttribute", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ReplaceCatalogAttributeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.AttributesConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2alpha.CatalogClient" + }, + "method": { + "shortName": "ReplaceCatalogAttribute", + "fullName": "google.cloud.retail.v2alpha.CatalogService.ReplaceCatalogAttribute", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2alpha.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_CatalogService_SetDefaultBranch_sync", + "title": "retail SetDefaultBranch Sample", + "description": "SetDefaultBranch set a specified branch id as default branch. API methods such as\nSearchService.Search,\nProductService.GetProduct,\nProductService.ListProducts\nwill treat requests using “default_branch” to the actual branch id set as\ndefault.\n\nFor example, if projects/*/locations/*/catalogs/*/branches/1 is set as\ndefault, setting\nSearchRequest.branch to\nprojects/*/locations/*/catalogs/*/branches/default_branch is equivalent\nto setting\nSearchRequest.branch to\nprojects/*/locations/*/catalogs/*/branches/1.\n\nUsing multiple branches can be useful when developers would like\nto have a staging branch to test and verify for future usage. When it\nbecomes ready, developers switch on the staging branch using this API while\nkeeping using projects/*/locations/*/catalogs/*/branches/default_branch\nas SearchRequest.branch\nto route the traffic to this staging branch.\n\nCAUTION: If you have live predict/search traffic, switching the default\nbranch could potentially cause outages if the ID space of the new branch is\nvery different from the old one.\n\nMore specifically: \n\n\tPredictionService will only return product IDs from branch {newBranch}.\n\n\tSearchService will only return product IDs from branch {newBranch}\n\t(if branch is not explicitly set).\n\n\tUserEventService will only join events with products from branch\n\t{newBranch}.", + "file": "CatalogClient/SetDefaultBranch/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetDefaultBranch", + "fullName": "google.cloud.retail.v2alpha.CatalogClient.SetDefaultBranch", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.SetDefaultBranchRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2alpha.CatalogClient" + }, + "method": { + "shortName": "SetDefaultBranch", + "fullName": "google.cloud.retail.v2alpha.CatalogService.SetDefaultBranch", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2alpha.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_CatalogService_UpdateAttributesConfig_sync", + "title": "retail UpdateAttributesConfig Sample", + "description": "UpdateAttributesConfig updates the\nAttributesConfig.\n\nThe catalog attributes in the request will be updated in the catalog, or\ninserted if they do not exist. Existing catalog attributes not included in\nthe request will remain unchanged. Attributes that are assigned to\nproducts, but do not exist at the catalog level, are always included in the\nresponse. The product attribute is assigned default values for missing\ncatalog attribute fields, e.g., searchable and dynamic facetable options.", + "file": "CatalogClient/UpdateAttributesConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateAttributesConfig", + "fullName": "google.cloud.retail.v2alpha.CatalogClient.UpdateAttributesConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateAttributesConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.AttributesConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2alpha.CatalogClient" + }, + "method": { + "shortName": "UpdateAttributesConfig", + "fullName": "google.cloud.retail.v2alpha.CatalogService.UpdateAttributesConfig", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2alpha.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_CatalogService_UpdateCatalog_sync", + "title": "retail UpdateCatalog Sample", + "description": "UpdateCatalog updates the Catalogs.", + "file": "CatalogClient/UpdateCatalog/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCatalog", + "fullName": "google.cloud.retail.v2alpha.CatalogClient.UpdateCatalog", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateCatalogRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Catalog", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2alpha.CatalogClient" + }, + "method": { + "shortName": "UpdateCatalog", + "fullName": "google.cloud.retail.v2alpha.CatalogService.UpdateCatalog", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2alpha.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_CatalogService_UpdateCompletionConfig_sync", + "title": "retail UpdateCompletionConfig Sample", + "description": "UpdateCompletionConfig updates the\nCompletionConfigs.", + "file": "CatalogClient/UpdateCompletionConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCompletionConfig", + "fullName": "google.cloud.retail.v2alpha.CatalogClient.UpdateCompletionConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateCompletionConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.CompletionConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2alpha.CatalogClient" + }, + "method": { + "shortName": "UpdateCompletionConfig", + "fullName": "google.cloud.retail.v2alpha.CatalogService.UpdateCompletionConfig", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2alpha.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_CompletionService_CompleteQuery_sync", + "title": "retail CompleteQuery Sample", + "description": "CompleteQuery completes the specified prefix with keyword suggestions.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "CompletionClient/CompleteQuery/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CompleteQuery", + "fullName": "google.cloud.retail.v2alpha.CompletionClient.CompleteQuery", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.CompleteQueryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.CompleteQueryResponse", + "client": { + "shortName": "CompletionClient", + "fullName": "google.cloud.retail.v2alpha.CompletionClient" + }, + "method": { + "shortName": "CompleteQuery", + "fullName": "google.cloud.retail.v2alpha.CompletionService.CompleteQuery", + "service": { + "shortName": "CompletionService", + "fullName": "google.cloud.retail.v2alpha.CompletionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_CompletionService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "CompletionClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2alpha.CompletionClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "CompletionClient", + "fullName": "google.cloud.retail.v2alpha.CompletionClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2alpha.CompletionService.GetOperation", + "service": { + "shortName": "CompletionService", + "fullName": "google.cloud.retail.v2alpha.CompletionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_CompletionService_ImportCompletionData_sync", + "title": "retail ImportCompletionData Sample", + "description": "ImportCompletionData bulk import of processed completion dataset.\n\nRequest processing is asynchronous. Partial updating is not supported.\n\nThe operation is successfully finished only after the imported suggestions\nare indexed successfully and ready for serving. The process takes hours.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "CompletionClient/ImportCompletionData/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ImportCompletionData", + "fullName": "google.cloud.retail.v2alpha.CompletionClient.ImportCompletionData", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ImportCompletionDataRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ImportCompletionDataOperation", + "client": { + "shortName": "CompletionClient", + "fullName": "google.cloud.retail.v2alpha.CompletionClient" + }, + "method": { + "shortName": "ImportCompletionData", + "fullName": "google.cloud.retail.v2alpha.CompletionService.ImportCompletionData", + "service": { + "shortName": "CompletionService", + "fullName": "google.cloud.retail.v2alpha.CompletionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_CompletionService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "CompletionClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2alpha.CompletionClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "CompletionClient", + "fullName": "google.cloud.retail.v2alpha.CompletionClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2alpha.CompletionService.ListOperations", + "service": { + "shortName": "CompletionService", + "fullName": "google.cloud.retail.v2alpha.CompletionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ControlService_CreateControl_sync", + "title": "retail CreateControl Sample", + "description": "CreateControl creates a Control.\n\nIf the Control to create already\nexists, an ALREADY_EXISTS error is returned.", + "file": "ControlClient/CreateControl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateControl", + "fullName": "google.cloud.retail.v2alpha.ControlClient.CreateControl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.CreateControlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Control", + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2alpha.ControlClient" + }, + "method": { + "shortName": "CreateControl", + "fullName": "google.cloud.retail.v2alpha.ControlService.CreateControl", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2alpha.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ControlService_DeleteControl_sync", + "title": "retail DeleteControl Sample", + "description": "DeleteControl deletes a Control.\n\nIf the Control to delete does not\nexist, a NOT_FOUND error is returned.", + "file": "ControlClient/DeleteControl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteControl", + "fullName": "google.cloud.retail.v2alpha.ControlClient.DeleteControl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.DeleteControlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2alpha.ControlClient" + }, + "method": { + "shortName": "DeleteControl", + "fullName": "google.cloud.retail.v2alpha.ControlService.DeleteControl", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2alpha.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ControlService_GetControl_sync", + "title": "retail GetControl Sample", + "description": "GetControl gets a Control.", + "file": "ControlClient/GetControl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetControl", + "fullName": "google.cloud.retail.v2alpha.ControlClient.GetControl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.GetControlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Control", + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2alpha.ControlClient" + }, + "method": { + "shortName": "GetControl", + "fullName": "google.cloud.retail.v2alpha.ControlService.GetControl", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2alpha.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ControlService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "ControlClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2alpha.ControlClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2alpha.ControlClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2alpha.ControlService.GetOperation", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2alpha.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ControlService_ListControls_sync", + "title": "retail ListControls Sample", + "description": "ListControls lists all Controls by their parent\nCatalog.", + "file": "ControlClient/ListControls/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListControls", + "fullName": "google.cloud.retail.v2alpha.ControlClient.ListControls", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ListControlsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ControlIterator", + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2alpha.ControlClient" + }, + "method": { + "shortName": "ListControls", + "fullName": "google.cloud.retail.v2alpha.ControlService.ListControls", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2alpha.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ControlService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "ControlClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2alpha.ControlClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2alpha.ControlClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2alpha.ControlService.ListOperations", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2alpha.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ControlService_UpdateControl_sync", + "title": "retail UpdateControl Sample", + "description": "UpdateControl updates a Control.\n\nControl cannot be set to a different\noneof field, if so an INVALID_ARGUMENT is returned. If the\nControl to update does not exist, a\nNOT_FOUND error is returned.", + "file": "ControlClient/UpdateControl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateControl", + "fullName": "google.cloud.retail.v2alpha.ControlClient.UpdateControl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateControlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Control", + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2alpha.ControlClient" + }, + "method": { + "shortName": "UpdateControl", + "fullName": "google.cloud.retail.v2alpha.ControlService.UpdateControl", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2alpha.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ModelService_CreateModel_sync", + "title": "retail CreateModel Sample", + "description": "CreateModel creates a new model.", + "file": "ModelClient/CreateModel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateModel", + "fullName": "google.cloud.retail.v2alpha.ModelClient.CreateModel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.CreateModelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateModelOperation", + "client": { + "shortName": "ModelClient", + "fullName": "google.cloud.retail.v2alpha.ModelClient" + }, + "method": { + "shortName": "CreateModel", + "fullName": "google.cloud.retail.v2alpha.ModelService.CreateModel", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.retail.v2alpha.ModelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ModelService_DeleteModel_sync", + "title": "retail DeleteModel Sample", + "description": "DeleteModel deletes an existing model.", + "file": "ModelClient/DeleteModel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteModel", + "fullName": "google.cloud.retail.v2alpha.ModelClient.DeleteModel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.DeleteModelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ModelClient", + "fullName": "google.cloud.retail.v2alpha.ModelClient" + }, + "method": { + "shortName": "DeleteModel", + "fullName": "google.cloud.retail.v2alpha.ModelService.DeleteModel", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.retail.v2alpha.ModelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ModelService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "ModelClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2alpha.ModelClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "ModelClient", + "fullName": "google.cloud.retail.v2alpha.ModelClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2alpha.ModelService.GetOperation", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.retail.v2alpha.ModelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ModelService_ListModels_sync", + "title": "retail ListModels Sample", + "description": "ListModels lists all the models linked to this event store.", + "file": "ModelClient/ListModels/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListModels", + "fullName": "google.cloud.retail.v2alpha.ModelClient.ListModels", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ListModelsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ModelIterator", + "client": { + "shortName": "ModelClient", + "fullName": "google.cloud.retail.v2alpha.ModelClient" + }, + "method": { + "shortName": "ListModels", + "fullName": "google.cloud.retail.v2alpha.ModelService.ListModels", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.retail.v2alpha.ModelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ModelService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "ModelClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2alpha.ModelClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "ModelClient", + "fullName": "google.cloud.retail.v2alpha.ModelClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2alpha.ModelService.ListOperations", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.retail.v2alpha.ModelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ModelService_PauseModel_sync", + "title": "retail PauseModel Sample", + "description": "PauseModel pauses the training of an existing model.", + "file": "ModelClient/PauseModel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "PauseModel", + "fullName": "google.cloud.retail.v2alpha.ModelClient.PauseModel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.PauseModelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Model", + "client": { + "shortName": "ModelClient", + "fullName": "google.cloud.retail.v2alpha.ModelClient" + }, + "method": { + "shortName": "PauseModel", + "fullName": "google.cloud.retail.v2alpha.ModelService.PauseModel", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.retail.v2alpha.ModelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ModelService_ResumeModel_sync", + "title": "retail ResumeModel Sample", + "description": "ResumeModel resumes the training of an existing model.", + "file": "ModelClient/ResumeModel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResumeModel", + "fullName": "google.cloud.retail.v2alpha.ModelClient.ResumeModel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ResumeModelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Model", + "client": { + "shortName": "ModelClient", + "fullName": "google.cloud.retail.v2alpha.ModelClient" + }, + "method": { + "shortName": "ResumeModel", + "fullName": "google.cloud.retail.v2alpha.ModelService.ResumeModel", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.retail.v2alpha.ModelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ModelService_TuneModel_sync", + "title": "retail TuneModel Sample", + "description": "TuneModel tunes an existing model.", + "file": "ModelClient/TuneModel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TuneModel", + "fullName": "google.cloud.retail.v2alpha.ModelClient.TuneModel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.TuneModelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "TuneModelOperation", + "client": { + "shortName": "ModelClient", + "fullName": "google.cloud.retail.v2alpha.ModelClient" + }, + "method": { + "shortName": "TuneModel", + "fullName": "google.cloud.retail.v2alpha.ModelService.TuneModel", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.retail.v2alpha.ModelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ModelService_UpdateModel_sync", + "title": "retail UpdateModel Sample", + "description": "UpdateModel update of model metadata. Only fields that\ncurrently can be updated are: filtering_option and\nperiodic_tuning_state.\nIf other values are provided, this API method ignores them.", + "file": "ModelClient/UpdateModel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateModel", + "fullName": "google.cloud.retail.v2alpha.ModelClient.UpdateModel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateModelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Model", + "client": { + "shortName": "ModelClient", + "fullName": "google.cloud.retail.v2alpha.ModelClient" + }, + "method": { + "shortName": "UpdateModel", + "fullName": "google.cloud.retail.v2alpha.ModelService.UpdateModel", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.retail.v2alpha.ModelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_PredictionService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "PredictionClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2alpha.PredictionClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "PredictionClient", + "fullName": "google.cloud.retail.v2alpha.PredictionClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2alpha.PredictionService.GetOperation", + "service": { + "shortName": "PredictionService", + "fullName": "google.cloud.retail.v2alpha.PredictionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_PredictionService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "PredictionClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2alpha.PredictionClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "PredictionClient", + "fullName": "google.cloud.retail.v2alpha.PredictionClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2alpha.PredictionService.ListOperations", + "service": { + "shortName": "PredictionService", + "fullName": "google.cloud.retail.v2alpha.PredictionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_PredictionService_Predict_sync", + "title": "retail Predict Sample", + "description": "Predict makes a recommendation prediction.", + "file": "PredictionClient/Predict/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Predict", + "fullName": "google.cloud.retail.v2alpha.PredictionClient.Predict", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.PredictRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.PredictResponse", + "client": { + "shortName": "PredictionClient", + "fullName": "google.cloud.retail.v2alpha.PredictionClient" + }, + "method": { + "shortName": "Predict", + "fullName": "google.cloud.retail.v2alpha.PredictionService.Predict", + "service": { + "shortName": "PredictionService", + "fullName": "google.cloud.retail.v2alpha.PredictionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ProductService_AddFulfillmentPlaces_sync", + "title": "retail AddFulfillmentPlaces Sample", + "description": "AddFulfillmentPlaces incrementally adds place IDs to\nProduct.fulfillment_info.place_ids.\n\nThis process is asynchronous and does not require the\nProduct to exist before updating\nfulfillment information. If the request is valid, the update will be\nenqueued and processed downstream. As a consequence, when a response is\nreturned, the added place IDs are not immediately manifested in the\nProduct queried by\nProductService.GetProduct\nor\nProductService.ListProducts.\n\nThe returned Operations will be obsolete\nafter 1 day, and GetOperation\nAPI will return NOT_FOUND afterwards.\n\nIf conflicting updates are issued, the\nOperations associated with the stale\nupdates will not be marked as done\nuntil being obsolete.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "ProductClient/AddFulfillmentPlaces/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AddFulfillmentPlaces", + "fullName": "google.cloud.retail.v2alpha.ProductClient.AddFulfillmentPlaces", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.AddFulfillmentPlacesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AddFulfillmentPlacesOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2alpha.ProductClient" + }, + "method": { + "shortName": "AddFulfillmentPlaces", + "fullName": "google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2alpha.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ProductService_AddLocalInventories_sync", + "title": "retail AddLocalInventories Sample", + "description": "AddLocalInventories updates local inventory information for a\nProduct at a list of places, while\nrespecting the last update timestamps of each inventory field.\n\nThis process is asynchronous and does not require the\nProduct to exist before updating\ninventory information. If the request is valid, the update will be enqueued\nand processed downstream. As a consequence, when a response is returned,\nupdates are not immediately manifested in the\nProduct queried by\nProductService.GetProduct\nor\nProductService.ListProducts.\n\nLocal inventory information can only be modified using this method.\nProductService.CreateProduct\nand\nProductService.UpdateProduct\nhas no effect on local inventories.\n\nThe returned Operations will be obsolete\nafter 1 day, and GetOperation\nAPI will return NOT_FOUND afterwards.\n\nIf conflicting updates are issued, the\nOperations associated with the stale\nupdates will not be marked as done\nuntil being obsolete.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "ProductClient/AddLocalInventories/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AddLocalInventories", + "fullName": "google.cloud.retail.v2alpha.ProductClient.AddLocalInventories", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.AddLocalInventoriesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AddLocalInventoriesOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2alpha.ProductClient" + }, + "method": { + "shortName": "AddLocalInventories", + "fullName": "google.cloud.retail.v2alpha.ProductService.AddLocalInventories", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2alpha.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ProductService_CreateProduct_sync", + "title": "retail CreateProduct Sample", + "description": "CreateProduct creates a Product.", + "file": "ProductClient/CreateProduct/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateProduct", + "fullName": "google.cloud.retail.v2alpha.ProductClient.CreateProduct", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.CreateProductRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Product", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2alpha.ProductClient" + }, + "method": { + "shortName": "CreateProduct", + "fullName": "google.cloud.retail.v2alpha.ProductService.CreateProduct", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2alpha.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ProductService_DeleteProduct_sync", + "title": "retail DeleteProduct Sample", + "description": "DeleteProduct deletes a Product.", + "file": "ProductClient/DeleteProduct/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteProduct", + "fullName": "google.cloud.retail.v2alpha.ProductClient.DeleteProduct", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.DeleteProductRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2alpha.ProductClient" + }, + "method": { + "shortName": "DeleteProduct", + "fullName": "google.cloud.retail.v2alpha.ProductService.DeleteProduct", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2alpha.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ProductService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "ProductClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2alpha.ProductClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2alpha.ProductClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2alpha.ProductService.GetOperation", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2alpha.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ProductService_GetProduct_sync", + "title": "retail GetProduct Sample", + "description": "GetProduct gets a Product.", + "file": "ProductClient/GetProduct/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetProduct", + "fullName": "google.cloud.retail.v2alpha.ProductClient.GetProduct", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.GetProductRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Product", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2alpha.ProductClient" + }, + "method": { + "shortName": "GetProduct", + "fullName": "google.cloud.retail.v2alpha.ProductService.GetProduct", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2alpha.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ProductService_ImportProducts_sync", + "title": "retail ImportProducts Sample", + "description": "ImportProducts bulk import of multiple Products.\n\nRequest processing may be synchronous.\nNon-existing items are created.\n\nNote that it is possible for a subset of the\nProducts to be successfully updated.", + "file": "ProductClient/ImportProducts/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ImportProducts", + "fullName": "google.cloud.retail.v2alpha.ProductClient.ImportProducts", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ImportProductsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ImportProductsOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2alpha.ProductClient" + }, + "method": { + "shortName": "ImportProducts", + "fullName": "google.cloud.retail.v2alpha.ProductService.ImportProducts", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2alpha.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ProductService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "ProductClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2alpha.ProductClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2alpha.ProductClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2alpha.ProductService.ListOperations", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2alpha.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ProductService_ListProducts_sync", + "title": "retail ListProducts Sample", + "description": "ListProducts gets a list of Products.", + "file": "ProductClient/ListProducts/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListProducts", + "fullName": "google.cloud.retail.v2alpha.ProductClient.ListProducts", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ListProductsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ProductIterator", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2alpha.ProductClient" + }, + "method": { + "shortName": "ListProducts", + "fullName": "google.cloud.retail.v2alpha.ProductService.ListProducts", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2alpha.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ProductService_PurgeProducts_sync", + "title": "retail PurgeProducts Sample", + "description": "PurgeProducts permanently deletes all selected\nProducts under a branch.\n\nThis process is asynchronous. If the request is valid, the removal will be\nenqueued and processed offline. Depending on the number of\nProducts, this operation could take\nhours to complete. Before the operation completes, some\nProducts may still be returned by\nProductService.GetProduct\nor\nProductService.ListProducts.\n\nDepending on the number of Products,\nthis operation could take hours to complete. To get a sample of\nProducts that would be deleted, set\nPurgeProductsRequest.force\nto false.", + "file": "ProductClient/PurgeProducts/main.go", + "language": "GO", + "clientMethod": { + "shortName": "PurgeProducts", + "fullName": "google.cloud.retail.v2alpha.ProductClient.PurgeProducts", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.PurgeProductsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PurgeProductsOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2alpha.ProductClient" + }, + "method": { + "shortName": "PurgeProducts", + "fullName": "google.cloud.retail.v2alpha.ProductService.PurgeProducts", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2alpha.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ProductService_RemoveFulfillmentPlaces_sync", + "title": "retail RemoveFulfillmentPlaces Sample", + "description": "RemoveFulfillmentPlaces incrementally removes place IDs from a\nProduct.fulfillment_info.place_ids.\n\nThis process is asynchronous and does not require the\nProduct to exist before updating\nfulfillment information. If the request is valid, the update will be\nenqueued and processed downstream. As a consequence, when a response is\nreturned, the removed place IDs are not immediately manifested in the\nProduct queried by\nProductService.GetProduct\nor\nProductService.ListProducts.\n\nThe returned Operations will be obsolete\nafter 1 day, and GetOperation\nAPI will return NOT_FOUND afterwards.\n\nIf conflicting updates are issued, the\nOperations associated with the stale\nupdates will not be marked as done\nuntil being obsolete.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "ProductClient/RemoveFulfillmentPlaces/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RemoveFulfillmentPlaces", + "fullName": "google.cloud.retail.v2alpha.ProductClient.RemoveFulfillmentPlaces", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.RemoveFulfillmentPlacesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RemoveFulfillmentPlacesOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2alpha.ProductClient" + }, + "method": { + "shortName": "RemoveFulfillmentPlaces", + "fullName": "google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2alpha.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ProductService_RemoveLocalInventories_sync", + "title": "retail RemoveLocalInventories Sample", + "description": "RemoveLocalInventories remove local inventory information for a\nProduct at a list of places at a\nremoval timestamp.\n\nThis process is asynchronous. If the request is valid, the removal will be\nenqueued and processed downstream. As a consequence, when a response is\nreturned, removals are not immediately manifested in the\nProduct queried by\nProductService.GetProduct\nor\nProductService.ListProducts.\n\nLocal inventory information can only be removed using this method.\nProductService.CreateProduct\nand\nProductService.UpdateProduct\nhas no effect on local inventories.\n\nThe returned Operations will be obsolete\nafter 1 day, and GetOperation\nAPI will return NOT_FOUND afterwards.\n\nIf conflicting updates are issued, the\nOperations associated with the stale\nupdates will not be marked as done\nuntil being obsolete.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "ProductClient/RemoveLocalInventories/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RemoveLocalInventories", + "fullName": "google.cloud.retail.v2alpha.ProductClient.RemoveLocalInventories", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.RemoveLocalInventoriesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RemoveLocalInventoriesOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2alpha.ProductClient" + }, + "method": { + "shortName": "RemoveLocalInventories", + "fullName": "google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2alpha.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ProductService_SetInventory_sync", + "title": "retail SetInventory Sample", + "description": "SetInventory updates inventory information for a\nProduct while respecting the last\nupdate timestamps of each inventory field.\n\nThis process is asynchronous and does not require the\nProduct to exist before updating\nfulfillment information. If the request is valid, the update is enqueued\nand processed downstream. As a consequence, when a response is returned,\nupdates are not immediately manifested in the\nProduct queried by\nProductService.GetProduct\nor\nProductService.ListProducts.\n\nWhen inventory is updated with\nProductService.CreateProduct\nand\nProductService.UpdateProduct,\nthe specified inventory field value(s) overwrite any existing value(s)\nwhile ignoring the last update time for this field. Furthermore, the last\nupdate times for the specified inventory fields are overwritten by the\ntimes of the\nProductService.CreateProduct\nor\nProductService.UpdateProduct\nrequest.\n\nIf no inventory fields are set in\nCreateProductRequest.product,\nthen any pre-existing inventory information for this product is used.\n\nIf no inventory fields are set in\nSetInventoryRequest.set_mask,\nthen any existing inventory information is preserved.\n\nPre-existing inventory information can only be updated with\nProductService.SetInventory,\nProductService.AddFulfillmentPlaces,\nand\nProductService.RemoveFulfillmentPlaces.\n\nThe returned Operations is obsolete after\none day, and the GetOperation\nAPI returns NOT_FOUND afterwards.\n\nIf conflicting updates are issued, the\nOperations associated with the stale\nupdates are not marked as done until\nthey are obsolete.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "ProductClient/SetInventory/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetInventory", + "fullName": "google.cloud.retail.v2alpha.ProductClient.SetInventory", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.SetInventoryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SetInventoryOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2alpha.ProductClient" + }, + "method": { + "shortName": "SetInventory", + "fullName": "google.cloud.retail.v2alpha.ProductService.SetInventory", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2alpha.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ProductService_UpdateProduct_sync", + "title": "retail UpdateProduct Sample", + "description": "UpdateProduct updates a Product.", + "file": "ProductClient/UpdateProduct/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateProduct", + "fullName": "google.cloud.retail.v2alpha.ProductClient.UpdateProduct", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateProductRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Product", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2alpha.ProductClient" + }, + "method": { + "shortName": "UpdateProduct", + "fullName": "google.cloud.retail.v2alpha.ProductService.UpdateProduct", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2alpha.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_SearchService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "SearchClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2alpha.SearchClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "SearchClient", + "fullName": "google.cloud.retail.v2alpha.SearchClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2alpha.SearchService.GetOperation", + "service": { + "shortName": "SearchService", + "fullName": "google.cloud.retail.v2alpha.SearchService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_SearchService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "SearchClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2alpha.SearchClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "SearchClient", + "fullName": "google.cloud.retail.v2alpha.SearchClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2alpha.SearchService.ListOperations", + "service": { + "shortName": "SearchService", + "fullName": "google.cloud.retail.v2alpha.SearchService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_SearchService_Search_sync", + "title": "retail Search Sample", + "description": "Search performs a search.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "SearchClient/Search/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Search", + "fullName": "google.cloud.retail.v2alpha.SearchClient.Search", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.SearchRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SearchResponse_SearchResultIterator", + "client": { + "shortName": "SearchClient", + "fullName": "google.cloud.retail.v2alpha.SearchClient" + }, + "method": { + "shortName": "Search", + "fullName": "google.cloud.retail.v2alpha.SearchService.Search", + "service": { + "shortName": "SearchService", + "fullName": "google.cloud.retail.v2alpha.SearchService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ServingConfigService_AddControl_sync", + "title": "retail AddControl Sample", + "description": "AddControl enables a Control on the specified ServingConfig.\nThe control is added in the last position of the list of controls\nit belongs to (e.g. if it’s a facet spec control it will be applied\nin the last position of servingConfig.facetSpecIds)\nReturns a ALREADY_EXISTS error if the control has already been applied.\nReturns a FAILED_PRECONDITION error if the addition could exceed maximum\nnumber of control allowed for that type of control.", + "file": "ServingConfigClient/AddControl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AddControl", + "fullName": "google.cloud.retail.v2alpha.ServingConfigClient.AddControl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.AddControlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.ServingConfig", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2alpha.ServingConfigClient" + }, + "method": { + "shortName": "AddControl", + "fullName": "google.cloud.retail.v2alpha.ServingConfigService.AddControl", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2alpha.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ServingConfigService_CreateServingConfig_sync", + "title": "retail CreateServingConfig Sample", + "description": "CreateServingConfig creates a ServingConfig.\n\nA maximum of 100\nServingConfigs are allowed in\na Catalog, otherwise a\nFAILED_PRECONDITION error is returned.", + "file": "ServingConfigClient/CreateServingConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateServingConfig", + "fullName": "google.cloud.retail.v2alpha.ServingConfigClient.CreateServingConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.CreateServingConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.ServingConfig", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2alpha.ServingConfigClient" + }, + "method": { + "shortName": "CreateServingConfig", + "fullName": "google.cloud.retail.v2alpha.ServingConfigService.CreateServingConfig", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2alpha.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ServingConfigService_DeleteServingConfig_sync", + "title": "retail DeleteServingConfig Sample", + "description": "DeleteServingConfig deletes a ServingConfig.\n\nReturns a NotFound error if the ServingConfig does not exist.", + "file": "ServingConfigClient/DeleteServingConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteServingConfig", + "fullName": "google.cloud.retail.v2alpha.ServingConfigClient.DeleteServingConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.DeleteServingConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2alpha.ServingConfigClient" + }, + "method": { + "shortName": "DeleteServingConfig", + "fullName": "google.cloud.retail.v2alpha.ServingConfigService.DeleteServingConfig", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2alpha.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ServingConfigService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "ServingConfigClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2alpha.ServingConfigClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2alpha.ServingConfigClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2alpha.ServingConfigService.GetOperation", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2alpha.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ServingConfigService_GetServingConfig_sync", + "title": "retail GetServingConfig Sample", + "description": "GetServingConfig gets a ServingConfig.\n\nReturns a NotFound error if the ServingConfig does not exist.", + "file": "ServingConfigClient/GetServingConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetServingConfig", + "fullName": "google.cloud.retail.v2alpha.ServingConfigClient.GetServingConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.GetServingConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.ServingConfig", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2alpha.ServingConfigClient" + }, + "method": { + "shortName": "GetServingConfig", + "fullName": "google.cloud.retail.v2alpha.ServingConfigService.GetServingConfig", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2alpha.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ServingConfigService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "ServingConfigClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2alpha.ServingConfigClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2alpha.ServingConfigClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2alpha.ServingConfigService.ListOperations", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2alpha.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ServingConfigService_ListServingConfigs_sync", + "title": "retail ListServingConfigs Sample", + "description": "ListServingConfigs lists all ServingConfigs linked to this catalog.", + "file": "ServingConfigClient/ListServingConfigs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListServingConfigs", + "fullName": "google.cloud.retail.v2alpha.ServingConfigClient.ListServingConfigs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ListServingConfigsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ServingConfigIterator", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2alpha.ServingConfigClient" + }, + "method": { + "shortName": "ListServingConfigs", + "fullName": "google.cloud.retail.v2alpha.ServingConfigService.ListServingConfigs", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2alpha.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ServingConfigService_RemoveControl_sync", + "title": "retail RemoveControl Sample", + "description": "RemoveControl disables a Control on the specified ServingConfig.\nThe control is removed from the ServingConfig.\nReturns a NOT_FOUND error if the Control is not enabled for the\nServingConfig.", + "file": "ServingConfigClient/RemoveControl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RemoveControl", + "fullName": "google.cloud.retail.v2alpha.ServingConfigClient.RemoveControl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.RemoveControlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.ServingConfig", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2alpha.ServingConfigClient" + }, + "method": { + "shortName": "RemoveControl", + "fullName": "google.cloud.retail.v2alpha.ServingConfigService.RemoveControl", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2alpha.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_ServingConfigService_UpdateServingConfig_sync", + "title": "retail UpdateServingConfig Sample", + "description": "UpdateServingConfig updates a ServingConfig.", + "file": "ServingConfigClient/UpdateServingConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateServingConfig", + "fullName": "google.cloud.retail.v2alpha.ServingConfigClient.UpdateServingConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateServingConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.ServingConfig", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2alpha.ServingConfigClient" + }, + "method": { + "shortName": "UpdateServingConfig", + "fullName": "google.cloud.retail.v2alpha.ServingConfigService.UpdateServingConfig", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2alpha.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_UserEventService_CollectUserEvent_sync", + "title": "retail CollectUserEvent Sample", + "description": "CollectUserEvent writes a single user event from the browser. This uses a GET request to\ndue to browser restriction of POST-ing to a 3rd party domain.\n\nThis method is used only by the Retail API JavaScript pixel and Google Tag\nManager. Users should not call this method directly.", + "file": "UserEventClient/CollectUserEvent/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CollectUserEvent", + "fullName": "google.cloud.retail.v2alpha.UserEventClient.CollectUserEvent", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.CollectUserEventRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "httpbodypb.HttpBody", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2alpha.UserEventClient" + }, + "method": { + "shortName": "CollectUserEvent", + "fullName": "google.cloud.retail.v2alpha.UserEventService.CollectUserEvent", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2alpha.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_UserEventService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "UserEventClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2alpha.UserEventClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2alpha.UserEventClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2alpha.UserEventService.GetOperation", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2alpha.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_UserEventService_ImportUserEvents_sync", + "title": "retail ImportUserEvents Sample", + "description": "ImportUserEvents bulk import of User events. Request processing might be\nsynchronous. Events that already exist are skipped.\nUse this method for backfilling historical user events.\n\nOperation.response is of type ImportResponse. Note that it is\npossible for a subset of the items to be successfully inserted.\nOperation.metadata is of type ImportMetadata.", + "file": "UserEventClient/ImportUserEvents/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ImportUserEvents", + "fullName": "google.cloud.retail.v2alpha.UserEventClient.ImportUserEvents", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ImportUserEventsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ImportUserEventsOperation", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2alpha.UserEventClient" + }, + "method": { + "shortName": "ImportUserEvents", + "fullName": "google.cloud.retail.v2alpha.UserEventService.ImportUserEvents", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2alpha.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_UserEventService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "UserEventClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2alpha.UserEventClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2alpha.UserEventClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2alpha.UserEventService.ListOperations", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2alpha.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_UserEventService_PurgeUserEvents_sync", + "title": "retail PurgeUserEvents Sample", + "description": "PurgeUserEvents deletes permanently all user events specified by the filter provided.\nDepending on the number of events specified by the filter, this operation\ncould take hours or days to complete. To test a filter, use the list\ncommand first.", + "file": "UserEventClient/PurgeUserEvents/main.go", + "language": "GO", + "clientMethod": { + "shortName": "PurgeUserEvents", + "fullName": "google.cloud.retail.v2alpha.UserEventClient.PurgeUserEvents", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.PurgeUserEventsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PurgeUserEventsOperation", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2alpha.UserEventClient" + }, + "method": { + "shortName": "PurgeUserEvents", + "fullName": "google.cloud.retail.v2alpha.UserEventService.PurgeUserEvents", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2alpha.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_UserEventService_RejoinUserEvents_sync", + "title": "retail RejoinUserEvents Sample", + "description": "RejoinUserEvents starts a user-event rejoin operation with latest product catalog. Events\nare not annotated with detailed product information for products that are\nmissing from the catalog when the user event is ingested. These\nevents are stored as unjoined events with limited usage on training and\nserving. You can use this method to start a join operation on specified\nevents with the latest version of product catalog. You can also use this\nmethod to correct events joined with the wrong product catalog. A rejoin\noperation can take hours or days to complete.", + "file": "UserEventClient/RejoinUserEvents/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RejoinUserEvents", + "fullName": "google.cloud.retail.v2alpha.UserEventClient.RejoinUserEvents", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.RejoinUserEventsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RejoinUserEventsOperation", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2alpha.UserEventClient" + }, + "method": { + "shortName": "RejoinUserEvents", + "fullName": "google.cloud.retail.v2alpha.UserEventService.RejoinUserEvents", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2alpha.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2alpha_generated_UserEventService_WriteUserEvent_sync", + "title": "retail WriteUserEvent Sample", + "description": "WriteUserEvent writes a single user event.", + "file": "UserEventClient/WriteUserEvent/main.go", + "language": "GO", + "clientMethod": { + "shortName": "WriteUserEvent", + "fullName": "google.cloud.retail.v2alpha.UserEventClient.WriteUserEvent", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.WriteUserEventRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.UserEvent", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2alpha.UserEventClient" + }, + "method": { + "shortName": "WriteUserEvent", + "fullName": "google.cloud.retail.v2alpha.UserEventService.WriteUserEvent", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2alpha.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/retail/apiv2beta/CatalogClient/AddCatalogAttribute/main.go b/internal/generated/snippets/retail/apiv2beta/CatalogClient/AddCatalogAttribute/main.go new file mode 100644 index 000000000000..3596cdc12634 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/CatalogClient/AddCatalogAttribute/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_CatalogService_AddCatalogAttribute_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.AddCatalogAttributeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#AddCatalogAttributeRequest. + } + resp, err := c.AddCatalogAttribute(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_CatalogService_AddCatalogAttribute_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/CatalogClient/BatchRemoveCatalogAttributes/main.go b/internal/generated/snippets/retail/apiv2beta/CatalogClient/BatchRemoveCatalogAttributes/main.go new file mode 100644 index 000000000000..b38db3fdca33 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/CatalogClient/BatchRemoveCatalogAttributes/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_CatalogService_BatchRemoveCatalogAttributes_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.BatchRemoveCatalogAttributesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#BatchRemoveCatalogAttributesRequest. + } + resp, err := c.BatchRemoveCatalogAttributes(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_CatalogService_BatchRemoveCatalogAttributes_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/CatalogClient/GetAttributesConfig/main.go b/internal/generated/snippets/retail/apiv2beta/CatalogClient/GetAttributesConfig/main.go new file mode 100644 index 000000000000..e297c485d4a6 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/CatalogClient/GetAttributesConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_CatalogService_GetAttributesConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.GetAttributesConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#GetAttributesConfigRequest. + } + resp, err := c.GetAttributesConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_CatalogService_GetAttributesConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/CatalogClient/GetCompletionConfig/main.go b/internal/generated/snippets/retail/apiv2beta/CatalogClient/GetCompletionConfig/main.go new file mode 100644 index 000000000000..8ffc25d9c125 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/CatalogClient/GetCompletionConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_CatalogService_GetCompletionConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.GetCompletionConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#GetCompletionConfigRequest. + } + resp, err := c.GetCompletionConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_CatalogService_GetCompletionConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/CatalogClient/GetDefaultBranch/main.go b/internal/generated/snippets/retail/apiv2beta/CatalogClient/GetDefaultBranch/main.go new file mode 100644 index 000000000000..a3c8aa87c8ba --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/CatalogClient/GetDefaultBranch/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_CatalogService_GetDefaultBranch_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.GetDefaultBranchRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#GetDefaultBranchRequest. + } + resp, err := c.GetDefaultBranch(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_CatalogService_GetDefaultBranch_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/CatalogClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2beta/CatalogClient/GetOperation/main.go new file mode 100644 index 000000000000..c90f19fb2feb --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/CatalogClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_CatalogService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_CatalogService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/CatalogClient/ListCatalogs/main.go b/internal/generated/snippets/retail/apiv2beta/CatalogClient/ListCatalogs/main.go new file mode 100644 index 000000000000..863fa49b9b67 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/CatalogClient/ListCatalogs/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_CatalogService_ListCatalogs_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ListCatalogsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#ListCatalogsRequest. + } + it := c.ListCatalogs(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2beta_generated_CatalogService_ListCatalogs_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/CatalogClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2beta/CatalogClient/ListOperations/main.go new file mode 100644 index 000000000000..3a0ffb27e4ad --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/CatalogClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_CatalogService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2beta_generated_CatalogService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/CatalogClient/RemoveCatalogAttribute/main.go b/internal/generated/snippets/retail/apiv2beta/CatalogClient/RemoveCatalogAttribute/main.go new file mode 100644 index 000000000000..b73f430eaebb --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/CatalogClient/RemoveCatalogAttribute/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_CatalogService_RemoveCatalogAttribute_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.RemoveCatalogAttributeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#RemoveCatalogAttributeRequest. + } + resp, err := c.RemoveCatalogAttribute(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_CatalogService_RemoveCatalogAttribute_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/CatalogClient/ReplaceCatalogAttribute/main.go b/internal/generated/snippets/retail/apiv2beta/CatalogClient/ReplaceCatalogAttribute/main.go new file mode 100644 index 000000000000..2bc3bb4da190 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/CatalogClient/ReplaceCatalogAttribute/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_CatalogService_ReplaceCatalogAttribute_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ReplaceCatalogAttributeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#ReplaceCatalogAttributeRequest. + } + resp, err := c.ReplaceCatalogAttribute(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_CatalogService_ReplaceCatalogAttribute_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/CatalogClient/SetDefaultBranch/main.go b/internal/generated/snippets/retail/apiv2beta/CatalogClient/SetDefaultBranch/main.go new file mode 100644 index 000000000000..517b1884242f --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/CatalogClient/SetDefaultBranch/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_CatalogService_SetDefaultBranch_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.SetDefaultBranchRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#SetDefaultBranchRequest. + } + err = c.SetDefaultBranch(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END retail_v2beta_generated_CatalogService_SetDefaultBranch_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/CatalogClient/UpdateAttributesConfig/main.go b/internal/generated/snippets/retail/apiv2beta/CatalogClient/UpdateAttributesConfig/main.go new file mode 100644 index 000000000000..ed019c8ed4ee --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/CatalogClient/UpdateAttributesConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_CatalogService_UpdateAttributesConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateAttributesConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#UpdateAttributesConfigRequest. + } + resp, err := c.UpdateAttributesConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_CatalogService_UpdateAttributesConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/CatalogClient/UpdateCatalog/main.go b/internal/generated/snippets/retail/apiv2beta/CatalogClient/UpdateCatalog/main.go new file mode 100644 index 000000000000..bb06e585ad3f --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/CatalogClient/UpdateCatalog/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_CatalogService_UpdateCatalog_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateCatalogRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#UpdateCatalogRequest. + } + resp, err := c.UpdateCatalog(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_CatalogService_UpdateCatalog_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/CatalogClient/UpdateCompletionConfig/main.go b/internal/generated/snippets/retail/apiv2beta/CatalogClient/UpdateCompletionConfig/main.go new file mode 100644 index 000000000000..9f00b5d14be8 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/CatalogClient/UpdateCompletionConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_CatalogService_UpdateCompletionConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCatalogClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateCompletionConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#UpdateCompletionConfigRequest. + } + resp, err := c.UpdateCompletionConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_CatalogService_UpdateCompletionConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/CompletionClient/CompleteQuery/main.go b/internal/generated/snippets/retail/apiv2beta/CompletionClient/CompleteQuery/main.go new file mode 100644 index 000000000000..d89c197c71a3 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/CompletionClient/CompleteQuery/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_CompletionService_CompleteQuery_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCompletionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.CompleteQueryRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#CompleteQueryRequest. + } + resp, err := c.CompleteQuery(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_CompletionService_CompleteQuery_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/CompletionClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2beta/CompletionClient/GetOperation/main.go new file mode 100644 index 000000000000..d1730fc7dd6c --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/CompletionClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_CompletionService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCompletionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_CompletionService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/CompletionClient/ImportCompletionData/main.go b/internal/generated/snippets/retail/apiv2beta/CompletionClient/ImportCompletionData/main.go new file mode 100644 index 000000000000..51dbf08be3b0 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/CompletionClient/ImportCompletionData/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_CompletionService_ImportCompletionData_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCompletionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ImportCompletionDataRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#ImportCompletionDataRequest. + } + op, err := c.ImportCompletionData(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_CompletionService_ImportCompletionData_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/CompletionClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2beta/CompletionClient/ListOperations/main.go new file mode 100644 index 000000000000..b4939d4adb00 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/CompletionClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_CompletionService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewCompletionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2beta_generated_CompletionService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ControlClient/CreateControl/main.go b/internal/generated/snippets/retail/apiv2beta/ControlClient/CreateControl/main.go new file mode 100644 index 000000000000..1a8e7d1dc64f --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ControlClient/CreateControl/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ControlService_CreateControl_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.CreateControlRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#CreateControlRequest. + } + resp, err := c.CreateControl(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ControlService_CreateControl_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ControlClient/DeleteControl/main.go b/internal/generated/snippets/retail/apiv2beta/ControlClient/DeleteControl/main.go new file mode 100644 index 000000000000..3971e36c0533 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ControlClient/DeleteControl/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ControlService_DeleteControl_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.DeleteControlRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#DeleteControlRequest. + } + err = c.DeleteControl(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END retail_v2beta_generated_ControlService_DeleteControl_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ControlClient/GetControl/main.go b/internal/generated/snippets/retail/apiv2beta/ControlClient/GetControl/main.go new file mode 100644 index 000000000000..07ed536d676f --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ControlClient/GetControl/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ControlService_GetControl_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.GetControlRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#GetControlRequest. + } + resp, err := c.GetControl(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ControlService_GetControl_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ControlClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2beta/ControlClient/GetOperation/main.go new file mode 100644 index 000000000000..7c973f55f12f --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ControlClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ControlService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ControlService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ControlClient/ListControls/main.go b/internal/generated/snippets/retail/apiv2beta/ControlClient/ListControls/main.go new file mode 100644 index 000000000000..e1fb1fff9d76 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ControlClient/ListControls/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ControlService_ListControls_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ListControlsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#ListControlsRequest. + } + it := c.ListControls(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2beta_generated_ControlService_ListControls_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ControlClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2beta/ControlClient/ListOperations/main.go new file mode 100644 index 000000000000..5ea3e51d3e01 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ControlClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ControlService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2beta_generated_ControlService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ControlClient/UpdateControl/main.go b/internal/generated/snippets/retail/apiv2beta/ControlClient/UpdateControl/main.go new file mode 100644 index 000000000000..5960e5f1b1ca --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ControlClient/UpdateControl/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ControlService_UpdateControl_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewControlClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateControlRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#UpdateControlRequest. + } + resp, err := c.UpdateControl(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ControlService_UpdateControl_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ModelClient/CreateModel/main.go b/internal/generated/snippets/retail/apiv2beta/ModelClient/CreateModel/main.go new file mode 100644 index 000000000000..0e28bfb6b412 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ModelClient/CreateModel/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ModelService_CreateModel_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.CreateModelRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#CreateModelRequest. + } + op, err := c.CreateModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ModelService_CreateModel_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ModelClient/DeleteModel/main.go b/internal/generated/snippets/retail/apiv2beta/ModelClient/DeleteModel/main.go new file mode 100644 index 000000000000..c2b261ff0621 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ModelClient/DeleteModel/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ModelService_DeleteModel_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.DeleteModelRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#DeleteModelRequest. + } + err = c.DeleteModel(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END retail_v2beta_generated_ModelService_DeleteModel_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ModelClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2beta/ModelClient/GetOperation/main.go new file mode 100644 index 000000000000..f49c2a584531 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ModelClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ModelService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ModelService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ModelClient/ListModels/main.go b/internal/generated/snippets/retail/apiv2beta/ModelClient/ListModels/main.go new file mode 100644 index 000000000000..b732d3f7b49b --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ModelClient/ListModels/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ModelService_ListModels_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ListModelsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#ListModelsRequest. + } + it := c.ListModels(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2beta_generated_ModelService_ListModels_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ModelClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2beta/ModelClient/ListOperations/main.go new file mode 100644 index 000000000000..76a322159b78 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ModelClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ModelService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2beta_generated_ModelService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ModelClient/PauseModel/main.go b/internal/generated/snippets/retail/apiv2beta/ModelClient/PauseModel/main.go new file mode 100644 index 000000000000..14f1cfef46bf --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ModelClient/PauseModel/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ModelService_PauseModel_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.PauseModelRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#PauseModelRequest. + } + resp, err := c.PauseModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ModelService_PauseModel_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ModelClient/ResumeModel/main.go b/internal/generated/snippets/retail/apiv2beta/ModelClient/ResumeModel/main.go new file mode 100644 index 000000000000..577fc3eed8a4 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ModelClient/ResumeModel/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ModelService_ResumeModel_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ResumeModelRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#ResumeModelRequest. + } + resp, err := c.ResumeModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ModelService_ResumeModel_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ModelClient/TuneModel/main.go b/internal/generated/snippets/retail/apiv2beta/ModelClient/TuneModel/main.go new file mode 100644 index 000000000000..adb8cb3492bf --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ModelClient/TuneModel/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ModelService_TuneModel_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.TuneModelRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#TuneModelRequest. + } + op, err := c.TuneModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ModelService_TuneModel_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ModelClient/UpdateModel/main.go b/internal/generated/snippets/retail/apiv2beta/ModelClient/UpdateModel/main.go new file mode 100644 index 000000000000..98ba259442cb --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ModelClient/UpdateModel/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ModelService_UpdateModel_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewModelClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateModelRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#UpdateModelRequest. + } + resp, err := c.UpdateModel(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ModelService_UpdateModel_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/PredictionClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2beta/PredictionClient/GetOperation/main.go new file mode 100644 index 000000000000..e80f7b984683 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/PredictionClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_PredictionService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewPredictionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_PredictionService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/PredictionClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2beta/PredictionClient/ListOperations/main.go new file mode 100644 index 000000000000..1428deb33431 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/PredictionClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_PredictionService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewPredictionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2beta_generated_PredictionService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/PredictionClient/Predict/main.go b/internal/generated/snippets/retail/apiv2beta/PredictionClient/Predict/main.go new file mode 100644 index 000000000000..ba15a90c4ab6 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/PredictionClient/Predict/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_PredictionService_Predict_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewPredictionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.PredictRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#PredictRequest. + } + resp, err := c.Predict(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_PredictionService_Predict_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ProductClient/AddFulfillmentPlaces/main.go b/internal/generated/snippets/retail/apiv2beta/ProductClient/AddFulfillmentPlaces/main.go new file mode 100644 index 000000000000..26d3bce3c978 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ProductClient/AddFulfillmentPlaces/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ProductService_AddFulfillmentPlaces_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.AddFulfillmentPlacesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#AddFulfillmentPlacesRequest. + } + op, err := c.AddFulfillmentPlaces(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ProductService_AddFulfillmentPlaces_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ProductClient/AddLocalInventories/main.go b/internal/generated/snippets/retail/apiv2beta/ProductClient/AddLocalInventories/main.go new file mode 100644 index 000000000000..9efd7608231d --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ProductClient/AddLocalInventories/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ProductService_AddLocalInventories_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.AddLocalInventoriesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#AddLocalInventoriesRequest. + } + op, err := c.AddLocalInventories(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ProductService_AddLocalInventories_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ProductClient/CreateProduct/main.go b/internal/generated/snippets/retail/apiv2beta/ProductClient/CreateProduct/main.go new file mode 100644 index 000000000000..67a0bcba819a --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ProductClient/CreateProduct/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ProductService_CreateProduct_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.CreateProductRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#CreateProductRequest. + } + resp, err := c.CreateProduct(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ProductService_CreateProduct_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ProductClient/DeleteProduct/main.go b/internal/generated/snippets/retail/apiv2beta/ProductClient/DeleteProduct/main.go new file mode 100644 index 000000000000..c79b53781341 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ProductClient/DeleteProduct/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ProductService_DeleteProduct_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.DeleteProductRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#DeleteProductRequest. + } + err = c.DeleteProduct(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END retail_v2beta_generated_ProductService_DeleteProduct_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ProductClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2beta/ProductClient/GetOperation/main.go new file mode 100644 index 000000000000..ab211b7e2b99 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ProductClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ProductService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ProductService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ProductClient/GetProduct/main.go b/internal/generated/snippets/retail/apiv2beta/ProductClient/GetProduct/main.go new file mode 100644 index 000000000000..f358ba68e223 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ProductClient/GetProduct/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ProductService_GetProduct_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.GetProductRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#GetProductRequest. + } + resp, err := c.GetProduct(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ProductService_GetProduct_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ProductClient/ImportProducts/main.go b/internal/generated/snippets/retail/apiv2beta/ProductClient/ImportProducts/main.go new file mode 100644 index 000000000000..2307b3a155ef --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ProductClient/ImportProducts/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ProductService_ImportProducts_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ImportProductsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#ImportProductsRequest. + } + op, err := c.ImportProducts(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ProductService_ImportProducts_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ProductClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2beta/ProductClient/ListOperations/main.go new file mode 100644 index 000000000000..d1b0f41adacf --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ProductClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ProductService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2beta_generated_ProductService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ProductClient/ListProducts/main.go b/internal/generated/snippets/retail/apiv2beta/ProductClient/ListProducts/main.go new file mode 100644 index 000000000000..010613cf5a35 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ProductClient/ListProducts/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ProductService_ListProducts_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ListProductsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#ListProductsRequest. + } + it := c.ListProducts(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2beta_generated_ProductService_ListProducts_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ProductClient/RemoveFulfillmentPlaces/main.go b/internal/generated/snippets/retail/apiv2beta/ProductClient/RemoveFulfillmentPlaces/main.go new file mode 100644 index 000000000000..70bdfa1b7f76 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ProductClient/RemoveFulfillmentPlaces/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ProductService_RemoveFulfillmentPlaces_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.RemoveFulfillmentPlacesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#RemoveFulfillmentPlacesRequest. + } + op, err := c.RemoveFulfillmentPlaces(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ProductService_RemoveFulfillmentPlaces_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ProductClient/RemoveLocalInventories/main.go b/internal/generated/snippets/retail/apiv2beta/ProductClient/RemoveLocalInventories/main.go new file mode 100644 index 000000000000..03955a118648 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ProductClient/RemoveLocalInventories/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ProductService_RemoveLocalInventories_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.RemoveLocalInventoriesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#RemoveLocalInventoriesRequest. + } + op, err := c.RemoveLocalInventories(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ProductService_RemoveLocalInventories_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ProductClient/SetInventory/main.go b/internal/generated/snippets/retail/apiv2beta/ProductClient/SetInventory/main.go new file mode 100644 index 000000000000..4fe9d085c5e8 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ProductClient/SetInventory/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ProductService_SetInventory_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.SetInventoryRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#SetInventoryRequest. + } + op, err := c.SetInventory(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ProductService_SetInventory_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ProductClient/UpdateProduct/main.go b/internal/generated/snippets/retail/apiv2beta/ProductClient/UpdateProduct/main.go new file mode 100644 index 000000000000..6ad5df2e349f --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ProductClient/UpdateProduct/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ProductService_UpdateProduct_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewProductClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateProductRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#UpdateProductRequest. + } + resp, err := c.UpdateProduct(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ProductService_UpdateProduct_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/SearchClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2beta/SearchClient/GetOperation/main.go new file mode 100644 index 000000000000..c269c91dd1e0 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/SearchClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_SearchService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_SearchService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/SearchClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2beta/SearchClient/ListOperations/main.go new file mode 100644 index 000000000000..500bbfcec29f --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/SearchClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_SearchService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2beta_generated_SearchService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/SearchClient/Search/main.go b/internal/generated/snippets/retail/apiv2beta/SearchClient/Search/main.go new file mode 100644 index 000000000000..ae233e2594e4 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/SearchClient/Search/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_SearchService_Search_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.SearchRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#SearchRequest. + } + it := c.Search(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2beta_generated_SearchService_Search_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/AddControl/main.go b/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/AddControl/main.go new file mode 100644 index 000000000000..cc093f38fc9c --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/AddControl/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ServingConfigService_AddControl_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.AddControlRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#AddControlRequest. + } + resp, err := c.AddControl(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ServingConfigService_AddControl_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/CreateServingConfig/main.go b/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/CreateServingConfig/main.go new file mode 100644 index 000000000000..24447b66a3f9 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/CreateServingConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ServingConfigService_CreateServingConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.CreateServingConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#CreateServingConfigRequest. + } + resp, err := c.CreateServingConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ServingConfigService_CreateServingConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/DeleteServingConfig/main.go b/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/DeleteServingConfig/main.go new file mode 100644 index 000000000000..f0ebd3f8ba52 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/DeleteServingConfig/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ServingConfigService_DeleteServingConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.DeleteServingConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#DeleteServingConfigRequest. + } + err = c.DeleteServingConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END retail_v2beta_generated_ServingConfigService_DeleteServingConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/GetOperation/main.go new file mode 100644 index 000000000000..fa358696fd7b --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ServingConfigService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ServingConfigService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/GetServingConfig/main.go b/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/GetServingConfig/main.go new file mode 100644 index 000000000000..4ad6a4d96c1b --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/GetServingConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ServingConfigService_GetServingConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.GetServingConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#GetServingConfigRequest. + } + resp, err := c.GetServingConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ServingConfigService_GetServingConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/ListOperations/main.go new file mode 100644 index 000000000000..4ed29a46a5c3 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ServingConfigService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2beta_generated_ServingConfigService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/ListServingConfigs/main.go b/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/ListServingConfigs/main.go new file mode 100644 index 000000000000..4d48db566a0c --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/ListServingConfigs/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ServingConfigService_ListServingConfigs_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ListServingConfigsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#ListServingConfigsRequest. + } + it := c.ListServingConfigs(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2beta_generated_ServingConfigService_ListServingConfigs_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/RemoveControl/main.go b/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/RemoveControl/main.go new file mode 100644 index 000000000000..0d990191982e --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/RemoveControl/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ServingConfigService_RemoveControl_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.RemoveControlRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#RemoveControlRequest. + } + resp, err := c.RemoveControl(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ServingConfigService_RemoveControl_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/UpdateServingConfig/main.go b/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/UpdateServingConfig/main.go new file mode 100644 index 000000000000..c4b544d125cc --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/ServingConfigClient/UpdateServingConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_ServingConfigService_UpdateServingConfig_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewServingConfigClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.UpdateServingConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#UpdateServingConfigRequest. + } + resp, err := c.UpdateServingConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_ServingConfigService_UpdateServingConfig_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/UserEventClient/CollectUserEvent/main.go b/internal/generated/snippets/retail/apiv2beta/UserEventClient/CollectUserEvent/main.go new file mode 100644 index 000000000000..ae532c15e779 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/UserEventClient/CollectUserEvent/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_UserEventService_CollectUserEvent_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewUserEventClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.CollectUserEventRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#CollectUserEventRequest. + } + resp, err := c.CollectUserEvent(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_UserEventService_CollectUserEvent_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/UserEventClient/GetOperation/main.go b/internal/generated/snippets/retail/apiv2beta/UserEventClient/GetOperation/main.go new file mode 100644 index 000000000000..7f9a7181aed7 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/UserEventClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_UserEventService_GetOperation_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewUserEventClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_UserEventService_GetOperation_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/UserEventClient/ImportUserEvents/main.go b/internal/generated/snippets/retail/apiv2beta/UserEventClient/ImportUserEvents/main.go new file mode 100644 index 000000000000..c0020b668129 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/UserEventClient/ImportUserEvents/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_UserEventService_ImportUserEvents_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewUserEventClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.ImportUserEventsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#ImportUserEventsRequest. + } + op, err := c.ImportUserEvents(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_UserEventService_ImportUserEvents_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/UserEventClient/ListOperations/main.go b/internal/generated/snippets/retail/apiv2beta/UserEventClient/ListOperations/main.go new file mode 100644 index 000000000000..7df478a68e9c --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/UserEventClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_UserEventService_ListOperations_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewUserEventClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END retail_v2beta_generated_UserEventService_ListOperations_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/UserEventClient/PurgeUserEvents/main.go b/internal/generated/snippets/retail/apiv2beta/UserEventClient/PurgeUserEvents/main.go new file mode 100644 index 000000000000..746f1f608eab --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/UserEventClient/PurgeUserEvents/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_UserEventService_PurgeUserEvents_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewUserEventClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.PurgeUserEventsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#PurgeUserEventsRequest. + } + op, err := c.PurgeUserEvents(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_UserEventService_PurgeUserEvents_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/UserEventClient/RejoinUserEvents/main.go b/internal/generated/snippets/retail/apiv2beta/UserEventClient/RejoinUserEvents/main.go new file mode 100644 index 000000000000..86e3c6810e2c --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/UserEventClient/RejoinUserEvents/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_UserEventService_RejoinUserEvents_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewUserEventClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.RejoinUserEventsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#RejoinUserEventsRequest. + } + op, err := c.RejoinUserEvents(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_UserEventService_RejoinUserEvents_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/UserEventClient/WriteUserEvent/main.go b/internal/generated/snippets/retail/apiv2beta/UserEventClient/WriteUserEvent/main.go new file mode 100644 index 000000000000..1afbe78ab436 --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/UserEventClient/WriteUserEvent/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START retail_v2beta_generated_UserEventService_WriteUserEvent_sync] + +package main + +import ( + "context" + + retail "cloud.google.com/go/retail/apiv2beta" + retailpb "cloud.google.com/go/retail/apiv2beta/retailpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := retail.NewUserEventClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &retailpb.WriteUserEventRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/retail/apiv2beta/retailpb#WriteUserEventRequest. + } + resp, err := c.WriteUserEvent(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END retail_v2beta_generated_UserEventService_WriteUserEvent_sync] diff --git a/internal/generated/snippets/retail/apiv2beta/snippet_metadata.google.cloud.retail.v2beta.json b/internal/generated/snippets/retail/apiv2beta/snippet_metadata.google.cloud.retail.v2beta.json new file mode 100644 index 000000000000..54b9692787de --- /dev/null +++ b/internal/generated/snippets/retail/apiv2beta/snippet_metadata.google.cloud.retail.v2beta.json @@ -0,0 +1,3184 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/retail/apiv2beta", + "version": "1.12.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.retail.v2beta", + "version": "v2beta" + } + ] + }, + "snippets": [ + { + "regionTag": "retail_v2beta_generated_CatalogService_AddCatalogAttribute_sync", + "title": "retail AddCatalogAttribute Sample", + "description": "AddCatalogAttribute adds the specified\nCatalogAttribute to the\nAttributesConfig.\n\nIf the CatalogAttribute to\nadd already exists, an ALREADY_EXISTS error is returned.", + "file": "CatalogClient/AddCatalogAttribute/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AddCatalogAttribute", + "fullName": "google.cloud.retail.v2beta.CatalogClient.AddCatalogAttribute", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.AddCatalogAttributeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.AttributesConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2beta.CatalogClient" + }, + "method": { + "shortName": "AddCatalogAttribute", + "fullName": "google.cloud.retail.v2beta.CatalogService.AddCatalogAttribute", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2beta.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_CatalogService_BatchRemoveCatalogAttributes_sync", + "title": "retail BatchRemoveCatalogAttributes Sample", + "description": "BatchRemoveCatalogAttributes removes all specified\nCatalogAttributes from the\nAttributesConfig.", + "file": "CatalogClient/BatchRemoveCatalogAttributes/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchRemoveCatalogAttributes", + "fullName": "google.cloud.retail.v2beta.CatalogClient.BatchRemoveCatalogAttributes", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.BatchRemoveCatalogAttributesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.BatchRemoveCatalogAttributesResponse", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2beta.CatalogClient" + }, + "method": { + "shortName": "BatchRemoveCatalogAttributes", + "fullName": "google.cloud.retail.v2beta.CatalogService.BatchRemoveCatalogAttributes", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2beta.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_CatalogService_GetAttributesConfig_sync", + "title": "retail GetAttributesConfig Sample", + "description": "GetAttributesConfig gets an AttributesConfig.", + "file": "CatalogClient/GetAttributesConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetAttributesConfig", + "fullName": "google.cloud.retail.v2beta.CatalogClient.GetAttributesConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.GetAttributesConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.AttributesConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2beta.CatalogClient" + }, + "method": { + "shortName": "GetAttributesConfig", + "fullName": "google.cloud.retail.v2beta.CatalogService.GetAttributesConfig", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2beta.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_CatalogService_GetCompletionConfig_sync", + "title": "retail GetCompletionConfig Sample", + "description": "GetCompletionConfig gets a CompletionConfig.", + "file": "CatalogClient/GetCompletionConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCompletionConfig", + "fullName": "google.cloud.retail.v2beta.CatalogClient.GetCompletionConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.GetCompletionConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.CompletionConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2beta.CatalogClient" + }, + "method": { + "shortName": "GetCompletionConfig", + "fullName": "google.cloud.retail.v2beta.CatalogService.GetCompletionConfig", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2beta.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_CatalogService_GetDefaultBranch_sync", + "title": "retail GetDefaultBranch Sample", + "description": "GetDefaultBranch get which branch is currently default branch set by\nCatalogService.SetDefaultBranch\nmethod under a specified parent catalog.", + "file": "CatalogClient/GetDefaultBranch/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetDefaultBranch", + "fullName": "google.cloud.retail.v2beta.CatalogClient.GetDefaultBranch", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.GetDefaultBranchRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.GetDefaultBranchResponse", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2beta.CatalogClient" + }, + "method": { + "shortName": "GetDefaultBranch", + "fullName": "google.cloud.retail.v2beta.CatalogService.GetDefaultBranch", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2beta.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_CatalogService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "CatalogClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2beta.CatalogClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2beta.CatalogClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2beta.CatalogService.GetOperation", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2beta.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_CatalogService_ListCatalogs_sync", + "title": "retail ListCatalogs Sample", + "description": "ListCatalogs lists all the Catalogs associated\nwith the project.", + "file": "CatalogClient/ListCatalogs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCatalogs", + "fullName": "google.cloud.retail.v2beta.CatalogClient.ListCatalogs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ListCatalogsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CatalogIterator", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2beta.CatalogClient" + }, + "method": { + "shortName": "ListCatalogs", + "fullName": "google.cloud.retail.v2beta.CatalogService.ListCatalogs", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2beta.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_CatalogService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "CatalogClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2beta.CatalogClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2beta.CatalogClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2beta.CatalogService.ListOperations", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2beta.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_CatalogService_RemoveCatalogAttribute_sync", + "title": "retail RemoveCatalogAttribute Sample", + "description": "RemoveCatalogAttribute removes the specified\nCatalogAttribute from the\nAttributesConfig.\n\nIf the CatalogAttribute to\nremove does not exist, a NOT_FOUND error is returned.", + "file": "CatalogClient/RemoveCatalogAttribute/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RemoveCatalogAttribute", + "fullName": "google.cloud.retail.v2beta.CatalogClient.RemoveCatalogAttribute", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.RemoveCatalogAttributeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.AttributesConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2beta.CatalogClient" + }, + "method": { + "shortName": "RemoveCatalogAttribute", + "fullName": "google.cloud.retail.v2beta.CatalogService.RemoveCatalogAttribute", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2beta.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_CatalogService_ReplaceCatalogAttribute_sync", + "title": "retail ReplaceCatalogAttribute Sample", + "description": "ReplaceCatalogAttribute replaces the specified\nCatalogAttribute in the\nAttributesConfig by updating\nthe catalog attribute with the same\nCatalogAttribute.key.\n\nIf the CatalogAttribute to\nreplace does not exist, a NOT_FOUND error is returned.", + "file": "CatalogClient/ReplaceCatalogAttribute/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReplaceCatalogAttribute", + "fullName": "google.cloud.retail.v2beta.CatalogClient.ReplaceCatalogAttribute", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ReplaceCatalogAttributeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.AttributesConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2beta.CatalogClient" + }, + "method": { + "shortName": "ReplaceCatalogAttribute", + "fullName": "google.cloud.retail.v2beta.CatalogService.ReplaceCatalogAttribute", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2beta.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_CatalogService_SetDefaultBranch_sync", + "title": "retail SetDefaultBranch Sample", + "description": "SetDefaultBranch set a specified branch id as default branch. API methods such as\nSearchService.Search,\nProductService.GetProduct,\nProductService.ListProducts\nwill treat requests using “default_branch” to the actual branch id set as\ndefault.\n\nFor example, if projects/*/locations/*/catalogs/*/branches/1 is set as\ndefault, setting\nSearchRequest.branch to\nprojects/*/locations/*/catalogs/*/branches/default_branch is equivalent\nto setting\nSearchRequest.branch to\nprojects/*/locations/*/catalogs/*/branches/1.\n\nUsing multiple branches can be useful when developers would like\nto have a staging branch to test and verify for future usage. When it\nbecomes ready, developers switch on the staging branch using this API while\nkeeping using projects/*/locations/*/catalogs/*/branches/default_branch\nas SearchRequest.branch\nto route the traffic to this staging branch.\n\nCAUTION: If you have live predict/search traffic, switching the default\nbranch could potentially cause outages if the ID space of the new branch is\nvery different from the old one.\n\nMore specifically: \n\n\tPredictionService will only return product IDs from branch {newBranch}.\n\n\tSearchService will only return product IDs from branch {newBranch}\n\t(if branch is not explicitly set).\n\n\tUserEventService will only join events with products from branch\n\t{newBranch}.", + "file": "CatalogClient/SetDefaultBranch/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetDefaultBranch", + "fullName": "google.cloud.retail.v2beta.CatalogClient.SetDefaultBranch", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.SetDefaultBranchRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2beta.CatalogClient" + }, + "method": { + "shortName": "SetDefaultBranch", + "fullName": "google.cloud.retail.v2beta.CatalogService.SetDefaultBranch", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2beta.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_CatalogService_UpdateAttributesConfig_sync", + "title": "retail UpdateAttributesConfig Sample", + "description": "UpdateAttributesConfig updates the\nAttributesConfig.\n\nThe catalog attributes in the request will be updated in the catalog, or\ninserted if they do not exist. Existing catalog attributes not included in\nthe request will remain unchanged. Attributes that are assigned to\nproducts, but do not exist at the catalog level, are always included in the\nresponse. The product attribute is assigned default values for missing\ncatalog attribute fields, e.g., searchable and dynamic facetable options.", + "file": "CatalogClient/UpdateAttributesConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateAttributesConfig", + "fullName": "google.cloud.retail.v2beta.CatalogClient.UpdateAttributesConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateAttributesConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.AttributesConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2beta.CatalogClient" + }, + "method": { + "shortName": "UpdateAttributesConfig", + "fullName": "google.cloud.retail.v2beta.CatalogService.UpdateAttributesConfig", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2beta.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_CatalogService_UpdateCatalog_sync", + "title": "retail UpdateCatalog Sample", + "description": "UpdateCatalog updates the Catalogs.", + "file": "CatalogClient/UpdateCatalog/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCatalog", + "fullName": "google.cloud.retail.v2beta.CatalogClient.UpdateCatalog", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateCatalogRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Catalog", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2beta.CatalogClient" + }, + "method": { + "shortName": "UpdateCatalog", + "fullName": "google.cloud.retail.v2beta.CatalogService.UpdateCatalog", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2beta.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_CatalogService_UpdateCompletionConfig_sync", + "title": "retail UpdateCompletionConfig Sample", + "description": "UpdateCompletionConfig updates the\nCompletionConfigs.", + "file": "CatalogClient/UpdateCompletionConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCompletionConfig", + "fullName": "google.cloud.retail.v2beta.CatalogClient.UpdateCompletionConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateCompletionConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.CompletionConfig", + "client": { + "shortName": "CatalogClient", + "fullName": "google.cloud.retail.v2beta.CatalogClient" + }, + "method": { + "shortName": "UpdateCompletionConfig", + "fullName": "google.cloud.retail.v2beta.CatalogService.UpdateCompletionConfig", + "service": { + "shortName": "CatalogService", + "fullName": "google.cloud.retail.v2beta.CatalogService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_CompletionService_CompleteQuery_sync", + "title": "retail CompleteQuery Sample", + "description": "CompleteQuery completes the specified prefix with keyword suggestions.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "CompletionClient/CompleteQuery/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CompleteQuery", + "fullName": "google.cloud.retail.v2beta.CompletionClient.CompleteQuery", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.CompleteQueryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.CompleteQueryResponse", + "client": { + "shortName": "CompletionClient", + "fullName": "google.cloud.retail.v2beta.CompletionClient" + }, + "method": { + "shortName": "CompleteQuery", + "fullName": "google.cloud.retail.v2beta.CompletionService.CompleteQuery", + "service": { + "shortName": "CompletionService", + "fullName": "google.cloud.retail.v2beta.CompletionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_CompletionService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "CompletionClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2beta.CompletionClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "CompletionClient", + "fullName": "google.cloud.retail.v2beta.CompletionClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2beta.CompletionService.GetOperation", + "service": { + "shortName": "CompletionService", + "fullName": "google.cloud.retail.v2beta.CompletionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_CompletionService_ImportCompletionData_sync", + "title": "retail ImportCompletionData Sample", + "description": "ImportCompletionData bulk import of processed completion dataset.\n\nRequest processing is asynchronous. Partial updating is not supported.\n\nThe operation is successfully finished only after the imported suggestions\nare indexed successfully and ready for serving. The process takes hours.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "CompletionClient/ImportCompletionData/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ImportCompletionData", + "fullName": "google.cloud.retail.v2beta.CompletionClient.ImportCompletionData", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ImportCompletionDataRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ImportCompletionDataOperation", + "client": { + "shortName": "CompletionClient", + "fullName": "google.cloud.retail.v2beta.CompletionClient" + }, + "method": { + "shortName": "ImportCompletionData", + "fullName": "google.cloud.retail.v2beta.CompletionService.ImportCompletionData", + "service": { + "shortName": "CompletionService", + "fullName": "google.cloud.retail.v2beta.CompletionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_CompletionService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "CompletionClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2beta.CompletionClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "CompletionClient", + "fullName": "google.cloud.retail.v2beta.CompletionClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2beta.CompletionService.ListOperations", + "service": { + "shortName": "CompletionService", + "fullName": "google.cloud.retail.v2beta.CompletionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ControlService_CreateControl_sync", + "title": "retail CreateControl Sample", + "description": "CreateControl creates a Control.\n\nIf the Control to create already\nexists, an ALREADY_EXISTS error is returned.", + "file": "ControlClient/CreateControl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateControl", + "fullName": "google.cloud.retail.v2beta.ControlClient.CreateControl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.CreateControlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Control", + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2beta.ControlClient" + }, + "method": { + "shortName": "CreateControl", + "fullName": "google.cloud.retail.v2beta.ControlService.CreateControl", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2beta.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ControlService_DeleteControl_sync", + "title": "retail DeleteControl Sample", + "description": "DeleteControl deletes a Control.\n\nIf the Control to delete does not\nexist, a NOT_FOUND error is returned.", + "file": "ControlClient/DeleteControl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteControl", + "fullName": "google.cloud.retail.v2beta.ControlClient.DeleteControl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.DeleteControlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2beta.ControlClient" + }, + "method": { + "shortName": "DeleteControl", + "fullName": "google.cloud.retail.v2beta.ControlService.DeleteControl", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2beta.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ControlService_GetControl_sync", + "title": "retail GetControl Sample", + "description": "GetControl gets a Control.", + "file": "ControlClient/GetControl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetControl", + "fullName": "google.cloud.retail.v2beta.ControlClient.GetControl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.GetControlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Control", + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2beta.ControlClient" + }, + "method": { + "shortName": "GetControl", + "fullName": "google.cloud.retail.v2beta.ControlService.GetControl", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2beta.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ControlService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "ControlClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2beta.ControlClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2beta.ControlClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2beta.ControlService.GetOperation", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2beta.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ControlService_ListControls_sync", + "title": "retail ListControls Sample", + "description": "ListControls lists all Controls by their parent\nCatalog.", + "file": "ControlClient/ListControls/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListControls", + "fullName": "google.cloud.retail.v2beta.ControlClient.ListControls", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ListControlsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ControlIterator", + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2beta.ControlClient" + }, + "method": { + "shortName": "ListControls", + "fullName": "google.cloud.retail.v2beta.ControlService.ListControls", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2beta.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ControlService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "ControlClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2beta.ControlClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2beta.ControlClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2beta.ControlService.ListOperations", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2beta.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ControlService_UpdateControl_sync", + "title": "retail UpdateControl Sample", + "description": "UpdateControl updates a Control.\n\nControl cannot be set to a different\noneof field, if so an INVALID_ARGUMENT is returned. If the\nControl to update does not exist, a\nNOT_FOUND error is returned.", + "file": "ControlClient/UpdateControl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateControl", + "fullName": "google.cloud.retail.v2beta.ControlClient.UpdateControl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateControlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Control", + "client": { + "shortName": "ControlClient", + "fullName": "google.cloud.retail.v2beta.ControlClient" + }, + "method": { + "shortName": "UpdateControl", + "fullName": "google.cloud.retail.v2beta.ControlService.UpdateControl", + "service": { + "shortName": "ControlService", + "fullName": "google.cloud.retail.v2beta.ControlService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ModelService_CreateModel_sync", + "title": "retail CreateModel Sample", + "description": "CreateModel creates a new model.", + "file": "ModelClient/CreateModel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateModel", + "fullName": "google.cloud.retail.v2beta.ModelClient.CreateModel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.CreateModelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateModelOperation", + "client": { + "shortName": "ModelClient", + "fullName": "google.cloud.retail.v2beta.ModelClient" + }, + "method": { + "shortName": "CreateModel", + "fullName": "google.cloud.retail.v2beta.ModelService.CreateModel", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.retail.v2beta.ModelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ModelService_DeleteModel_sync", + "title": "retail DeleteModel Sample", + "description": "DeleteModel deletes an existing model.", + "file": "ModelClient/DeleteModel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteModel", + "fullName": "google.cloud.retail.v2beta.ModelClient.DeleteModel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.DeleteModelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ModelClient", + "fullName": "google.cloud.retail.v2beta.ModelClient" + }, + "method": { + "shortName": "DeleteModel", + "fullName": "google.cloud.retail.v2beta.ModelService.DeleteModel", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.retail.v2beta.ModelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ModelService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "ModelClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2beta.ModelClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "ModelClient", + "fullName": "google.cloud.retail.v2beta.ModelClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2beta.ModelService.GetOperation", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.retail.v2beta.ModelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ModelService_ListModels_sync", + "title": "retail ListModels Sample", + "description": "ListModels lists all the models linked to this event store.", + "file": "ModelClient/ListModels/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListModels", + "fullName": "google.cloud.retail.v2beta.ModelClient.ListModels", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ListModelsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ModelIterator", + "client": { + "shortName": "ModelClient", + "fullName": "google.cloud.retail.v2beta.ModelClient" + }, + "method": { + "shortName": "ListModels", + "fullName": "google.cloud.retail.v2beta.ModelService.ListModels", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.retail.v2beta.ModelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ModelService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "ModelClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2beta.ModelClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "ModelClient", + "fullName": "google.cloud.retail.v2beta.ModelClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2beta.ModelService.ListOperations", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.retail.v2beta.ModelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ModelService_PauseModel_sync", + "title": "retail PauseModel Sample", + "description": "PauseModel pauses the training of an existing model.", + "file": "ModelClient/PauseModel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "PauseModel", + "fullName": "google.cloud.retail.v2beta.ModelClient.PauseModel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.PauseModelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Model", + "client": { + "shortName": "ModelClient", + "fullName": "google.cloud.retail.v2beta.ModelClient" + }, + "method": { + "shortName": "PauseModel", + "fullName": "google.cloud.retail.v2beta.ModelService.PauseModel", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.retail.v2beta.ModelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ModelService_ResumeModel_sync", + "title": "retail ResumeModel Sample", + "description": "ResumeModel resumes the training of an existing model.", + "file": "ModelClient/ResumeModel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResumeModel", + "fullName": "google.cloud.retail.v2beta.ModelClient.ResumeModel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ResumeModelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Model", + "client": { + "shortName": "ModelClient", + "fullName": "google.cloud.retail.v2beta.ModelClient" + }, + "method": { + "shortName": "ResumeModel", + "fullName": "google.cloud.retail.v2beta.ModelService.ResumeModel", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.retail.v2beta.ModelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ModelService_TuneModel_sync", + "title": "retail TuneModel Sample", + "description": "TuneModel tunes an existing model.", + "file": "ModelClient/TuneModel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TuneModel", + "fullName": "google.cloud.retail.v2beta.ModelClient.TuneModel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.TuneModelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "TuneModelOperation", + "client": { + "shortName": "ModelClient", + "fullName": "google.cloud.retail.v2beta.ModelClient" + }, + "method": { + "shortName": "TuneModel", + "fullName": "google.cloud.retail.v2beta.ModelService.TuneModel", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.retail.v2beta.ModelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ModelService_UpdateModel_sync", + "title": "retail UpdateModel Sample", + "description": "UpdateModel update of model metadata. Only fields that\ncurrently can be updated are: filtering_option and\nperiodic_tuning_state.\nIf other values are provided, this API method ignores them.", + "file": "ModelClient/UpdateModel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateModel", + "fullName": "google.cloud.retail.v2beta.ModelClient.UpdateModel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateModelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Model", + "client": { + "shortName": "ModelClient", + "fullName": "google.cloud.retail.v2beta.ModelClient" + }, + "method": { + "shortName": "UpdateModel", + "fullName": "google.cloud.retail.v2beta.ModelService.UpdateModel", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.retail.v2beta.ModelService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_PredictionService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "PredictionClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2beta.PredictionClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "PredictionClient", + "fullName": "google.cloud.retail.v2beta.PredictionClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2beta.PredictionService.GetOperation", + "service": { + "shortName": "PredictionService", + "fullName": "google.cloud.retail.v2beta.PredictionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_PredictionService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "PredictionClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2beta.PredictionClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "PredictionClient", + "fullName": "google.cloud.retail.v2beta.PredictionClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2beta.PredictionService.ListOperations", + "service": { + "shortName": "PredictionService", + "fullName": "google.cloud.retail.v2beta.PredictionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_PredictionService_Predict_sync", + "title": "retail Predict Sample", + "description": "Predict makes a recommendation prediction.", + "file": "PredictionClient/Predict/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Predict", + "fullName": "google.cloud.retail.v2beta.PredictionClient.Predict", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.PredictRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.PredictResponse", + "client": { + "shortName": "PredictionClient", + "fullName": "google.cloud.retail.v2beta.PredictionClient" + }, + "method": { + "shortName": "Predict", + "fullName": "google.cloud.retail.v2beta.PredictionService.Predict", + "service": { + "shortName": "PredictionService", + "fullName": "google.cloud.retail.v2beta.PredictionService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ProductService_AddFulfillmentPlaces_sync", + "title": "retail AddFulfillmentPlaces Sample", + "description": "AddFulfillmentPlaces incrementally adds place IDs to\nProduct.fulfillment_info.place_ids.\n\nThis process is asynchronous and does not require the\nProduct to exist before updating\nfulfillment information. If the request is valid, the update will be\nenqueued and processed downstream. As a consequence, when a response is\nreturned, the added place IDs are not immediately manifested in the\nProduct queried by\nProductService.GetProduct\nor\nProductService.ListProducts.\n\nThe returned Operations will be obsolete\nafter 1 day, and GetOperation\nAPI will return NOT_FOUND afterwards.\n\nIf conflicting updates are issued, the\nOperations associated with the stale\nupdates will not be marked as done\nuntil being obsolete.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "ProductClient/AddFulfillmentPlaces/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AddFulfillmentPlaces", + "fullName": "google.cloud.retail.v2beta.ProductClient.AddFulfillmentPlaces", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.AddFulfillmentPlacesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AddFulfillmentPlacesOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2beta.ProductClient" + }, + "method": { + "shortName": "AddFulfillmentPlaces", + "fullName": "google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2beta.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ProductService_AddLocalInventories_sync", + "title": "retail AddLocalInventories Sample", + "description": "AddLocalInventories updates local inventory information for a\nProduct at a list of places, while\nrespecting the last update timestamps of each inventory field.\n\nThis process is asynchronous and does not require the\nProduct to exist before updating\ninventory information. If the request is valid, the update will be enqueued\nand processed downstream. As a consequence, when a response is returned,\nupdates are not immediately manifested in the\nProduct queried by\nProductService.GetProduct\nor\nProductService.ListProducts.\n\nLocal inventory information can only be modified using this method.\nProductService.CreateProduct\nand\nProductService.UpdateProduct\nhas no effect on local inventories.\n\nThe returned Operations will be obsolete\nafter 1 day, and GetOperation\nAPI will return NOT_FOUND afterwards.\n\nIf conflicting updates are issued, the\nOperations associated with the stale\nupdates will not be marked as done\nuntil being obsolete.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "ProductClient/AddLocalInventories/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AddLocalInventories", + "fullName": "google.cloud.retail.v2beta.ProductClient.AddLocalInventories", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.AddLocalInventoriesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AddLocalInventoriesOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2beta.ProductClient" + }, + "method": { + "shortName": "AddLocalInventories", + "fullName": "google.cloud.retail.v2beta.ProductService.AddLocalInventories", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2beta.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ProductService_CreateProduct_sync", + "title": "retail CreateProduct Sample", + "description": "CreateProduct creates a Product.", + "file": "ProductClient/CreateProduct/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateProduct", + "fullName": "google.cloud.retail.v2beta.ProductClient.CreateProduct", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.CreateProductRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Product", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2beta.ProductClient" + }, + "method": { + "shortName": "CreateProduct", + "fullName": "google.cloud.retail.v2beta.ProductService.CreateProduct", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2beta.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ProductService_DeleteProduct_sync", + "title": "retail DeleteProduct Sample", + "description": "DeleteProduct deletes a Product.", + "file": "ProductClient/DeleteProduct/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteProduct", + "fullName": "google.cloud.retail.v2beta.ProductClient.DeleteProduct", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.DeleteProductRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2beta.ProductClient" + }, + "method": { + "shortName": "DeleteProduct", + "fullName": "google.cloud.retail.v2beta.ProductService.DeleteProduct", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2beta.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ProductService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "ProductClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2beta.ProductClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2beta.ProductClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2beta.ProductService.GetOperation", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2beta.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ProductService_GetProduct_sync", + "title": "retail GetProduct Sample", + "description": "GetProduct gets a Product.", + "file": "ProductClient/GetProduct/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetProduct", + "fullName": "google.cloud.retail.v2beta.ProductClient.GetProduct", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.GetProductRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Product", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2beta.ProductClient" + }, + "method": { + "shortName": "GetProduct", + "fullName": "google.cloud.retail.v2beta.ProductService.GetProduct", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2beta.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ProductService_ImportProducts_sync", + "title": "retail ImportProducts Sample", + "description": "ImportProducts bulk import of multiple Products.\n\nRequest processing may be synchronous.\nNon-existing items are created.\n\nNote that it is possible for a subset of the\nProducts to be successfully updated.", + "file": "ProductClient/ImportProducts/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ImportProducts", + "fullName": "google.cloud.retail.v2beta.ProductClient.ImportProducts", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ImportProductsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ImportProductsOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2beta.ProductClient" + }, + "method": { + "shortName": "ImportProducts", + "fullName": "google.cloud.retail.v2beta.ProductService.ImportProducts", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2beta.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ProductService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "ProductClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2beta.ProductClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2beta.ProductClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2beta.ProductService.ListOperations", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2beta.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ProductService_ListProducts_sync", + "title": "retail ListProducts Sample", + "description": "ListProducts gets a list of Products.", + "file": "ProductClient/ListProducts/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListProducts", + "fullName": "google.cloud.retail.v2beta.ProductClient.ListProducts", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ListProductsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ProductIterator", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2beta.ProductClient" + }, + "method": { + "shortName": "ListProducts", + "fullName": "google.cloud.retail.v2beta.ProductService.ListProducts", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2beta.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ProductService_RemoveFulfillmentPlaces_sync", + "title": "retail RemoveFulfillmentPlaces Sample", + "description": "RemoveFulfillmentPlaces incrementally removes place IDs from a\nProduct.fulfillment_info.place_ids.\n\nThis process is asynchronous and does not require the\nProduct to exist before updating\nfulfillment information. If the request is valid, the update will be\nenqueued and processed downstream. As a consequence, when a response is\nreturned, the removed place IDs are not immediately manifested in the\nProduct queried by\nProductService.GetProduct\nor\nProductService.ListProducts.\n\nThe returned Operations will be obsolete\nafter 1 day, and GetOperation\nAPI will return NOT_FOUND afterwards.\n\nIf conflicting updates are issued, the\nOperations associated with the stale\nupdates will not be marked as done\nuntil being obsolete.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "ProductClient/RemoveFulfillmentPlaces/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RemoveFulfillmentPlaces", + "fullName": "google.cloud.retail.v2beta.ProductClient.RemoveFulfillmentPlaces", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.RemoveFulfillmentPlacesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RemoveFulfillmentPlacesOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2beta.ProductClient" + }, + "method": { + "shortName": "RemoveFulfillmentPlaces", + "fullName": "google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2beta.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ProductService_RemoveLocalInventories_sync", + "title": "retail RemoveLocalInventories Sample", + "description": "RemoveLocalInventories remove local inventory information for a\nProduct at a list of places at a\nremoval timestamp.\n\nThis process is asynchronous. If the request is valid, the removal will be\nenqueued and processed downstream. As a consequence, when a response is\nreturned, removals are not immediately manifested in the\nProduct queried by\nProductService.GetProduct\nor\nProductService.ListProducts.\n\nLocal inventory information can only be removed using this method.\nProductService.CreateProduct\nand\nProductService.UpdateProduct\nhas no effect on local inventories.\n\nThe returned Operations will be obsolete\nafter 1 day, and GetOperation\nAPI will return NOT_FOUND afterwards.\n\nIf conflicting updates are issued, the\nOperations associated with the stale\nupdates will not be marked as done\nuntil being obsolete.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "ProductClient/RemoveLocalInventories/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RemoveLocalInventories", + "fullName": "google.cloud.retail.v2beta.ProductClient.RemoveLocalInventories", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.RemoveLocalInventoriesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RemoveLocalInventoriesOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2beta.ProductClient" + }, + "method": { + "shortName": "RemoveLocalInventories", + "fullName": "google.cloud.retail.v2beta.ProductService.RemoveLocalInventories", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2beta.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ProductService_SetInventory_sync", + "title": "retail SetInventory Sample", + "description": "SetInventory updates inventory information for a\nProduct while respecting the last\nupdate timestamps of each inventory field.\n\nThis process is asynchronous and does not require the\nProduct to exist before updating\nfulfillment information. If the request is valid, the update is enqueued\nand processed downstream. As a consequence, when a response is returned,\nupdates are not immediately manifested in the\nProduct queried by\nProductService.GetProduct\nor\nProductService.ListProducts.\n\nWhen inventory is updated with\nProductService.CreateProduct\nand\nProductService.UpdateProduct,\nthe specified inventory field value(s) overwrite any existing value(s)\nwhile ignoring the last update time for this field. Furthermore, the last\nupdate times for the specified inventory fields are overwritten by the\ntimes of the\nProductService.CreateProduct\nor\nProductService.UpdateProduct\nrequest.\n\nIf no inventory fields are set in\nCreateProductRequest.product,\nthen any pre-existing inventory information for this product is used.\n\nIf no inventory fields are set in\nSetInventoryRequest.set_mask,\nthen any existing inventory information is preserved.\n\nPre-existing inventory information can only be updated with\nProductService.SetInventory,\nProductService.AddFulfillmentPlaces,\nand\nProductService.RemoveFulfillmentPlaces.\n\nThe returned Operations is obsolete after\none day, and the GetOperation\nAPI returns NOT_FOUND afterwards.\n\nIf conflicting updates are issued, the\nOperations associated with the stale\nupdates are not marked as done until\nthey are obsolete.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "ProductClient/SetInventory/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetInventory", + "fullName": "google.cloud.retail.v2beta.ProductClient.SetInventory", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.SetInventoryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SetInventoryOperation", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2beta.ProductClient" + }, + "method": { + "shortName": "SetInventory", + "fullName": "google.cloud.retail.v2beta.ProductService.SetInventory", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2beta.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ProductService_UpdateProduct_sync", + "title": "retail UpdateProduct Sample", + "description": "UpdateProduct updates a Product.", + "file": "ProductClient/UpdateProduct/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateProduct", + "fullName": "google.cloud.retail.v2beta.ProductClient.UpdateProduct", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateProductRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.Product", + "client": { + "shortName": "ProductClient", + "fullName": "google.cloud.retail.v2beta.ProductClient" + }, + "method": { + "shortName": "UpdateProduct", + "fullName": "google.cloud.retail.v2beta.ProductService.UpdateProduct", + "service": { + "shortName": "ProductService", + "fullName": "google.cloud.retail.v2beta.ProductService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_SearchService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "SearchClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2beta.SearchClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "SearchClient", + "fullName": "google.cloud.retail.v2beta.SearchClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2beta.SearchService.GetOperation", + "service": { + "shortName": "SearchService", + "fullName": "google.cloud.retail.v2beta.SearchService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_SearchService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "SearchClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2beta.SearchClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "SearchClient", + "fullName": "google.cloud.retail.v2beta.SearchClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2beta.SearchService.ListOperations", + "service": { + "shortName": "SearchService", + "fullName": "google.cloud.retail.v2beta.SearchService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_SearchService_Search_sync", + "title": "retail Search Sample", + "description": "Search performs a search.\n\nThis feature is only available for users who have Retail Search enabled.\nEnable Retail Search on Cloud Console before using this feature.", + "file": "SearchClient/Search/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Search", + "fullName": "google.cloud.retail.v2beta.SearchClient.Search", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.SearchRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SearchResponse_SearchResultIterator", + "client": { + "shortName": "SearchClient", + "fullName": "google.cloud.retail.v2beta.SearchClient" + }, + "method": { + "shortName": "Search", + "fullName": "google.cloud.retail.v2beta.SearchService.Search", + "service": { + "shortName": "SearchService", + "fullName": "google.cloud.retail.v2beta.SearchService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ServingConfigService_AddControl_sync", + "title": "retail AddControl Sample", + "description": "AddControl enables a Control on the specified ServingConfig.\nThe control is added in the last position of the list of controls\nit belongs to (e.g. if it’s a facet spec control it will be applied\nin the last position of servingConfig.facetSpecIds)\nReturns a ALREADY_EXISTS error if the control has already been applied.\nReturns a FAILED_PRECONDITION error if the addition could exceed maximum\nnumber of control allowed for that type of control.", + "file": "ServingConfigClient/AddControl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AddControl", + "fullName": "google.cloud.retail.v2beta.ServingConfigClient.AddControl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.AddControlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.ServingConfig", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2beta.ServingConfigClient" + }, + "method": { + "shortName": "AddControl", + "fullName": "google.cloud.retail.v2beta.ServingConfigService.AddControl", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2beta.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ServingConfigService_CreateServingConfig_sync", + "title": "retail CreateServingConfig Sample", + "description": "CreateServingConfig creates a ServingConfig.\n\nA maximum of 100 ServingConfigs\nare allowed in a Catalog, otherwise\na FAILED_PRECONDITION error is returned.", + "file": "ServingConfigClient/CreateServingConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateServingConfig", + "fullName": "google.cloud.retail.v2beta.ServingConfigClient.CreateServingConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.CreateServingConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.ServingConfig", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2beta.ServingConfigClient" + }, + "method": { + "shortName": "CreateServingConfig", + "fullName": "google.cloud.retail.v2beta.ServingConfigService.CreateServingConfig", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2beta.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ServingConfigService_DeleteServingConfig_sync", + "title": "retail DeleteServingConfig Sample", + "description": "DeleteServingConfig deletes a ServingConfig.\n\nReturns a NotFound error if the ServingConfig does not exist.", + "file": "ServingConfigClient/DeleteServingConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteServingConfig", + "fullName": "google.cloud.retail.v2beta.ServingConfigClient.DeleteServingConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.DeleteServingConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2beta.ServingConfigClient" + }, + "method": { + "shortName": "DeleteServingConfig", + "fullName": "google.cloud.retail.v2beta.ServingConfigService.DeleteServingConfig", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2beta.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ServingConfigService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "ServingConfigClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2beta.ServingConfigClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2beta.ServingConfigClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2beta.ServingConfigService.GetOperation", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2beta.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ServingConfigService_GetServingConfig_sync", + "title": "retail GetServingConfig Sample", + "description": "GetServingConfig gets a ServingConfig.\n\nReturns a NotFound error if the ServingConfig does not exist.", + "file": "ServingConfigClient/GetServingConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetServingConfig", + "fullName": "google.cloud.retail.v2beta.ServingConfigClient.GetServingConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.GetServingConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.ServingConfig", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2beta.ServingConfigClient" + }, + "method": { + "shortName": "GetServingConfig", + "fullName": "google.cloud.retail.v2beta.ServingConfigService.GetServingConfig", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2beta.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ServingConfigService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "ServingConfigClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2beta.ServingConfigClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2beta.ServingConfigClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2beta.ServingConfigService.ListOperations", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2beta.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ServingConfigService_ListServingConfigs_sync", + "title": "retail ListServingConfigs Sample", + "description": "ListServingConfigs lists all ServingConfigs linked to this catalog.", + "file": "ServingConfigClient/ListServingConfigs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListServingConfigs", + "fullName": "google.cloud.retail.v2beta.ServingConfigClient.ListServingConfigs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ListServingConfigsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ServingConfigIterator", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2beta.ServingConfigClient" + }, + "method": { + "shortName": "ListServingConfigs", + "fullName": "google.cloud.retail.v2beta.ServingConfigService.ListServingConfigs", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2beta.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ServingConfigService_RemoveControl_sync", + "title": "retail RemoveControl Sample", + "description": "RemoveControl disables a Control on the specified ServingConfig.\nThe control is removed from the ServingConfig.\nReturns a NOT_FOUND error if the Control is not enabled for the\nServingConfig.", + "file": "ServingConfigClient/RemoveControl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RemoveControl", + "fullName": "google.cloud.retail.v2beta.ServingConfigClient.RemoveControl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.RemoveControlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.ServingConfig", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2beta.ServingConfigClient" + }, + "method": { + "shortName": "RemoveControl", + "fullName": "google.cloud.retail.v2beta.ServingConfigService.RemoveControl", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2beta.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_ServingConfigService_UpdateServingConfig_sync", + "title": "retail UpdateServingConfig Sample", + "description": "UpdateServingConfig updates a ServingConfig.", + "file": "ServingConfigClient/UpdateServingConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateServingConfig", + "fullName": "google.cloud.retail.v2beta.ServingConfigClient.UpdateServingConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.UpdateServingConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.ServingConfig", + "client": { + "shortName": "ServingConfigClient", + "fullName": "google.cloud.retail.v2beta.ServingConfigClient" + }, + "method": { + "shortName": "UpdateServingConfig", + "fullName": "google.cloud.retail.v2beta.ServingConfigService.UpdateServingConfig", + "service": { + "shortName": "ServingConfigService", + "fullName": "google.cloud.retail.v2beta.ServingConfigService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_UserEventService_CollectUserEvent_sync", + "title": "retail CollectUserEvent Sample", + "description": "CollectUserEvent writes a single user event from the browser. This uses a GET request to\ndue to browser restriction of POST-ing to a 3rd party domain.\n\nThis method is used only by the Retail API JavaScript pixel and Google Tag\nManager. Users should not call this method directly.", + "file": "UserEventClient/CollectUserEvent/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CollectUserEvent", + "fullName": "google.cloud.retail.v2beta.UserEventClient.CollectUserEvent", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.CollectUserEventRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "httpbodypb.HttpBody", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2beta.UserEventClient" + }, + "method": { + "shortName": "CollectUserEvent", + "fullName": "google.cloud.retail.v2beta.UserEventService.CollectUserEvent", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2beta.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_UserEventService_GetOperation_sync", + "title": "retail GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "UserEventClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2beta.UserEventClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2beta.UserEventClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.retail.v2beta.UserEventService.GetOperation", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2beta.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_UserEventService_ImportUserEvents_sync", + "title": "retail ImportUserEvents Sample", + "description": "ImportUserEvents bulk import of User events. Request processing might be\nsynchronous. Events that already exist are skipped.\nUse this method for backfilling historical user events.\n\nOperation.response is of type ImportResponse. Note that it is\npossible for a subset of the items to be successfully inserted.\nOperation.metadata is of type ImportMetadata.", + "file": "UserEventClient/ImportUserEvents/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ImportUserEvents", + "fullName": "google.cloud.retail.v2beta.UserEventClient.ImportUserEvents", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.ImportUserEventsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ImportUserEventsOperation", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2beta.UserEventClient" + }, + "method": { + "shortName": "ImportUserEvents", + "fullName": "google.cloud.retail.v2beta.UserEventService.ImportUserEvents", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2beta.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_UserEventService_ListOperations_sync", + "title": "retail ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "UserEventClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2beta.UserEventClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2beta.UserEventClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.retail.v2beta.UserEventService.ListOperations", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2beta.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_UserEventService_PurgeUserEvents_sync", + "title": "retail PurgeUserEvents Sample", + "description": "PurgeUserEvents deletes permanently all user events specified by the filter provided.\nDepending on the number of events specified by the filter, this operation\ncould take hours or days to complete. To test a filter, use the list\ncommand first.", + "file": "UserEventClient/PurgeUserEvents/main.go", + "language": "GO", + "clientMethod": { + "shortName": "PurgeUserEvents", + "fullName": "google.cloud.retail.v2beta.UserEventClient.PurgeUserEvents", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.PurgeUserEventsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PurgeUserEventsOperation", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2beta.UserEventClient" + }, + "method": { + "shortName": "PurgeUserEvents", + "fullName": "google.cloud.retail.v2beta.UserEventService.PurgeUserEvents", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2beta.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_UserEventService_RejoinUserEvents_sync", + "title": "retail RejoinUserEvents Sample", + "description": "RejoinUserEvents starts a user-event rejoin operation with latest product catalog. Events\nare not annotated with detailed product information for products that are\nmissing from the catalog when the user event is ingested. These\nevents are stored as unjoined events with limited usage on training and\nserving. You can use this method to start a join operation on specified\nevents with the latest version of product catalog. You can also use this\nmethod to correct events joined with the wrong product catalog. A rejoin\noperation can take hours or days to complete.", + "file": "UserEventClient/RejoinUserEvents/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RejoinUserEvents", + "fullName": "google.cloud.retail.v2beta.UserEventClient.RejoinUserEvents", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.RejoinUserEventsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RejoinUserEventsOperation", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2beta.UserEventClient" + }, + "method": { + "shortName": "RejoinUserEvents", + "fullName": "google.cloud.retail.v2beta.UserEventService.RejoinUserEvents", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2beta.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "retail_v2beta_generated_UserEventService_WriteUserEvent_sync", + "title": "retail WriteUserEvent Sample", + "description": "WriteUserEvent writes a single user event.", + "file": "UserEventClient/WriteUserEvent/main.go", + "language": "GO", + "clientMethod": { + "shortName": "WriteUserEvent", + "fullName": "google.cloud.retail.v2beta.UserEventClient.WriteUserEvent", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "retailpb.WriteUserEventRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "retailpb.UserEvent", + "client": { + "shortName": "UserEventClient", + "fullName": "google.cloud.retail.v2beta.UserEventClient" + }, + "method": { + "shortName": "WriteUserEvent", + "fullName": "google.cloud.retail.v2beta.UserEventService.WriteUserEvent", + "service": { + "shortName": "UserEventService", + "fullName": "google.cloud.retail.v2beta.UserEventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/run/apiv2/ExecutionsClient/DeleteExecution/main.go b/internal/generated/snippets/run/apiv2/ExecutionsClient/DeleteExecution/main.go index dee29f078198..ddcd93655745 100644 --- a/internal/generated/snippets/run/apiv2/ExecutionsClient/DeleteExecution/main.go +++ b/internal/generated/snippets/run/apiv2/ExecutionsClient/DeleteExecution/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/ExecutionsClient/DeleteOperation/main.go b/internal/generated/snippets/run/apiv2/ExecutionsClient/DeleteOperation/main.go index 0dc39007ac86..e1261621b56b 100644 --- a/internal/generated/snippets/run/apiv2/ExecutionsClient/DeleteOperation/main.go +++ b/internal/generated/snippets/run/apiv2/ExecutionsClient/DeleteOperation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/ExecutionsClient/GetExecution/main.go b/internal/generated/snippets/run/apiv2/ExecutionsClient/GetExecution/main.go index faf68cd2044b..fdf1c203977a 100644 --- a/internal/generated/snippets/run/apiv2/ExecutionsClient/GetExecution/main.go +++ b/internal/generated/snippets/run/apiv2/ExecutionsClient/GetExecution/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/ExecutionsClient/GetOperation/main.go b/internal/generated/snippets/run/apiv2/ExecutionsClient/GetOperation/main.go index c418ca625268..dd02dcfac6c6 100644 --- a/internal/generated/snippets/run/apiv2/ExecutionsClient/GetOperation/main.go +++ b/internal/generated/snippets/run/apiv2/ExecutionsClient/GetOperation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/ExecutionsClient/ListExecutions/main.go b/internal/generated/snippets/run/apiv2/ExecutionsClient/ListExecutions/main.go index d61c95ddedf4..43267020201b 100644 --- a/internal/generated/snippets/run/apiv2/ExecutionsClient/ListExecutions/main.go +++ b/internal/generated/snippets/run/apiv2/ExecutionsClient/ListExecutions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/ExecutionsClient/ListOperations/main.go b/internal/generated/snippets/run/apiv2/ExecutionsClient/ListOperations/main.go index 4ea7ec94e46e..26109142b852 100644 --- a/internal/generated/snippets/run/apiv2/ExecutionsClient/ListOperations/main.go +++ b/internal/generated/snippets/run/apiv2/ExecutionsClient/ListOperations/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/JobsClient/CreateJob/main.go b/internal/generated/snippets/run/apiv2/JobsClient/CreateJob/main.go index b03ce3942488..3b5cc2c2e497 100644 --- a/internal/generated/snippets/run/apiv2/JobsClient/CreateJob/main.go +++ b/internal/generated/snippets/run/apiv2/JobsClient/CreateJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/JobsClient/DeleteJob/main.go b/internal/generated/snippets/run/apiv2/JobsClient/DeleteJob/main.go index 52645b433e0e..5cb5df1b07bb 100644 --- a/internal/generated/snippets/run/apiv2/JobsClient/DeleteJob/main.go +++ b/internal/generated/snippets/run/apiv2/JobsClient/DeleteJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/JobsClient/DeleteOperation/main.go b/internal/generated/snippets/run/apiv2/JobsClient/DeleteOperation/main.go index 0275fae187c0..3b520db2c707 100644 --- a/internal/generated/snippets/run/apiv2/JobsClient/DeleteOperation/main.go +++ b/internal/generated/snippets/run/apiv2/JobsClient/DeleteOperation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/JobsClient/GetIamPolicy/main.go b/internal/generated/snippets/run/apiv2/JobsClient/GetIamPolicy/main.go index 004414e86303..73a5a68f55cb 100644 --- a/internal/generated/snippets/run/apiv2/JobsClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/run/apiv2/JobsClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/JobsClient/GetJob/main.go b/internal/generated/snippets/run/apiv2/JobsClient/GetJob/main.go index fbd46147787d..3630d895d480 100644 --- a/internal/generated/snippets/run/apiv2/JobsClient/GetJob/main.go +++ b/internal/generated/snippets/run/apiv2/JobsClient/GetJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/JobsClient/GetOperation/main.go b/internal/generated/snippets/run/apiv2/JobsClient/GetOperation/main.go index 12cd27d5ebd5..9d261fbe9709 100644 --- a/internal/generated/snippets/run/apiv2/JobsClient/GetOperation/main.go +++ b/internal/generated/snippets/run/apiv2/JobsClient/GetOperation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/JobsClient/ListJobs/main.go b/internal/generated/snippets/run/apiv2/JobsClient/ListJobs/main.go index c1a823fe3a34..35c281d98448 100644 --- a/internal/generated/snippets/run/apiv2/JobsClient/ListJobs/main.go +++ b/internal/generated/snippets/run/apiv2/JobsClient/ListJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/JobsClient/ListOperations/main.go b/internal/generated/snippets/run/apiv2/JobsClient/ListOperations/main.go index cc152105f2f0..5597466e320e 100644 --- a/internal/generated/snippets/run/apiv2/JobsClient/ListOperations/main.go +++ b/internal/generated/snippets/run/apiv2/JobsClient/ListOperations/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/JobsClient/RunJob/main.go b/internal/generated/snippets/run/apiv2/JobsClient/RunJob/main.go index f53f3dd0a5af..4c42fe7fbfb7 100644 --- a/internal/generated/snippets/run/apiv2/JobsClient/RunJob/main.go +++ b/internal/generated/snippets/run/apiv2/JobsClient/RunJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/JobsClient/SetIamPolicy/main.go b/internal/generated/snippets/run/apiv2/JobsClient/SetIamPolicy/main.go index 25094237711e..b591aed9fdfe 100644 --- a/internal/generated/snippets/run/apiv2/JobsClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/run/apiv2/JobsClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/JobsClient/TestIamPermissions/main.go b/internal/generated/snippets/run/apiv2/JobsClient/TestIamPermissions/main.go index f0bb7806a3f9..92b1de01316f 100644 --- a/internal/generated/snippets/run/apiv2/JobsClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/run/apiv2/JobsClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/JobsClient/UpdateJob/main.go b/internal/generated/snippets/run/apiv2/JobsClient/UpdateJob/main.go index d32613a75f52..68d12300f7b9 100644 --- a/internal/generated/snippets/run/apiv2/JobsClient/UpdateJob/main.go +++ b/internal/generated/snippets/run/apiv2/JobsClient/UpdateJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/RevisionsClient/DeleteOperation/main.go b/internal/generated/snippets/run/apiv2/RevisionsClient/DeleteOperation/main.go index f423115f7069..2fb2ef766bf2 100644 --- a/internal/generated/snippets/run/apiv2/RevisionsClient/DeleteOperation/main.go +++ b/internal/generated/snippets/run/apiv2/RevisionsClient/DeleteOperation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/RevisionsClient/DeleteRevision/main.go b/internal/generated/snippets/run/apiv2/RevisionsClient/DeleteRevision/main.go index 6b630cf2b086..d7d9f30f1b43 100644 --- a/internal/generated/snippets/run/apiv2/RevisionsClient/DeleteRevision/main.go +++ b/internal/generated/snippets/run/apiv2/RevisionsClient/DeleteRevision/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/RevisionsClient/GetOperation/main.go b/internal/generated/snippets/run/apiv2/RevisionsClient/GetOperation/main.go index 0a047f7d4b76..7c27ed502036 100644 --- a/internal/generated/snippets/run/apiv2/RevisionsClient/GetOperation/main.go +++ b/internal/generated/snippets/run/apiv2/RevisionsClient/GetOperation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/RevisionsClient/GetRevision/main.go b/internal/generated/snippets/run/apiv2/RevisionsClient/GetRevision/main.go index d0ef2ae7669b..ebaf4a112a6a 100644 --- a/internal/generated/snippets/run/apiv2/RevisionsClient/GetRevision/main.go +++ b/internal/generated/snippets/run/apiv2/RevisionsClient/GetRevision/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/RevisionsClient/ListOperations/main.go b/internal/generated/snippets/run/apiv2/RevisionsClient/ListOperations/main.go index 67947c778626..5a6583cc6f29 100644 --- a/internal/generated/snippets/run/apiv2/RevisionsClient/ListOperations/main.go +++ b/internal/generated/snippets/run/apiv2/RevisionsClient/ListOperations/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/RevisionsClient/ListRevisions/main.go b/internal/generated/snippets/run/apiv2/RevisionsClient/ListRevisions/main.go index e22d899d2662..027a278acafb 100644 --- a/internal/generated/snippets/run/apiv2/RevisionsClient/ListRevisions/main.go +++ b/internal/generated/snippets/run/apiv2/RevisionsClient/ListRevisions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/ServicesClient/CreateService/main.go b/internal/generated/snippets/run/apiv2/ServicesClient/CreateService/main.go index b5f5fa0b753c..fc405cc3fe09 100644 --- a/internal/generated/snippets/run/apiv2/ServicesClient/CreateService/main.go +++ b/internal/generated/snippets/run/apiv2/ServicesClient/CreateService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/ServicesClient/DeleteOperation/main.go b/internal/generated/snippets/run/apiv2/ServicesClient/DeleteOperation/main.go index 3f4e75dee549..e2138b6a5fa8 100644 --- a/internal/generated/snippets/run/apiv2/ServicesClient/DeleteOperation/main.go +++ b/internal/generated/snippets/run/apiv2/ServicesClient/DeleteOperation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/ServicesClient/DeleteService/main.go b/internal/generated/snippets/run/apiv2/ServicesClient/DeleteService/main.go index d3091d96c1f9..4acccad5a934 100644 --- a/internal/generated/snippets/run/apiv2/ServicesClient/DeleteService/main.go +++ b/internal/generated/snippets/run/apiv2/ServicesClient/DeleteService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/ServicesClient/GetIamPolicy/main.go b/internal/generated/snippets/run/apiv2/ServicesClient/GetIamPolicy/main.go index 5d1f298ec188..08c5e1683bff 100644 --- a/internal/generated/snippets/run/apiv2/ServicesClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/run/apiv2/ServicesClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/ServicesClient/GetOperation/main.go b/internal/generated/snippets/run/apiv2/ServicesClient/GetOperation/main.go index b36ccdbfdfd4..ea523b861979 100644 --- a/internal/generated/snippets/run/apiv2/ServicesClient/GetOperation/main.go +++ b/internal/generated/snippets/run/apiv2/ServicesClient/GetOperation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/ServicesClient/GetService/main.go b/internal/generated/snippets/run/apiv2/ServicesClient/GetService/main.go index c89698401e56..60a2d6697f75 100644 --- a/internal/generated/snippets/run/apiv2/ServicesClient/GetService/main.go +++ b/internal/generated/snippets/run/apiv2/ServicesClient/GetService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/ServicesClient/ListOperations/main.go b/internal/generated/snippets/run/apiv2/ServicesClient/ListOperations/main.go index 1f6cf9f850f1..267736321af5 100644 --- a/internal/generated/snippets/run/apiv2/ServicesClient/ListOperations/main.go +++ b/internal/generated/snippets/run/apiv2/ServicesClient/ListOperations/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/ServicesClient/ListServices/main.go b/internal/generated/snippets/run/apiv2/ServicesClient/ListServices/main.go index f468f6a20a7b..d341d1321809 100644 --- a/internal/generated/snippets/run/apiv2/ServicesClient/ListServices/main.go +++ b/internal/generated/snippets/run/apiv2/ServicesClient/ListServices/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/ServicesClient/SetIamPolicy/main.go b/internal/generated/snippets/run/apiv2/ServicesClient/SetIamPolicy/main.go index 8f0a2bd06be8..04a78373fb5d 100644 --- a/internal/generated/snippets/run/apiv2/ServicesClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/run/apiv2/ServicesClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/ServicesClient/TestIamPermissions/main.go b/internal/generated/snippets/run/apiv2/ServicesClient/TestIamPermissions/main.go index e11a161626c7..11751d04a352 100644 --- a/internal/generated/snippets/run/apiv2/ServicesClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/run/apiv2/ServicesClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/ServicesClient/UpdateService/main.go b/internal/generated/snippets/run/apiv2/ServicesClient/UpdateService/main.go index 50decd0de257..9aaef73139f7 100644 --- a/internal/generated/snippets/run/apiv2/ServicesClient/UpdateService/main.go +++ b/internal/generated/snippets/run/apiv2/ServicesClient/UpdateService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/TasksClient/DeleteOperation/main.go b/internal/generated/snippets/run/apiv2/TasksClient/DeleteOperation/main.go index 6599ec2e199e..f5eeade93a26 100644 --- a/internal/generated/snippets/run/apiv2/TasksClient/DeleteOperation/main.go +++ b/internal/generated/snippets/run/apiv2/TasksClient/DeleteOperation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/TasksClient/GetOperation/main.go b/internal/generated/snippets/run/apiv2/TasksClient/GetOperation/main.go index 13e0dafe9464..eaff482114a7 100644 --- a/internal/generated/snippets/run/apiv2/TasksClient/GetOperation/main.go +++ b/internal/generated/snippets/run/apiv2/TasksClient/GetOperation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/TasksClient/GetTask/main.go b/internal/generated/snippets/run/apiv2/TasksClient/GetTask/main.go index 2a59eed0a9b7..f724f61e437c 100644 --- a/internal/generated/snippets/run/apiv2/TasksClient/GetTask/main.go +++ b/internal/generated/snippets/run/apiv2/TasksClient/GetTask/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/TasksClient/ListOperations/main.go b/internal/generated/snippets/run/apiv2/TasksClient/ListOperations/main.go index e50bf91513db..b77ef4d29e7d 100644 --- a/internal/generated/snippets/run/apiv2/TasksClient/ListOperations/main.go +++ b/internal/generated/snippets/run/apiv2/TasksClient/ListOperations/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/TasksClient/ListTasks/main.go b/internal/generated/snippets/run/apiv2/TasksClient/ListTasks/main.go index cfb23c2a457b..069dc93178db 100644 --- a/internal/generated/snippets/run/apiv2/TasksClient/ListTasks/main.go +++ b/internal/generated/snippets/run/apiv2/TasksClient/ListTasks/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/internal/generated/snippets/run/apiv2/snippet_metadata.google.cloud.run.v2.json b/internal/generated/snippets/run/apiv2/snippet_metadata.google.cloud.run.v2.json index bf2f10ed66c5..6ada799df820 100644 --- a/internal/generated/snippets/run/apiv2/snippet_metadata.google.cloud.run.v2.json +++ b/internal/generated/snippets/run/apiv2/snippet_metadata.google.cloud.run.v2.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/run/apiv2", - "version": "0.4.0", + "version": "0.5.0", "language": "GO", "apis": [ { diff --git a/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/CreateJob/main.go b/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/CreateJob/main.go index c31e7998896f..88c7a84e7cbb 100644 --- a/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/CreateJob/main.go +++ b/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/CreateJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" scheduler "cloud.google.com/go/scheduler/apiv1" - schedulerpb "google.golang.org/genproto/googleapis/cloud/scheduler/v1" + schedulerpb "cloud.google.com/go/scheduler/apiv1/schedulerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &schedulerpb.CreateJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/scheduler/v1#CreateJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/scheduler/apiv1/schedulerpb#CreateJobRequest. } resp, err := c.CreateJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/DeleteJob/main.go b/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/DeleteJob/main.go index aace0cfa03c2..3caa45656ab2 100644 --- a/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/DeleteJob/main.go +++ b/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/DeleteJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" scheduler "cloud.google.com/go/scheduler/apiv1" - schedulerpb "google.golang.org/genproto/googleapis/cloud/scheduler/v1" + schedulerpb "cloud.google.com/go/scheduler/apiv1/schedulerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &schedulerpb.DeleteJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/scheduler/v1#DeleteJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/scheduler/apiv1/schedulerpb#DeleteJobRequest. } err = c.DeleteJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/GetJob/main.go b/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/GetJob/main.go index b4d48563ff78..df500ab7662c 100644 --- a/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/GetJob/main.go +++ b/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/GetJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" scheduler "cloud.google.com/go/scheduler/apiv1" - schedulerpb "google.golang.org/genproto/googleapis/cloud/scheduler/v1" + schedulerpb "cloud.google.com/go/scheduler/apiv1/schedulerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &schedulerpb.GetJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/scheduler/v1#GetJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/scheduler/apiv1/schedulerpb#GetJobRequest. } resp, err := c.GetJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/ListJobs/main.go b/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/ListJobs/main.go index 80318f662567..d6b7bfaa528c 100644 --- a/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/ListJobs/main.go +++ b/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/ListJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" scheduler "cloud.google.com/go/scheduler/apiv1" + schedulerpb "cloud.google.com/go/scheduler/apiv1/schedulerpb" "google.golang.org/api/iterator" - schedulerpb "google.golang.org/genproto/googleapis/cloud/scheduler/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &schedulerpb.ListJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/scheduler/v1#ListJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/scheduler/apiv1/schedulerpb#ListJobsRequest. } it := c.ListJobs(ctx, req) for { diff --git a/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/PauseJob/main.go b/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/PauseJob/main.go index 705af5f323a7..1d762cd1deab 100644 --- a/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/PauseJob/main.go +++ b/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/PauseJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" scheduler "cloud.google.com/go/scheduler/apiv1" - schedulerpb "google.golang.org/genproto/googleapis/cloud/scheduler/v1" + schedulerpb "cloud.google.com/go/scheduler/apiv1/schedulerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &schedulerpb.PauseJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/scheduler/v1#PauseJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/scheduler/apiv1/schedulerpb#PauseJobRequest. } resp, err := c.PauseJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/ResumeJob/main.go b/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/ResumeJob/main.go index de4a5051e9c7..917373eca70d 100644 --- a/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/ResumeJob/main.go +++ b/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/ResumeJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" scheduler "cloud.google.com/go/scheduler/apiv1" - schedulerpb "google.golang.org/genproto/googleapis/cloud/scheduler/v1" + schedulerpb "cloud.google.com/go/scheduler/apiv1/schedulerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &schedulerpb.ResumeJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/scheduler/v1#ResumeJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/scheduler/apiv1/schedulerpb#ResumeJobRequest. } resp, err := c.ResumeJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/RunJob/main.go b/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/RunJob/main.go index db6d5bd61326..d279a70de9e3 100644 --- a/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/RunJob/main.go +++ b/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/RunJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" scheduler "cloud.google.com/go/scheduler/apiv1" - schedulerpb "google.golang.org/genproto/googleapis/cloud/scheduler/v1" + schedulerpb "cloud.google.com/go/scheduler/apiv1/schedulerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &schedulerpb.RunJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/scheduler/v1#RunJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/scheduler/apiv1/schedulerpb#RunJobRequest. } resp, err := c.RunJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/UpdateJob/main.go b/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/UpdateJob/main.go index a8f68573c7b0..48137765b7f5 100644 --- a/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/UpdateJob/main.go +++ b/internal/generated/snippets/scheduler/apiv1/CloudSchedulerClient/UpdateJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" scheduler "cloud.google.com/go/scheduler/apiv1" - schedulerpb "google.golang.org/genproto/googleapis/cloud/scheduler/v1" + schedulerpb "cloud.google.com/go/scheduler/apiv1/schedulerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &schedulerpb.UpdateJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/scheduler/v1#UpdateJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/scheduler/apiv1/schedulerpb#UpdateJobRequest. } resp, err := c.UpdateJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/scheduler/apiv1/snippet_metadata.google.cloud.scheduler.v1.json b/internal/generated/snippets/scheduler/apiv1/snippet_metadata.google.cloud.scheduler.v1.json new file mode 100644 index 000000000000..75a143021ade --- /dev/null +++ b/internal/generated/snippets/scheduler/apiv1/snippet_metadata.google.cloud.scheduler.v1.json @@ -0,0 +1,382 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/scheduler/apiv1", + "version": "1.8.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.scheduler.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "cloudscheduler_v1_generated_CloudScheduler_CreateJob_sync", + "title": "cloudscheduler CreateJob Sample", + "description": "CreateJob creates a job.", + "file": "CloudSchedulerClient/CreateJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateJob", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient.CreateJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "schedulerpb.CreateJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "schedulerpb.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + }, + "method": { + "shortName": "CreateJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.CreateJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1.CloudScheduler" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudscheduler_v1_generated_CloudScheduler_DeleteJob_sync", + "title": "cloudscheduler DeleteJob Sample", + "description": "DeleteJob deletes a job.", + "file": "CloudSchedulerClient/DeleteJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteJob", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient.DeleteJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "schedulerpb.DeleteJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + }, + "method": { + "shortName": "DeleteJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.DeleteJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1.CloudScheduler" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudscheduler_v1_generated_CloudScheduler_GetJob_sync", + "title": "cloudscheduler GetJob Sample", + "description": "GetJob gets a job.", + "file": "CloudSchedulerClient/GetJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetJob", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient.GetJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "schedulerpb.GetJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "schedulerpb.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + }, + "method": { + "shortName": "GetJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.GetJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1.CloudScheduler" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudscheduler_v1_generated_CloudScheduler_ListJobs_sync", + "title": "cloudscheduler ListJobs Sample", + "description": "ListJobs lists jobs.", + "file": "CloudSchedulerClient/ListJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListJobs", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient.ListJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "schedulerpb.ListJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "JobIterator", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + }, + "method": { + "shortName": "ListJobs", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.ListJobs", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1.CloudScheduler" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudscheduler_v1_generated_CloudScheduler_PauseJob_sync", + "title": "cloudscheduler PauseJob Sample", + "description": "PauseJob pauses a job.\n\nIf a job is paused then the system will stop executing the job\nuntil it is re-enabled via ResumeJob. The\nstate of the job is stored in state; if paused it\nwill be set to Job.State.PAUSED. A job must be in Job.State.ENABLED\nto be paused.", + "file": "CloudSchedulerClient/PauseJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "PauseJob", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient.PauseJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "schedulerpb.PauseJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "schedulerpb.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + }, + "method": { + "shortName": "PauseJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.PauseJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1.CloudScheduler" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudscheduler_v1_generated_CloudScheduler_ResumeJob_sync", + "title": "cloudscheduler ResumeJob Sample", + "description": "ResumeJob resume a job.\n\nThis method reenables a job after it has been Job.State.PAUSED. The\nstate of a job is stored in Job.state; after calling this method it\nwill be set to Job.State.ENABLED. A job must be in\nJob.State.PAUSED to be resumed.", + "file": "CloudSchedulerClient/ResumeJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResumeJob", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient.ResumeJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "schedulerpb.ResumeJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "schedulerpb.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + }, + "method": { + "shortName": "ResumeJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.ResumeJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1.CloudScheduler" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudscheduler_v1_generated_CloudScheduler_RunJob_sync", + "title": "cloudscheduler RunJob Sample", + "description": "RunJob forces a job to run now.\n\nWhen this method is called, Cloud Scheduler will dispatch the job, even\nif the job is already running.", + "file": "CloudSchedulerClient/RunJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RunJob", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient.RunJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "schedulerpb.RunJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "schedulerpb.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + }, + "method": { + "shortName": "RunJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.RunJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1.CloudScheduler" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudscheduler_v1_generated_CloudScheduler_UpdateJob_sync", + "title": "cloudscheduler UpdateJob Sample", + "description": "UpdateJob updates a job.\n\nIf successful, the updated Job is returned. If the job does\nnot exist, NOT_FOUND is returned.\n\nIf UpdateJob does not successfully return, it is possible for the\njob to be in an Job.State.UPDATE_FAILED state. A job in this state may\nnot be executed. If this happens, retry the UpdateJob request\nuntil a successful response is received.", + "file": "CloudSchedulerClient/UpdateJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateJob", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient.UpdateJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "schedulerpb.UpdateJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "schedulerpb.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + }, + "method": { + "shortName": "UpdateJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.UpdateJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1.CloudScheduler" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/CreateJob/main.go b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/CreateJob/main.go index 38377ad11694..1c2c14fc2a36 100644 --- a/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/CreateJob/main.go +++ b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/CreateJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" scheduler "cloud.google.com/go/scheduler/apiv1beta1" - schedulerpb "google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1" + schedulerpb "cloud.google.com/go/scheduler/apiv1beta1/schedulerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &schedulerpb.CreateJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1#CreateJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/scheduler/apiv1beta1/schedulerpb#CreateJobRequest. } resp, err := c.CreateJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/DeleteJob/main.go b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/DeleteJob/main.go index 8574dbccb804..538d72606abe 100644 --- a/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/DeleteJob/main.go +++ b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/DeleteJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" scheduler "cloud.google.com/go/scheduler/apiv1beta1" - schedulerpb "google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1" + schedulerpb "cloud.google.com/go/scheduler/apiv1beta1/schedulerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &schedulerpb.DeleteJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1#DeleteJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/scheduler/apiv1beta1/schedulerpb#DeleteJobRequest. } err = c.DeleteJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/GetJob/main.go b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/GetJob/main.go index 8a8b82a57266..ec29aa8508ed 100644 --- a/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/GetJob/main.go +++ b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/GetJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" scheduler "cloud.google.com/go/scheduler/apiv1beta1" - schedulerpb "google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1" + schedulerpb "cloud.google.com/go/scheduler/apiv1beta1/schedulerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &schedulerpb.GetJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1#GetJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/scheduler/apiv1beta1/schedulerpb#GetJobRequest. } resp, err := c.GetJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/GetLocation/main.go b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/GetLocation/main.go new file mode 100644 index 000000000000..e086539f3d81 --- /dev/null +++ b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START cloudscheduler_v1beta1_generated_CloudScheduler_GetLocation_sync] + +package main + +import ( + "context" + + scheduler "cloud.google.com/go/scheduler/apiv1beta1" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := scheduler.NewCloudSchedulerClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END cloudscheduler_v1beta1_generated_CloudScheduler_GetLocation_sync] diff --git a/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/ListJobs/main.go b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/ListJobs/main.go index a80c2b29b572..9ef6a8b0e3fd 100644 --- a/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/ListJobs/main.go +++ b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/ListJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" scheduler "cloud.google.com/go/scheduler/apiv1beta1" + schedulerpb "cloud.google.com/go/scheduler/apiv1beta1/schedulerpb" "google.golang.org/api/iterator" - schedulerpb "google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &schedulerpb.ListJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1#ListJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/scheduler/apiv1beta1/schedulerpb#ListJobsRequest. } it := c.ListJobs(ctx, req) for { diff --git a/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/ListLocations/main.go b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/ListLocations/main.go new file mode 100644 index 000000000000..f1e85633ce58 --- /dev/null +++ b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START cloudscheduler_v1beta1_generated_CloudScheduler_ListLocations_sync] + +package main + +import ( + "context" + + scheduler "cloud.google.com/go/scheduler/apiv1beta1" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := scheduler.NewCloudSchedulerClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END cloudscheduler_v1beta1_generated_CloudScheduler_ListLocations_sync] diff --git a/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/PauseJob/main.go b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/PauseJob/main.go index 0b421a269b1c..83745d0a3c21 100644 --- a/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/PauseJob/main.go +++ b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/PauseJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" scheduler "cloud.google.com/go/scheduler/apiv1beta1" - schedulerpb "google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1" + schedulerpb "cloud.google.com/go/scheduler/apiv1beta1/schedulerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &schedulerpb.PauseJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1#PauseJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/scheduler/apiv1beta1/schedulerpb#PauseJobRequest. } resp, err := c.PauseJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/ResumeJob/main.go b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/ResumeJob/main.go index 7a36f6dd0028..3aba0711459b 100644 --- a/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/ResumeJob/main.go +++ b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/ResumeJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" scheduler "cloud.google.com/go/scheduler/apiv1beta1" - schedulerpb "google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1" + schedulerpb "cloud.google.com/go/scheduler/apiv1beta1/schedulerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &schedulerpb.ResumeJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1#ResumeJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/scheduler/apiv1beta1/schedulerpb#ResumeJobRequest. } resp, err := c.ResumeJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/RunJob/main.go b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/RunJob/main.go index 12ea48c5ba34..d0f747971851 100644 --- a/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/RunJob/main.go +++ b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/RunJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" scheduler "cloud.google.com/go/scheduler/apiv1beta1" - schedulerpb "google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1" + schedulerpb "cloud.google.com/go/scheduler/apiv1beta1/schedulerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &schedulerpb.RunJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1#RunJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/scheduler/apiv1beta1/schedulerpb#RunJobRequest. } resp, err := c.RunJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/UpdateJob/main.go b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/UpdateJob/main.go index 5b33ad334edb..f235fb970386 100644 --- a/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/UpdateJob/main.go +++ b/internal/generated/snippets/scheduler/apiv1beta1/CloudSchedulerClient/UpdateJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" scheduler "cloud.google.com/go/scheduler/apiv1beta1" - schedulerpb "google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1" + schedulerpb "cloud.google.com/go/scheduler/apiv1beta1/schedulerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := scheduler.NewCloudSchedulerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &schedulerpb.UpdateJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1#UpdateJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/scheduler/apiv1beta1/schedulerpb#UpdateJobRequest. } resp, err := c.UpdateJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/scheduler/apiv1beta1/snippet_metadata.google.cloud.scheduler.v1beta1.json b/internal/generated/snippets/scheduler/apiv1beta1/snippet_metadata.google.cloud.scheduler.v1beta1.json new file mode 100644 index 000000000000..585568c333cf --- /dev/null +++ b/internal/generated/snippets/scheduler/apiv1beta1/snippet_metadata.google.cloud.scheduler.v1beta1.json @@ -0,0 +1,474 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/scheduler/apiv1beta1", + "version": "1.8.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.scheduler.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_CreateJob_sync", + "title": "cloudscheduler CreateJob Sample", + "description": "CreateJob creates a job.", + "file": "CloudSchedulerClient/CreateJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient.CreateJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "schedulerpb.CreateJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "schedulerpb.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + }, + "method": { + "shortName": "CreateJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.CreateJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_DeleteJob_sync", + "title": "cloudscheduler DeleteJob Sample", + "description": "DeleteJob deletes a job.", + "file": "CloudSchedulerClient/DeleteJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient.DeleteJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "schedulerpb.DeleteJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + }, + "method": { + "shortName": "DeleteJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.DeleteJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_GetJob_sync", + "title": "cloudscheduler GetJob Sample", + "description": "GetJob gets a job.", + "file": "CloudSchedulerClient/GetJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient.GetJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "schedulerpb.GetJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "schedulerpb.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + }, + "method": { + "shortName": "GetJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.GetJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_GetLocation_sync", + "title": "cloudscheduler GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "CloudSchedulerClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.GetLocation", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_ListJobs_sync", + "title": "cloudscheduler ListJobs Sample", + "description": "ListJobs lists jobs.", + "file": "CloudSchedulerClient/ListJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListJobs", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient.ListJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "schedulerpb.ListJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "JobIterator", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + }, + "method": { + "shortName": "ListJobs", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_ListLocations_sync", + "title": "cloudscheduler ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "CloudSchedulerClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.ListLocations", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_PauseJob_sync", + "title": "cloudscheduler PauseJob Sample", + "description": "PauseJob pauses a job.\n\nIf a job is paused then the system will stop executing the job\nuntil it is re-enabled via\nResumeJob. The\nstate of the job is stored in\nstate; if paused it will be set\nto Job.State.PAUSED. A\njob must be in\nJob.State.ENABLED to be\npaused.", + "file": "CloudSchedulerClient/PauseJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "PauseJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient.PauseJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "schedulerpb.PauseJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "schedulerpb.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + }, + "method": { + "shortName": "PauseJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.PauseJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_ResumeJob_sync", + "title": "cloudscheduler ResumeJob Sample", + "description": "ResumeJob resume a job.\n\nThis method reenables a job after it has been\nJob.State.PAUSED. The\nstate of a job is stored in\nJob.state; after calling this\nmethod it will be set to\nJob.State.ENABLED. A\njob must be in\nJob.State.PAUSED to be\nresumed.", + "file": "CloudSchedulerClient/ResumeJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResumeJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient.ResumeJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "schedulerpb.ResumeJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "schedulerpb.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + }, + "method": { + "shortName": "ResumeJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_RunJob_sync", + "title": "cloudscheduler RunJob Sample", + "description": "RunJob forces a job to run now.\n\nWhen this method is called, Cloud Scheduler will dispatch the job, even\nif the job is already running.", + "file": "CloudSchedulerClient/RunJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RunJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient.RunJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "schedulerpb.RunJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "schedulerpb.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + }, + "method": { + "shortName": "RunJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.RunJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_UpdateJob_sync", + "title": "cloudscheduler UpdateJob Sample", + "description": "UpdateJob updates a job.\n\nIf successful, the updated Job is\nreturned. If the job does not exist, NOT_FOUND is returned.\n\nIf UpdateJob does not successfully return, it is possible for the\njob to be in an\nJob.State.UPDATE_FAILED\nstate. A job in this state may not be executed. If this happens, retry the\nUpdateJob request until a successful response is received.", + "file": "CloudSchedulerClient/UpdateJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient.UpdateJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "schedulerpb.UpdateJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "schedulerpb.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + }, + "method": { + "shortName": "UpdateJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/secretmanager/apiv1/Client/AccessSecretVersion/main.go b/internal/generated/snippets/secretmanager/apiv1/Client/AccessSecretVersion/main.go index c7241ff16bff..b0954b176c80 100644 --- a/internal/generated/snippets/secretmanager/apiv1/Client/AccessSecretVersion/main.go +++ b/internal/generated/snippets/secretmanager/apiv1/Client/AccessSecretVersion/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" secretmanager "cloud.google.com/go/secretmanager/apiv1" - secretmanagerpb "google.golang.org/genproto/googleapis/cloud/secretmanager/v1" + secretmanagerpb "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &secretmanagerpb.AccessSecretVersionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/secretmanager/v1#AccessSecretVersionRequest. + // See https://pkg.go.dev/cloud.google.com/go/secretmanager/apiv1/secretmanagerpb#AccessSecretVersionRequest. } resp, err := c.AccessSecretVersion(ctx, req) if err != nil { diff --git a/internal/generated/snippets/secretmanager/apiv1/Client/AddSecretVersion/main.go b/internal/generated/snippets/secretmanager/apiv1/Client/AddSecretVersion/main.go index d0e8751b0afd..eb493fb252e3 100644 --- a/internal/generated/snippets/secretmanager/apiv1/Client/AddSecretVersion/main.go +++ b/internal/generated/snippets/secretmanager/apiv1/Client/AddSecretVersion/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" secretmanager "cloud.google.com/go/secretmanager/apiv1" - secretmanagerpb "google.golang.org/genproto/googleapis/cloud/secretmanager/v1" + secretmanagerpb "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &secretmanagerpb.AddSecretVersionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/secretmanager/v1#AddSecretVersionRequest. + // See https://pkg.go.dev/cloud.google.com/go/secretmanager/apiv1/secretmanagerpb#AddSecretVersionRequest. } resp, err := c.AddSecretVersion(ctx, req) if err != nil { diff --git a/internal/generated/snippets/secretmanager/apiv1/Client/CreateSecret/main.go b/internal/generated/snippets/secretmanager/apiv1/Client/CreateSecret/main.go index 059c98203802..7f8494025d90 100644 --- a/internal/generated/snippets/secretmanager/apiv1/Client/CreateSecret/main.go +++ b/internal/generated/snippets/secretmanager/apiv1/Client/CreateSecret/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" secretmanager "cloud.google.com/go/secretmanager/apiv1" - secretmanagerpb "google.golang.org/genproto/googleapis/cloud/secretmanager/v1" + secretmanagerpb "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &secretmanagerpb.CreateSecretRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/secretmanager/v1#CreateSecretRequest. + // See https://pkg.go.dev/cloud.google.com/go/secretmanager/apiv1/secretmanagerpb#CreateSecretRequest. } resp, err := c.CreateSecret(ctx, req) if err != nil { diff --git a/internal/generated/snippets/secretmanager/apiv1/Client/DeleteSecret/main.go b/internal/generated/snippets/secretmanager/apiv1/Client/DeleteSecret/main.go index 2aa0348486fc..716bed6d2859 100644 --- a/internal/generated/snippets/secretmanager/apiv1/Client/DeleteSecret/main.go +++ b/internal/generated/snippets/secretmanager/apiv1/Client/DeleteSecret/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" secretmanager "cloud.google.com/go/secretmanager/apiv1" - secretmanagerpb "google.golang.org/genproto/googleapis/cloud/secretmanager/v1" + secretmanagerpb "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &secretmanagerpb.DeleteSecretRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/secretmanager/v1#DeleteSecretRequest. + // See https://pkg.go.dev/cloud.google.com/go/secretmanager/apiv1/secretmanagerpb#DeleteSecretRequest. } err = c.DeleteSecret(ctx, req) if err != nil { diff --git a/internal/generated/snippets/secretmanager/apiv1/Client/DestroySecretVersion/main.go b/internal/generated/snippets/secretmanager/apiv1/Client/DestroySecretVersion/main.go index 59365eba214f..1dbc3379245c 100644 --- a/internal/generated/snippets/secretmanager/apiv1/Client/DestroySecretVersion/main.go +++ b/internal/generated/snippets/secretmanager/apiv1/Client/DestroySecretVersion/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" secretmanager "cloud.google.com/go/secretmanager/apiv1" - secretmanagerpb "google.golang.org/genproto/googleapis/cloud/secretmanager/v1" + secretmanagerpb "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &secretmanagerpb.DestroySecretVersionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/secretmanager/v1#DestroySecretVersionRequest. + // See https://pkg.go.dev/cloud.google.com/go/secretmanager/apiv1/secretmanagerpb#DestroySecretVersionRequest. } resp, err := c.DestroySecretVersion(ctx, req) if err != nil { diff --git a/internal/generated/snippets/secretmanager/apiv1/Client/DisableSecretVersion/main.go b/internal/generated/snippets/secretmanager/apiv1/Client/DisableSecretVersion/main.go index bf2321f7013c..102e20289bcd 100644 --- a/internal/generated/snippets/secretmanager/apiv1/Client/DisableSecretVersion/main.go +++ b/internal/generated/snippets/secretmanager/apiv1/Client/DisableSecretVersion/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" secretmanager "cloud.google.com/go/secretmanager/apiv1" - secretmanagerpb "google.golang.org/genproto/googleapis/cloud/secretmanager/v1" + secretmanagerpb "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &secretmanagerpb.DisableSecretVersionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/secretmanager/v1#DisableSecretVersionRequest. + // See https://pkg.go.dev/cloud.google.com/go/secretmanager/apiv1/secretmanagerpb#DisableSecretVersionRequest. } resp, err := c.DisableSecretVersion(ctx, req) if err != nil { diff --git a/internal/generated/snippets/secretmanager/apiv1/Client/EnableSecretVersion/main.go b/internal/generated/snippets/secretmanager/apiv1/Client/EnableSecretVersion/main.go index d876f6276f70..b550cdb9d734 100644 --- a/internal/generated/snippets/secretmanager/apiv1/Client/EnableSecretVersion/main.go +++ b/internal/generated/snippets/secretmanager/apiv1/Client/EnableSecretVersion/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" secretmanager "cloud.google.com/go/secretmanager/apiv1" - secretmanagerpb "google.golang.org/genproto/googleapis/cloud/secretmanager/v1" + secretmanagerpb "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &secretmanagerpb.EnableSecretVersionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/secretmanager/v1#EnableSecretVersionRequest. + // See https://pkg.go.dev/cloud.google.com/go/secretmanager/apiv1/secretmanagerpb#EnableSecretVersionRequest. } resp, err := c.EnableSecretVersion(ctx, req) if err != nil { diff --git a/internal/generated/snippets/secretmanager/apiv1/Client/GetIamPolicy/main.go b/internal/generated/snippets/secretmanager/apiv1/Client/GetIamPolicy/main.go index 07b111bfa772..c8fdbbcc93c2 100644 --- a/internal/generated/snippets/secretmanager/apiv1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/secretmanager/apiv1/Client/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" secretmanager "cloud.google.com/go/secretmanager/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/secretmanager/apiv1/Client/GetSecret/main.go b/internal/generated/snippets/secretmanager/apiv1/Client/GetSecret/main.go index 1a553370a5f2..a4ce6b6e586a 100644 --- a/internal/generated/snippets/secretmanager/apiv1/Client/GetSecret/main.go +++ b/internal/generated/snippets/secretmanager/apiv1/Client/GetSecret/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" secretmanager "cloud.google.com/go/secretmanager/apiv1" - secretmanagerpb "google.golang.org/genproto/googleapis/cloud/secretmanager/v1" + secretmanagerpb "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &secretmanagerpb.GetSecretRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/secretmanager/v1#GetSecretRequest. + // See https://pkg.go.dev/cloud.google.com/go/secretmanager/apiv1/secretmanagerpb#GetSecretRequest. } resp, err := c.GetSecret(ctx, req) if err != nil { diff --git a/internal/generated/snippets/secretmanager/apiv1/Client/GetSecretVersion/main.go b/internal/generated/snippets/secretmanager/apiv1/Client/GetSecretVersion/main.go index 413376df6aab..06dcbbf3d50d 100644 --- a/internal/generated/snippets/secretmanager/apiv1/Client/GetSecretVersion/main.go +++ b/internal/generated/snippets/secretmanager/apiv1/Client/GetSecretVersion/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" secretmanager "cloud.google.com/go/secretmanager/apiv1" - secretmanagerpb "google.golang.org/genproto/googleapis/cloud/secretmanager/v1" + secretmanagerpb "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &secretmanagerpb.GetSecretVersionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/secretmanager/v1#GetSecretVersionRequest. + // See https://pkg.go.dev/cloud.google.com/go/secretmanager/apiv1/secretmanagerpb#GetSecretVersionRequest. } resp, err := c.GetSecretVersion(ctx, req) if err != nil { diff --git a/internal/generated/snippets/secretmanager/apiv1/Client/ListSecretVersions/main.go b/internal/generated/snippets/secretmanager/apiv1/Client/ListSecretVersions/main.go index f8bfb9b2d5ef..a3adac7c8a57 100644 --- a/internal/generated/snippets/secretmanager/apiv1/Client/ListSecretVersions/main.go +++ b/internal/generated/snippets/secretmanager/apiv1/Client/ListSecretVersions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" secretmanager "cloud.google.com/go/secretmanager/apiv1" + secretmanagerpb "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb" "google.golang.org/api/iterator" - secretmanagerpb "google.golang.org/genproto/googleapis/cloud/secretmanager/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &secretmanagerpb.ListSecretVersionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/secretmanager/v1#ListSecretVersionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/secretmanager/apiv1/secretmanagerpb#ListSecretVersionsRequest. } it := c.ListSecretVersions(ctx, req) for { diff --git a/internal/generated/snippets/secretmanager/apiv1/Client/ListSecrets/main.go b/internal/generated/snippets/secretmanager/apiv1/Client/ListSecrets/main.go index 23b392f2c684..3f896915ee9d 100644 --- a/internal/generated/snippets/secretmanager/apiv1/Client/ListSecrets/main.go +++ b/internal/generated/snippets/secretmanager/apiv1/Client/ListSecrets/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" secretmanager "cloud.google.com/go/secretmanager/apiv1" + secretmanagerpb "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb" "google.golang.org/api/iterator" - secretmanagerpb "google.golang.org/genproto/googleapis/cloud/secretmanager/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &secretmanagerpb.ListSecretsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/secretmanager/v1#ListSecretsRequest. + // See https://pkg.go.dev/cloud.google.com/go/secretmanager/apiv1/secretmanagerpb#ListSecretsRequest. } it := c.ListSecrets(ctx, req) for { diff --git a/internal/generated/snippets/secretmanager/apiv1/Client/SetIamPolicy/main.go b/internal/generated/snippets/secretmanager/apiv1/Client/SetIamPolicy/main.go index 5b805a0fb092..4473d62bde3f 100644 --- a/internal/generated/snippets/secretmanager/apiv1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/secretmanager/apiv1/Client/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" secretmanager "cloud.google.com/go/secretmanager/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/secretmanager/apiv1/Client/TestIamPermissions/main.go b/internal/generated/snippets/secretmanager/apiv1/Client/TestIamPermissions/main.go index a8b6fe0aac0e..4fa0944406fe 100644 --- a/internal/generated/snippets/secretmanager/apiv1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/secretmanager/apiv1/Client/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" secretmanager "cloud.google.com/go/secretmanager/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/secretmanager/apiv1/Client/UpdateSecret/main.go b/internal/generated/snippets/secretmanager/apiv1/Client/UpdateSecret/main.go index b4ee465fd23b..0da393f2b42e 100644 --- a/internal/generated/snippets/secretmanager/apiv1/Client/UpdateSecret/main.go +++ b/internal/generated/snippets/secretmanager/apiv1/Client/UpdateSecret/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" secretmanager "cloud.google.com/go/secretmanager/apiv1" - secretmanagerpb "google.golang.org/genproto/googleapis/cloud/secretmanager/v1" + secretmanagerpb "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := secretmanager.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &secretmanagerpb.UpdateSecretRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/secretmanager/v1#UpdateSecretRequest. + // See https://pkg.go.dev/cloud.google.com/go/secretmanager/apiv1/secretmanagerpb#UpdateSecretRequest. } resp, err := c.UpdateSecret(ctx, req) if err != nil { diff --git a/internal/generated/snippets/secretmanager/apiv1/snippet_metadata.google.cloud.secretmanager.v1.json b/internal/generated/snippets/secretmanager/apiv1/snippet_metadata.google.cloud.secretmanager.v1.json index e20b78044c4a..1564be79d114 100644 --- a/internal/generated/snippets/secretmanager/apiv1/snippet_metadata.google.cloud.secretmanager.v1.json +++ b/internal/generated/snippets/secretmanager/apiv1/snippet_metadata.google.cloud.secretmanager.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "cloud.google.com/go/secretmanager/apiv1", - "version": "1.4.0", + "version": "1.10.0", "language": "GO", "apis": [ { @@ -52,7 +52,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 53, "type": "FULL" } ] @@ -98,7 +98,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 53, "type": "FULL" } ] @@ -144,7 +144,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 53, "type": "FULL" } ] @@ -189,7 +189,7 @@ "segments": [ { "start": 18, - "end": 45, + "end": 51, "type": "FULL" } ] @@ -235,7 +235,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 53, "type": "FULL" } ] @@ -281,7 +281,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 53, "type": "FULL" } ] @@ -327,7 +327,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 53, "type": "FULL" } ] @@ -373,7 +373,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 54, "type": "FULL" } ] @@ -419,7 +419,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 53, "type": "FULL" } ] @@ -465,7 +465,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 53, "type": "FULL" } ] @@ -511,7 +511,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 60, "type": "FULL" } ] @@ -557,7 +557,7 @@ "segments": [ { "start": 18, - "end": 54, + "end": 60, "type": "FULL" } ] @@ -603,7 +603,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 54, "type": "FULL" } ] @@ -649,7 +649,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 54, "type": "FULL" } ] @@ -695,7 +695,7 @@ "segments": [ { "start": 18, - "end": 47, + "end": 53, "type": "FULL" } ] diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ActivateCertificateAuthority/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ActivateCertificateAuthority/main.go index 78dea820e7ba..c9633184a341 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ActivateCertificateAuthority/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ActivateCertificateAuthority/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.ActivateCertificateAuthorityRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#ActivateCertificateAuthorityRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#ActivateCertificateAuthorityRequest. } op, err := c.ActivateCertificateAuthority(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/CreateCaPool/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/CreateCaPool/main.go index 8cbe5ed40ed4..81b734cf1991 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/CreateCaPool/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/CreateCaPool/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.CreateCaPoolRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#CreateCaPoolRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#CreateCaPoolRequest. } op, err := c.CreateCaPool(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/CreateCertificate/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/CreateCertificate/main.go index aab0c8521f86..290bc7f95112 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/CreateCertificate/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/CreateCertificate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.CreateCertificateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#CreateCertificateRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#CreateCertificateRequest. } resp, err := c.CreateCertificate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/CreateCertificateAuthority/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/CreateCertificateAuthority/main.go index 78c3ceac3ba8..1fa0f06efb68 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/CreateCertificateAuthority/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/CreateCertificateAuthority/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.CreateCertificateAuthorityRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#CreateCertificateAuthorityRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#CreateCertificateAuthorityRequest. } op, err := c.CreateCertificateAuthority(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/CreateCertificateTemplate/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/CreateCertificateTemplate/main.go index 9ec8d447d565..2eb0aeb0c9d9 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/CreateCertificateTemplate/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/CreateCertificateTemplate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.CreateCertificateTemplateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#CreateCertificateTemplateRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#CreateCertificateTemplateRequest. } op, err := c.CreateCertificateTemplate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/DeleteCaPool/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/DeleteCaPool/main.go index 8d2c292c96e3..a877c1b806ae 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/DeleteCaPool/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/DeleteCaPool/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.DeleteCaPoolRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#DeleteCaPoolRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#DeleteCaPoolRequest. } op, err := c.DeleteCaPool(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/DeleteCertificateAuthority/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/DeleteCertificateAuthority/main.go index 04d35e5a2129..3d7ef139e0b8 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/DeleteCertificateAuthority/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/DeleteCertificateAuthority/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.DeleteCertificateAuthorityRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#DeleteCertificateAuthorityRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#DeleteCertificateAuthorityRequest. } op, err := c.DeleteCertificateAuthority(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/DeleteCertificateTemplate/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/DeleteCertificateTemplate/main.go index 4adb57473e4a..705118ee642b 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/DeleteCertificateTemplate/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/DeleteCertificateTemplate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.DeleteCertificateTemplateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#DeleteCertificateTemplateRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#DeleteCertificateTemplateRequest. } op, err := c.DeleteCertificateTemplate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/DisableCertificateAuthority/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/DisableCertificateAuthority/main.go index a024d196f657..1e4473146a34 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/DisableCertificateAuthority/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/DisableCertificateAuthority/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.DisableCertificateAuthorityRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#DisableCertificateAuthorityRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#DisableCertificateAuthorityRequest. } op, err := c.DisableCertificateAuthority(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/EnableCertificateAuthority/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/EnableCertificateAuthority/main.go index 0fb8e7b7c8d1..c02d9af09abc 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/EnableCertificateAuthority/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/EnableCertificateAuthority/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.EnableCertificateAuthorityRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#EnableCertificateAuthorityRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#EnableCertificateAuthorityRequest. } op, err := c.EnableCertificateAuthority(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/FetchCaCerts/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/FetchCaCerts/main.go index bda38b493a6a..44dd9c8bbf90 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/FetchCaCerts/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/FetchCaCerts/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.FetchCaCertsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#FetchCaCertsRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#FetchCaCertsRequest. } resp, err := c.FetchCaCerts(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/FetchCertificateAuthorityCsr/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/FetchCertificateAuthorityCsr/main.go index 19e5208293ff..1c2d5f7ea9a1 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/FetchCertificateAuthorityCsr/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/FetchCertificateAuthorityCsr/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.FetchCertificateAuthorityCsrRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#FetchCertificateAuthorityCsrRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#FetchCertificateAuthorityCsrRequest. } resp, err := c.FetchCertificateAuthorityCsr(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCaPool/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCaPool/main.go index c7560a9f4485..4bba28a9eb14 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCaPool/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCaPool/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.GetCaPoolRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#GetCaPoolRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#GetCaPoolRequest. } resp, err := c.GetCaPool(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCertificate/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCertificate/main.go index 0a6cc14ea545..865037a1216e 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCertificate/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCertificate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.GetCertificateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#GetCertificateRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#GetCertificateRequest. } resp, err := c.GetCertificate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCertificateAuthority/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCertificateAuthority/main.go index b5dfa2764ff4..9fa6697fcee8 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCertificateAuthority/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCertificateAuthority/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.GetCertificateAuthorityRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#GetCertificateAuthorityRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#GetCertificateAuthorityRequest. } resp, err := c.GetCertificateAuthority(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCertificateRevocationList/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCertificateRevocationList/main.go index 79919fa31a8f..2b39862eb551 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCertificateRevocationList/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCertificateRevocationList/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.GetCertificateRevocationListRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#GetCertificateRevocationListRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#GetCertificateRevocationListRequest. } resp, err := c.GetCertificateRevocationList(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCertificateTemplate/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCertificateTemplate/main.go index 3fd27994df59..47c809112006 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCertificateTemplate/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetCertificateTemplate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.GetCertificateTemplateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#GetCertificateTemplateRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#GetCertificateTemplateRequest. } resp, err := c.GetCertificateTemplate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetIamPolicy/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetIamPolicy/main.go index 35d6a15846b7..3b4f63c47e6e 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetLocation/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetLocation/main.go index 45577c0d3ff2..7f270d7a42c1 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetLocation/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/GetLocation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" + locationpb "google.golang.org/genproto/googleapis/cloud/location" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCaPools/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCaPools/main.go index 21f9a6bfc84b..538cebccc2e8 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCaPools/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCaPools/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" "google.golang.org/api/iterator" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &privatecapb.ListCaPoolsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#ListCaPoolsRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#ListCaPoolsRequest. } it := c.ListCaPools(ctx, req) for { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCertificateAuthorities/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCertificateAuthorities/main.go index 36d28a437bb2..84cdbd5dbb85 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCertificateAuthorities/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCertificateAuthorities/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" "google.golang.org/api/iterator" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &privatecapb.ListCertificateAuthoritiesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#ListCertificateAuthoritiesRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#ListCertificateAuthoritiesRequest. } it := c.ListCertificateAuthorities(ctx, req) for { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCertificateRevocationLists/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCertificateRevocationLists/main.go index bae2874fd466..736c86526662 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCertificateRevocationLists/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCertificateRevocationLists/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" "google.golang.org/api/iterator" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &privatecapb.ListCertificateRevocationListsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#ListCertificateRevocationListsRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#ListCertificateRevocationListsRequest. } it := c.ListCertificateRevocationLists(ctx, req) for { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCertificateTemplates/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCertificateTemplates/main.go index 3053d1fb48b5..109f8ba582ca 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCertificateTemplates/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCertificateTemplates/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" "google.golang.org/api/iterator" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &privatecapb.ListCertificateTemplatesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#ListCertificateTemplatesRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#ListCertificateTemplatesRequest. } it := c.ListCertificateTemplates(ctx, req) for { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCertificates/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCertificates/main.go index 1ad68f1cdbe4..a4a5d0e9325b 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCertificates/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListCertificates/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" "google.golang.org/api/iterator" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &privatecapb.ListCertificatesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#ListCertificatesRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#ListCertificatesRequest. } it := c.ListCertificates(ctx, req) for { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListLocations/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListLocations/main.go index 7a4881a704b3..8cca7af97b51 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListLocations/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/ListLocations/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,11 +23,17 @@ import ( privateca "cloud.google.com/go/security/privateca/apiv1" "google.golang.org/api/iterator" + locationpb "google.golang.org/genproto/googleapis/cloud/location" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/RevokeCertificate/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/RevokeCertificate/main.go index 147e00d526f9..d2067e2975fc 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/RevokeCertificate/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/RevokeCertificate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.RevokeCertificateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#RevokeCertificateRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#RevokeCertificateRequest. } resp, err := c.RevokeCertificate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/SetIamPolicy/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/SetIamPolicy/main.go index 2d93fecefac9..f9736fc89184 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/TestIamPermissions/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/TestIamPermissions/main.go index 5b33b77fbf7c..0b814e78bb0e 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UndeleteCertificateAuthority/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UndeleteCertificateAuthority/main.go index a0fc1abc74c5..6957e9b8c720 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UndeleteCertificateAuthority/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UndeleteCertificateAuthority/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.UndeleteCertificateAuthorityRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#UndeleteCertificateAuthorityRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#UndeleteCertificateAuthorityRequest. } op, err := c.UndeleteCertificateAuthority(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCaPool/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCaPool/main.go index b2ed41fc134e..c2d358fb3819 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCaPool/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCaPool/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.UpdateCaPoolRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#UpdateCaPoolRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#UpdateCaPoolRequest. } op, err := c.UpdateCaPool(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCertificate/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCertificate/main.go index 51eba390e4d4..b1450cb9d50a 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCertificate/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCertificate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.UpdateCertificateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#UpdateCertificateRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#UpdateCertificateRequest. } resp, err := c.UpdateCertificate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCertificateAuthority/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCertificateAuthority/main.go index 2dd92cbfcf2e..392f572bd7f2 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCertificateAuthority/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCertificateAuthority/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.UpdateCertificateAuthorityRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#UpdateCertificateAuthorityRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#UpdateCertificateAuthorityRequest. } op, err := c.UpdateCertificateAuthority(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCertificateRevocationList/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCertificateRevocationList/main.go index 8c6b5f7d5a95..7f53954db165 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCertificateRevocationList/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCertificateRevocationList/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.UpdateCertificateRevocationListRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#UpdateCertificateRevocationListRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#UpdateCertificateRevocationListRequest. } op, err := c.UpdateCertificateRevocationList(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCertificateTemplate/main.go b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCertificateTemplate/main.go index 4229fdab8c3b..0b524775b223 100644 --- a/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCertificateTemplate/main.go +++ b/internal/generated/snippets/security/privateca/apiv1/CertificateAuthorityClient/UpdateCertificateTemplate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1" + privatecapb "cloud.google.com/go/security/privateca/apiv1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.UpdateCertificateTemplateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1#UpdateCertificateTemplateRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1/privatecapb#UpdateCertificateTemplateRequest. } op, err := c.UpdateCertificateTemplate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1/snippet_metadata.google.cloud.security.privateca.v1.json b/internal/generated/snippets/security/privateca/apiv1/snippet_metadata.google.cloud.security.privateca.v1.json new file mode 100644 index 000000000000..f7eb8afd08f3 --- /dev/null +++ b/internal/generated/snippets/security/privateca/apiv1/snippet_metadata.google.cloud.security.privateca.v1.json @@ -0,0 +1,1579 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/security/privateca/apiv1", + "version": "1.11.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.security.privateca.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_sync", + "title": "privateca ActivateCertificateAuthority Sample", + "description": "ActivateCertificateAuthority activate a CertificateAuthority that is in state\nAWAITING_USER_ACTIVATION\nand is of type SUBORDINATE. After\nthe parent Certificate Authority signs a certificate signing request from\nFetchCertificateAuthorityCsr, this method can complete the activation\nprocess.", + "file": "CertificateAuthorityClient/ActivateCertificateAuthority/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ActivateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.ActivateCertificateAuthority", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.ActivateCertificateAuthorityRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ActivateCertificateAuthorityOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "ActivateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCaPool_sync", + "title": "privateca CreateCaPool Sample", + "description": "CreateCaPool create a CaPool.", + "file": "CertificateAuthorityClient/CreateCaPool/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.CreateCaPool", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.CreateCaPoolRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateCaPoolOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "CreateCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificate_sync", + "title": "privateca CreateCertificate Sample", + "description": "CreateCertificate create a new Certificate in a given Project, Location from a particular\nCaPool.", + "file": "CertificateAuthorityClient/CreateCertificate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.CreateCertificate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.CreateCertificateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "privatecapb.Certificate", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "CreateCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_sync", + "title": "privateca CreateCertificateAuthority Sample", + "description": "CreateCertificateAuthority create a new CertificateAuthority in a given Project and Location.", + "file": "CertificateAuthorityClient/CreateCertificateAuthority/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.CreateCertificateAuthority", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.CreateCertificateAuthorityRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateCertificateAuthorityOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "CreateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_sync", + "title": "privateca CreateCertificateTemplate Sample", + "description": "CreateCertificateTemplate create a new CertificateTemplate in a given Project and Location.", + "file": "CertificateAuthorityClient/CreateCertificateTemplate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.CreateCertificateTemplate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.CreateCertificateTemplateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateCertificateTemplateOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "CreateCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_sync", + "title": "privateca DeleteCaPool Sample", + "description": "DeleteCaPool delete a CaPool.", + "file": "CertificateAuthorityClient/DeleteCaPool/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.DeleteCaPool", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.DeleteCaPoolRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteCaPoolOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "DeleteCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_sync", + "title": "privateca DeleteCertificateAuthority Sample", + "description": "DeleteCertificateAuthority delete a CertificateAuthority.", + "file": "CertificateAuthorityClient/DeleteCertificateAuthority/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.DeleteCertificateAuthority", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.DeleteCertificateAuthorityRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteCertificateAuthorityOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "DeleteCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_sync", + "title": "privateca DeleteCertificateTemplate Sample", + "description": "DeleteCertificateTemplate deleteCertificateTemplate deletes a CertificateTemplate.", + "file": "CertificateAuthorityClient/DeleteCertificateTemplate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.DeleteCertificateTemplate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.DeleteCertificateTemplateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteCertificateTemplateOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "DeleteCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_sync", + "title": "privateca DisableCertificateAuthority Sample", + "description": "DisableCertificateAuthority disable a CertificateAuthority.", + "file": "CertificateAuthorityClient/DisableCertificateAuthority/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DisableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.DisableCertificateAuthority", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.DisableCertificateAuthorityRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DisableCertificateAuthorityOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "DisableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DisableCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_sync", + "title": "privateca EnableCertificateAuthority Sample", + "description": "EnableCertificateAuthority enable a CertificateAuthority.", + "file": "CertificateAuthorityClient/EnableCertificateAuthority/main.go", + "language": "GO", + "clientMethod": { + "shortName": "EnableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.EnableCertificateAuthority", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.EnableCertificateAuthorityRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "EnableCertificateAuthorityOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "EnableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.EnableCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_sync", + "title": "privateca FetchCaCerts Sample", + "description": "FetchCaCerts fetchCaCerts returns the current trust anchor for the CaPool. This will\ninclude CA certificate chains for all ACTIVE CertificateAuthority\nresources in the CaPool.", + "file": "CertificateAuthorityClient/FetchCaCerts/main.go", + "language": "GO", + "clientMethod": { + "shortName": "FetchCaCerts", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.FetchCaCerts", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.FetchCaCertsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "privatecapb.FetchCaCertsResponse", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "FetchCaCerts", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_sync", + "title": "privateca FetchCertificateAuthorityCsr Sample", + "description": "FetchCertificateAuthorityCsr fetch a certificate signing request (CSR) from a CertificateAuthority\nthat is in state\nAWAITING_USER_ACTIVATION\nand is of type SUBORDINATE. The\nCSR must then be signed by the desired parent Certificate Authority, which\ncould be another CertificateAuthority resource, or could be an on-prem\ncertificate authority. See also ActivateCertificateAuthority.", + "file": "CertificateAuthorityClient/FetchCertificateAuthorityCsr/main.go", + "language": "GO", + "clientMethod": { + "shortName": "FetchCertificateAuthorityCsr", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.FetchCertificateAuthorityCsr", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.FetchCertificateAuthorityCsrRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "privatecapb.FetchCertificateAuthorityCsrResponse", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "FetchCertificateAuthorityCsr", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCaPool_sync", + "title": "privateca GetCaPool Sample", + "description": "GetCaPool returns a CaPool.", + "file": "CertificateAuthorityClient/GetCaPool/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.GetCaPool", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.GetCaPoolRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "privatecapb.CaPool", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "GetCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificate_sync", + "title": "privateca GetCertificate Sample", + "description": "GetCertificate returns a Certificate.", + "file": "CertificateAuthorityClient/GetCertificate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.GetCertificate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.GetCertificateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "privatecapb.Certificate", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "GetCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_sync", + "title": "privateca GetCertificateAuthority Sample", + "description": "GetCertificateAuthority returns a CertificateAuthority.", + "file": "CertificateAuthorityClient/GetCertificateAuthority/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.GetCertificateAuthority", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.GetCertificateAuthorityRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "privatecapb.CertificateAuthority", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "GetCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_sync", + "title": "privateca GetCertificateRevocationList Sample", + "description": "GetCertificateRevocationList returns a CertificateRevocationList.", + "file": "CertificateAuthorityClient/GetCertificateRevocationList/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCertificateRevocationList", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.GetCertificateRevocationList", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.GetCertificateRevocationListRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "privatecapb.CertificateRevocationList", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "GetCertificateRevocationList", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateRevocationList", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_sync", + "title": "privateca GetCertificateTemplate Sample", + "description": "GetCertificateTemplate returns a CertificateTemplate.", + "file": "CertificateAuthorityClient/GetCertificateTemplate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.GetCertificateTemplate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.GetCertificateTemplateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "privatecapb.CertificateTemplate", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "GetCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetIamPolicy_sync", + "title": "privateca GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "CertificateAuthorityClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetIamPolicy", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetLocation_sync", + "title": "privateca GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "CertificateAuthorityClient/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetLocation", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCaPools_sync", + "title": "privateca ListCaPools Sample", + "description": "ListCaPools lists CaPools.", + "file": "CertificateAuthorityClient/ListCaPools/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCaPools", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.ListCaPools", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.ListCaPoolsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CaPoolIterator", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "ListCaPools", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_sync", + "title": "privateca ListCertificateAuthorities Sample", + "description": "ListCertificateAuthorities lists CertificateAuthorities.", + "file": "CertificateAuthorityClient/ListCertificateAuthorities/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCertificateAuthorities", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.ListCertificateAuthorities", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.ListCertificateAuthoritiesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CertificateAuthorityIterator", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "ListCertificateAuthorities", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_sync", + "title": "privateca ListCertificateRevocationLists Sample", + "description": "ListCertificateRevocationLists lists CertificateRevocationLists.", + "file": "CertificateAuthorityClient/ListCertificateRevocationLists/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCertificateRevocationLists", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.ListCertificateRevocationLists", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.ListCertificateRevocationListsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CertificateRevocationListIterator", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "ListCertificateRevocationLists", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_sync", + "title": "privateca ListCertificateTemplates Sample", + "description": "ListCertificateTemplates lists CertificateTemplates.", + "file": "CertificateAuthorityClient/ListCertificateTemplates/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCertificateTemplates", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.ListCertificateTemplates", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.ListCertificateTemplatesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CertificateTemplateIterator", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "ListCertificateTemplates", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificates_sync", + "title": "privateca ListCertificates Sample", + "description": "ListCertificates lists Certificates.", + "file": "CertificateAuthorityClient/ListCertificates/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCertificates", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.ListCertificates", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.ListCertificatesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CertificateIterator", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "ListCertificates", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListLocations_sync", + "title": "privateca ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "CertificateAuthorityClient/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListLocations", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_sync", + "title": "privateca RevokeCertificate Sample", + "description": "RevokeCertificate revoke a Certificate.", + "file": "CertificateAuthorityClient/RevokeCertificate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RevokeCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.RevokeCertificate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.RevokeCertificateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "privatecapb.Certificate", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "RevokeCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.RevokeCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_SetIamPolicy_sync", + "title": "privateca SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "CertificateAuthorityClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.SetIamPolicy", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_TestIamPermissions_sync", + "title": "privateca TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "CertificateAuthorityClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.TestIamPermissions", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_sync", + "title": "privateca UndeleteCertificateAuthority Sample", + "description": "UndeleteCertificateAuthority undelete a CertificateAuthority that has been deleted.", + "file": "CertificateAuthorityClient/UndeleteCertificateAuthority/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UndeleteCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.UndeleteCertificateAuthority", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.UndeleteCertificateAuthorityRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UndeleteCertificateAuthorityOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "UndeleteCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UndeleteCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCaPool_sync", + "title": "privateca UpdateCaPool Sample", + "description": "UpdateCaPool update a CaPool.", + "file": "CertificateAuthorityClient/UpdateCaPool/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.UpdateCaPool", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.UpdateCaPoolRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateCaPoolOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "UpdateCaPool", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCaPool", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificate_sync", + "title": "privateca UpdateCertificate Sample", + "description": "UpdateCertificate update a Certificate. Currently, the only field you can update is the\nlabels field.", + "file": "CertificateAuthorityClient/UpdateCertificate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.UpdateCertificate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.UpdateCertificateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "privatecapb.Certificate", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "UpdateCertificate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificateAuthority_sync", + "title": "privateca UpdateCertificateAuthority Sample", + "description": "UpdateCertificateAuthority update a CertificateAuthority.", + "file": "CertificateAuthorityClient/UpdateCertificateAuthority/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.UpdateCertificateAuthority", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.UpdateCertificateAuthorityRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateCertificateAuthorityOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "UpdateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificateRevocationList_sync", + "title": "privateca UpdateCertificateRevocationList Sample", + "description": "UpdateCertificateRevocationList update a CertificateRevocationList.", + "file": "CertificateAuthorityClient/UpdateCertificateRevocationList/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCertificateRevocationList", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.UpdateCertificateRevocationList", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.UpdateCertificateRevocationListRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateCertificateRevocationListOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "UpdateCertificateRevocationList", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateRevocationList", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificateTemplate_sync", + "title": "privateca UpdateCertificateTemplate Sample", + "description": "UpdateCertificateTemplate update a CertificateTemplate.", + "file": "CertificateAuthorityClient/UpdateCertificateTemplate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient.UpdateCertificateTemplate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.UpdateCertificateTemplateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateCertificateTemplateOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityClient" + }, + "method": { + "shortName": "UpdateCertificateTemplate", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateTemplate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ActivateCertificateAuthority/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ActivateCertificateAuthority/main.go index 645b8fdf9e17..71fb74b1d2dd 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ActivateCertificateAuthority/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ActivateCertificateAuthority/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.ActivateCertificateAuthorityRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#ActivateCertificateAuthorityRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#ActivateCertificateAuthorityRequest. } op, err := c.ActivateCertificateAuthority(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/CreateCertificate/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/CreateCertificate/main.go index 11826dc4fe5a..72c2a2c5b1f6 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/CreateCertificate/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/CreateCertificate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.CreateCertificateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#CreateCertificateRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#CreateCertificateRequest. } resp, err := c.CreateCertificate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/CreateCertificateAuthority/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/CreateCertificateAuthority/main.go index e5d04899a925..8df6eba3832c 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/CreateCertificateAuthority/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/CreateCertificateAuthority/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.CreateCertificateAuthorityRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#CreateCertificateAuthorityRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#CreateCertificateAuthorityRequest. } op, err := c.CreateCertificateAuthority(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/DisableCertificateAuthority/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/DisableCertificateAuthority/main.go index 4fdd73146326..c7fbfeb8cd41 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/DisableCertificateAuthority/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/DisableCertificateAuthority/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.DisableCertificateAuthorityRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#DisableCertificateAuthorityRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#DisableCertificateAuthorityRequest. } op, err := c.DisableCertificateAuthority(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/EnableCertificateAuthority/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/EnableCertificateAuthority/main.go index d60068c7b623..1f588f9bacaf 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/EnableCertificateAuthority/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/EnableCertificateAuthority/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.EnableCertificateAuthorityRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#EnableCertificateAuthorityRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#EnableCertificateAuthorityRequest. } op, err := c.EnableCertificateAuthority(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/FetchCertificateAuthorityCsr/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/FetchCertificateAuthorityCsr/main.go index eac6f44e1ec7..79782f648e15 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/FetchCertificateAuthorityCsr/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/FetchCertificateAuthorityCsr/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.FetchCertificateAuthorityCsrRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#FetchCertificateAuthorityCsrRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#FetchCertificateAuthorityCsrRequest. } resp, err := c.FetchCertificateAuthorityCsr(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/GetCertificate/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/GetCertificate/main.go index e138a617e1f1..a65a77d1f19c 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/GetCertificate/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/GetCertificate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.GetCertificateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#GetCertificateRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#GetCertificateRequest. } resp, err := c.GetCertificate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/GetCertificateAuthority/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/GetCertificateAuthority/main.go index 5d742f16d7d6..b5c710b833de 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/GetCertificateAuthority/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/GetCertificateAuthority/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.GetCertificateAuthorityRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#GetCertificateAuthorityRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#GetCertificateAuthorityRequest. } resp, err := c.GetCertificateAuthority(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/GetCertificateRevocationList/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/GetCertificateRevocationList/main.go index a3f6994a585d..37d9da849ece 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/GetCertificateRevocationList/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/GetCertificateRevocationList/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.GetCertificateRevocationListRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#GetCertificateRevocationListRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#GetCertificateRevocationListRequest. } resp, err := c.GetCertificateRevocationList(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/GetReusableConfig/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/GetReusableConfig/main.go index fd8d9c8343fc..5252ac919db4 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/GetReusableConfig/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/GetReusableConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.GetReusableConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#GetReusableConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#GetReusableConfigRequest. } resp, err := c.GetReusableConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ListCertificateAuthorities/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ListCertificateAuthorities/main.go index 3045db0e9ce6..0c6b31b03e2a 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ListCertificateAuthorities/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ListCertificateAuthorities/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" "google.golang.org/api/iterator" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &privatecapb.ListCertificateAuthoritiesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#ListCertificateAuthoritiesRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#ListCertificateAuthoritiesRequest. } it := c.ListCertificateAuthorities(ctx, req) for { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ListCertificateRevocationLists/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ListCertificateRevocationLists/main.go index aeedaa70a9e8..4842ff087c88 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ListCertificateRevocationLists/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ListCertificateRevocationLists/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" "google.golang.org/api/iterator" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &privatecapb.ListCertificateRevocationListsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#ListCertificateRevocationListsRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#ListCertificateRevocationListsRequest. } it := c.ListCertificateRevocationLists(ctx, req) for { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ListCertificates/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ListCertificates/main.go index 0109eba7be66..9d072e55448c 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ListCertificates/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ListCertificates/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" "google.golang.org/api/iterator" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &privatecapb.ListCertificatesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#ListCertificatesRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#ListCertificatesRequest. } it := c.ListCertificates(ctx, req) for { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ListReusableConfigs/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ListReusableConfigs/main.go index 167390403e43..1c88b03b5373 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ListReusableConfigs/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ListReusableConfigs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" "google.golang.org/api/iterator" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &privatecapb.ListReusableConfigsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#ListReusableConfigsRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#ListReusableConfigsRequest. } it := c.ListReusableConfigs(ctx, req) for { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/RestoreCertificateAuthority/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/RestoreCertificateAuthority/main.go index 2e6958c930ef..e91bed14ee32 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/RestoreCertificateAuthority/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/RestoreCertificateAuthority/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.RestoreCertificateAuthorityRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#RestoreCertificateAuthorityRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#RestoreCertificateAuthorityRequest. } op, err := c.RestoreCertificateAuthority(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/RevokeCertificate/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/RevokeCertificate/main.go index bb437e110540..4f25490b5367 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/RevokeCertificate/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/RevokeCertificate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.RevokeCertificateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#RevokeCertificateRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#RevokeCertificateRequest. } resp, err := c.RevokeCertificate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ScheduleDeleteCertificateAuthority/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ScheduleDeleteCertificateAuthority/main.go index adcac7d1f0c9..c689c622d3d0 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ScheduleDeleteCertificateAuthority/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/ScheduleDeleteCertificateAuthority/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.ScheduleDeleteCertificateAuthorityRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#ScheduleDeleteCertificateAuthorityRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#ScheduleDeleteCertificateAuthorityRequest. } op, err := c.ScheduleDeleteCertificateAuthority(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/UpdateCertificate/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/UpdateCertificate/main.go index 85b817e70214..0d68d4c5657a 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/UpdateCertificate/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/UpdateCertificate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.UpdateCertificateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#UpdateCertificateRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#UpdateCertificateRequest. } resp, err := c.UpdateCertificate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/UpdateCertificateAuthority/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/UpdateCertificateAuthority/main.go index 5f0e89812336..78c093afa016 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/UpdateCertificateAuthority/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/UpdateCertificateAuthority/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.UpdateCertificateAuthorityRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#UpdateCertificateAuthorityRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#UpdateCertificateAuthorityRequest. } op, err := c.UpdateCertificateAuthority(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/UpdateCertificateRevocationList/main.go b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/UpdateCertificateRevocationList/main.go index 409d286975ff..29111f99ef63 100644 --- a/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/UpdateCertificateRevocationList/main.go +++ b/internal/generated/snippets/security/privateca/apiv1beta1/CertificateAuthorityClient/UpdateCertificateRevocationList/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" privateca "cloud.google.com/go/security/privateca/apiv1beta1" - privatecapb "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1" + privatecapb "cloud.google.com/go/security/privateca/apiv1beta1/privatecapb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := privateca.NewCertificateAuthorityClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &privatecapb.UpdateCertificateRevocationListRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1#UpdateCertificateRevocationListRequest. + // See https://pkg.go.dev/cloud.google.com/go/security/privateca/apiv1beta1/privatecapb#UpdateCertificateRevocationListRequest. } op, err := c.UpdateCertificateRevocationList(ctx, req) if err != nil { diff --git a/internal/generated/snippets/security/privateca/apiv1beta1/snippet_metadata.google.cloud.security.privateca.v1beta1.json b/internal/generated/snippets/security/privateca/apiv1beta1/snippet_metadata.google.cloud.security.privateca.v1beta1.json new file mode 100644 index 000000000000..3f9937021d78 --- /dev/null +++ b/internal/generated/snippets/security/privateca/apiv1beta1/snippet_metadata.google.cloud.security.privateca.v1beta1.json @@ -0,0 +1,935 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/security/privateca/apiv1beta1", + "version": "1.11.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.security.privateca.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_ActivateCertificateAuthority_sync", + "title": "privateca ActivateCertificateAuthority Sample", + "description": "ActivateCertificateAuthority activate a CertificateAuthority that is in state\nPENDING_ACTIVATION and is\nof type SUBORDINATE. After the\nparent Certificate Authority signs a certificate signing request from\nFetchCertificateAuthorityCsr, this method can complete the activation\nprocess.", + "file": "CertificateAuthorityClient/ActivateCertificateAuthority/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ActivateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.ActivateCertificateAuthority", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.ActivateCertificateAuthorityRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ActivateCertificateAuthorityOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "ActivateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_CreateCertificate_sync", + "title": "privateca CreateCertificate Sample", + "description": "CreateCertificate create a new Certificate in a given Project, Location from a particular\nCertificateAuthority.", + "file": "CertificateAuthorityClient/CreateCertificate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateCertificate", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.CreateCertificate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.CreateCertificateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "privatecapb.Certificate", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "CreateCertificate", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_CreateCertificateAuthority_sync", + "title": "privateca CreateCertificateAuthority Sample", + "description": "CreateCertificateAuthority create a new CertificateAuthority in a given Project and Location.", + "file": "CertificateAuthorityClient/CreateCertificateAuthority/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.CreateCertificateAuthority", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.CreateCertificateAuthorityRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateCertificateAuthorityOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "CreateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_DisableCertificateAuthority_sync", + "title": "privateca DisableCertificateAuthority Sample", + "description": "DisableCertificateAuthority disable a CertificateAuthority.", + "file": "CertificateAuthorityClient/DisableCertificateAuthority/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DisableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.DisableCertificateAuthority", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.DisableCertificateAuthorityRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DisableCertificateAuthorityOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "DisableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.DisableCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_EnableCertificateAuthority_sync", + "title": "privateca EnableCertificateAuthority Sample", + "description": "EnableCertificateAuthority enable a CertificateAuthority.", + "file": "CertificateAuthorityClient/EnableCertificateAuthority/main.go", + "language": "GO", + "clientMethod": { + "shortName": "EnableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.EnableCertificateAuthority", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.EnableCertificateAuthorityRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "EnableCertificateAuthorityOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "EnableCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.EnableCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_sync", + "title": "privateca FetchCertificateAuthorityCsr Sample", + "description": "FetchCertificateAuthorityCsr fetch a certificate signing request (CSR) from a CertificateAuthority\nthat is in state\nPENDING_ACTIVATION and is\nof type SUBORDINATE. The CSR must\nthen be signed by the desired parent Certificate Authority, which could be\nanother CertificateAuthority resource, or could be an on-prem\ncertificate authority. See also ActivateCertificateAuthority.", + "file": "CertificateAuthorityClient/FetchCertificateAuthorityCsr/main.go", + "language": "GO", + "clientMethod": { + "shortName": "FetchCertificateAuthorityCsr", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.FetchCertificateAuthorityCsr", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.FetchCertificateAuthorityCsrRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "privatecapb.FetchCertificateAuthorityCsrResponse", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "FetchCertificateAuthorityCsr", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_GetCertificate_sync", + "title": "privateca GetCertificate Sample", + "description": "GetCertificate returns a Certificate.", + "file": "CertificateAuthorityClient/GetCertificate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCertificate", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.GetCertificate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.GetCertificateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "privatecapb.Certificate", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "GetCertificate", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_GetCertificateAuthority_sync", + "title": "privateca GetCertificateAuthority Sample", + "description": "GetCertificateAuthority returns a CertificateAuthority.", + "file": "CertificateAuthorityClient/GetCertificateAuthority/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.GetCertificateAuthority", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.GetCertificateAuthorityRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "privatecapb.CertificateAuthority", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "GetCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_GetCertificateRevocationList_sync", + "title": "privateca GetCertificateRevocationList Sample", + "description": "GetCertificateRevocationList returns a CertificateRevocationList.", + "file": "CertificateAuthorityClient/GetCertificateRevocationList/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCertificateRevocationList", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.GetCertificateRevocationList", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.GetCertificateRevocationListRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "privatecapb.CertificateRevocationList", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "GetCertificateRevocationList", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificateRevocationList", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_GetReusableConfig_sync", + "title": "privateca GetReusableConfig Sample", + "description": "GetReusableConfig returns a ReusableConfig.", + "file": "CertificateAuthorityClient/GetReusableConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetReusableConfig", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.GetReusableConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.GetReusableConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "privatecapb.ReusableConfig", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "GetReusableConfig", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetReusableConfig", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_ListCertificateAuthorities_sync", + "title": "privateca ListCertificateAuthorities Sample", + "description": "ListCertificateAuthorities lists CertificateAuthorities.", + "file": "CertificateAuthorityClient/ListCertificateAuthorities/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCertificateAuthorities", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.ListCertificateAuthorities", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.ListCertificateAuthoritiesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CertificateAuthorityIterator", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "ListCertificateAuthorities", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateAuthorities", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_ListCertificateRevocationLists_sync", + "title": "privateca ListCertificateRevocationLists Sample", + "description": "ListCertificateRevocationLists lists CertificateRevocationLists.", + "file": "CertificateAuthorityClient/ListCertificateRevocationLists/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCertificateRevocationLists", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.ListCertificateRevocationLists", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.ListCertificateRevocationListsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CertificateRevocationListIterator", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "ListCertificateRevocationLists", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateRevocationLists", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_ListCertificates_sync", + "title": "privateca ListCertificates Sample", + "description": "ListCertificates lists Certificates.", + "file": "CertificateAuthorityClient/ListCertificates/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCertificates", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.ListCertificates", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.ListCertificatesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CertificateIterator", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "ListCertificates", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificates", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_ListReusableConfigs_sync", + "title": "privateca ListReusableConfigs Sample", + "description": "ListReusableConfigs lists ReusableConfigs.", + "file": "CertificateAuthorityClient/ListReusableConfigs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListReusableConfigs", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.ListReusableConfigs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.ListReusableConfigsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ReusableConfigIterator", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "ListReusableConfigs", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListReusableConfigs", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_RestoreCertificateAuthority_sync", + "title": "privateca RestoreCertificateAuthority Sample", + "description": "RestoreCertificateAuthority restore a CertificateAuthority that is scheduled for deletion.", + "file": "CertificateAuthorityClient/RestoreCertificateAuthority/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RestoreCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.RestoreCertificateAuthority", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.RestoreCertificateAuthorityRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RestoreCertificateAuthorityOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "RestoreCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.RestoreCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_RevokeCertificate_sync", + "title": "privateca RevokeCertificate Sample", + "description": "RevokeCertificate revoke a Certificate.", + "file": "CertificateAuthorityClient/RevokeCertificate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RevokeCertificate", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.RevokeCertificate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.RevokeCertificateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "privatecapb.Certificate", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "RevokeCertificate", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.RevokeCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_ScheduleDeleteCertificateAuthority_sync", + "title": "privateca ScheduleDeleteCertificateAuthority Sample", + "description": "ScheduleDeleteCertificateAuthority schedule a CertificateAuthority for deletion.", + "file": "CertificateAuthorityClient/ScheduleDeleteCertificateAuthority/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ScheduleDeleteCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.ScheduleDeleteCertificateAuthority", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.ScheduleDeleteCertificateAuthorityRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ScheduleDeleteCertificateAuthorityOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "ScheduleDeleteCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ScheduleDeleteCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_UpdateCertificate_sync", + "title": "privateca UpdateCertificate Sample", + "description": "UpdateCertificate update a Certificate. Currently, the only field you can update is the\nlabels field.", + "file": "CertificateAuthorityClient/UpdateCertificate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCertificate", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.UpdateCertificate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.UpdateCertificateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "privatecapb.Certificate", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "UpdateCertificate", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificate", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_UpdateCertificateAuthority_sync", + "title": "privateca UpdateCertificateAuthority Sample", + "description": "UpdateCertificateAuthority update a CertificateAuthority.", + "file": "CertificateAuthorityClient/UpdateCertificateAuthority/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.UpdateCertificateAuthority", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.UpdateCertificateAuthorityRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateCertificateAuthorityOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "UpdateCertificateAuthority", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificateAuthority", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_UpdateCertificateRevocationList_sync", + "title": "privateca UpdateCertificateRevocationList Sample", + "description": "UpdateCertificateRevocationList update a CertificateRevocationList.", + "file": "CertificateAuthorityClient/UpdateCertificateRevocationList/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCertificateRevocationList", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient.UpdateCertificateRevocationList", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "privatecapb.UpdateCertificateRevocationListRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateCertificateRevocationListOperation", + "client": { + "shortName": "CertificateAuthorityClient", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityClient" + }, + "method": { + "shortName": "UpdateCertificateRevocationList", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificateRevocationList", + "service": { + "shortName": "CertificateAuthorityService", + "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/security/publicca/apiv1beta1/PublicCertificateAuthorityClient/CreateExternalAccountKey/main.go b/internal/generated/snippets/security/publicca/apiv1beta1/PublicCertificateAuthorityClient/CreateExternalAccountKey/main.go new file mode 100644 index 000000000000..78302d1b7659 --- /dev/null +++ b/internal/generated/snippets/security/publicca/apiv1beta1/PublicCertificateAuthorityClient/CreateExternalAccountKey/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync] + +package main + +import ( + "context" + + publicca "cloud.google.com/go/security/publicca/apiv1beta1" + publiccapb "cloud.google.com/go/security/publicca/apiv1beta1/publiccapb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := publicca.NewPublicCertificateAuthorityClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &publiccapb.CreateExternalAccountKeyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/security/publicca/apiv1beta1/publiccapb#CreateExternalAccountKeyRequest. + } + resp, err := c.CreateExternalAccountKey(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync] diff --git a/internal/generated/snippets/security/publicca/apiv1beta1/snippet_metadata.google.cloud.security.publicca.v1beta1.json b/internal/generated/snippets/security/publicca/apiv1beta1/snippet_metadata.google.cloud.security.publicca.v1beta1.json new file mode 100644 index 000000000000..7ec9c318c1a9 --- /dev/null +++ b/internal/generated/snippets/security/publicca/apiv1beta1/snippet_metadata.google.cloud.security.publicca.v1beta1.json @@ -0,0 +1,61 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/security/publicca/apiv1beta1", + "version": "1.11.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.security.publicca.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_sync", + "title": "publicca CreateExternalAccountKey Sample", + "description": "CreateExternalAccountKey creates a new ExternalAccountKey bound to the project.", + "file": "PublicCertificateAuthorityClient/CreateExternalAccountKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateExternalAccountKey", + "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityClient.CreateExternalAccountKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "publiccapb.CreateExternalAccountKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "publiccapb.ExternalAccountKey", + "client": { + "shortName": "PublicCertificateAuthorityClient", + "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityClient" + }, + "method": { + "shortName": "CreateExternalAccountKey", + "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService.CreateExternalAccountKey", + "service": { + "shortName": "PublicCertificateAuthorityService", + "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/BulkMuteFindings/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/BulkMuteFindings/main.go index 3f3fdc6d95c4..53951bfe0f53 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/BulkMuteFindings/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/BulkMuteFindings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.BulkMuteFindingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#BulkMuteFindingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#BulkMuteFindingsRequest. } op, err := c.BulkMuteFindings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/CancelOperation/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/CancelOperation/main.go new file mode 100644 index 000000000000..fdbb185ea56f --- /dev/null +++ b/internal/generated/snippets/securitycenter/apiv1/Client/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START securitycenter_v1_generated_SecurityCenter_CancelOperation_sync] + +package main + +import ( + "context" + + securitycenter "cloud.google.com/go/securitycenter/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := securitycenter.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END securitycenter_v1_generated_SecurityCenter_CancelOperation_sync] diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/CreateBigQueryExport/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/CreateBigQueryExport/main.go index 5fe0372de130..901e97528a96 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/CreateBigQueryExport/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/CreateBigQueryExport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.CreateBigQueryExportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#CreateBigQueryExportRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#CreateBigQueryExportRequest. } resp, err := c.CreateBigQueryExport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/CreateFinding/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/CreateFinding/main.go index 244ce3133116..ea5787c32393 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/CreateFinding/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/CreateFinding/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.CreateFindingRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#CreateFindingRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#CreateFindingRequest. } resp, err := c.CreateFinding(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/CreateMuteConfig/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/CreateMuteConfig/main.go index 237f7fb5fb9e..557c521bbd9c 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/CreateMuteConfig/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/CreateMuteConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.CreateMuteConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#CreateMuteConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#CreateMuteConfigRequest. } resp, err := c.CreateMuteConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/CreateNotificationConfig/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/CreateNotificationConfig/main.go index f1948a68d729..e07684c8508a 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/CreateNotificationConfig/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/CreateNotificationConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.CreateNotificationConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#CreateNotificationConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#CreateNotificationConfigRequest. } resp, err := c.CreateNotificationConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/CreateSource/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/CreateSource/main.go index e9a3c677c0f8..55920733664e 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/CreateSource/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/CreateSource/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.CreateSourceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#CreateSourceRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#CreateSourceRequest. } resp, err := c.CreateSource(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/DeleteBigQueryExport/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/DeleteBigQueryExport/main.go index a18c2a3f3bcb..bd6cda9c027c 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/DeleteBigQueryExport/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/DeleteBigQueryExport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.DeleteBigQueryExportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#DeleteBigQueryExportRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#DeleteBigQueryExportRequest. } err = c.DeleteBigQueryExport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/DeleteMuteConfig/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/DeleteMuteConfig/main.go index 7b592b0b9a31..e36c6e2b4de9 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/DeleteMuteConfig/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/DeleteMuteConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.DeleteMuteConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#DeleteMuteConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#DeleteMuteConfigRequest. } err = c.DeleteMuteConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/DeleteNotificationConfig/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/DeleteNotificationConfig/main.go index d13cd6c2f131..265a8dd29f48 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/DeleteNotificationConfig/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/DeleteNotificationConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.DeleteNotificationConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#DeleteNotificationConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#DeleteNotificationConfigRequest. } err = c.DeleteNotificationConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/DeleteOperation/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/DeleteOperation/main.go new file mode 100644 index 000000000000..2aa057505d4c --- /dev/null +++ b/internal/generated/snippets/securitycenter/apiv1/Client/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START securitycenter_v1_generated_SecurityCenter_DeleteOperation_sync] + +package main + +import ( + "context" + + securitycenter "cloud.google.com/go/securitycenter/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := securitycenter.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END securitycenter_v1_generated_SecurityCenter_DeleteOperation_sync] diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/GetBigQueryExport/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/GetBigQueryExport/main.go index 39d76c69da83..0c1d11f23021 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/GetBigQueryExport/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/GetBigQueryExport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.GetBigQueryExportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#GetBigQueryExportRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#GetBigQueryExportRequest. } resp, err := c.GetBigQueryExport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/GetIamPolicy/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/GetIamPolicy/main.go index 5fcdf7a8aba2..f0d2ccbb4be4 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/GetMuteConfig/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/GetMuteConfig/main.go index c12878c5687a..550bb78164e1 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/GetMuteConfig/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/GetMuteConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.GetMuteConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#GetMuteConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#GetMuteConfigRequest. } resp, err := c.GetMuteConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/GetNotificationConfig/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/GetNotificationConfig/main.go index 5bc158e14a39..ca66a3fe4edd 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/GetNotificationConfig/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/GetNotificationConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.GetNotificationConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#GetNotificationConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#GetNotificationConfigRequest. } resp, err := c.GetNotificationConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/GetOperation/main.go new file mode 100644 index 000000000000..32d883ce67f0 --- /dev/null +++ b/internal/generated/snippets/securitycenter/apiv1/Client/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START securitycenter_v1_generated_SecurityCenter_GetOperation_sync] + +package main + +import ( + "context" + + securitycenter "cloud.google.com/go/securitycenter/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := securitycenter.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END securitycenter_v1_generated_SecurityCenter_GetOperation_sync] diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/GetOrganizationSettings/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/GetOrganizationSettings/main.go index 48c61e48b81a..78b8f2c37b52 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/GetOrganizationSettings/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/GetOrganizationSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.GetOrganizationSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#GetOrganizationSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#GetOrganizationSettingsRequest. } resp, err := c.GetOrganizationSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/GetSource/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/GetSource/main.go index 6084e25c450d..15bfd02a39b3 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/GetSource/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/GetSource/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.GetSourceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#GetSourceRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#GetSourceRequest. } resp, err := c.GetSource(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/GroupAssets/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/GroupAssets/main.go index 9e2e039a7093..de2071bb93d7 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/GroupAssets/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/GroupAssets/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.GroupAssetsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#GroupAssetsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#GroupAssetsRequest. } it := c.GroupAssets(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/GroupFindings/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/GroupFindings/main.go index 0c1855c3e4cf..0b989b3cd98d 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/GroupFindings/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/GroupFindings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.GroupFindingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#GroupFindingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#GroupFindingsRequest. } it := c.GroupFindings(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/ListAssets/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/ListAssets/main.go index dd20f1985df1..20b9fffddbbf 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/ListAssets/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/ListAssets/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.ListAssetsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#ListAssetsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#ListAssetsRequest. } it := c.ListAssets(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/ListBigQueryExports/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/ListBigQueryExports/main.go index f453a98c8a9e..64ba023ae2ae 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/ListBigQueryExports/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/ListBigQueryExports/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.ListBigQueryExportsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#ListBigQueryExportsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#ListBigQueryExportsRequest. } it := c.ListBigQueryExports(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/ListFindings/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/ListFindings/main.go index 1c3ae8be5265..71f896bdb391 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/ListFindings/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/ListFindings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.ListFindingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#ListFindingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#ListFindingsRequest. } it := c.ListFindings(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/ListMuteConfigs/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/ListMuteConfigs/main.go index 8da6bb377c2b..a4087e70b001 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/ListMuteConfigs/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/ListMuteConfigs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.ListMuteConfigsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#ListMuteConfigsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#ListMuteConfigsRequest. } it := c.ListMuteConfigs(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/ListNotificationConfigs/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/ListNotificationConfigs/main.go index 3d0761cadbc4..57f25d466367 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/ListNotificationConfigs/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/ListNotificationConfigs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.ListNotificationConfigsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#ListNotificationConfigsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#ListNotificationConfigsRequest. } it := c.ListNotificationConfigs(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/ListOperations/main.go new file mode 100644 index 000000000000..674d2dfa0d1b --- /dev/null +++ b/internal/generated/snippets/securitycenter/apiv1/Client/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START securitycenter_v1_generated_SecurityCenter_ListOperations_sync] + +package main + +import ( + "context" + + securitycenter "cloud.google.com/go/securitycenter/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := securitycenter.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END securitycenter_v1_generated_SecurityCenter_ListOperations_sync] diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/ListSources/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/ListSources/main.go index 119efdcca545..d3409cbc486f 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/ListSources/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/ListSources/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.ListSourcesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#ListSourcesRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#ListSourcesRequest. } it := c.ListSources(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/RunAssetDiscovery/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/RunAssetDiscovery/main.go index 9b63425ab016..191338c4ac2e 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/RunAssetDiscovery/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/RunAssetDiscovery/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.RunAssetDiscoveryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#RunAssetDiscoveryRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#RunAssetDiscoveryRequest. } op, err := c.RunAssetDiscovery(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/SetFindingState/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/SetFindingState/main.go index f26a11a2feb4..169de6c93911 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/SetFindingState/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/SetFindingState/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.SetFindingStateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#SetFindingStateRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#SetFindingStateRequest. } resp, err := c.SetFindingState(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/SetIamPolicy/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/SetIamPolicy/main.go index 85db8fd5fbee..ac6cbab5fee5 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/SetMute/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/SetMute/main.go index 6ff78d88d5b0..08010c471356 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/SetMute/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/SetMute/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.SetMuteRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#SetMuteRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#SetMuteRequest. } resp, err := c.SetMute(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/TestIamPermissions/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/TestIamPermissions/main.go index 07975f715b9d..8720a4457e05 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/UpdateBigQueryExport/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/UpdateBigQueryExport/main.go index 0d451de134d2..dbe1c421c76e 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/UpdateBigQueryExport/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/UpdateBigQueryExport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.UpdateBigQueryExportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#UpdateBigQueryExportRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#UpdateBigQueryExportRequest. } resp, err := c.UpdateBigQueryExport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/UpdateExternalSystem/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/UpdateExternalSystem/main.go index 166e8ce9ac1f..5884d6166b78 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/UpdateExternalSystem/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/UpdateExternalSystem/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.UpdateExternalSystemRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#UpdateExternalSystemRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#UpdateExternalSystemRequest. } resp, err := c.UpdateExternalSystem(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/UpdateFinding/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/UpdateFinding/main.go index 8b83f8a1b469..ba4344c3dbcc 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/UpdateFinding/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/UpdateFinding/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.UpdateFindingRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#UpdateFindingRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#UpdateFindingRequest. } resp, err := c.UpdateFinding(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/UpdateMuteConfig/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/UpdateMuteConfig/main.go index 2e8d066a7827..292439baa73e 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/UpdateMuteConfig/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/UpdateMuteConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.UpdateMuteConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#UpdateMuteConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#UpdateMuteConfigRequest. } resp, err := c.UpdateMuteConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/UpdateNotificationConfig/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/UpdateNotificationConfig/main.go index 9d8901d3a00b..7fc0581dd45d 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/UpdateNotificationConfig/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/UpdateNotificationConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.UpdateNotificationConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#UpdateNotificationConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#UpdateNotificationConfigRequest. } resp, err := c.UpdateNotificationConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/UpdateOrganizationSettings/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/UpdateOrganizationSettings/main.go index 92e49c3c462d..7c181665c3f1 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/UpdateOrganizationSettings/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/UpdateOrganizationSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.UpdateOrganizationSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#UpdateOrganizationSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#UpdateOrganizationSettingsRequest. } resp, err := c.UpdateOrganizationSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/UpdateSecurityMarks/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/UpdateSecurityMarks/main.go index 81a0122fdf94..17c7018b9552 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/UpdateSecurityMarks/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/UpdateSecurityMarks/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.UpdateSecurityMarksRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#UpdateSecurityMarksRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#UpdateSecurityMarksRequest. } resp, err := c.UpdateSecurityMarks(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/Client/UpdateSource/main.go b/internal/generated/snippets/securitycenter/apiv1/Client/UpdateSource/main.go index 2bde8b11c06c..fe33fe53d658 100644 --- a/internal/generated/snippets/securitycenter/apiv1/Client/UpdateSource/main.go +++ b/internal/generated/snippets/securitycenter/apiv1/Client/UpdateSource/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.UpdateSourceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1#UpdateSourceRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1/securitycenterpb#UpdateSourceRequest. } resp, err := c.UpdateSource(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1/snippet_metadata.google.cloud.securitycenter.v1.json b/internal/generated/snippets/securitycenter/apiv1/snippet_metadata.google.cloud.securitycenter.v1.json new file mode 100644 index 000000000000..78fabef8dcab --- /dev/null +++ b/internal/generated/snippets/securitycenter/apiv1/snippet_metadata.google.cloud.securitycenter.v1.json @@ -0,0 +1,1850 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/securitycenter/apiv1", + "version": "1.18.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.securitycenter.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_sync", + "title": "securitycenter BulkMuteFindings Sample", + "description": "BulkMuteFindings kicks off an LRO to bulk mute findings for a parent based on a filter. The\nparent can be either an organization, folder or project. The findings\nmatched by the filter will be muted after the LRO is done.", + "file": "Client/BulkMuteFindings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BulkMuteFindings", + "fullName": "google.cloud.securitycenter.v1.Client.BulkMuteFindings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.BulkMuteFindingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "BulkMuteFindingsOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "BulkMuteFindings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.BulkMuteFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CancelOperation_sync", + "title": "securitycenter CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "Client/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.securitycenter.v1.Client.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CancelOperation", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_sync", + "title": "securitycenter CreateBigQueryExport Sample", + "description": "CreateBigQueryExport creates a BigQuery export.", + "file": "Client/CreateBigQueryExport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.Client.CreateBigQueryExport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.CreateBigQueryExportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.BigQueryExport", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "CreateBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateFinding_sync", + "title": "securitycenter CreateFinding Sample", + "description": "CreateFinding creates a finding. The corresponding source must exist for finding creation\nto succeed.", + "file": "Client/CreateFinding/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateFinding", + "fullName": "google.cloud.securitycenter.v1.Client.CreateFinding", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.CreateFindingRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Finding", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "CreateFinding", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateFinding", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_sync", + "title": "securitycenter CreateMuteConfig Sample", + "description": "CreateMuteConfig creates a mute config.", + "file": "Client/CreateMuteConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.Client.CreateMuteConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.CreateMuteConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.MuteConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "CreateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_sync", + "title": "securitycenter CreateNotificationConfig Sample", + "description": "CreateNotificationConfig creates a notification config.", + "file": "Client/CreateNotificationConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.Client.CreateNotificationConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.CreateNotificationConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.NotificationConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateSource_sync", + "title": "securitycenter CreateSource Sample", + "description": "CreateSource creates a source.", + "file": "Client/CreateSource/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSource", + "fullName": "google.cloud.securitycenter.v1.Client.CreateSource", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.CreateSourceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Source", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "CreateSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_sync", + "title": "securitycenter DeleteBigQueryExport Sample", + "description": "DeleteBigQueryExport deletes an existing BigQuery export.", + "file": "Client/DeleteBigQueryExport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.Client.DeleteBigQueryExport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.DeleteBigQueryExportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "DeleteBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_sync", + "title": "securitycenter DeleteMuteConfig Sample", + "description": "DeleteMuteConfig deletes an existing mute config.", + "file": "Client/DeleteMuteConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteMuteConfig", + "fullName": "google.cloud.securitycenter.v1.Client.DeleteMuteConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.DeleteMuteConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "DeleteMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_sync", + "title": "securitycenter DeleteNotificationConfig Sample", + "description": "DeleteNotificationConfig deletes a notification config.", + "file": "Client/DeleteNotificationConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.Client.DeleteNotificationConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.DeleteNotificationConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "DeleteNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteOperation_sync", + "title": "securitycenter DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "Client/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.securitycenter.v1.Client.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteOperation", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_sync", + "title": "securitycenter GetBigQueryExport Sample", + "description": "GetBigQueryExport gets a BigQuery export.", + "file": "Client/GetBigQueryExport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.Client.GetBigQueryExport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.GetBigQueryExportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.BigQueryExport", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "GetBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetIamPolicy_sync", + "title": "securitycenter GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy on the specified Source.", + "file": "Client/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.securitycenter.v1.Client.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetIamPolicy", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetMuteConfig_sync", + "title": "securitycenter GetMuteConfig Sample", + "description": "GetMuteConfig gets a mute config.", + "file": "Client/GetMuteConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetMuteConfig", + "fullName": "google.cloud.securitycenter.v1.Client.GetMuteConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.GetMuteConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.MuteConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "GetMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_sync", + "title": "securitycenter GetNotificationConfig Sample", + "description": "GetNotificationConfig gets a notification config.", + "file": "Client/GetNotificationConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.Client.GetNotificationConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.GetNotificationConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.NotificationConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "GetNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetOperation_sync", + "title": "securitycenter GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "Client/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.securitycenter.v1.Client.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetOperation", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_sync", + "title": "securitycenter GetOrganizationSettings Sample", + "description": "GetOrganizationSettings gets the settings for an organization.", + "file": "Client/GetOrganizationSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1.Client.GetOrganizationSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.GetOrganizationSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.OrganizationSettings", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "GetOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetOrganizationSettings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSource_sync", + "title": "securitycenter GetSource Sample", + "description": "GetSource gets a source.", + "file": "Client/GetSource/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSource", + "fullName": "google.cloud.securitycenter.v1.Client.GetSource", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.GetSourceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Source", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "GetSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GroupAssets_sync", + "title": "securitycenter GroupAssets Sample", + "description": "GroupAssets filters an organization’s assets and groups them by their specified\nproperties.", + "file": "Client/GroupAssets/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GroupAssets", + "fullName": "google.cloud.securitycenter.v1.Client.GroupAssets", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.GroupAssetsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "GroupResultIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "GroupAssets", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GroupAssets", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_GroupFindings_sync", + "title": "securitycenter GroupFindings Sample", + "description": "GroupFindings filters an organization or source’s findings and groups them by their\nspecified properties.\n\nTo group across all sources provide a - as the source id.\nExample: /v1/organizations/{organization_id}/sources/-/findings,\n/v1/folders/{folder_id}/sources/-/findings,\n/v1/projects/{project_id}/sources/-/findings", + "file": "Client/GroupFindings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GroupFindings", + "fullName": "google.cloud.securitycenter.v1.Client.GroupFindings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.GroupFindingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "GroupResultIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "GroupFindings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GroupFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListAssets_sync", + "title": "securitycenter ListAssets Sample", + "description": "ListAssets lists an organization’s assets.", + "file": "Client/ListAssets/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListAssets", + "fullName": "google.cloud.securitycenter.v1.Client.ListAssets", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.ListAssetsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ListAssetsResponse_ListAssetsResultIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "ListAssets", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListAssets", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_sync", + "title": "securitycenter ListBigQueryExports Sample", + "description": "ListBigQueryExports lists BigQuery exports. Note that when requesting BigQuery exports at a\ngiven level all exports under that level are also returned e.g. if\nrequesting BigQuery exports under a folder, then all BigQuery exports\nimmediately under the folder plus the ones created under the projects\nwithin the folder are returned.", + "file": "Client/ListBigQueryExports/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListBigQueryExports", + "fullName": "google.cloud.securitycenter.v1.Client.ListBigQueryExports", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.ListBigQueryExportsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "BigQueryExportIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "ListBigQueryExports", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListBigQueryExports", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListFindings_sync", + "title": "securitycenter ListFindings Sample", + "description": "ListFindings lists an organization or source’s findings.\n\nTo list across all sources provide a - as the source id.\nExample: /v1/organizations/{organization_id}/sources/-/findings", + "file": "Client/ListFindings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListFindings", + "fullName": "google.cloud.securitycenter.v1.Client.ListFindings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.ListFindingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ListFindingsResponse_ListFindingsResultIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "ListFindings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_sync", + "title": "securitycenter ListMuteConfigs Sample", + "description": "ListMuteConfigs lists mute configs.", + "file": "Client/ListMuteConfigs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListMuteConfigs", + "fullName": "google.cloud.securitycenter.v1.Client.ListMuteConfigs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.ListMuteConfigsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "MuteConfigIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "ListMuteConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_sync", + "title": "securitycenter ListNotificationConfigs Sample", + "description": "ListNotificationConfigs lists notification configs.", + "file": "Client/ListNotificationConfigs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListNotificationConfigs", + "fullName": "google.cloud.securitycenter.v1.Client.ListNotificationConfigs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.ListNotificationConfigsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "NotificationConfigIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "ListNotificationConfigs", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListNotificationConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListOperations_sync", + "title": "securitycenter ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "Client/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.securitycenter.v1.Client.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListOperations", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSources_sync", + "title": "securitycenter ListSources Sample", + "description": "ListSources lists all sources belonging to an organization.", + "file": "Client/ListSources/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListSources", + "fullName": "google.cloud.securitycenter.v1.Client.ListSources", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.ListSourcesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SourceIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "ListSources", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_sync", + "title": "securitycenter RunAssetDiscovery Sample", + "description": "RunAssetDiscovery runs asset discovery. The discovery is tracked with a long-running\noperation.\n\nThis API can only be called with limited frequency for an organization. If\nit is called too frequently the caller will receive a TOO_MANY_REQUESTS\nerror.", + "file": "Client/RunAssetDiscovery/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RunAssetDiscovery", + "fullName": "google.cloud.securitycenter.v1.Client.RunAssetDiscovery", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.RunAssetDiscoveryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RunAssetDiscoveryOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "RunAssetDiscovery", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.RunAssetDiscovery", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetFindingState_sync", + "title": "securitycenter SetFindingState Sample", + "description": "SetFindingState updates the state of a finding.", + "file": "Client/SetFindingState/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetFindingState", + "fullName": "google.cloud.securitycenter.v1.Client.SetFindingState", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.SetFindingStateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Finding", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "SetFindingState", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetFindingState", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetIamPolicy_sync", + "title": "securitycenter SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified Source.", + "file": "Client/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.securitycenter.v1.Client.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetIamPolicy", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_SetMute_sync", + "title": "securitycenter SetMute Sample", + "description": "SetMute updates the mute state of a finding.", + "file": "Client/SetMute/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetMute", + "fullName": "google.cloud.securitycenter.v1.Client.SetMute", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.SetMuteRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Finding", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "SetMute", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetMute", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_TestIamPermissions_sync", + "title": "securitycenter TestIamPermissions Sample", + "description": "TestIamPermissions returns the permissions that a caller has on the specified source.", + "file": "Client/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.securitycenter.v1.Client.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.TestIamPermissions", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateBigQueryExport_sync", + "title": "securitycenter UpdateBigQueryExport Sample", + "description": "UpdateBigQueryExport updates a BigQuery export.", + "file": "Client/UpdateBigQueryExport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.Client.UpdateBigQueryExport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.UpdateBigQueryExportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.BigQueryExport", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "UpdateBigQueryExport", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateBigQueryExport", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateExternalSystem_sync", + "title": "securitycenter UpdateExternalSystem Sample", + "description": "UpdateExternalSystem updates external system. This is for a given finding.", + "file": "Client/UpdateExternalSystem/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateExternalSystem", + "fullName": "google.cloud.securitycenter.v1.Client.UpdateExternalSystem", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.UpdateExternalSystemRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.ExternalSystem", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "UpdateExternalSystem", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateExternalSystem", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateFinding_sync", + "title": "securitycenter UpdateFinding Sample", + "description": "UpdateFinding creates or updates a finding. The corresponding source must exist for a\nfinding creation to succeed.", + "file": "Client/UpdateFinding/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateFinding", + "fullName": "google.cloud.securitycenter.v1.Client.UpdateFinding", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.UpdateFindingRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Finding", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "UpdateFinding", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateFinding", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateMuteConfig_sync", + "title": "securitycenter UpdateMuteConfig Sample", + "description": "UpdateMuteConfig updates a mute config.", + "file": "Client/UpdateMuteConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.Client.UpdateMuteConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.UpdateMuteConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.MuteConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "UpdateMuteConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateMuteConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_sync", + "title": "securitycenter UpdateNotificationConfig Sample", + "description": "UpdateNotificationConfig updates a notification config. The following update\nfields are allowed: description, pubsub_topic, streaming_config.filter", + "file": "Client/UpdateNotificationConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.Client.UpdateNotificationConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.UpdateNotificationConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.NotificationConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "UpdateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateOrganizationSettings_sync", + "title": "securitycenter UpdateOrganizationSettings Sample", + "description": "UpdateOrganizationSettings updates an organization’s settings.", + "file": "Client/UpdateOrganizationSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1.Client.UpdateOrganizationSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.UpdateOrganizationSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.OrganizationSettings", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "UpdateOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateOrganizationSettings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSecurityMarks_sync", + "title": "securitycenter UpdateSecurityMarks Sample", + "description": "UpdateSecurityMarks updates security marks.", + "file": "Client/UpdateSecurityMarks/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSecurityMarks", + "fullName": "google.cloud.securitycenter.v1.Client.UpdateSecurityMarks", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.UpdateSecurityMarksRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.SecurityMarks", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "UpdateSecurityMarks", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityMarks", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSource_sync", + "title": "securitycenter UpdateSource Sample", + "description": "UpdateSource updates a source.", + "file": "Client/UpdateSource/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSource", + "fullName": "google.cloud.securitycenter.v1.Client.UpdateSource", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.UpdateSourceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Source", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1.Client" + }, + "method": { + "shortName": "UpdateSource", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/Client/CreateFinding/main.go b/internal/generated/snippets/securitycenter/apiv1beta1/Client/CreateFinding/main.go index 99136a7b503c..17e5bf671c45 100644 --- a/internal/generated/snippets/securitycenter/apiv1beta1/Client/CreateFinding/main.go +++ b/internal/generated/snippets/securitycenter/apiv1beta1/Client/CreateFinding/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.CreateFindingRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1#CreateFindingRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb#CreateFindingRequest. } resp, err := c.CreateFinding(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/Client/CreateSource/main.go b/internal/generated/snippets/securitycenter/apiv1beta1/Client/CreateSource/main.go index a19520802d1d..a0c77c16d576 100644 --- a/internal/generated/snippets/securitycenter/apiv1beta1/Client/CreateSource/main.go +++ b/internal/generated/snippets/securitycenter/apiv1beta1/Client/CreateSource/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.CreateSourceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1#CreateSourceRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb#CreateSourceRequest. } resp, err := c.CreateSource(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/Client/GetIamPolicy/main.go b/internal/generated/snippets/securitycenter/apiv1beta1/Client/GetIamPolicy/main.go index 28e352b01916..8ee7e5fc4af5 100644 --- a/internal/generated/snippets/securitycenter/apiv1beta1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/securitycenter/apiv1beta1/Client/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1beta1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/Client/GetOrganizationSettings/main.go b/internal/generated/snippets/securitycenter/apiv1beta1/Client/GetOrganizationSettings/main.go index a42d8b19d0f6..5cea3578758c 100644 --- a/internal/generated/snippets/securitycenter/apiv1beta1/Client/GetOrganizationSettings/main.go +++ b/internal/generated/snippets/securitycenter/apiv1beta1/Client/GetOrganizationSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.GetOrganizationSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1#GetOrganizationSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb#GetOrganizationSettingsRequest. } resp, err := c.GetOrganizationSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/Client/GetSource/main.go b/internal/generated/snippets/securitycenter/apiv1beta1/Client/GetSource/main.go index d75f2df77c26..d53c51f032d6 100644 --- a/internal/generated/snippets/securitycenter/apiv1beta1/Client/GetSource/main.go +++ b/internal/generated/snippets/securitycenter/apiv1beta1/Client/GetSource/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.GetSourceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1#GetSourceRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb#GetSourceRequest. } resp, err := c.GetSource(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/Client/GroupAssets/main.go b/internal/generated/snippets/securitycenter/apiv1beta1/Client/GroupAssets/main.go index e032ca2bdcbd..33d12105b5b4 100644 --- a/internal/generated/snippets/securitycenter/apiv1beta1/Client/GroupAssets/main.go +++ b/internal/generated/snippets/securitycenter/apiv1beta1/Client/GroupAssets/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.GroupAssetsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1#GroupAssetsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb#GroupAssetsRequest. } it := c.GroupAssets(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/Client/GroupFindings/main.go b/internal/generated/snippets/securitycenter/apiv1beta1/Client/GroupFindings/main.go index 846bb9a6af68..9890e582f3df 100644 --- a/internal/generated/snippets/securitycenter/apiv1beta1/Client/GroupFindings/main.go +++ b/internal/generated/snippets/securitycenter/apiv1beta1/Client/GroupFindings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.GroupFindingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1#GroupFindingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb#GroupFindingsRequest. } it := c.GroupFindings(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/Client/ListAssets/main.go b/internal/generated/snippets/securitycenter/apiv1beta1/Client/ListAssets/main.go index d3eb8ba57a9c..d536c5aa1286 100644 --- a/internal/generated/snippets/securitycenter/apiv1beta1/Client/ListAssets/main.go +++ b/internal/generated/snippets/securitycenter/apiv1beta1/Client/ListAssets/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.ListAssetsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1#ListAssetsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb#ListAssetsRequest. } it := c.ListAssets(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/Client/ListFindings/main.go b/internal/generated/snippets/securitycenter/apiv1beta1/Client/ListFindings/main.go index 167eb73bb974..fbe7de4b37dc 100644 --- a/internal/generated/snippets/securitycenter/apiv1beta1/Client/ListFindings/main.go +++ b/internal/generated/snippets/securitycenter/apiv1beta1/Client/ListFindings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.ListFindingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1#ListFindingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb#ListFindingsRequest. } it := c.ListFindings(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/Client/ListSources/main.go b/internal/generated/snippets/securitycenter/apiv1beta1/Client/ListSources/main.go index 29a29c619f21..d70ab5366a75 100644 --- a/internal/generated/snippets/securitycenter/apiv1beta1/Client/ListSources/main.go +++ b/internal/generated/snippets/securitycenter/apiv1beta1/Client/ListSources/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.ListSourcesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1#ListSourcesRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb#ListSourcesRequest. } it := c.ListSources(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/Client/RunAssetDiscovery/main.go b/internal/generated/snippets/securitycenter/apiv1beta1/Client/RunAssetDiscovery/main.go index f3dbcbca76d4..9c6f40711442 100644 --- a/internal/generated/snippets/securitycenter/apiv1beta1/Client/RunAssetDiscovery/main.go +++ b/internal/generated/snippets/securitycenter/apiv1beta1/Client/RunAssetDiscovery/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.RunAssetDiscoveryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1#RunAssetDiscoveryRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb#RunAssetDiscoveryRequest. } op, err := c.RunAssetDiscovery(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/Client/SetFindingState/main.go b/internal/generated/snippets/securitycenter/apiv1beta1/Client/SetFindingState/main.go index af6bde64199b..b2ce35b2c295 100644 --- a/internal/generated/snippets/securitycenter/apiv1beta1/Client/SetFindingState/main.go +++ b/internal/generated/snippets/securitycenter/apiv1beta1/Client/SetFindingState/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.SetFindingStateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1#SetFindingStateRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb#SetFindingStateRequest. } resp, err := c.SetFindingState(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/Client/SetIamPolicy/main.go b/internal/generated/snippets/securitycenter/apiv1beta1/Client/SetIamPolicy/main.go index 54706d62be15..0e86b7924480 100644 --- a/internal/generated/snippets/securitycenter/apiv1beta1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/securitycenter/apiv1beta1/Client/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1beta1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/Client/TestIamPermissions/main.go b/internal/generated/snippets/securitycenter/apiv1beta1/Client/TestIamPermissions/main.go index 3d853ac3c9e7..450a28ff501a 100644 --- a/internal/generated/snippets/securitycenter/apiv1beta1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/securitycenter/apiv1beta1/Client/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1beta1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/Client/UpdateFinding/main.go b/internal/generated/snippets/securitycenter/apiv1beta1/Client/UpdateFinding/main.go index c9cfffc5953a..48d3c8599f4d 100644 --- a/internal/generated/snippets/securitycenter/apiv1beta1/Client/UpdateFinding/main.go +++ b/internal/generated/snippets/securitycenter/apiv1beta1/Client/UpdateFinding/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.UpdateFindingRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1#UpdateFindingRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb#UpdateFindingRequest. } resp, err := c.UpdateFinding(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/Client/UpdateOrganizationSettings/main.go b/internal/generated/snippets/securitycenter/apiv1beta1/Client/UpdateOrganizationSettings/main.go index 0515d1c6eae4..8d4d4468fe9d 100644 --- a/internal/generated/snippets/securitycenter/apiv1beta1/Client/UpdateOrganizationSettings/main.go +++ b/internal/generated/snippets/securitycenter/apiv1beta1/Client/UpdateOrganizationSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.UpdateOrganizationSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1#UpdateOrganizationSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb#UpdateOrganizationSettingsRequest. } resp, err := c.UpdateOrganizationSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/Client/UpdateSecurityMarks/main.go b/internal/generated/snippets/securitycenter/apiv1beta1/Client/UpdateSecurityMarks/main.go index 3b61943b51b3..d9f2f6e90ec4 100644 --- a/internal/generated/snippets/securitycenter/apiv1beta1/Client/UpdateSecurityMarks/main.go +++ b/internal/generated/snippets/securitycenter/apiv1beta1/Client/UpdateSecurityMarks/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.UpdateSecurityMarksRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1#UpdateSecurityMarksRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb#UpdateSecurityMarksRequest. } resp, err := c.UpdateSecurityMarks(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/Client/UpdateSource/main.go b/internal/generated/snippets/securitycenter/apiv1beta1/Client/UpdateSource/main.go index 9e0f64175a66..8fcdb1a09a86 100644 --- a/internal/generated/snippets/securitycenter/apiv1beta1/Client/UpdateSource/main.go +++ b/internal/generated/snippets/securitycenter/apiv1beta1/Client/UpdateSource/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.UpdateSourceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1#UpdateSourceRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb#UpdateSourceRequest. } resp, err := c.UpdateSource(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1beta1/snippet_metadata.google.cloud.securitycenter.v1beta1.json b/internal/generated/snippets/securitycenter/apiv1beta1/snippet_metadata.google.cloud.securitycenter.v1beta1.json new file mode 100644 index 000000000000..40fec14621b5 --- /dev/null +++ b/internal/generated/snippets/securitycenter/apiv1beta1/snippet_metadata.google.cloud.securitycenter.v1beta1.json @@ -0,0 +1,843 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/securitycenter/apiv1beta1", + "version": "1.18.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.securitycenter.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_CreateFinding_sync", + "title": "securitycenter CreateFinding Sample", + "description": "CreateFinding creates a finding. The corresponding source must exist for finding creation\nto succeed.", + "file": "Client/CreateFinding/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateFinding", + "fullName": "google.cloud.securitycenter.v1beta1.Client.CreateFinding", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.CreateFindingRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Finding", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1beta1.Client" + }, + "method": { + "shortName": "CreateFinding", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.CreateFinding", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_CreateSource_sync", + "title": "securitycenter CreateSource Sample", + "description": "CreateSource creates a source.", + "file": "Client/CreateSource/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSource", + "fullName": "google.cloud.securitycenter.v1beta1.Client.CreateSource", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.CreateSourceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Source", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1beta1.Client" + }, + "method": { + "shortName": "CreateSource", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.CreateSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_GetIamPolicy_sync", + "title": "securitycenter GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy on the specified Source.", + "file": "Client/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.securitycenter.v1beta1.Client.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1beta1.Client" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.GetIamPolicy", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_GetOrganizationSettings_sync", + "title": "securitycenter GetOrganizationSettings Sample", + "description": "GetOrganizationSettings gets the settings for an organization.", + "file": "Client/GetOrganizationSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1beta1.Client.GetOrganizationSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.GetOrganizationSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.OrganizationSettings", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1beta1.Client" + }, + "method": { + "shortName": "GetOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.GetOrganizationSettings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_GetSource_sync", + "title": "securitycenter GetSource Sample", + "description": "GetSource gets a source.", + "file": "Client/GetSource/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSource", + "fullName": "google.cloud.securitycenter.v1beta1.Client.GetSource", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.GetSourceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Source", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1beta1.Client" + }, + "method": { + "shortName": "GetSource", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.GetSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_GroupAssets_sync", + "title": "securitycenter GroupAssets Sample", + "description": "GroupAssets filters an organization’s assets and groups them by their specified\nproperties.", + "file": "Client/GroupAssets/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GroupAssets", + "fullName": "google.cloud.securitycenter.v1beta1.Client.GroupAssets", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.GroupAssetsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "GroupResultIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1beta1.Client" + }, + "method": { + "shortName": "GroupAssets", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.GroupAssets", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_GroupFindings_sync", + "title": "securitycenter GroupFindings Sample", + "description": "GroupFindings filters an organization or source’s findings and groups them by their\nspecified properties.\n\nTo group across all sources provide a - as the source id.\nExample: /v1beta1/organizations/{organization_id}/sources/-/findings", + "file": "Client/GroupFindings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GroupFindings", + "fullName": "google.cloud.securitycenter.v1beta1.Client.GroupFindings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.GroupFindingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "GroupResultIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1beta1.Client" + }, + "method": { + "shortName": "GroupFindings", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.GroupFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_ListAssets_sync", + "title": "securitycenter ListAssets Sample", + "description": "ListAssets lists an organization’s assets.", + "file": "Client/ListAssets/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListAssets", + "fullName": "google.cloud.securitycenter.v1beta1.Client.ListAssets", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.ListAssetsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ListAssetsResponse_ListAssetsResultIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1beta1.Client" + }, + "method": { + "shortName": "ListAssets", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.ListAssets", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_ListFindings_sync", + "title": "securitycenter ListFindings Sample", + "description": "ListFindings lists an organization or source’s findings.\n\nTo list across all sources provide a - as the source id.\nExample: /v1beta1/organizations/{organization_id}/sources/-/findings", + "file": "Client/ListFindings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListFindings", + "fullName": "google.cloud.securitycenter.v1beta1.Client.ListFindings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.ListFindingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "FindingIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1beta1.Client" + }, + "method": { + "shortName": "ListFindings", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.ListFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_ListSources_sync", + "title": "securitycenter ListSources Sample", + "description": "ListSources lists all sources belonging to an organization.", + "file": "Client/ListSources/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListSources", + "fullName": "google.cloud.securitycenter.v1beta1.Client.ListSources", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.ListSourcesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SourceIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1beta1.Client" + }, + "method": { + "shortName": "ListSources", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.ListSources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_RunAssetDiscovery_sync", + "title": "securitycenter RunAssetDiscovery Sample", + "description": "RunAssetDiscovery runs asset discovery. The discovery is tracked with a long-running\noperation.\n\nThis API can only be called with limited frequency for an organization. If\nit is called too frequently the caller will receive a TOO_MANY_REQUESTS\nerror.", + "file": "Client/RunAssetDiscovery/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RunAssetDiscovery", + "fullName": "google.cloud.securitycenter.v1beta1.Client.RunAssetDiscovery", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.RunAssetDiscoveryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RunAssetDiscoveryOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1beta1.Client" + }, + "method": { + "shortName": "RunAssetDiscovery", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.RunAssetDiscovery", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_SetFindingState_sync", + "title": "securitycenter SetFindingState Sample", + "description": "SetFindingState updates the state of a finding.", + "file": "Client/SetFindingState/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetFindingState", + "fullName": "google.cloud.securitycenter.v1beta1.Client.SetFindingState", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.SetFindingStateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Finding", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1beta1.Client" + }, + "method": { + "shortName": "SetFindingState", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.SetFindingState", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_SetIamPolicy_sync", + "title": "securitycenter SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified Source.", + "file": "Client/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.securitycenter.v1beta1.Client.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1beta1.Client" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.SetIamPolicy", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_TestIamPermissions_sync", + "title": "securitycenter TestIamPermissions Sample", + "description": "TestIamPermissions returns the permissions that a caller has on the specified source.", + "file": "Client/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.securitycenter.v1beta1.Client.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1beta1.Client" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.TestIamPermissions", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_UpdateFinding_sync", + "title": "securitycenter UpdateFinding Sample", + "description": "UpdateFinding creates or updates a finding. The corresponding source must exist for a\nfinding creation to succeed.", + "file": "Client/UpdateFinding/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateFinding", + "fullName": "google.cloud.securitycenter.v1beta1.Client.UpdateFinding", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.UpdateFindingRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Finding", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1beta1.Client" + }, + "method": { + "shortName": "UpdateFinding", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateFinding", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_UpdateOrganizationSettings_sync", + "title": "securitycenter UpdateOrganizationSettings Sample", + "description": "UpdateOrganizationSettings updates an organization’s settings.", + "file": "Client/UpdateOrganizationSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1beta1.Client.UpdateOrganizationSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.UpdateOrganizationSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.OrganizationSettings", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1beta1.Client" + }, + "method": { + "shortName": "UpdateOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateOrganizationSettings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_UpdateSecurityMarks_sync", + "title": "securitycenter UpdateSecurityMarks Sample", + "description": "UpdateSecurityMarks updates security marks.", + "file": "Client/UpdateSecurityMarks/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSecurityMarks", + "fullName": "google.cloud.securitycenter.v1beta1.Client.UpdateSecurityMarks", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.UpdateSecurityMarksRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.SecurityMarks", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1beta1.Client" + }, + "method": { + "shortName": "UpdateSecurityMarks", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateSecurityMarks", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_UpdateSource_sync", + "title": "securitycenter UpdateSource Sample", + "description": "UpdateSource updates a source.", + "file": "Client/UpdateSource/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSource", + "fullName": "google.cloud.securitycenter.v1beta1.Client.UpdateSource", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.UpdateSourceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Source", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1beta1.Client" + }, + "method": { + "shortName": "UpdateSource", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/CreateFinding/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/CreateFinding/main.go index b46c8fcad5c8..65adc8db0a7a 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/CreateFinding/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/CreateFinding/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.CreateFindingRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#CreateFindingRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#CreateFindingRequest. } resp, err := c.CreateFinding(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/CreateNotificationConfig/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/CreateNotificationConfig/main.go index 2f1045638656..96e6e41647a2 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/CreateNotificationConfig/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/CreateNotificationConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.CreateNotificationConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#CreateNotificationConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#CreateNotificationConfigRequest. } resp, err := c.CreateNotificationConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/CreateSource/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/CreateSource/main.go index cf944295ea31..2ed09e853c04 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/CreateSource/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/CreateSource/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.CreateSourceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#CreateSourceRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#CreateSourceRequest. } resp, err := c.CreateSource(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/DeleteNotificationConfig/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/DeleteNotificationConfig/main.go index fc1e9361bf18..6a46599dfae0 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/DeleteNotificationConfig/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/DeleteNotificationConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.DeleteNotificationConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#DeleteNotificationConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#DeleteNotificationConfigRequest. } err = c.DeleteNotificationConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GetIamPolicy/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GetIamPolicy/main.go index 99b5e34eb1e8..b1e55de3fa2a 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GetIamPolicy/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GetNotificationConfig/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GetNotificationConfig/main.go index 42c7326bed10..62f4417f93ef 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GetNotificationConfig/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GetNotificationConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.GetNotificationConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#GetNotificationConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#GetNotificationConfigRequest. } resp, err := c.GetNotificationConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GetOrganizationSettings/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GetOrganizationSettings/main.go index 01c20f67df18..93fa64f97d04 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GetOrganizationSettings/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GetOrganizationSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.GetOrganizationSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#GetOrganizationSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#GetOrganizationSettingsRequest. } resp, err := c.GetOrganizationSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GetSource/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GetSource/main.go index df52fde65005..e9f4bbc77094 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GetSource/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GetSource/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.GetSourceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#GetSourceRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#GetSourceRequest. } resp, err := c.GetSource(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GroupAssets/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GroupAssets/main.go index 9df0abd7de05..6e3c6287961f 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GroupAssets/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GroupAssets/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.GroupAssetsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#GroupAssetsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#GroupAssetsRequest. } it := c.GroupAssets(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GroupFindings/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GroupFindings/main.go index 6a06308c5448..97f874586471 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GroupFindings/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/GroupFindings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.GroupFindingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#GroupFindingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#GroupFindingsRequest. } it := c.GroupFindings(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/ListAssets/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/ListAssets/main.go index 72589d95ac98..80afe4f44831 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/ListAssets/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/ListAssets/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.ListAssetsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#ListAssetsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#ListAssetsRequest. } it := c.ListAssets(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/ListFindings/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/ListFindings/main.go index 5f234ed270a6..24b25e62e330 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/ListFindings/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/ListFindings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.ListFindingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#ListFindingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#ListFindingsRequest. } it := c.ListFindings(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/ListNotificationConfigs/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/ListNotificationConfigs/main.go index 9d38c3d89cac..e858687e77d2 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/ListNotificationConfigs/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/ListNotificationConfigs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.ListNotificationConfigsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#ListNotificationConfigsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#ListNotificationConfigsRequest. } it := c.ListNotificationConfigs(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/ListSources/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/ListSources/main.go index 2c462837d59d..1cea9f21140f 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/ListSources/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/ListSources/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" "google.golang.org/api/iterator" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &securitycenterpb.ListSourcesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#ListSourcesRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#ListSourcesRequest. } it := c.ListSources(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/RunAssetDiscovery/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/RunAssetDiscovery/main.go index 74385f51e1dc..e63fd17cf318 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/RunAssetDiscovery/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/RunAssetDiscovery/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.RunAssetDiscoveryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#RunAssetDiscoveryRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#RunAssetDiscoveryRequest. } op, err := c.RunAssetDiscovery(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/SetFindingState/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/SetFindingState/main.go index 01fd5be0cca3..6513316f5cef 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/SetFindingState/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/SetFindingState/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.SetFindingStateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#SetFindingStateRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#SetFindingStateRequest. } resp, err := c.SetFindingState(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/SetIamPolicy/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/SetIamPolicy/main.go index 180e130f3c0d..fc1f67e17416 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/SetIamPolicy/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/TestIamPermissions/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/TestIamPermissions/main.go index 40e981d5be7d..6b4ce9099162 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/TestIamPermissions/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateFinding/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateFinding/main.go index b9d96dafe9f6..1ee89da988f8 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateFinding/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateFinding/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.UpdateFindingRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#UpdateFindingRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#UpdateFindingRequest. } resp, err := c.UpdateFinding(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateNotificationConfig/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateNotificationConfig/main.go index d9cf3280f475..3e4f5ee2d1c0 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateNotificationConfig/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateNotificationConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.UpdateNotificationConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#UpdateNotificationConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#UpdateNotificationConfigRequest. } resp, err := c.UpdateNotificationConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateOrganizationSettings/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateOrganizationSettings/main.go index e6478f62e222..a24aecd2f3da 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateOrganizationSettings/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateOrganizationSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.UpdateOrganizationSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#UpdateOrganizationSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#UpdateOrganizationSettingsRequest. } resp, err := c.UpdateOrganizationSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateSecurityMarks/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateSecurityMarks/main.go index f4290d804a54..9fe6cb682fc1 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateSecurityMarks/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateSecurityMarks/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.UpdateSecurityMarksRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#UpdateSecurityMarksRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#UpdateSecurityMarksRequest. } resp, err := c.UpdateSecurityMarks(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateSource/main.go b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateSource/main.go index 0e75061b84e2..f883ec09289d 100644 --- a/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateSource/main.go +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/Client/UpdateSource/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" securitycenter "cloud.google.com/go/securitycenter/apiv1p1beta1" - securitycenterpb "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1" + securitycenterpb "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := securitycenter.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &securitycenterpb.UpdateSourceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1#UpdateSourceRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb#UpdateSourceRequest. } resp, err := c.UpdateSource(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/apiv1p1beta1/snippet_metadata.google.cloud.securitycenter.v1p1beta1.json b/internal/generated/snippets/securitycenter/apiv1p1beta1/snippet_metadata.google.cloud.securitycenter.v1p1beta1.json new file mode 100644 index 000000000000..d8a49968cec2 --- /dev/null +++ b/internal/generated/snippets/securitycenter/apiv1p1beta1/snippet_metadata.google.cloud.securitycenter.v1p1beta1.json @@ -0,0 +1,1072 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/securitycenter/apiv1p1beta1", + "version": "1.18.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.securitycenter.v1p1beta1", + "version": "v1p1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_CreateFinding_sync", + "title": "securitycenter CreateFinding Sample", + "description": "CreateFinding creates a finding. The corresponding source must exist for finding\ncreation to succeed.", + "file": "Client/CreateFinding/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateFinding", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.CreateFinding", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.CreateFindingRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Finding", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "CreateFinding", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.CreateFinding", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_CreateNotificationConfig_sync", + "title": "securitycenter CreateNotificationConfig Sample", + "description": "CreateNotificationConfig creates a notification config.", + "file": "Client/CreateNotificationConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.CreateNotificationConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.CreateNotificationConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.NotificationConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "CreateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.CreateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_CreateSource_sync", + "title": "securitycenter CreateSource Sample", + "description": "CreateSource creates a source.", + "file": "Client/CreateSource/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSource", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.CreateSource", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.CreateSourceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Source", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "CreateSource", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.CreateSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_DeleteNotificationConfig_sync", + "title": "securitycenter DeleteNotificationConfig Sample", + "description": "DeleteNotificationConfig deletes a notification config.", + "file": "Client/DeleteNotificationConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteNotificationConfig", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.DeleteNotificationConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.DeleteNotificationConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "DeleteNotificationConfig", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.DeleteNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_GetIamPolicy_sync", + "title": "securitycenter GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy on the specified Source.", + "file": "Client/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.GetIamPolicy", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_GetNotificationConfig_sync", + "title": "securitycenter GetNotificationConfig Sample", + "description": "GetNotificationConfig gets a notification config.", + "file": "Client/GetNotificationConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetNotificationConfig", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.GetNotificationConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.GetNotificationConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.NotificationConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "GetNotificationConfig", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.GetNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_GetOrganizationSettings_sync", + "title": "securitycenter GetOrganizationSettings Sample", + "description": "GetOrganizationSettings gets the settings for an organization.", + "file": "Client/GetOrganizationSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.GetOrganizationSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.GetOrganizationSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.OrganizationSettings", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "GetOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.GetOrganizationSettings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_GetSource_sync", + "title": "securitycenter GetSource Sample", + "description": "GetSource gets a source.", + "file": "Client/GetSource/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSource", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.GetSource", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.GetSourceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Source", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "GetSource", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.GetSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_GroupAssets_sync", + "title": "securitycenter GroupAssets Sample", + "description": "GroupAssets filters an organization’s assets and groups them by their specified\nproperties.", + "file": "Client/GroupAssets/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GroupAssets", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.GroupAssets", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.GroupAssetsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "GroupResultIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "GroupAssets", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.GroupAssets", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_GroupFindings_sync", + "title": "securitycenter GroupFindings Sample", + "description": "GroupFindings filters an organization or source’s findings and groups them by their\nspecified properties.\n\nTo group across all sources provide a - as the source id.\nExample: /v1/organizations/{organization_id}/sources/-/findings,\n/v1/folders/{folder_id}/sources/-/findings,\n/v1/projects/{project_id}/sources/-/findings", + "file": "Client/GroupFindings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GroupFindings", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.GroupFindings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.GroupFindingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "GroupResultIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "GroupFindings", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.GroupFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_ListAssets_sync", + "title": "securitycenter ListAssets Sample", + "description": "ListAssets lists an organization’s assets.", + "file": "Client/ListAssets/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListAssets", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.ListAssets", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.ListAssetsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ListAssetsResponse_ListAssetsResultIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "ListAssets", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.ListAssets", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_ListFindings_sync", + "title": "securitycenter ListFindings Sample", + "description": "ListFindings lists an organization or source’s findings.\n\nTo list across all sources provide a - as the source id.\nExample: /v1p1beta1/organizations/{organization_id}/sources/-/findings", + "file": "Client/ListFindings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListFindings", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.ListFindings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.ListFindingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ListFindingsResponse_ListFindingsResultIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "ListFindings", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.ListFindings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_ListNotificationConfigs_sync", + "title": "securitycenter ListNotificationConfigs Sample", + "description": "ListNotificationConfigs lists notification configs.", + "file": "Client/ListNotificationConfigs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListNotificationConfigs", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.ListNotificationConfigs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.ListNotificationConfigsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "NotificationConfigIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "ListNotificationConfigs", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.ListNotificationConfigs", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_ListSources_sync", + "title": "securitycenter ListSources Sample", + "description": "ListSources lists all sources belonging to an organization.", + "file": "Client/ListSources/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListSources", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.ListSources", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.ListSourcesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SourceIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "ListSources", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.ListSources", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_RunAssetDiscovery_sync", + "title": "securitycenter RunAssetDiscovery Sample", + "description": "RunAssetDiscovery runs asset discovery. The discovery is tracked with a long-running\noperation.\n\nThis API can only be called with limited frequency for an organization. If\nit is called too frequently the caller will receive a TOO_MANY_REQUESTS\nerror.", + "file": "Client/RunAssetDiscovery/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RunAssetDiscovery", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.RunAssetDiscovery", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.RunAssetDiscoveryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RunAssetDiscoveryOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "RunAssetDiscovery", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.RunAssetDiscovery", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_SetFindingState_sync", + "title": "securitycenter SetFindingState Sample", + "description": "SetFindingState updates the state of a finding.", + "file": "Client/SetFindingState/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetFindingState", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.SetFindingState", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.SetFindingStateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Finding", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "SetFindingState", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.SetFindingState", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_SetIamPolicy_sync", + "title": "securitycenter SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified Source.", + "file": "Client/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.SetIamPolicy", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_TestIamPermissions_sync", + "title": "securitycenter TestIamPermissions Sample", + "description": "TestIamPermissions returns the permissions that a caller has on the specified source.", + "file": "Client/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.TestIamPermissions", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_UpdateFinding_sync", + "title": "securitycenter UpdateFinding Sample", + "description": "UpdateFinding creates or updates a finding. The corresponding source must exist for a\nfinding creation to succeed.", + "file": "Client/UpdateFinding/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateFinding", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.UpdateFinding", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.UpdateFindingRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Finding", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "UpdateFinding", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateFinding", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_UpdateNotificationConfig_sync", + "title": "securitycenter UpdateNotificationConfig Sample", + "description": "UpdateNotificationConfig updates a notification config. The following update\nfields are allowed: description, pubsub_topic, streaming_config.filter", + "file": "Client/UpdateNotificationConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.UpdateNotificationConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.UpdateNotificationConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.NotificationConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "UpdateNotificationConfig", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateNotificationConfig", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_UpdateOrganizationSettings_sync", + "title": "securitycenter UpdateOrganizationSettings Sample", + "description": "UpdateOrganizationSettings updates an organization’s settings.", + "file": "Client/UpdateOrganizationSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.UpdateOrganizationSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.UpdateOrganizationSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.OrganizationSettings", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "UpdateOrganizationSettings", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateOrganizationSettings", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_UpdateSecurityMarks_sync", + "title": "securitycenter UpdateSecurityMarks Sample", + "description": "UpdateSecurityMarks updates security marks.", + "file": "Client/UpdateSecurityMarks/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSecurityMarks", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.UpdateSecurityMarks", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.UpdateSecurityMarksRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.SecurityMarks", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "UpdateSecurityMarks", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateSecurityMarks", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_UpdateSource_sync", + "title": "securitycenter UpdateSource Sample", + "description": "UpdateSource updates a source.", + "file": "Client/UpdateSource/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSource", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client.UpdateSource", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "securitycenterpb.UpdateSourceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "securitycenterpb.Source", + "client": { + "shortName": "Client", + "fullName": "google.cloud.securitycenter.v1p1beta1.Client" + }, + "method": { + "shortName": "UpdateSource", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateSource", + "service": { + "shortName": "SecurityCenter", + "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/BatchCalculateEffectiveSettings/main.go b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/BatchCalculateEffectiveSettings/main.go index c9a072e44522..192b596b9dba 100644 --- a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/BatchCalculateEffectiveSettings/main.go +++ b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/BatchCalculateEffectiveSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" settings "cloud.google.com/go/securitycenter/settings/apiv1beta1" - settingspb "google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1" + settingspb "cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &settingspb.BatchCalculateEffectiveSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1#BatchCalculateEffectiveSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb#BatchCalculateEffectiveSettingsRequest. } resp, err := c.BatchCalculateEffectiveSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/BatchGetSettings/main.go b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/BatchGetSettings/main.go index cb05c320047f..7938585dea54 100644 --- a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/BatchGetSettings/main.go +++ b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/BatchGetSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" settings "cloud.google.com/go/securitycenter/settings/apiv1beta1" - settingspb "google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1" + settingspb "cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &settingspb.BatchGetSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1#BatchGetSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb#BatchGetSettingsRequest. } resp, err := c.BatchGetSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/CalculateEffectiveComponentSettings/main.go b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/CalculateEffectiveComponentSettings/main.go index 203b874e0470..849313f3c7ab 100644 --- a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/CalculateEffectiveComponentSettings/main.go +++ b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/CalculateEffectiveComponentSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" settings "cloud.google.com/go/securitycenter/settings/apiv1beta1" - settingspb "google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1" + settingspb "cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &settingspb.CalculateEffectiveComponentSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1#CalculateEffectiveComponentSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb#CalculateEffectiveComponentSettingsRequest. } resp, err := c.CalculateEffectiveComponentSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/CalculateEffectiveSettings/main.go b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/CalculateEffectiveSettings/main.go index 365bd8c9555d..d43271d70f7f 100644 --- a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/CalculateEffectiveSettings/main.go +++ b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/CalculateEffectiveSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" settings "cloud.google.com/go/securitycenter/settings/apiv1beta1" - settingspb "google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1" + settingspb "cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &settingspb.CalculateEffectiveSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1#CalculateEffectiveSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb#CalculateEffectiveSettingsRequest. } resp, err := c.CalculateEffectiveSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/GetComponentSettings/main.go b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/GetComponentSettings/main.go index 02d16577488d..644bca298556 100644 --- a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/GetComponentSettings/main.go +++ b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/GetComponentSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" settings "cloud.google.com/go/securitycenter/settings/apiv1beta1" - settingspb "google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1" + settingspb "cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &settingspb.GetComponentSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1#GetComponentSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb#GetComponentSettingsRequest. } resp, err := c.GetComponentSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/GetServiceAccount/main.go b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/GetServiceAccount/main.go index ea9153dc24d5..f2a93049dcd9 100644 --- a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/GetServiceAccount/main.go +++ b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/GetServiceAccount/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" settings "cloud.google.com/go/securitycenter/settings/apiv1beta1" - settingspb "google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1" + settingspb "cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &settingspb.GetServiceAccountRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1#GetServiceAccountRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb#GetServiceAccountRequest. } resp, err := c.GetServiceAccount(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/GetSettings/main.go b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/GetSettings/main.go index 1a30f18044ca..bf358a871ab9 100644 --- a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/GetSettings/main.go +++ b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/GetSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" settings "cloud.google.com/go/securitycenter/settings/apiv1beta1" - settingspb "google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1" + settingspb "cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &settingspb.GetSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1#GetSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb#GetSettingsRequest. } resp, err := c.GetSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/ListComponents/main.go b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/ListComponents/main.go index e2b2a3ff240c..6c0afa9c1f35 100644 --- a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/ListComponents/main.go +++ b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/ListComponents/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" settings "cloud.google.com/go/securitycenter/settings/apiv1beta1" + settingspb "cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb" "google.golang.org/api/iterator" - settingspb "google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &settingspb.ListComponentsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1#ListComponentsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb#ListComponentsRequest. } it := c.ListComponents(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/ListDetectors/main.go b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/ListDetectors/main.go index 6d3b3e8a3ddc..68952efccb45 100644 --- a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/ListDetectors/main.go +++ b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/ListDetectors/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" settings "cloud.google.com/go/securitycenter/settings/apiv1beta1" + settingspb "cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb" "google.golang.org/api/iterator" - settingspb "google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &settingspb.ListDetectorsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1#ListDetectorsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb#ListDetectorsRequest. } it := c.ListDetectors(ctx, req) for { diff --git a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/ResetComponentSettings/main.go b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/ResetComponentSettings/main.go index cb762a69ebbb..3c8eb2b1d78c 100644 --- a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/ResetComponentSettings/main.go +++ b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/ResetComponentSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" settings "cloud.google.com/go/securitycenter/settings/apiv1beta1" - settingspb "google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1" + settingspb "cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &settingspb.ResetComponentSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1#ResetComponentSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb#ResetComponentSettingsRequest. } err = c.ResetComponentSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/ResetSettings/main.go b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/ResetSettings/main.go index 6356bc0c7eac..34e4c2961aa4 100644 --- a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/ResetSettings/main.go +++ b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/ResetSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" settings "cloud.google.com/go/securitycenter/settings/apiv1beta1" - settingspb "google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1" + settingspb "cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &settingspb.ResetSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1#ResetSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb#ResetSettingsRequest. } err = c.ResetSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/UpdateComponentSettings/main.go b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/UpdateComponentSettings/main.go index 48cb59c9d838..98d243a2591a 100644 --- a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/UpdateComponentSettings/main.go +++ b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/UpdateComponentSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" settings "cloud.google.com/go/securitycenter/settings/apiv1beta1" - settingspb "google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1" + settingspb "cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &settingspb.UpdateComponentSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1#UpdateComponentSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb#UpdateComponentSettingsRequest. } resp, err := c.UpdateComponentSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/UpdateSettings/main.go b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/UpdateSettings/main.go index ebdafc0eb2ec..7d87da10dd7f 100644 --- a/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/UpdateSettings/main.go +++ b/internal/generated/snippets/securitycenter/settings/apiv1beta1/SecurityCenterSettingsClient/UpdateSettings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" settings "cloud.google.com/go/securitycenter/settings/apiv1beta1" - settingspb "google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1" + settingspb "cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := settings.NewSecurityCenterSettingsClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &settingspb.UpdateSettingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1#UpdateSettingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/securitycenter/settings/apiv1beta1/settingspb#UpdateSettingsRequest. } resp, err := c.UpdateSettings(ctx, req) if err != nil { diff --git a/internal/generated/snippets/securitycenter/settings/apiv1beta1/snippet_metadata.google.cloud.securitycenter.settings.v1beta1.json b/internal/generated/snippets/securitycenter/settings/apiv1beta1/snippet_metadata.google.cloud.securitycenter.settings.v1beta1.json new file mode 100644 index 000000000000..6e0489b71ae3 --- /dev/null +++ b/internal/generated/snippets/securitycenter/settings/apiv1beta1/snippet_metadata.google.cloud.securitycenter.settings.v1beta1.json @@ -0,0 +1,611 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/securitycenter/settings/apiv1beta1", + "version": "1.18.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.securitycenter.settings.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_BatchCalculateEffectiveSettings_sync", + "title": "securitycenter BatchCalculateEffectiveSettings Sample", + "description": "BatchCalculateEffectiveSettings gets a list of effective settings.", + "file": "SecurityCenterSettingsClient/BatchCalculateEffectiveSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchCalculateEffectiveSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient.BatchCalculateEffectiveSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "settingspb.BatchCalculateEffectiveSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "settingspb.BatchCalculateEffectiveSettingsResponse", + "client": { + "shortName": "SecurityCenterSettingsClient", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient" + }, + "method": { + "shortName": "BatchCalculateEffectiveSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.BatchCalculateEffectiveSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_BatchGetSettings_sync", + "title": "securitycenter BatchGetSettings Sample", + "description": "BatchGetSettings gets a list of settings.", + "file": "SecurityCenterSettingsClient/BatchGetSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchGetSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient.BatchGetSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "settingspb.BatchGetSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "settingspb.BatchGetSettingsResponse", + "client": { + "shortName": "SecurityCenterSettingsClient", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient" + }, + "method": { + "shortName": "BatchGetSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.BatchGetSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveComponentSettings_sync", + "title": "securitycenter CalculateEffectiveComponentSettings Sample", + "description": "CalculateEffectiveComponentSettings gets the Effective Component Settings.", + "file": "SecurityCenterSettingsClient/CalculateEffectiveComponentSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CalculateEffectiveComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient.CalculateEffectiveComponentSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "settingspb.CalculateEffectiveComponentSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "settingspb.ComponentSettings", + "client": { + "shortName": "SecurityCenterSettingsClient", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient" + }, + "method": { + "shortName": "CalculateEffectiveComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.CalculateEffectiveComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_CalculateEffectiveSettings_sync", + "title": "securitycenter CalculateEffectiveSettings Sample", + "description": "CalculateEffectiveSettings calculateEffectiveSettings looks up all of the Security Center\nSettings resources in the GCP resource hierarchy, and calculates the\neffective settings on that resource by applying the following rules: \n\n\tSettings provided closer to the target resource take precedence over\n\tthose further away (e.g. folder will override organization level\n\tsettings).\n\n\tProduct defaults can be overridden at org, folder, project, and cluster\n\tlevels.\n\n\tDetectors will be filtered out if they belong to a billing tier the\n\tcustomer\n\thas not configured.", + "file": "SecurityCenterSettingsClient/CalculateEffectiveSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CalculateEffectiveSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient.CalculateEffectiveSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "settingspb.CalculateEffectiveSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "settingspb.Settings", + "client": { + "shortName": "SecurityCenterSettingsClient", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient" + }, + "method": { + "shortName": "CalculateEffectiveSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.CalculateEffectiveSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetComponentSettings_sync", + "title": "securitycenter GetComponentSettings Sample", + "description": "GetComponentSettings gets the Component Settings.", + "file": "SecurityCenterSettingsClient/GetComponentSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient.GetComponentSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "settingspb.GetComponentSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "settingspb.ComponentSettings", + "client": { + "shortName": "SecurityCenterSettingsClient", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient" + }, + "method": { + "shortName": "GetComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetServiceAccount_sync", + "title": "securitycenter GetServiceAccount Sample", + "description": "GetServiceAccount retrieves the organizations service account, if it exists, otherwise it\ncreates the organization service account. This API is idempotent and\nwill only create a service account once. On subsequent calls it will\nreturn the previously created service account. SHA, SCC and CTD Infra\nAutomation will use this SA. This SA will not have any permissions when\ncreated. The UI will provision this via IAM or the user will using\ntheir own internal process. This API only creates SAs on the organization.\nFolders are not supported and projects will use per-project SAs associated\nwith APIs enabled on a project. This API will be called by the UX\nonboarding workflow.", + "file": "SecurityCenterSettingsClient/GetServiceAccount/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetServiceAccount", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient.GetServiceAccount", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "settingspb.GetServiceAccountRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "settingspb.ServiceAccount", + "client": { + "shortName": "SecurityCenterSettingsClient", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient" + }, + "method": { + "shortName": "GetServiceAccount", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetServiceAccount", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_GetSettings_sync", + "title": "securitycenter GetSettings Sample", + "description": "GetSettings gets the Settings.", + "file": "SecurityCenterSettingsClient/GetSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient.GetSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "settingspb.GetSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "settingspb.Settings", + "client": { + "shortName": "SecurityCenterSettingsClient", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient" + }, + "method": { + "shortName": "GetSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.GetSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListComponents_sync", + "title": "securitycenter ListComponents Sample", + "description": "ListComponents retrieves an unordered list of available SCC components.", + "file": "SecurityCenterSettingsClient/ListComponents/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListComponents", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient.ListComponents", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "settingspb.ListComponentsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "StringIterator", + "client": { + "shortName": "SecurityCenterSettingsClient", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient" + }, + "method": { + "shortName": "ListComponents", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ListComponents", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ListDetectors_sync", + "title": "securitycenter ListDetectors Sample", + "description": "ListDetectors retrieves an unordered list of available detectors.", + "file": "SecurityCenterSettingsClient/ListDetectors/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListDetectors", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient.ListDetectors", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "settingspb.ListDetectorsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DetectorIterator", + "client": { + "shortName": "SecurityCenterSettingsClient", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient" + }, + "method": { + "shortName": "ListDetectors", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ListDetectors", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ResetComponentSettings_sync", + "title": "securitycenter ResetComponentSettings Sample", + "description": "ResetComponentSettings reset the organization, folder or project’s component settings and return\nthe settings to the default. Settings are present at the\norganization, folder and project levels. Using Reset for a folder or\nproject will remove the override that was set and result in the\norganization-level settings being used.", + "file": "SecurityCenterSettingsClient/ResetComponentSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResetComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient.ResetComponentSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "settingspb.ResetComponentSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "SecurityCenterSettingsClient", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient" + }, + "method": { + "shortName": "ResetComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ResetComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_ResetSettings_sync", + "title": "securitycenter ResetSettings Sample", + "description": "ResetSettings reset the organization, folder or project’s settings and return\nthe settings of just that resource to the default.\n\nSettings are present at the organization, folder, project, and cluster\nlevels. Using Reset on a sub-organization level will remove that resource’s\noverride and result in the parent’s settings being used (eg: if Reset on a\ncluster, project settings will be used).\n\nUsing Reset on organization will remove the override that was set and\nresult in default settings being used.", + "file": "SecurityCenterSettingsClient/ResetSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResetSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient.ResetSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "settingspb.ResetSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "SecurityCenterSettingsClient", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient" + }, + "method": { + "shortName": "ResetSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.ResetSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateComponentSettings_sync", + "title": "securitycenter UpdateComponentSettings Sample", + "description": "UpdateComponentSettings updates the Component Settings.", + "file": "SecurityCenterSettingsClient/UpdateComponentSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient.UpdateComponentSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "settingspb.UpdateComponentSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "settingspb.ComponentSettings", + "client": { + "shortName": "SecurityCenterSettingsClient", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient" + }, + "method": { + "shortName": "UpdateComponentSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.UpdateComponentSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "securitycenter_v1beta1_generated_SecurityCenterSettingsService_UpdateSettings_sync", + "title": "securitycenter UpdateSettings Sample", + "description": "UpdateSettings updates the Settings.", + "file": "SecurityCenterSettingsClient/UpdateSettings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient.UpdateSettings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "settingspb.UpdateSettingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "settingspb.Settings", + "client": { + "shortName": "SecurityCenterSettingsClient", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsClient" + }, + "method": { + "shortName": "UpdateSettings", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService.UpdateSettings", + "service": { + "shortName": "SecurityCenterSettingsService", + "fullName": "google.cloud.securitycenter.settings.v1beta1.SecurityCenterSettingsService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/servicecontrol/apiv1/QuotaControllerClient/AllocateQuota/main.go b/internal/generated/snippets/servicecontrol/apiv1/QuotaControllerClient/AllocateQuota/main.go index 916adf6ba35c..bbfa68ddaa8e 100644 --- a/internal/generated/snippets/servicecontrol/apiv1/QuotaControllerClient/AllocateQuota/main.go +++ b/internal/generated/snippets/servicecontrol/apiv1/QuotaControllerClient/AllocateQuota/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicecontrol "cloud.google.com/go/servicecontrol/apiv1" - servicecontrolpb "google.golang.org/genproto/googleapis/api/servicecontrol/v1" + servicecontrolpb "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicecontrol.NewQuotaControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicecontrolpb.AllocateQuotaRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/servicecontrol/v1#AllocateQuotaRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb#AllocateQuotaRequest. } resp, err := c.AllocateQuota(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicecontrol/apiv1/ServiceControllerClient/Check/main.go b/internal/generated/snippets/servicecontrol/apiv1/ServiceControllerClient/Check/main.go index d536679f1960..8eab00343a60 100644 --- a/internal/generated/snippets/servicecontrol/apiv1/ServiceControllerClient/Check/main.go +++ b/internal/generated/snippets/servicecontrol/apiv1/ServiceControllerClient/Check/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicecontrol "cloud.google.com/go/servicecontrol/apiv1" - servicecontrolpb "google.golang.org/genproto/googleapis/api/servicecontrol/v1" + servicecontrolpb "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicecontrol.NewServiceControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicecontrolpb.CheckRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/servicecontrol/v1#CheckRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb#CheckRequest. } resp, err := c.Check(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicecontrol/apiv1/ServiceControllerClient/Report/main.go b/internal/generated/snippets/servicecontrol/apiv1/ServiceControllerClient/Report/main.go index 3a9101448eb0..9f816a33f68a 100644 --- a/internal/generated/snippets/servicecontrol/apiv1/ServiceControllerClient/Report/main.go +++ b/internal/generated/snippets/servicecontrol/apiv1/ServiceControllerClient/Report/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicecontrol "cloud.google.com/go/servicecontrol/apiv1" - servicecontrolpb "google.golang.org/genproto/googleapis/api/servicecontrol/v1" + servicecontrolpb "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicecontrol.NewServiceControllerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicecontrolpb.ReportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/servicecontrol/v1#ReportRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb#ReportRequest. } resp, err := c.Report(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicecontrol/apiv1/snippet_metadata.google.api.servicecontrol.v1.json b/internal/generated/snippets/servicecontrol/apiv1/snippet_metadata.google.api.servicecontrol.v1.json new file mode 100644 index 000000000000..3fac7f4b40cc --- /dev/null +++ b/internal/generated/snippets/servicecontrol/apiv1/snippet_metadata.google.api.servicecontrol.v1.json @@ -0,0 +1,153 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/servicecontrol/apiv1", + "version": "1.6.0", + "language": "GO", + "apis": [ + { + "id": "google.api.servicecontrol.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "servicecontrol_v1_generated_QuotaController_AllocateQuota_sync", + "title": "servicecontrol AllocateQuota Sample", + "description": "AllocateQuota attempts to allocate quota for the specified consumer. It should be called\nbefore the operation is executed.\n\nThis method requires the servicemanagement.services.quota\npermission on the specified service. For more information, see\nCloud IAM (at https: //cloud.google.com/iam).\n\nNOTE: The client must fail-open on server errors INTERNAL,\nUNKNOWN, DEADLINE_EXCEEDED, and UNAVAILABLE. To ensure system\nreliability, the server may inject these errors to prohibit any hard\ndependency on the quota functionality.", + "file": "QuotaControllerClient/AllocateQuota/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AllocateQuota", + "fullName": "google.api.servicecontrol.v1.QuotaControllerClient.AllocateQuota", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicecontrolpb.AllocateQuotaRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicecontrolpb.AllocateQuotaResponse", + "client": { + "shortName": "QuotaControllerClient", + "fullName": "google.api.servicecontrol.v1.QuotaControllerClient" + }, + "method": { + "shortName": "AllocateQuota", + "fullName": "google.api.servicecontrol.v1.QuotaController.AllocateQuota", + "service": { + "shortName": "QuotaController", + "fullName": "google.api.servicecontrol.v1.QuotaController" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicecontrol_v1_generated_ServiceController_Check_sync", + "title": "servicecontrol Check Sample", + "description": "Check checks whether an operation on a service should be allowed to proceed\nbased on the configuration of the service and related policies. It must be\ncalled before the operation is executed.\n\nIf feasible, the client should cache the check results and reuse them for\n60 seconds. In case of any server errors, the client should rely on the\ncached results for much longer time to avoid outage.\nWARNING: There is general 60s delay for the configuration and policy\npropagation, therefore callers MUST NOT depend on the Check method having\nthe latest policy information.\n\nNOTE: the CheckRequest has\nthe size limit (wire-format byte size) of 1MB.\n\nThis method requires the servicemanagement.services.check permission\non the specified service. For more information, see\nCloud IAM (at https: //cloud.google.com/iam).", + "file": "ServiceControllerClient/Check/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Check", + "fullName": "google.api.servicecontrol.v1.ServiceControllerClient.Check", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicecontrolpb.CheckRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicecontrolpb.CheckResponse", + "client": { + "shortName": "ServiceControllerClient", + "fullName": "google.api.servicecontrol.v1.ServiceControllerClient" + }, + "method": { + "shortName": "Check", + "fullName": "google.api.servicecontrol.v1.ServiceController.Check", + "service": { + "shortName": "ServiceController", + "fullName": "google.api.servicecontrol.v1.ServiceController" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicecontrol_v1_generated_ServiceController_Report_sync", + "title": "servicecontrol Report Sample", + "description": "Report reports operation results to Google Service Control, such as logs and\nmetrics. It should be called after an operation is completed.\n\nIf feasible, the client should aggregate reporting data for up to 5\nseconds to reduce API traffic. Limiting aggregation to 5 seconds is to\nreduce data loss during client crashes. Clients should carefully choose\nthe aggregation time window to avoid data loss risk more than 0.01%\nfor business and compliance reasons.\n\nNOTE: the ReportRequest has\nthe size limit (wire-format byte size) of 1MB.\n\nThis method requires the servicemanagement.services.report permission\non the specified service. For more information, see\nGoogle Cloud IAM (at https: //cloud.google.com/iam).", + "file": "ServiceControllerClient/Report/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Report", + "fullName": "google.api.servicecontrol.v1.ServiceControllerClient.Report", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicecontrolpb.ReportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicecontrolpb.ReportResponse", + "client": { + "shortName": "ServiceControllerClient", + "fullName": "google.api.servicecontrol.v1.ServiceControllerClient" + }, + "method": { + "shortName": "Report", + "fullName": "google.api.servicecontrol.v1.ServiceController.Report", + "service": { + "shortName": "ServiceController", + "fullName": "google.api.servicecontrol.v1.ServiceController" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/servicedirectory/apiv1/LookupClient/ResolveService/main.go b/internal/generated/snippets/servicedirectory/apiv1/LookupClient/ResolveService/main.go index be16adedacae..0a718864a7de 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/LookupClient/ResolveService/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/LookupClient/ResolveService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewLookupClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.ResolveServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1#ResolveServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb#ResolveServiceRequest. } resp, err := c.ResolveService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/CreateEndpoint/main.go b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/CreateEndpoint/main.go index d943abd05ba4..c15c4a0776bf 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/CreateEndpoint/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/CreateEndpoint/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.CreateEndpointRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1#CreateEndpointRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb#CreateEndpointRequest. } resp, err := c.CreateEndpoint(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/CreateNamespace/main.go b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/CreateNamespace/main.go index 4948c6161fe0..a9025f79446b 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/CreateNamespace/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/CreateNamespace/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.CreateNamespaceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1#CreateNamespaceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb#CreateNamespaceRequest. } resp, err := c.CreateNamespace(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/CreateService/main.go b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/CreateService/main.go index ac61472daa2f..b644c6f54003 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/CreateService/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/CreateService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.CreateServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1#CreateServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb#CreateServiceRequest. } resp, err := c.CreateService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/DeleteEndpoint/main.go b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/DeleteEndpoint/main.go index f626c188994b..55fd8f4ba999 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/DeleteEndpoint/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/DeleteEndpoint/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.DeleteEndpointRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1#DeleteEndpointRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb#DeleteEndpointRequest. } err = c.DeleteEndpoint(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/DeleteNamespace/main.go b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/DeleteNamespace/main.go index e70bc14786b4..312be758b153 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/DeleteNamespace/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/DeleteNamespace/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.DeleteNamespaceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1#DeleteNamespaceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb#DeleteNamespaceRequest. } err = c.DeleteNamespace(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/DeleteService/main.go b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/DeleteService/main.go index f3b005358f51..a65722ec297c 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/DeleteService/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/DeleteService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.DeleteServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1#DeleteServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb#DeleteServiceRequest. } err = c.DeleteService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/GetEndpoint/main.go b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/GetEndpoint/main.go index 0b2d4bbb49b9..fe7e2a6cbb58 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/GetEndpoint/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/GetEndpoint/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.GetEndpointRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1#GetEndpointRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb#GetEndpointRequest. } resp, err := c.GetEndpoint(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/GetIamPolicy/main.go b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/GetIamPolicy/main.go index 98b341ee594f..e014bcaa7c61 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/GetNamespace/main.go b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/GetNamespace/main.go index bec75b6553a3..1b2522a0c00a 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/GetNamespace/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/GetNamespace/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.GetNamespaceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1#GetNamespaceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb#GetNamespaceRequest. } resp, err := c.GetNamespace(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/GetService/main.go b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/GetService/main.go index 4c766ce8d3ca..b6f34a0fb703 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/GetService/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/GetService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.GetServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1#GetServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb#GetServiceRequest. } resp, err := c.GetService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/ListEndpoints/main.go b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/ListEndpoints/main.go index 6f912afa6120..3894c7034c86 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/ListEndpoints/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/ListEndpoints/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb" "google.golang.org/api/iterator" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &servicedirectorypb.ListEndpointsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1#ListEndpointsRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb#ListEndpointsRequest. } it := c.ListEndpoints(ctx, req) for { diff --git a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/ListNamespaces/main.go b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/ListNamespaces/main.go index cbdc48a81928..89011e2cb572 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/ListNamespaces/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/ListNamespaces/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb" "google.golang.org/api/iterator" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &servicedirectorypb.ListNamespacesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1#ListNamespacesRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb#ListNamespacesRequest. } it := c.ListNamespaces(ctx, req) for { diff --git a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/ListServices/main.go b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/ListServices/main.go index 1ccca3797ee2..eeea1f8b968b 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/ListServices/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/ListServices/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb" "google.golang.org/api/iterator" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &servicedirectorypb.ListServicesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1#ListServicesRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb#ListServicesRequest. } it := c.ListServices(ctx, req) for { diff --git a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/SetIamPolicy/main.go b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/SetIamPolicy/main.go index 52bf21ff37cb..9c964a922d3e 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/TestIamPermissions/main.go b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/TestIamPermissions/main.go index 6eeaab27818e..9627f0c72d7a 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/UpdateEndpoint/main.go b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/UpdateEndpoint/main.go index ebf94267043e..3a87acf8086c 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/UpdateEndpoint/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/UpdateEndpoint/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.UpdateEndpointRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1#UpdateEndpointRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb#UpdateEndpointRequest. } resp, err := c.UpdateEndpoint(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/UpdateNamespace/main.go b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/UpdateNamespace/main.go index 9aca149eac92..89374290aa1e 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/UpdateNamespace/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/UpdateNamespace/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.UpdateNamespaceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1#UpdateNamespaceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb#UpdateNamespaceRequest. } resp, err := c.UpdateNamespace(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/UpdateService/main.go b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/UpdateService/main.go index 0ca862e928a5..a599bbf9f560 100644 --- a/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/UpdateService/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1/RegistrationClient/UpdateService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.UpdateServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1#UpdateServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb#UpdateServiceRequest. } resp, err := c.UpdateService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1/snippet_metadata.google.cloud.servicedirectory.v1.json b/internal/generated/snippets/servicedirectory/apiv1/snippet_metadata.google.cloud.servicedirectory.v1.json new file mode 100644 index 000000000000..285741b2a49a --- /dev/null +++ b/internal/generated/snippets/servicedirectory/apiv1/snippet_metadata.google.cloud.servicedirectory.v1.json @@ -0,0 +1,886 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/servicedirectory/apiv1", + "version": "1.8.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.servicedirectory.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "servicedirectory_v1_generated_LookupService_ResolveService_sync", + "title": "servicedirectory ResolveService Sample", + "description": "ResolveService returns a service and its\nassociated endpoints.\nResolving a service is not considered an active developer method.", + "file": "LookupClient/ResolveService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResolveService", + "fullName": "google.cloud.servicedirectory.v1.LookupClient.ResolveService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.ResolveServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.ResolveServiceResponse", + "client": { + "shortName": "LookupClient", + "fullName": "google.cloud.servicedirectory.v1.LookupClient" + }, + "method": { + "shortName": "ResolveService", + "fullName": "google.cloud.servicedirectory.v1.LookupService.ResolveService", + "service": { + "shortName": "LookupService", + "fullName": "google.cloud.servicedirectory.v1.LookupService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1_generated_RegistrationService_CreateEndpoint_sync", + "title": "servicedirectory CreateEndpoint Sample", + "description": "CreateEndpoint creates a endpoint, and returns the new Endpoint.", + "file": "RegistrationClient/CreateEndpoint/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateEndpoint", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.CreateEndpoint", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.CreateEndpointRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.Endpoint", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" + }, + "method": { + "shortName": "CreateEndpoint", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService.CreateEndpoint", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1_generated_RegistrationService_CreateNamespace_sync", + "title": "servicedirectory CreateNamespace Sample", + "description": "CreateNamespace creates a namespace, and returns the new Namespace.", + "file": "RegistrationClient/CreateNamespace/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateNamespace", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.CreateNamespace", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.CreateNamespaceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.Namespace", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" + }, + "method": { + "shortName": "CreateNamespace", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService.CreateNamespace", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1_generated_RegistrationService_CreateService_sync", + "title": "servicedirectory CreateService Sample", + "description": "CreateService creates a service, and returns the new Service.", + "file": "RegistrationClient/CreateService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.CreateService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.CreateServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.Service", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" + }, + "method": { + "shortName": "CreateService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService.CreateService", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1_generated_RegistrationService_DeleteEndpoint_sync", + "title": "servicedirectory DeleteEndpoint Sample", + "description": "DeleteEndpoint deletes a endpoint.", + "file": "RegistrationClient/DeleteEndpoint/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteEndpoint", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.DeleteEndpoint", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.DeleteEndpointRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" + }, + "method": { + "shortName": "DeleteEndpoint", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService.DeleteEndpoint", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1_generated_RegistrationService_DeleteNamespace_sync", + "title": "servicedirectory DeleteNamespace Sample", + "description": "DeleteNamespace deletes a namespace. This also deletes all services and endpoints in\nthe namespace.", + "file": "RegistrationClient/DeleteNamespace/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteNamespace", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.DeleteNamespace", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.DeleteNamespaceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" + }, + "method": { + "shortName": "DeleteNamespace", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService.DeleteNamespace", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1_generated_RegistrationService_DeleteService_sync", + "title": "servicedirectory DeleteService Sample", + "description": "DeleteService deletes a service. This also deletes all endpoints associated with\nthe service.", + "file": "RegistrationClient/DeleteService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.DeleteService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.DeleteServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" + }, + "method": { + "shortName": "DeleteService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService.DeleteService", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1_generated_RegistrationService_GetEndpoint_sync", + "title": "servicedirectory GetEndpoint Sample", + "description": "GetEndpoint gets a endpoint.", + "file": "RegistrationClient/GetEndpoint/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetEndpoint", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.GetEndpoint", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.GetEndpointRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.Endpoint", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" + }, + "method": { + "shortName": "GetEndpoint", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetEndpoint", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1_generated_RegistrationService_GetIamPolicy_sync", + "title": "servicedirectory GetIamPolicy Sample", + "description": "GetIamPolicy gets the IAM Policy for a resource (namespace or service only).", + "file": "RegistrationClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetIamPolicy", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1_generated_RegistrationService_GetNamespace_sync", + "title": "servicedirectory GetNamespace Sample", + "description": "GetNamespace gets a namespace.", + "file": "RegistrationClient/GetNamespace/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetNamespace", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.GetNamespace", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.GetNamespaceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.Namespace", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" + }, + "method": { + "shortName": "GetNamespace", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetNamespace", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1_generated_RegistrationService_GetService_sync", + "title": "servicedirectory GetService Sample", + "description": "GetService gets a service.", + "file": "RegistrationClient/GetService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.GetService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.GetServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.Service", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" + }, + "method": { + "shortName": "GetService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetService", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1_generated_RegistrationService_ListEndpoints_sync", + "title": "servicedirectory ListEndpoints Sample", + "description": "ListEndpoints lists all endpoints.", + "file": "RegistrationClient/ListEndpoints/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListEndpoints", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.ListEndpoints", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.ListEndpointsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "EndpointIterator", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" + }, + "method": { + "shortName": "ListEndpoints", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1_generated_RegistrationService_ListNamespaces_sync", + "title": "servicedirectory ListNamespaces Sample", + "description": "ListNamespaces lists all namespaces.", + "file": "RegistrationClient/ListNamespaces/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListNamespaces", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.ListNamespaces", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.ListNamespacesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "NamespaceIterator", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" + }, + "method": { + "shortName": "ListNamespaces", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService.ListNamespaces", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1_generated_RegistrationService_ListServices_sync", + "title": "servicedirectory ListServices Sample", + "description": "ListServices lists all services belonging to a namespace.", + "file": "RegistrationClient/ListServices/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListServices", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.ListServices", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.ListServicesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ServiceIterator", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" + }, + "method": { + "shortName": "ListServices", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService.ListServices", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1_generated_RegistrationService_SetIamPolicy_sync", + "title": "servicedirectory SetIamPolicy Sample", + "description": "SetIamPolicy sets the IAM Policy for a resource (namespace or service only).", + "file": "RegistrationClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService.SetIamPolicy", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1_generated_RegistrationService_TestIamPermissions_sync", + "title": "servicedirectory TestIamPermissions Sample", + "description": "TestIamPermissions tests IAM permissions for a resource (namespace or service only).", + "file": "RegistrationClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService.TestIamPermissions", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1_generated_RegistrationService_UpdateEndpoint_sync", + "title": "servicedirectory UpdateEndpoint Sample", + "description": "UpdateEndpoint updates a endpoint.", + "file": "RegistrationClient/UpdateEndpoint/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateEndpoint", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.UpdateEndpoint", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.UpdateEndpointRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.Endpoint", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" + }, + "method": { + "shortName": "UpdateEndpoint", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService.UpdateEndpoint", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1_generated_RegistrationService_UpdateNamespace_sync", + "title": "servicedirectory UpdateNamespace Sample", + "description": "UpdateNamespace updates a namespace.", + "file": "RegistrationClient/UpdateNamespace/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateNamespace", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.UpdateNamespace", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.UpdateNamespaceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.Namespace", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" + }, + "method": { + "shortName": "UpdateNamespace", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService.UpdateNamespace", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1_generated_RegistrationService_UpdateService_sync", + "title": "servicedirectory UpdateService Sample", + "description": "UpdateService updates a service.", + "file": "RegistrationClient/UpdateService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.UpdateService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.UpdateServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.Service", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1.RegistrationClient" + }, + "method": { + "shortName": "UpdateService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService.UpdateService", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/LookupClient/ResolveService/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/LookupClient/ResolveService/main.go index 9aa89808810a..ac55de2c3678 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/LookupClient/ResolveService/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/LookupClient/ResolveService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewLookupClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.ResolveServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1#ResolveServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb#ResolveServiceRequest. } resp, err := c.ResolveService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/CreateEndpoint/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/CreateEndpoint/main.go index f65364199835..10c3321793dc 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/CreateEndpoint/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/CreateEndpoint/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.CreateEndpointRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1#CreateEndpointRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb#CreateEndpointRequest. } resp, err := c.CreateEndpoint(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/CreateNamespace/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/CreateNamespace/main.go index 60931010e6da..e5e9f08d2255 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/CreateNamespace/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/CreateNamespace/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.CreateNamespaceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1#CreateNamespaceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb#CreateNamespaceRequest. } resp, err := c.CreateNamespace(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/CreateService/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/CreateService/main.go index 3c8cbc2ea4f8..386214e3faf6 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/CreateService/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/CreateService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.CreateServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1#CreateServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb#CreateServiceRequest. } resp, err := c.CreateService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/DeleteEndpoint/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/DeleteEndpoint/main.go index ac37f6a5d071..9ee1ef24f71c 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/DeleteEndpoint/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/DeleteEndpoint/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.DeleteEndpointRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1#DeleteEndpointRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb#DeleteEndpointRequest. } err = c.DeleteEndpoint(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/DeleteNamespace/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/DeleteNamespace/main.go index 514e5991103b..84ec170a39c4 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/DeleteNamespace/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/DeleteNamespace/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.DeleteNamespaceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1#DeleteNamespaceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb#DeleteNamespaceRequest. } err = c.DeleteNamespace(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/DeleteService/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/DeleteService/main.go index 67a59c2d0bf7..1408ff8e50f1 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/DeleteService/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/DeleteService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.DeleteServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1#DeleteServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb#DeleteServiceRequest. } err = c.DeleteService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/GetEndpoint/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/GetEndpoint/main.go index e81237d1cbf5..94f3e2446fc5 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/GetEndpoint/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/GetEndpoint/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.GetEndpointRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1#GetEndpointRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb#GetEndpointRequest. } resp, err := c.GetEndpoint(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/GetIamPolicy/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/GetIamPolicy/main.go index 09f9b9a260d4..cf86eb0fdca7 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/GetNamespace/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/GetNamespace/main.go index 93942ef49e89..0e3212283179 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/GetNamespace/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/GetNamespace/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.GetNamespaceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1#GetNamespaceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb#GetNamespaceRequest. } resp, err := c.GetNamespace(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/GetService/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/GetService/main.go index 6ee9045e6f8d..d8f4ab0045b1 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/GetService/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/GetService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.GetServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1#GetServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb#GetServiceRequest. } resp, err := c.GetService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/ListEndpoints/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/ListEndpoints/main.go index f35d49f0aedd..95da8cdce3ea 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/ListEndpoints/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/ListEndpoints/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb" "google.golang.org/api/iterator" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &servicedirectorypb.ListEndpointsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1#ListEndpointsRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb#ListEndpointsRequest. } it := c.ListEndpoints(ctx, req) for { diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/ListNamespaces/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/ListNamespaces/main.go index 974ca6145fa2..2836ce8c7fb0 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/ListNamespaces/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/ListNamespaces/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb" "google.golang.org/api/iterator" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &servicedirectorypb.ListNamespacesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1#ListNamespacesRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb#ListNamespacesRequest. } it := c.ListNamespaces(ctx, req) for { diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/ListServices/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/ListServices/main.go index 4d72355186c9..34522249ba4f 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/ListServices/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/ListServices/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb" "google.golang.org/api/iterator" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &servicedirectorypb.ListServicesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1#ListServicesRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb#ListServicesRequest. } it := c.ListServices(ctx, req) for { diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/SetIamPolicy/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/SetIamPolicy/main.go index 10ae2833aa0f..5dbe0b0f877d 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/TestIamPermissions/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/TestIamPermissions/main.go index 0ecce376bfe4..5b8a6cb0101b 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/UpdateEndpoint/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/UpdateEndpoint/main.go index eda05d1044c0..408e482e80cc 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/UpdateEndpoint/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/UpdateEndpoint/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.UpdateEndpointRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1#UpdateEndpointRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb#UpdateEndpointRequest. } resp, err := c.UpdateEndpoint(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/UpdateNamespace/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/UpdateNamespace/main.go index 6fab4b531ce2..5fe9b91c826f 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/UpdateNamespace/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/UpdateNamespace/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.UpdateNamespaceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1#UpdateNamespaceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb#UpdateNamespaceRequest. } resp, err := c.UpdateNamespace(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/UpdateService/main.go b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/UpdateService/main.go index b42808a885c5..330275443ef0 100644 --- a/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/UpdateService/main.go +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/RegistrationClient/UpdateService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicedirectory "cloud.google.com/go/servicedirectory/apiv1beta1" - servicedirectorypb "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1" + servicedirectorypb "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicedirectory.NewRegistrationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicedirectorypb.UpdateServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1#UpdateServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb#UpdateServiceRequest. } resp, err := c.UpdateService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicedirectory/apiv1beta1/snippet_metadata.google.cloud.servicedirectory.v1beta1.json b/internal/generated/snippets/servicedirectory/apiv1beta1/snippet_metadata.google.cloud.servicedirectory.v1beta1.json new file mode 100644 index 000000000000..0f752d759601 --- /dev/null +++ b/internal/generated/snippets/servicedirectory/apiv1beta1/snippet_metadata.google.cloud.servicedirectory.v1beta1.json @@ -0,0 +1,886 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/servicedirectory/apiv1beta1", + "version": "1.8.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.servicedirectory.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "servicedirectory_v1beta1_generated_LookupService_ResolveService_sync", + "title": "servicedirectory ResolveService Sample", + "description": "ResolveService returns a service and its\nassociated endpoints.\nResolving a service is not considered an active developer method.", + "file": "LookupClient/ResolveService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResolveService", + "fullName": "google.cloud.servicedirectory.v1beta1.LookupClient.ResolveService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.ResolveServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.ResolveServiceResponse", + "client": { + "shortName": "LookupClient", + "fullName": "google.cloud.servicedirectory.v1beta1.LookupClient" + }, + "method": { + "shortName": "ResolveService", + "fullName": "google.cloud.servicedirectory.v1beta1.LookupService.ResolveService", + "service": { + "shortName": "LookupService", + "fullName": "google.cloud.servicedirectory.v1beta1.LookupService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_CreateEndpoint_sync", + "title": "servicedirectory CreateEndpoint Sample", + "description": "CreateEndpoint creates an endpoint, and returns the new endpoint.", + "file": "RegistrationClient/CreateEndpoint/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateEndpoint", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient.CreateEndpoint", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.CreateEndpointRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.Endpoint", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient" + }, + "method": { + "shortName": "CreateEndpoint", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.CreateEndpoint", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_CreateNamespace_sync", + "title": "servicedirectory CreateNamespace Sample", + "description": "CreateNamespace creates a namespace, and returns the new namespace.", + "file": "RegistrationClient/CreateNamespace/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateNamespace", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient.CreateNamespace", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.CreateNamespaceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.Namespace", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient" + }, + "method": { + "shortName": "CreateNamespace", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.CreateNamespace", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_CreateService_sync", + "title": "servicedirectory CreateService Sample", + "description": "CreateService creates a service, and returns the new service.", + "file": "RegistrationClient/CreateService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient.CreateService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.CreateServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.Service", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient" + }, + "method": { + "shortName": "CreateService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.CreateService", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_DeleteEndpoint_sync", + "title": "servicedirectory DeleteEndpoint Sample", + "description": "DeleteEndpoint deletes an endpoint.", + "file": "RegistrationClient/DeleteEndpoint/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteEndpoint", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient.DeleteEndpoint", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.DeleteEndpointRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient" + }, + "method": { + "shortName": "DeleteEndpoint", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.DeleteEndpoint", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_DeleteNamespace_sync", + "title": "servicedirectory DeleteNamespace Sample", + "description": "DeleteNamespace deletes a namespace. This also deletes all services and endpoints in\nthe namespace.", + "file": "RegistrationClient/DeleteNamespace/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteNamespace", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient.DeleteNamespace", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.DeleteNamespaceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient" + }, + "method": { + "shortName": "DeleteNamespace", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.DeleteNamespace", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_DeleteService_sync", + "title": "servicedirectory DeleteService Sample", + "description": "DeleteService deletes a service. This also deletes all endpoints associated with\nthe service.", + "file": "RegistrationClient/DeleteService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient.DeleteService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.DeleteServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient" + }, + "method": { + "shortName": "DeleteService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.DeleteService", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_GetEndpoint_sync", + "title": "servicedirectory GetEndpoint Sample", + "description": "GetEndpoint gets an endpoint.", + "file": "RegistrationClient/GetEndpoint/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetEndpoint", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient.GetEndpoint", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.GetEndpointRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.Endpoint", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient" + }, + "method": { + "shortName": "GetEndpoint", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.GetEndpoint", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_GetIamPolicy_sync", + "title": "servicedirectory GetIamPolicy Sample", + "description": "GetIamPolicy gets the IAM Policy for a resource (namespace or service only).", + "file": "RegistrationClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.GetIamPolicy", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_GetNamespace_sync", + "title": "servicedirectory GetNamespace Sample", + "description": "GetNamespace gets a namespace.", + "file": "RegistrationClient/GetNamespace/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetNamespace", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient.GetNamespace", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.GetNamespaceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.Namespace", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient" + }, + "method": { + "shortName": "GetNamespace", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.GetNamespace", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_GetService_sync", + "title": "servicedirectory GetService Sample", + "description": "GetService gets a service.", + "file": "RegistrationClient/GetService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient.GetService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.GetServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.Service", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient" + }, + "method": { + "shortName": "GetService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.GetService", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_ListEndpoints_sync", + "title": "servicedirectory ListEndpoints Sample", + "description": "ListEndpoints lists all endpoints.", + "file": "RegistrationClient/ListEndpoints/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListEndpoints", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient.ListEndpoints", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.ListEndpointsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "EndpointIterator", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient" + }, + "method": { + "shortName": "ListEndpoints", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.ListEndpoints", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_ListNamespaces_sync", + "title": "servicedirectory ListNamespaces Sample", + "description": "ListNamespaces lists all namespaces.", + "file": "RegistrationClient/ListNamespaces/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListNamespaces", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient.ListNamespaces", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.ListNamespacesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "NamespaceIterator", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient" + }, + "method": { + "shortName": "ListNamespaces", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.ListNamespaces", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_ListServices_sync", + "title": "servicedirectory ListServices Sample", + "description": "ListServices lists all services belonging to a namespace.", + "file": "RegistrationClient/ListServices/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListServices", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient.ListServices", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.ListServicesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ServiceIterator", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient" + }, + "method": { + "shortName": "ListServices", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.ListServices", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_SetIamPolicy_sync", + "title": "servicedirectory SetIamPolicy Sample", + "description": "SetIamPolicy sets the IAM Policy for a resource (namespace or service only).", + "file": "RegistrationClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.SetIamPolicy", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_TestIamPermissions_sync", + "title": "servicedirectory TestIamPermissions Sample", + "description": "TestIamPermissions tests IAM permissions for a resource (namespace or service only).", + "file": "RegistrationClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.TestIamPermissions", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_UpdateEndpoint_sync", + "title": "servicedirectory UpdateEndpoint Sample", + "description": "UpdateEndpoint updates an endpoint.", + "file": "RegistrationClient/UpdateEndpoint/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateEndpoint", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient.UpdateEndpoint", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.UpdateEndpointRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.Endpoint", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient" + }, + "method": { + "shortName": "UpdateEndpoint", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.UpdateEndpoint", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_UpdateNamespace_sync", + "title": "servicedirectory UpdateNamespace Sample", + "description": "UpdateNamespace updates a namespace.", + "file": "RegistrationClient/UpdateNamespace/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateNamespace", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient.UpdateNamespace", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.UpdateNamespaceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.Namespace", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient" + }, + "method": { + "shortName": "UpdateNamespace", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.UpdateNamespace", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_UpdateService_sync", + "title": "servicedirectory UpdateService Sample", + "description": "UpdateService updates a service.", + "file": "RegistrationClient/UpdateService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient.UpdateService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicedirectorypb.UpdateServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicedirectorypb.Service", + "client": { + "shortName": "RegistrationClient", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationClient" + }, + "method": { + "shortName": "UpdateService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.UpdateService", + "service": { + "shortName": "RegistrationService", + "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/CreateService/main.go b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/CreateService/main.go index 38d2a491212a..86609633e23e 100644 --- a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/CreateService/main.go +++ b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/CreateService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicemanagement "cloud.google.com/go/servicemanagement/apiv1" - servicemanagementpb "google.golang.org/genproto/googleapis/api/servicemanagement/v1" + servicemanagementpb "cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicemanagementpb.CreateServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/servicemanagement/v1#CreateServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb#CreateServiceRequest. } op, err := c.CreateService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/CreateServiceConfig/main.go b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/CreateServiceConfig/main.go index 25517611e7d1..eda87f5de597 100644 --- a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/CreateServiceConfig/main.go +++ b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/CreateServiceConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicemanagement "cloud.google.com/go/servicemanagement/apiv1" - servicemanagementpb "google.golang.org/genproto/googleapis/api/servicemanagement/v1" + servicemanagementpb "cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicemanagementpb.CreateServiceConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/servicemanagement/v1#CreateServiceConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb#CreateServiceConfigRequest. } resp, err := c.CreateServiceConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/CreateServiceRollout/main.go b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/CreateServiceRollout/main.go index 7211444d862b..d8f4d6af0f6c 100644 --- a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/CreateServiceRollout/main.go +++ b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/CreateServiceRollout/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicemanagement "cloud.google.com/go/servicemanagement/apiv1" - servicemanagementpb "google.golang.org/genproto/googleapis/api/servicemanagement/v1" + servicemanagementpb "cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicemanagementpb.CreateServiceRolloutRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/servicemanagement/v1#CreateServiceRolloutRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb#CreateServiceRolloutRequest. } op, err := c.CreateServiceRollout(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/DeleteService/main.go b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/DeleteService/main.go index cbd164e0d28d..14522461ede6 100644 --- a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/DeleteService/main.go +++ b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/DeleteService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicemanagement "cloud.google.com/go/servicemanagement/apiv1" - servicemanagementpb "google.golang.org/genproto/googleapis/api/servicemanagement/v1" + servicemanagementpb "cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicemanagementpb.DeleteServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/servicemanagement/v1#DeleteServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb#DeleteServiceRequest. } op, err := c.DeleteService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/GenerateConfigReport/main.go b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/GenerateConfigReport/main.go index d4162e685aee..b248b0cebf82 100644 --- a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/GenerateConfigReport/main.go +++ b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/GenerateConfigReport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicemanagement "cloud.google.com/go/servicemanagement/apiv1" - servicemanagementpb "google.golang.org/genproto/googleapis/api/servicemanagement/v1" + servicemanagementpb "cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicemanagementpb.GenerateConfigReportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/servicemanagement/v1#GenerateConfigReportRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb#GenerateConfigReportRequest. } resp, err := c.GenerateConfigReport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/GetService/main.go b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/GetService/main.go index 0952677dab05..c831c54b01db 100644 --- a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/GetService/main.go +++ b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/GetService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicemanagement "cloud.google.com/go/servicemanagement/apiv1" - servicemanagementpb "google.golang.org/genproto/googleapis/api/servicemanagement/v1" + servicemanagementpb "cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicemanagementpb.GetServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/servicemanagement/v1#GetServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb#GetServiceRequest. } resp, err := c.GetService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/GetServiceConfig/main.go b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/GetServiceConfig/main.go index c0adb3d12ab8..225feaf2485b 100644 --- a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/GetServiceConfig/main.go +++ b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/GetServiceConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicemanagement "cloud.google.com/go/servicemanagement/apiv1" - servicemanagementpb "google.golang.org/genproto/googleapis/api/servicemanagement/v1" + servicemanagementpb "cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicemanagementpb.GetServiceConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/servicemanagement/v1#GetServiceConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb#GetServiceConfigRequest. } resp, err := c.GetServiceConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/GetServiceRollout/main.go b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/GetServiceRollout/main.go index 33e062b329ad..3cf01f870f95 100644 --- a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/GetServiceRollout/main.go +++ b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/GetServiceRollout/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicemanagement "cloud.google.com/go/servicemanagement/apiv1" - servicemanagementpb "google.golang.org/genproto/googleapis/api/servicemanagement/v1" + servicemanagementpb "cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicemanagementpb.GetServiceRolloutRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/servicemanagement/v1#GetServiceRolloutRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb#GetServiceRolloutRequest. } resp, err := c.GetServiceRollout(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/ListServiceConfigs/main.go b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/ListServiceConfigs/main.go index 784138623913..c140e87f8435 100644 --- a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/ListServiceConfigs/main.go +++ b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/ListServiceConfigs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" servicemanagement "cloud.google.com/go/servicemanagement/apiv1" + servicemanagementpb "cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb" "google.golang.org/api/iterator" - servicemanagementpb "google.golang.org/genproto/googleapis/api/servicemanagement/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &servicemanagementpb.ListServiceConfigsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/servicemanagement/v1#ListServiceConfigsRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb#ListServiceConfigsRequest. } it := c.ListServiceConfigs(ctx, req) for { diff --git a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/ListServiceRollouts/main.go b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/ListServiceRollouts/main.go index a50c4acf3aa9..49932e68296b 100644 --- a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/ListServiceRollouts/main.go +++ b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/ListServiceRollouts/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" servicemanagement "cloud.google.com/go/servicemanagement/apiv1" + servicemanagementpb "cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb" "google.golang.org/api/iterator" - servicemanagementpb "google.golang.org/genproto/googleapis/api/servicemanagement/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &servicemanagementpb.ListServiceRolloutsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/servicemanagement/v1#ListServiceRolloutsRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb#ListServiceRolloutsRequest. } it := c.ListServiceRollouts(ctx, req) for { diff --git a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/ListServices/main.go b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/ListServices/main.go index abc890ced61c..07e3ce200d39 100644 --- a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/ListServices/main.go +++ b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/ListServices/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" servicemanagement "cloud.google.com/go/servicemanagement/apiv1" + servicemanagementpb "cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb" "google.golang.org/api/iterator" - servicemanagementpb "google.golang.org/genproto/googleapis/api/servicemanagement/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &servicemanagementpb.ListServicesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/servicemanagement/v1#ListServicesRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb#ListServicesRequest. } it := c.ListServices(ctx, req) for { diff --git a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/SubmitConfigSource/main.go b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/SubmitConfigSource/main.go index de27ee333656..71031bd2fdad 100644 --- a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/SubmitConfigSource/main.go +++ b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/SubmitConfigSource/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicemanagement "cloud.google.com/go/servicemanagement/apiv1" - servicemanagementpb "google.golang.org/genproto/googleapis/api/servicemanagement/v1" + servicemanagementpb "cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicemanagementpb.SubmitConfigSourceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/servicemanagement/v1#SubmitConfigSourceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb#SubmitConfigSourceRequest. } op, err := c.SubmitConfigSource(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/UndeleteService/main.go b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/UndeleteService/main.go index 471fc0d6315f..0d09d67c8125 100644 --- a/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/UndeleteService/main.go +++ b/internal/generated/snippets/servicemanagement/apiv1/ServiceManagerClient/UndeleteService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" servicemanagement "cloud.google.com/go/servicemanagement/apiv1" - servicemanagementpb "google.golang.org/genproto/googleapis/api/servicemanagement/v1" + servicemanagementpb "cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := servicemanagement.NewServiceManagerClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &servicemanagementpb.UndeleteServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/servicemanagement/v1#UndeleteServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/servicemanagement/apiv1/servicemanagementpb#UndeleteServiceRequest. } op, err := c.UndeleteService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/servicemanagement/apiv1/snippet_metadata.google.api.servicemanagement.v1.json b/internal/generated/snippets/servicemanagement/apiv1/snippet_metadata.google.api.servicemanagement.v1.json new file mode 100644 index 000000000000..7ee26fc0c7d7 --- /dev/null +++ b/internal/generated/snippets/servicemanagement/apiv1/snippet_metadata.google.api.servicemanagement.v1.json @@ -0,0 +1,613 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/servicemanagement/apiv1", + "version": "1.6.0", + "language": "GO", + "apis": [ + { + "id": "google.api.servicemanagement.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "servicemanagement_v1_generated_ServiceManager_CreateService_sync", + "title": "servicemanagement CreateService Sample", + "description": "CreateService creates a new managed service.\n\nA managed service is immutable, and is subject to mandatory 30-day\ndata retention. You cannot move a service or recreate it within 30 days\nafter deletion.\n\nOne producer project can own no more than 500 services. For security and\nreliability purposes, a production service should be hosted in a\ndedicated producer project.\n\nOperation", + "file": "ServiceManagerClient/CreateService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateService", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient.CreateService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicemanagementpb.CreateServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateServiceOperation", + "client": { + "shortName": "ServiceManagerClient", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" + }, + "method": { + "shortName": "CreateService", + "fullName": "google.api.servicemanagement.v1.ServiceManager.CreateService", + "service": { + "shortName": "ServiceManager", + "fullName": "google.api.servicemanagement.v1.ServiceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicemanagement_v1_generated_ServiceManager_CreateServiceConfig_sync", + "title": "servicemanagement CreateServiceConfig Sample", + "description": "CreateServiceConfig creates a new service configuration (version) for a managed service.\nThis method only stores the service configuration. To roll out the service\nconfiguration to backend systems please call\nCreateServiceRollout.\n\nOnly the 100 most recent service configurations and ones referenced by\nexisting rollouts are kept for each service. The rest will be deleted\neventually.", + "file": "ServiceManagerClient/CreateServiceConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateServiceConfig", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient.CreateServiceConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicemanagementpb.CreateServiceConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "serviceconfigpb.Service", + "client": { + "shortName": "ServiceManagerClient", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" + }, + "method": { + "shortName": "CreateServiceConfig", + "fullName": "google.api.servicemanagement.v1.ServiceManager.CreateServiceConfig", + "service": { + "shortName": "ServiceManager", + "fullName": "google.api.servicemanagement.v1.ServiceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicemanagement_v1_generated_ServiceManager_CreateServiceRollout_sync", + "title": "servicemanagement CreateServiceRollout Sample", + "description": "CreateServiceRollout creates a new service configuration rollout. Based on rollout, the\nGoogle Service Management will roll out the service configurations to\ndifferent backend services. For example, the logging configuration will be\npushed to Google Cloud Logging.\n\nPlease note that any previous pending and running Rollouts and associated\nOperations will be automatically cancelled so that the latest Rollout will\nnot be blocked by previous Rollouts.\n\nOnly the 100 most recent (in any state) and the last 10 successful (if not\nalready part of the set of 100 most recent) rollouts are kept for each\nservice. The rest will be deleted eventually.\n\nOperation", + "file": "ServiceManagerClient/CreateServiceRollout/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateServiceRollout", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient.CreateServiceRollout", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicemanagementpb.CreateServiceRolloutRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateServiceRolloutOperation", + "client": { + "shortName": "ServiceManagerClient", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" + }, + "method": { + "shortName": "CreateServiceRollout", + "fullName": "google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout", + "service": { + "shortName": "ServiceManager", + "fullName": "google.api.servicemanagement.v1.ServiceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicemanagement_v1_generated_ServiceManager_DeleteService_sync", + "title": "servicemanagement DeleteService Sample", + "description": "DeleteService deletes a managed service. This method will change the service to the\nSoft-Delete state for 30 days. Within this period, service producers may\ncall\nUndeleteService\nto restore the service. After 30 days, the service will be permanently\ndeleted.\n\nOperation", + "file": "ServiceManagerClient/DeleteService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteService", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient.DeleteService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicemanagementpb.DeleteServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteServiceOperation", + "client": { + "shortName": "ServiceManagerClient", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" + }, + "method": { + "shortName": "DeleteService", + "fullName": "google.api.servicemanagement.v1.ServiceManager.DeleteService", + "service": { + "shortName": "ServiceManager", + "fullName": "google.api.servicemanagement.v1.ServiceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicemanagement_v1_generated_ServiceManager_GenerateConfigReport_sync", + "title": "servicemanagement GenerateConfigReport Sample", + "description": "GenerateConfigReport generates and returns a report (errors, warnings and changes from\nexisting configurations) associated with\nGenerateConfigReportRequest.new_value\n\nIf GenerateConfigReportRequest.old_value is specified,\nGenerateConfigReportRequest will contain a single ChangeReport based on the\ncomparison between GenerateConfigReportRequest.new_value and\nGenerateConfigReportRequest.old_value.\nIf GenerateConfigReportRequest.old_value is not specified, this method\nwill compare GenerateConfigReportRequest.new_value with the last pushed\nservice configuration.", + "file": "ServiceManagerClient/GenerateConfigReport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GenerateConfigReport", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient.GenerateConfigReport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicemanagementpb.GenerateConfigReportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicemanagementpb.GenerateConfigReportResponse", + "client": { + "shortName": "ServiceManagerClient", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" + }, + "method": { + "shortName": "GenerateConfigReport", + "fullName": "google.api.servicemanagement.v1.ServiceManager.GenerateConfigReport", + "service": { + "shortName": "ServiceManager", + "fullName": "google.api.servicemanagement.v1.ServiceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicemanagement_v1_generated_ServiceManager_GetService_sync", + "title": "servicemanagement GetService Sample", + "description": "GetService gets a managed service. Authentication is required unless the service is\npublic.", + "file": "ServiceManagerClient/GetService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetService", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient.GetService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicemanagementpb.GetServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicemanagementpb.ManagedService", + "client": { + "shortName": "ServiceManagerClient", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" + }, + "method": { + "shortName": "GetService", + "fullName": "google.api.servicemanagement.v1.ServiceManager.GetService", + "service": { + "shortName": "ServiceManager", + "fullName": "google.api.servicemanagement.v1.ServiceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicemanagement_v1_generated_ServiceManager_GetServiceConfig_sync", + "title": "servicemanagement GetServiceConfig Sample", + "description": "GetServiceConfig gets a service configuration (version) for a managed service.", + "file": "ServiceManagerClient/GetServiceConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetServiceConfig", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient.GetServiceConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicemanagementpb.GetServiceConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "serviceconfigpb.Service", + "client": { + "shortName": "ServiceManagerClient", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" + }, + "method": { + "shortName": "GetServiceConfig", + "fullName": "google.api.servicemanagement.v1.ServiceManager.GetServiceConfig", + "service": { + "shortName": "ServiceManager", + "fullName": "google.api.servicemanagement.v1.ServiceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicemanagement_v1_generated_ServiceManager_GetServiceRollout_sync", + "title": "servicemanagement GetServiceRollout Sample", + "description": "GetServiceRollout gets a service configuration\nrollout.", + "file": "ServiceManagerClient/GetServiceRollout/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetServiceRollout", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient.GetServiceRollout", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicemanagementpb.GetServiceRolloutRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "servicemanagementpb.Rollout", + "client": { + "shortName": "ServiceManagerClient", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" + }, + "method": { + "shortName": "GetServiceRollout", + "fullName": "google.api.servicemanagement.v1.ServiceManager.GetServiceRollout", + "service": { + "shortName": "ServiceManager", + "fullName": "google.api.servicemanagement.v1.ServiceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicemanagement_v1_generated_ServiceManager_ListServiceConfigs_sync", + "title": "servicemanagement ListServiceConfigs Sample", + "description": "ListServiceConfigs lists the history of the service configuration for a managed service,\nfrom the newest to the oldest.", + "file": "ServiceManagerClient/ListServiceConfigs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListServiceConfigs", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient.ListServiceConfigs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicemanagementpb.ListServiceConfigsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ServiceIterator", + "client": { + "shortName": "ServiceManagerClient", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" + }, + "method": { + "shortName": "ListServiceConfigs", + "fullName": "google.api.servicemanagement.v1.ServiceManager.ListServiceConfigs", + "service": { + "shortName": "ServiceManager", + "fullName": "google.api.servicemanagement.v1.ServiceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicemanagement_v1_generated_ServiceManager_ListServiceRollouts_sync", + "title": "servicemanagement ListServiceRollouts Sample", + "description": "ListServiceRollouts lists the history of the service configuration rollouts for a managed\nservice, from the newest to the oldest.", + "file": "ServiceManagerClient/ListServiceRollouts/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListServiceRollouts", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient.ListServiceRollouts", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicemanagementpb.ListServiceRolloutsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RolloutIterator", + "client": { + "shortName": "ServiceManagerClient", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" + }, + "method": { + "shortName": "ListServiceRollouts", + "fullName": "google.api.servicemanagement.v1.ServiceManager.ListServiceRollouts", + "service": { + "shortName": "ServiceManager", + "fullName": "google.api.servicemanagement.v1.ServiceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicemanagement_v1_generated_ServiceManager_ListServices_sync", + "title": "servicemanagement ListServices Sample", + "description": "ListServices lists managed services.\n\nReturns all public services. For authenticated users, also returns all\nservices the calling user has “servicemanagement.services.get” permission\nfor.", + "file": "ServiceManagerClient/ListServices/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListServices", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient.ListServices", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicemanagementpb.ListServicesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ManagedServiceIterator", + "client": { + "shortName": "ServiceManagerClient", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" + }, + "method": { + "shortName": "ListServices", + "fullName": "google.api.servicemanagement.v1.ServiceManager.ListServices", + "service": { + "shortName": "ServiceManager", + "fullName": "google.api.servicemanagement.v1.ServiceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicemanagement_v1_generated_ServiceManager_SubmitConfigSource_sync", + "title": "servicemanagement SubmitConfigSource Sample", + "description": "SubmitConfigSource creates a new service configuration (version) for a managed service based\non\nuser-supplied configuration source files (for example: OpenAPI\nSpecification). This method stores the source configurations as well as the\ngenerated service configuration. To rollout the service configuration to\nother services,\nplease call\nCreateServiceRollout.\n\nOnly the 100 most recent configuration sources and ones referenced by\nexisting service configurtions are kept for each service. The rest will be\ndeleted eventually.\n\nOperation", + "file": "ServiceManagerClient/SubmitConfigSource/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SubmitConfigSource", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient.SubmitConfigSource", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicemanagementpb.SubmitConfigSourceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SubmitConfigSourceOperation", + "client": { + "shortName": "ServiceManagerClient", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" + }, + "method": { + "shortName": "SubmitConfigSource", + "fullName": "google.api.servicemanagement.v1.ServiceManager.SubmitConfigSource", + "service": { + "shortName": "ServiceManager", + "fullName": "google.api.servicemanagement.v1.ServiceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "servicemanagement_v1_generated_ServiceManager_UndeleteService_sync", + "title": "servicemanagement UndeleteService Sample", + "description": "UndeleteService revives a previously deleted managed service. The method restores the\nservice using the configuration at the time the service was deleted.\nThe target service must exist and must have been deleted within the\nlast 30 days.\n\nOperation", + "file": "ServiceManagerClient/UndeleteService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UndeleteService", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient.UndeleteService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "servicemanagementpb.UndeleteServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UndeleteServiceOperation", + "client": { + "shortName": "ServiceManagerClient", + "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" + }, + "method": { + "shortName": "UndeleteService", + "fullName": "google.api.servicemanagement.v1.ServiceManager.UndeleteService", + "service": { + "shortName": "ServiceManager", + "fullName": "google.api.servicemanagement.v1.ServiceManager" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/serviceusage/apiv1/Client/BatchEnableServices/main.go b/internal/generated/snippets/serviceusage/apiv1/Client/BatchEnableServices/main.go index 086b0efdfc0b..e32b45420143 100644 --- a/internal/generated/snippets/serviceusage/apiv1/Client/BatchEnableServices/main.go +++ b/internal/generated/snippets/serviceusage/apiv1/Client/BatchEnableServices/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" serviceusage "cloud.google.com/go/serviceusage/apiv1" - serviceusagepb "google.golang.org/genproto/googleapis/api/serviceusage/v1" + serviceusagepb "cloud.google.com/go/serviceusage/apiv1/serviceusagepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := serviceusage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &serviceusagepb.BatchEnableServicesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/serviceusage/v1#BatchEnableServicesRequest. + // See https://pkg.go.dev/cloud.google.com/go/serviceusage/apiv1/serviceusagepb#BatchEnableServicesRequest. } op, err := c.BatchEnableServices(ctx, req) if err != nil { diff --git a/internal/generated/snippets/serviceusage/apiv1/Client/BatchGetServices/main.go b/internal/generated/snippets/serviceusage/apiv1/Client/BatchGetServices/main.go index 6a6ad73fdd92..6f122b73d22d 100644 --- a/internal/generated/snippets/serviceusage/apiv1/Client/BatchGetServices/main.go +++ b/internal/generated/snippets/serviceusage/apiv1/Client/BatchGetServices/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" serviceusage "cloud.google.com/go/serviceusage/apiv1" - serviceusagepb "google.golang.org/genproto/googleapis/api/serviceusage/v1" + serviceusagepb "cloud.google.com/go/serviceusage/apiv1/serviceusagepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := serviceusage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &serviceusagepb.BatchGetServicesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/serviceusage/v1#BatchGetServicesRequest. + // See https://pkg.go.dev/cloud.google.com/go/serviceusage/apiv1/serviceusagepb#BatchGetServicesRequest. } resp, err := c.BatchGetServices(ctx, req) if err != nil { diff --git a/internal/generated/snippets/serviceusage/apiv1/Client/DisableService/main.go b/internal/generated/snippets/serviceusage/apiv1/Client/DisableService/main.go index 045c43e699d8..6dc32200caac 100644 --- a/internal/generated/snippets/serviceusage/apiv1/Client/DisableService/main.go +++ b/internal/generated/snippets/serviceusage/apiv1/Client/DisableService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" serviceusage "cloud.google.com/go/serviceusage/apiv1" - serviceusagepb "google.golang.org/genproto/googleapis/api/serviceusage/v1" + serviceusagepb "cloud.google.com/go/serviceusage/apiv1/serviceusagepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := serviceusage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &serviceusagepb.DisableServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/serviceusage/v1#DisableServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/serviceusage/apiv1/serviceusagepb#DisableServiceRequest. } op, err := c.DisableService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/serviceusage/apiv1/Client/EnableService/main.go b/internal/generated/snippets/serviceusage/apiv1/Client/EnableService/main.go index 248cf2114b8c..406491bc18c0 100644 --- a/internal/generated/snippets/serviceusage/apiv1/Client/EnableService/main.go +++ b/internal/generated/snippets/serviceusage/apiv1/Client/EnableService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" serviceusage "cloud.google.com/go/serviceusage/apiv1" - serviceusagepb "google.golang.org/genproto/googleapis/api/serviceusage/v1" + serviceusagepb "cloud.google.com/go/serviceusage/apiv1/serviceusagepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := serviceusage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &serviceusagepb.EnableServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/serviceusage/v1#EnableServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/serviceusage/apiv1/serviceusagepb#EnableServiceRequest. } op, err := c.EnableService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/serviceusage/apiv1/Client/GetService/main.go b/internal/generated/snippets/serviceusage/apiv1/Client/GetService/main.go index f79b67add4a1..d541580f554e 100644 --- a/internal/generated/snippets/serviceusage/apiv1/Client/GetService/main.go +++ b/internal/generated/snippets/serviceusage/apiv1/Client/GetService/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" serviceusage "cloud.google.com/go/serviceusage/apiv1" - serviceusagepb "google.golang.org/genproto/googleapis/api/serviceusage/v1" + serviceusagepb "cloud.google.com/go/serviceusage/apiv1/serviceusagepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := serviceusage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &serviceusagepb.GetServiceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/serviceusage/v1#GetServiceRequest. + // See https://pkg.go.dev/cloud.google.com/go/serviceusage/apiv1/serviceusagepb#GetServiceRequest. } resp, err := c.GetService(ctx, req) if err != nil { diff --git a/internal/generated/snippets/serviceusage/apiv1/Client/ListServices/main.go b/internal/generated/snippets/serviceusage/apiv1/Client/ListServices/main.go index 6561e3319788..bd6066d4a048 100644 --- a/internal/generated/snippets/serviceusage/apiv1/Client/ListServices/main.go +++ b/internal/generated/snippets/serviceusage/apiv1/Client/ListServices/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" serviceusage "cloud.google.com/go/serviceusage/apiv1" + serviceusagepb "cloud.google.com/go/serviceusage/apiv1/serviceusagepb" "google.golang.org/api/iterator" - serviceusagepb "google.golang.org/genproto/googleapis/api/serviceusage/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := serviceusage.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &serviceusagepb.ListServicesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/api/serviceusage/v1#ListServicesRequest. + // See https://pkg.go.dev/cloud.google.com/go/serviceusage/apiv1/serviceusagepb#ListServicesRequest. } it := c.ListServices(ctx, req) for { diff --git a/internal/generated/snippets/serviceusage/apiv1/snippet_metadata.google.api.serviceusage.v1.json b/internal/generated/snippets/serviceusage/apiv1/snippet_metadata.google.api.serviceusage.v1.json new file mode 100644 index 000000000000..53bc49234d79 --- /dev/null +++ b/internal/generated/snippets/serviceusage/apiv1/snippet_metadata.google.api.serviceusage.v1.json @@ -0,0 +1,291 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/serviceusage/apiv1", + "version": "1.5.0", + "language": "GO", + "apis": [ + { + "id": "google.api.serviceusage.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "serviceusage_v1_generated_ServiceUsage_BatchEnableServices_sync", + "title": "serviceusage BatchEnableServices Sample", + "description": "BatchEnableServices enable multiple services on a project. The operation is atomic: if enabling\nany service fails, then the entire batch fails, and no state changes occur.\nTo enable a single service, use the EnableService method instead.", + "file": "Client/BatchEnableServices/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchEnableServices", + "fullName": "google.api.serviceusage.v1.Client.BatchEnableServices", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "serviceusagepb.BatchEnableServicesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "BatchEnableServicesOperation", + "client": { + "shortName": "Client", + "fullName": "google.api.serviceusage.v1.Client" + }, + "method": { + "shortName": "BatchEnableServices", + "fullName": "google.api.serviceusage.v1.ServiceUsage.BatchEnableServices", + "service": { + "shortName": "ServiceUsage", + "fullName": "google.api.serviceusage.v1.ServiceUsage" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "serviceusage_v1_generated_ServiceUsage_BatchGetServices_sync", + "title": "serviceusage BatchGetServices Sample", + "description": "BatchGetServices returns the service configurations and enabled states for a given list of\nservices.", + "file": "Client/BatchGetServices/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchGetServices", + "fullName": "google.api.serviceusage.v1.Client.BatchGetServices", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "serviceusagepb.BatchGetServicesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "serviceusagepb.BatchGetServicesResponse", + "client": { + "shortName": "Client", + "fullName": "google.api.serviceusage.v1.Client" + }, + "method": { + "shortName": "BatchGetServices", + "fullName": "google.api.serviceusage.v1.ServiceUsage.BatchGetServices", + "service": { + "shortName": "ServiceUsage", + "fullName": "google.api.serviceusage.v1.ServiceUsage" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "serviceusage_v1_generated_ServiceUsage_DisableService_sync", + "title": "serviceusage DisableService Sample", + "description": "DisableService disable a service so that it can no longer be used with a project.\nThis prevents unintended usage that may cause unexpected billing\ncharges or security leaks.\n\nIt is not valid to call the disable method on a service that is not\ncurrently enabled. Callers will receive a FAILED_PRECONDITION status if\nthe target service is not currently enabled.", + "file": "Client/DisableService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DisableService", + "fullName": "google.api.serviceusage.v1.Client.DisableService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "serviceusagepb.DisableServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DisableServiceOperation", + "client": { + "shortName": "Client", + "fullName": "google.api.serviceusage.v1.Client" + }, + "method": { + "shortName": "DisableService", + "fullName": "google.api.serviceusage.v1.ServiceUsage.DisableService", + "service": { + "shortName": "ServiceUsage", + "fullName": "google.api.serviceusage.v1.ServiceUsage" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "serviceusage_v1_generated_ServiceUsage_EnableService_sync", + "title": "serviceusage EnableService Sample", + "description": "EnableService enable a service so that it can be used with a project.", + "file": "Client/EnableService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "EnableService", + "fullName": "google.api.serviceusage.v1.Client.EnableService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "serviceusagepb.EnableServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "EnableServiceOperation", + "client": { + "shortName": "Client", + "fullName": "google.api.serviceusage.v1.Client" + }, + "method": { + "shortName": "EnableService", + "fullName": "google.api.serviceusage.v1.ServiceUsage.EnableService", + "service": { + "shortName": "ServiceUsage", + "fullName": "google.api.serviceusage.v1.ServiceUsage" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "serviceusage_v1_generated_ServiceUsage_GetService_sync", + "title": "serviceusage GetService Sample", + "description": "GetService returns the service configuration and enabled state for a given service.", + "file": "Client/GetService/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetService", + "fullName": "google.api.serviceusage.v1.Client.GetService", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "serviceusagepb.GetServiceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "serviceusagepb.Service", + "client": { + "shortName": "Client", + "fullName": "google.api.serviceusage.v1.Client" + }, + "method": { + "shortName": "GetService", + "fullName": "google.api.serviceusage.v1.ServiceUsage.GetService", + "service": { + "shortName": "ServiceUsage", + "fullName": "google.api.serviceusage.v1.ServiceUsage" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "serviceusage_v1_generated_ServiceUsage_ListServices_sync", + "title": "serviceusage ListServices Sample", + "description": "ListServices list all services available to the specified project, and the current\nstate of those services with respect to the project. The list includes\nall public services, all services for which the calling user has the\nservicemanagement.services.bind permission, and all services that have\nalready been enabled on the project. The list can be filtered to\nonly include services in a specific state, for example to only include\nservices enabled on the project.\n\nWARNING: If you need to query enabled services frequently or across\nan organization, you should use\nCloud Asset Inventory\nAPI (at https: //cloud.google.com/asset-inventory/docs/apis), which provides\nhigher throughput and richer filtering capability.", + "file": "Client/ListServices/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListServices", + "fullName": "google.api.serviceusage.v1.Client.ListServices", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "serviceusagepb.ListServicesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ServiceIterator", + "client": { + "shortName": "Client", + "fullName": "google.api.serviceusage.v1.Client" + }, + "method": { + "shortName": "ListServices", + "fullName": "google.api.serviceusage.v1.ServiceUsage.ListServices", + "service": { + "shortName": "ServiceUsage", + "fullName": "google.api.serviceusage.v1.ServiceUsage" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/shell/apiv1/CloudShellClient/AddPublicKey/main.go b/internal/generated/snippets/shell/apiv1/CloudShellClient/AddPublicKey/main.go index 7b78861757a5..ffcee06044d6 100644 --- a/internal/generated/snippets/shell/apiv1/CloudShellClient/AddPublicKey/main.go +++ b/internal/generated/snippets/shell/apiv1/CloudShellClient/AddPublicKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" shell "cloud.google.com/go/shell/apiv1" - shellpb "google.golang.org/genproto/googleapis/cloud/shell/v1" + shellpb "cloud.google.com/go/shell/apiv1/shellpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := shell.NewCloudShellClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &shellpb.AddPublicKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/shell/v1#AddPublicKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/shell/apiv1/shellpb#AddPublicKeyRequest. } op, err := c.AddPublicKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/shell/apiv1/CloudShellClient/AuthorizeEnvironment/main.go b/internal/generated/snippets/shell/apiv1/CloudShellClient/AuthorizeEnvironment/main.go index 83192c8b5a14..0b30606bc787 100644 --- a/internal/generated/snippets/shell/apiv1/CloudShellClient/AuthorizeEnvironment/main.go +++ b/internal/generated/snippets/shell/apiv1/CloudShellClient/AuthorizeEnvironment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" shell "cloud.google.com/go/shell/apiv1" - shellpb "google.golang.org/genproto/googleapis/cloud/shell/v1" + shellpb "cloud.google.com/go/shell/apiv1/shellpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := shell.NewCloudShellClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &shellpb.AuthorizeEnvironmentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/shell/v1#AuthorizeEnvironmentRequest. + // See https://pkg.go.dev/cloud.google.com/go/shell/apiv1/shellpb#AuthorizeEnvironmentRequest. } op, err := c.AuthorizeEnvironment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/shell/apiv1/CloudShellClient/GetEnvironment/main.go b/internal/generated/snippets/shell/apiv1/CloudShellClient/GetEnvironment/main.go index e784cc2add83..4bbc589710df 100644 --- a/internal/generated/snippets/shell/apiv1/CloudShellClient/GetEnvironment/main.go +++ b/internal/generated/snippets/shell/apiv1/CloudShellClient/GetEnvironment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" shell "cloud.google.com/go/shell/apiv1" - shellpb "google.golang.org/genproto/googleapis/cloud/shell/v1" + shellpb "cloud.google.com/go/shell/apiv1/shellpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := shell.NewCloudShellClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &shellpb.GetEnvironmentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/shell/v1#GetEnvironmentRequest. + // See https://pkg.go.dev/cloud.google.com/go/shell/apiv1/shellpb#GetEnvironmentRequest. } resp, err := c.GetEnvironment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/shell/apiv1/CloudShellClient/RemovePublicKey/main.go b/internal/generated/snippets/shell/apiv1/CloudShellClient/RemovePublicKey/main.go index d1ab69ef82ea..84b971fc92a2 100644 --- a/internal/generated/snippets/shell/apiv1/CloudShellClient/RemovePublicKey/main.go +++ b/internal/generated/snippets/shell/apiv1/CloudShellClient/RemovePublicKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" shell "cloud.google.com/go/shell/apiv1" - shellpb "google.golang.org/genproto/googleapis/cloud/shell/v1" + shellpb "cloud.google.com/go/shell/apiv1/shellpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := shell.NewCloudShellClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &shellpb.RemovePublicKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/shell/v1#RemovePublicKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/shell/apiv1/shellpb#RemovePublicKeyRequest. } op, err := c.RemovePublicKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/shell/apiv1/CloudShellClient/StartEnvironment/main.go b/internal/generated/snippets/shell/apiv1/CloudShellClient/StartEnvironment/main.go index 59fada345869..26b6e340e6c6 100644 --- a/internal/generated/snippets/shell/apiv1/CloudShellClient/StartEnvironment/main.go +++ b/internal/generated/snippets/shell/apiv1/CloudShellClient/StartEnvironment/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" shell "cloud.google.com/go/shell/apiv1" - shellpb "google.golang.org/genproto/googleapis/cloud/shell/v1" + shellpb "cloud.google.com/go/shell/apiv1/shellpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := shell.NewCloudShellClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &shellpb.StartEnvironmentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/shell/v1#StartEnvironmentRequest. + // See https://pkg.go.dev/cloud.google.com/go/shell/apiv1/shellpb#StartEnvironmentRequest. } op, err := c.StartEnvironment(ctx, req) if err != nil { diff --git a/internal/generated/snippets/shell/apiv1/snippet_metadata.google.cloud.shell.v1.json b/internal/generated/snippets/shell/apiv1/snippet_metadata.google.cloud.shell.v1.json new file mode 100644 index 000000000000..9aed7015ad35 --- /dev/null +++ b/internal/generated/snippets/shell/apiv1/snippet_metadata.google.cloud.shell.v1.json @@ -0,0 +1,245 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/shell/apiv1", + "version": "1.6.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.shell.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "cloudshell_v1_generated_CloudShellService_AddPublicKey_sync", + "title": "cloudshell AddPublicKey Sample", + "description": "AddPublicKey adds a public SSH key to an environment, allowing clients with the\ncorresponding private key to connect to that environment via SSH. If a key\nwith the same content already exists, this will error with ALREADY_EXISTS.", + "file": "CloudShellClient/AddPublicKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AddPublicKey", + "fullName": "google.cloud.shell.v1.CloudShellClient.AddPublicKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "shellpb.AddPublicKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AddPublicKeyOperation", + "client": { + "shortName": "CloudShellClient", + "fullName": "google.cloud.shell.v1.CloudShellClient" + }, + "method": { + "shortName": "AddPublicKey", + "fullName": "google.cloud.shell.v1.CloudShellService.AddPublicKey", + "service": { + "shortName": "CloudShellService", + "fullName": "google.cloud.shell.v1.CloudShellService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudshell_v1_generated_CloudShellService_AuthorizeEnvironment_sync", + "title": "cloudshell AuthorizeEnvironment Sample", + "description": "AuthorizeEnvironment sends OAuth credentials to a running environment on behalf of a user. When\nthis completes, the environment will be authorized to run various Google\nCloud command line tools without requiring the user to manually\nauthenticate.", + "file": "CloudShellClient/AuthorizeEnvironment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AuthorizeEnvironment", + "fullName": "google.cloud.shell.v1.CloudShellClient.AuthorizeEnvironment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "shellpb.AuthorizeEnvironmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AuthorizeEnvironmentOperation", + "client": { + "shortName": "CloudShellClient", + "fullName": "google.cloud.shell.v1.CloudShellClient" + }, + "method": { + "shortName": "AuthorizeEnvironment", + "fullName": "google.cloud.shell.v1.CloudShellService.AuthorizeEnvironment", + "service": { + "shortName": "CloudShellService", + "fullName": "google.cloud.shell.v1.CloudShellService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudshell_v1_generated_CloudShellService_GetEnvironment_sync", + "title": "cloudshell GetEnvironment Sample", + "description": "GetEnvironment gets an environment. Returns NOT_FOUND if the environment does not exist.", + "file": "CloudShellClient/GetEnvironment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetEnvironment", + "fullName": "google.cloud.shell.v1.CloudShellClient.GetEnvironment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "shellpb.GetEnvironmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "shellpb.Environment", + "client": { + "shortName": "CloudShellClient", + "fullName": "google.cloud.shell.v1.CloudShellClient" + }, + "method": { + "shortName": "GetEnvironment", + "fullName": "google.cloud.shell.v1.CloudShellService.GetEnvironment", + "service": { + "shortName": "CloudShellService", + "fullName": "google.cloud.shell.v1.CloudShellService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudshell_v1_generated_CloudShellService_RemovePublicKey_sync", + "title": "cloudshell RemovePublicKey Sample", + "description": "RemovePublicKey removes a public SSH key from an environment. Clients will no longer be\nable to connect to the environment using the corresponding private key.\nIf a key with the same content is not present, this will error with\nNOT_FOUND.", + "file": "CloudShellClient/RemovePublicKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RemovePublicKey", + "fullName": "google.cloud.shell.v1.CloudShellClient.RemovePublicKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "shellpb.RemovePublicKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RemovePublicKeyOperation", + "client": { + "shortName": "CloudShellClient", + "fullName": "google.cloud.shell.v1.CloudShellClient" + }, + "method": { + "shortName": "RemovePublicKey", + "fullName": "google.cloud.shell.v1.CloudShellService.RemovePublicKey", + "service": { + "shortName": "CloudShellService", + "fullName": "google.cloud.shell.v1.CloudShellService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudshell_v1_generated_CloudShellService_StartEnvironment_sync", + "title": "cloudshell StartEnvironment Sample", + "description": "StartEnvironment starts an existing environment, allowing clients to connect to it. The\nreturned operation will contain an instance of StartEnvironmentMetadata in\nits metadata field. Users can wait for the environment to start by polling\nthis operation via GetOperation. Once the environment has finished starting\nand is ready to accept connections, the operation will contain a\nStartEnvironmentResponse in its response field.", + "file": "CloudShellClient/StartEnvironment/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StartEnvironment", + "fullName": "google.cloud.shell.v1.CloudShellClient.StartEnvironment", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "shellpb.StartEnvironmentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "StartEnvironmentOperation", + "client": { + "shortName": "CloudShellClient", + "fullName": "google.cloud.shell.v1.CloudShellClient" + }, + "method": { + "shortName": "StartEnvironment", + "fullName": "google.cloud.shell.v1.CloudShellService.StartEnvironment", + "service": { + "shortName": "CloudShellService", + "fullName": "google.cloud.shell.v1.CloudShellService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/CancelOperation/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/CancelOperation/main.go new file mode 100644 index 000000000000..a333c1bfd74a --- /dev/null +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START spanner_v1_generated_DatabaseAdmin_CancelOperation_sync] + +package main + +import ( + "context" + + database "cloud.google.com/go/spanner/admin/database/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := database.NewDatabaseAdminClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END spanner_v1_generated_DatabaseAdmin_CancelOperation_sync] diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/CopyBackup/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/CopyBackup/main.go index 5f3de2d011db..211390392bde 100644 --- a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/CopyBackup/main.go +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/CopyBackup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" database "cloud.google.com/go/spanner/admin/database/apiv1" - databasepb "google.golang.org/genproto/googleapis/spanner/admin/database/v1" + databasepb "cloud.google.com/go/spanner/admin/database/apiv1/databasepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &databasepb.CopyBackupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/database/v1#CopyBackupRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/database/apiv1/databasepb#CopyBackupRequest. } op, err := c.CopyBackup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/CreateBackup/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/CreateBackup/main.go index f89568c305c2..9c57233ad5fd 100644 --- a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/CreateBackup/main.go +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/CreateBackup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" database "cloud.google.com/go/spanner/admin/database/apiv1" - databasepb "google.golang.org/genproto/googleapis/spanner/admin/database/v1" + databasepb "cloud.google.com/go/spanner/admin/database/apiv1/databasepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &databasepb.CreateBackupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/database/v1#CreateBackupRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/database/apiv1/databasepb#CreateBackupRequest. } op, err := c.CreateBackup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/CreateDatabase/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/CreateDatabase/main.go index cf12169316ae..0ddbc473059a 100644 --- a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/CreateDatabase/main.go +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/CreateDatabase/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" database "cloud.google.com/go/spanner/admin/database/apiv1" - databasepb "google.golang.org/genproto/googleapis/spanner/admin/database/v1" + databasepb "cloud.google.com/go/spanner/admin/database/apiv1/databasepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &databasepb.CreateDatabaseRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/database/v1#CreateDatabaseRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/database/apiv1/databasepb#CreateDatabaseRequest. } op, err := c.CreateDatabase(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/DeleteBackup/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/DeleteBackup/main.go index 1e15be00f329..059c99851dc0 100644 --- a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/DeleteBackup/main.go +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/DeleteBackup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" database "cloud.google.com/go/spanner/admin/database/apiv1" - databasepb "google.golang.org/genproto/googleapis/spanner/admin/database/v1" + databasepb "cloud.google.com/go/spanner/admin/database/apiv1/databasepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &databasepb.DeleteBackupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/database/v1#DeleteBackupRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/database/apiv1/databasepb#DeleteBackupRequest. } err = c.DeleteBackup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/DeleteOperation/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/DeleteOperation/main.go new file mode 100644 index 000000000000..01753ea8f6b5 --- /dev/null +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START spanner_v1_generated_DatabaseAdmin_DeleteOperation_sync] + +package main + +import ( + "context" + + database "cloud.google.com/go/spanner/admin/database/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := database.NewDatabaseAdminClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END spanner_v1_generated_DatabaseAdmin_DeleteOperation_sync] diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/DropDatabase/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/DropDatabase/main.go index 013e5e2083de..01cbc90a58d7 100644 --- a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/DropDatabase/main.go +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/DropDatabase/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" database "cloud.google.com/go/spanner/admin/database/apiv1" - databasepb "google.golang.org/genproto/googleapis/spanner/admin/database/v1" + databasepb "cloud.google.com/go/spanner/admin/database/apiv1/databasepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &databasepb.DropDatabaseRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/database/v1#DropDatabaseRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/database/apiv1/databasepb#DropDatabaseRequest. } err = c.DropDatabase(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetBackup/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetBackup/main.go index 84edb7269ddc..12a604cb7fd3 100644 --- a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetBackup/main.go +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetBackup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" database "cloud.google.com/go/spanner/admin/database/apiv1" - databasepb "google.golang.org/genproto/googleapis/spanner/admin/database/v1" + databasepb "cloud.google.com/go/spanner/admin/database/apiv1/databasepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &databasepb.GetBackupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/database/v1#GetBackupRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/database/apiv1/databasepb#GetBackupRequest. } resp, err := c.GetBackup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetDatabase/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetDatabase/main.go index 85f657597d74..e98de9e6ac68 100644 --- a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetDatabase/main.go +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetDatabase/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" database "cloud.google.com/go/spanner/admin/database/apiv1" - databasepb "google.golang.org/genproto/googleapis/spanner/admin/database/v1" + databasepb "cloud.google.com/go/spanner/admin/database/apiv1/databasepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &databasepb.GetDatabaseRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/database/v1#GetDatabaseRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/database/apiv1/databasepb#GetDatabaseRequest. } resp, err := c.GetDatabase(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetDatabaseDdl/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetDatabaseDdl/main.go index 11895b91ab51..621490585b94 100644 --- a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetDatabaseDdl/main.go +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetDatabaseDdl/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" database "cloud.google.com/go/spanner/admin/database/apiv1" - databasepb "google.golang.org/genproto/googleapis/spanner/admin/database/v1" + databasepb "cloud.google.com/go/spanner/admin/database/apiv1/databasepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &databasepb.GetDatabaseDdlRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/database/v1#GetDatabaseDdlRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/database/apiv1/databasepb#GetDatabaseDdlRequest. } resp, err := c.GetDatabaseDdl(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetIamPolicy/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetIamPolicy/main.go index 61393ecaddcc..db9a8997b764 100644 --- a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" database "cloud.google.com/go/spanner/admin/database/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetOperation/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetOperation/main.go new file mode 100644 index 000000000000..51b553ad77da --- /dev/null +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START spanner_v1_generated_DatabaseAdmin_GetOperation_sync] + +package main + +import ( + "context" + + database "cloud.google.com/go/spanner/admin/database/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := database.NewDatabaseAdminClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END spanner_v1_generated_DatabaseAdmin_GetOperation_sync] diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListBackupOperations/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListBackupOperations/main.go index 81ecbbd0015f..aed72f4bccdb 100644 --- a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListBackupOperations/main.go +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListBackupOperations/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" database "cloud.google.com/go/spanner/admin/database/apiv1" + databasepb "cloud.google.com/go/spanner/admin/database/apiv1/databasepb" "google.golang.org/api/iterator" - databasepb "google.golang.org/genproto/googleapis/spanner/admin/database/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &databasepb.ListBackupOperationsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/database/v1#ListBackupOperationsRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/database/apiv1/databasepb#ListBackupOperationsRequest. } it := c.ListBackupOperations(ctx, req) for { diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListBackups/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListBackups/main.go index 9cdd83a7fe7e..cf5555985e73 100644 --- a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListBackups/main.go +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListBackups/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" database "cloud.google.com/go/spanner/admin/database/apiv1" + databasepb "cloud.google.com/go/spanner/admin/database/apiv1/databasepb" "google.golang.org/api/iterator" - databasepb "google.golang.org/genproto/googleapis/spanner/admin/database/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &databasepb.ListBackupsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/database/v1#ListBackupsRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/database/apiv1/databasepb#ListBackupsRequest. } it := c.ListBackups(ctx, req) for { diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListDatabaseOperations/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListDatabaseOperations/main.go index fa654a790cc5..de8c930e58f2 100644 --- a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListDatabaseOperations/main.go +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListDatabaseOperations/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" database "cloud.google.com/go/spanner/admin/database/apiv1" + databasepb "cloud.google.com/go/spanner/admin/database/apiv1/databasepb" "google.golang.org/api/iterator" - databasepb "google.golang.org/genproto/googleapis/spanner/admin/database/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &databasepb.ListDatabaseOperationsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/database/v1#ListDatabaseOperationsRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/database/apiv1/databasepb#ListDatabaseOperationsRequest. } it := c.ListDatabaseOperations(ctx, req) for { diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListDatabaseRoles/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListDatabaseRoles/main.go new file mode 100644 index 000000000000..c0882a1d69b7 --- /dev/null +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListDatabaseRoles/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START spanner_v1_generated_DatabaseAdmin_ListDatabaseRoles_sync] + +package main + +import ( + "context" + + database "cloud.google.com/go/spanner/admin/database/apiv1" + databasepb "cloud.google.com/go/spanner/admin/database/apiv1/databasepb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := database.NewDatabaseAdminClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &databasepb.ListDatabaseRolesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/database/apiv1/databasepb#ListDatabaseRolesRequest. + } + it := c.ListDatabaseRoles(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END spanner_v1_generated_DatabaseAdmin_ListDatabaseRoles_sync] diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListDatabases/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListDatabases/main.go index c3a611adc476..3d10067cacc6 100644 --- a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListDatabases/main.go +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListDatabases/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" database "cloud.google.com/go/spanner/admin/database/apiv1" + databasepb "cloud.google.com/go/spanner/admin/database/apiv1/databasepb" "google.golang.org/api/iterator" - databasepb "google.golang.org/genproto/googleapis/spanner/admin/database/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &databasepb.ListDatabasesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/database/v1#ListDatabasesRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/database/apiv1/databasepb#ListDatabasesRequest. } it := c.ListDatabases(ctx, req) for { diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListOperations/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListOperations/main.go new file mode 100644 index 000000000000..ad2eda3b4ea7 --- /dev/null +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START spanner_v1_generated_DatabaseAdmin_ListOperations_sync] + +package main + +import ( + "context" + + database "cloud.google.com/go/spanner/admin/database/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := database.NewDatabaseAdminClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END spanner_v1_generated_DatabaseAdmin_ListOperations_sync] diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/RestoreDatabase/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/RestoreDatabase/main.go index c247bc809037..6760e3ef7d25 100644 --- a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/RestoreDatabase/main.go +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/RestoreDatabase/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" database "cloud.google.com/go/spanner/admin/database/apiv1" - databasepb "google.golang.org/genproto/googleapis/spanner/admin/database/v1" + databasepb "cloud.google.com/go/spanner/admin/database/apiv1/databasepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &databasepb.RestoreDatabaseRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/database/v1#RestoreDatabaseRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/database/apiv1/databasepb#RestoreDatabaseRequest. } op, err := c.RestoreDatabase(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/SetIamPolicy/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/SetIamPolicy/main.go index aa7600434e38..b3ead407edf8 100644 --- a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" database "cloud.google.com/go/spanner/admin/database/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/TestIamPermissions/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/TestIamPermissions/main.go index 994bf06eaa94..ac32ef682d55 100644 --- a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" database "cloud.google.com/go/spanner/admin/database/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/UpdateBackup/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/UpdateBackup/main.go index f6ce4afd05d1..34a927f59744 100644 --- a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/UpdateBackup/main.go +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/UpdateBackup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" database "cloud.google.com/go/spanner/admin/database/apiv1" - databasepb "google.golang.org/genproto/googleapis/spanner/admin/database/v1" + databasepb "cloud.google.com/go/spanner/admin/database/apiv1/databasepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &databasepb.UpdateBackupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/database/v1#UpdateBackupRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/database/apiv1/databasepb#UpdateBackupRequest. } resp, err := c.UpdateBackup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/UpdateDatabaseDdl/main.go b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/UpdateDatabaseDdl/main.go index d9920adc4d57..133c8d4f829c 100644 --- a/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/UpdateDatabaseDdl/main.go +++ b/internal/generated/snippets/spanner/admin/database/apiv1/DatabaseAdminClient/UpdateDatabaseDdl/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" database "cloud.google.com/go/spanner/admin/database/apiv1" - databasepb "google.golang.org/genproto/googleapis/spanner/admin/database/v1" + databasepb "cloud.google.com/go/spanner/admin/database/apiv1/databasepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := database.NewDatabaseAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &databasepb.UpdateDatabaseDdlRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/database/v1#UpdateDatabaseDdlRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/database/apiv1/databasepb#UpdateDatabaseDdlRequest. } op, err := c.UpdateDatabaseDdl(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/admin/database/apiv1/snippet_metadata.google.spanner.admin.database.v1.json b/internal/generated/snippets/spanner/admin/database/apiv1/snippet_metadata.google.spanner.admin.database.v1.json new file mode 100644 index 000000000000..81c4adcd5767 --- /dev/null +++ b/internal/generated/snippets/spanner/admin/database/apiv1/snippet_metadata.google.spanner.admin.database.v1.json @@ -0,0 +1,1069 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/spanner/admin/database/apiv1", + "version": "1.42.0", + "language": "GO", + "apis": [ + { + "id": "google.spanner.admin.database.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_CancelOperation_sync", + "title": "spanner CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "DatabaseAdminClient/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.CancelOperation", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_CopyBackup_sync", + "title": "spanner CopyBackup Sample", + "description": "CopyBackup starts copying a Cloud Spanner Backup.\nThe returned backup [long-running operation][google.longrunning.Operation]\nwill have a name of the format\nprojects//instances//backups//operations/\nand can be used to track copying of the backup. The operation is associated\nwith the destination backup.\nThe metadata field type is\nCopyBackupMetadata.\nThe response field type is\nBackup, if successful. Cancelling the returned operation will stop the\ncopying and delete the backup.\nConcurrent CopyBackup requests can run on the same source backup.", + "file": "DatabaseAdminClient/CopyBackup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CopyBackup", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.CopyBackup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "databasepb.CopyBackupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CopyBackupOperation", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "CopyBackup", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_CreateBackup_sync", + "title": "spanner CreateBackup Sample", + "description": "CreateBackup starts creating a new Cloud Spanner Backup.\nThe returned backup [long-running operation][google.longrunning.Operation]\nwill have a name of the format\nprojects//instances//backups//operations/\nand can be used to track creation of the backup. The\nmetadata field type is\nCreateBackupMetadata. The\nresponse field type is\nBackup, if successful. Cancelling the returned operation will stop the\ncreation and delete the backup.\nThere can be only one pending backup creation per database. Backup creation\nof different databases can run concurrently.", + "file": "DatabaseAdminClient/CreateBackup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateBackup", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.CreateBackup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "databasepb.CreateBackupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateBackupOperation", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "CreateBackup", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_CreateDatabase_sync", + "title": "spanner CreateDatabase Sample", + "description": "CreateDatabase creates a new Cloud Spanner database and starts to prepare it for serving.\nThe returned [long-running operation][google.longrunning.Operation] will\nhave a name of the format /operations/ and\ncan be used to track preparation of the database. The\nmetadata field type is\nCreateDatabaseMetadata. The\nresponse field type is\nDatabase, if successful.", + "file": "DatabaseAdminClient/CreateDatabase/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateDatabase", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.CreateDatabase", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "databasepb.CreateDatabaseRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateDatabaseOperation", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "CreateDatabase", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_DeleteBackup_sync", + "title": "spanner DeleteBackup Sample", + "description": "DeleteBackup deletes a pending or completed Backup.", + "file": "DatabaseAdminClient/DeleteBackup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteBackup", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.DeleteBackup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "databasepb.DeleteBackupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "DeleteBackup", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.DeleteBackup", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_DeleteOperation_sync", + "title": "spanner DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "DatabaseAdminClient/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.DeleteOperation", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_DropDatabase_sync", + "title": "spanner DropDatabase Sample", + "description": "DropDatabase drops (aka deletes) a Cloud Spanner database.\nCompleted backups for the database will be retained according to their\nexpire_time.\nNote: Cloud Spanner might continue to accept requests for a few seconds\nafter the database has been deleted.", + "file": "DatabaseAdminClient/DropDatabase/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DropDatabase", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.DropDatabase", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "databasepb.DropDatabaseRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "DropDatabase", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.DropDatabase", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_GetBackup_sync", + "title": "spanner GetBackup Sample", + "description": "GetBackup gets metadata on a pending or completed Backup.", + "file": "DatabaseAdminClient/GetBackup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetBackup", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.GetBackup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "databasepb.GetBackupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "databasepb.Backup", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "GetBackup", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.GetBackup", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_GetDatabase_sync", + "title": "spanner GetDatabase Sample", + "description": "GetDatabase gets the state of a Cloud Spanner database.", + "file": "DatabaseAdminClient/GetDatabase/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetDatabase", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.GetDatabase", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "databasepb.GetDatabaseRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "databasepb.Database", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "GetDatabase", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.GetDatabase", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_GetDatabaseDdl_sync", + "title": "spanner GetDatabaseDdl Sample", + "description": "GetDatabaseDdl returns the schema of a Cloud Spanner database as a list of formatted\nDDL statements. This method does not show pending schema updates, those may\nbe queried using the Operations API.", + "file": "DatabaseAdminClient/GetDatabaseDdl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetDatabaseDdl", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.GetDatabaseDdl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "databasepb.GetDatabaseDdlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "databasepb.GetDatabaseDdlResponse", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "GetDatabaseDdl", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_GetIamPolicy_sync", + "title": "spanner GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a database or backup resource.\nReturns an empty policy if a database or backup exists but does not have a\npolicy set.\n\nAuthorization requires spanner.databases.getIamPolicy permission on\nresource.\nFor backups, authorization requires spanner.backups.getIamPolicy\npermission on resource.", + "file": "DatabaseAdminClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.GetIamPolicy", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_GetOperation_sync", + "title": "spanner GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "DatabaseAdminClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.GetOperation", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_ListBackupOperations_sync", + "title": "spanner ListBackupOperations Sample", + "description": "ListBackupOperations lists the backup [long-running operations][google.longrunning.Operation] in\nthe given instance. A backup operation has a name of the form\nprojects//instances//backups//operations/.\nThe long-running operation\nmetadata field type\nmetadata.type_url describes the type of the metadata. Operations returned\ninclude those that have completed/failed/canceled within the last 7 days,\nand pending operations. Operations returned are ordered by\noperation.metadata.value.progress.start_time in descending order starting\nfrom the most recently started operation.", + "file": "DatabaseAdminClient/ListBackupOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListBackupOperations", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.ListBackupOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "databasepb.ListBackupOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "ListBackupOperations", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.ListBackupOperations", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_ListBackups_sync", + "title": "spanner ListBackups Sample", + "description": "ListBackups lists completed and pending backups.\nBackups returned are ordered by create_time in descending order,\nstarting from the most recent create_time.", + "file": "DatabaseAdminClient/ListBackups/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListBackups", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.ListBackups", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "databasepb.ListBackupsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "BackupIterator", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "ListBackups", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.ListBackups", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_ListDatabaseOperations_sync", + "title": "spanner ListDatabaseOperations Sample", + "description": "ListDatabaseOperations lists database [longrunning-operations][google.longrunning.Operation].\nA database operation has a name of the form\nprojects//instances//databases//operations/.\nThe long-running operation\nmetadata field type\nmetadata.type_url describes the type of the metadata. Operations returned\ninclude those that have completed/failed/canceled within the last 7 days,\nand pending operations.", + "file": "DatabaseAdminClient/ListDatabaseOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListDatabaseOperations", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.ListDatabaseOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "databasepb.ListDatabaseOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "ListDatabaseOperations", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseOperations", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_ListDatabaseRoles_sync", + "title": "spanner ListDatabaseRoles Sample", + "description": "ListDatabaseRoles lists Cloud Spanner database roles.", + "file": "DatabaseAdminClient/ListDatabaseRoles/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListDatabaseRoles", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.ListDatabaseRoles", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "databasepb.ListDatabaseRolesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DatabaseRoleIterator", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "ListDatabaseRoles", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_ListDatabases_sync", + "title": "spanner ListDatabases Sample", + "description": "ListDatabases lists Cloud Spanner databases.", + "file": "DatabaseAdminClient/ListDatabases/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListDatabases", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.ListDatabases", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "databasepb.ListDatabasesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DatabaseIterator", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "ListDatabases", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_ListOperations_sync", + "title": "spanner ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "DatabaseAdminClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.ListOperations", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_RestoreDatabase_sync", + "title": "spanner RestoreDatabase Sample", + "description": "RestoreDatabase create a new database by restoring from a completed backup. The new\ndatabase must be in the same project and in an instance with the same\ninstance configuration as the instance containing\nthe backup. The returned database [long-running\noperation][google.longrunning.Operation] has a name of the format\nprojects//instances//databases//operations/,\nand can be used to track the progress of the operation, and to cancel it.\nThe metadata field type is\nRestoreDatabaseMetadata.\nThe response type\nis Database, if\nsuccessful. Cancelling the returned operation will stop the restore and\ndelete the database.\nThere can be only one database being restored into an instance at a time.\nOnce the restore operation completes, a new restore operation can be\ninitiated, without waiting for the optimize operation associated with the\nfirst restore to complete.", + "file": "DatabaseAdminClient/RestoreDatabase/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RestoreDatabase", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.RestoreDatabase", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "databasepb.RestoreDatabaseRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RestoreDatabaseOperation", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "RestoreDatabase", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_SetIamPolicy_sync", + "title": "spanner SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on a database or backup resource.\nReplaces any existing policy.\n\nAuthorization requires spanner.databases.setIamPolicy\npermission on resource.\nFor backups, authorization requires spanner.backups.setIamPolicy\npermission on resource.", + "file": "DatabaseAdminClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.SetIamPolicy", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_TestIamPermissions_sync", + "title": "spanner TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that the caller has on the specified database or backup\nresource.\n\nAttempting this RPC on a non-existent Cloud Spanner database will\nresult in a NOT_FOUND error if the user has\nspanner.databases.list permission on the containing Cloud\nSpanner instance. Otherwise returns an empty set of permissions.\nCalling this method on a backup that does not exist will\nresult in a NOT_FOUND error if the user has\nspanner.backups.list permission on the containing instance.", + "file": "DatabaseAdminClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.TestIamPermissions", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_UpdateBackup_sync", + "title": "spanner UpdateBackup Sample", + "description": "UpdateBackup updates a pending or completed Backup.", + "file": "DatabaseAdminClient/UpdateBackup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateBackup", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.UpdateBackup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "databasepb.UpdateBackupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "databasepb.Backup", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "UpdateBackup", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_DatabaseAdmin_UpdateDatabaseDdl_sync", + "title": "spanner UpdateDatabaseDdl Sample", + "description": "UpdateDatabaseDdl updates the schema of a Cloud Spanner database by\ncreating/altering/dropping tables, columns, indexes, etc. The returned\n[long-running operation][google.longrunning.Operation] will have a name of\nthe format /operations/ and can be used to\ntrack execution of the schema change(s). The\nmetadata field type is\nUpdateDatabaseDdlMetadata. The operation has no response.", + "file": "DatabaseAdminClient/UpdateDatabaseDdl/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateDatabaseDdl", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient.UpdateDatabaseDdl", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "databasepb.UpdateDatabaseDdlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateDatabaseDdlOperation", + "client": { + "shortName": "DatabaseAdminClient", + "fullName": "google.spanner.admin.database.v1.DatabaseAdminClient" + }, + "method": { + "shortName": "UpdateDatabaseDdl", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl", + "service": { + "shortName": "DatabaseAdmin", + "fullName": "google.spanner.admin.database.v1.DatabaseAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/CreateInstance/main.go b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/CreateInstance/main.go index fc6c21619c1c..1b53faf98254 100644 --- a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/CreateInstance/main.go +++ b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/CreateInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" instance "cloud.google.com/go/spanner/admin/instance/apiv1" - instancepb "google.golang.org/genproto/googleapis/spanner/admin/instance/v1" + instancepb "cloud.google.com/go/spanner/admin/instance/apiv1/instancepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &instancepb.CreateInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/instance/v1#CreateInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/instance/apiv1/instancepb#CreateInstanceRequest. } op, err := c.CreateInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/CreateInstanceConfig/main.go b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/CreateInstanceConfig/main.go new file mode 100644 index 000000000000..c9cde67be4e8 --- /dev/null +++ b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/CreateInstanceConfig/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START spanner_v1_generated_InstanceAdmin_CreateInstanceConfig_sync] + +package main + +import ( + "context" + + instance "cloud.google.com/go/spanner/admin/instance/apiv1" + instancepb "cloud.google.com/go/spanner/admin/instance/apiv1/instancepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := instance.NewInstanceAdminClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &instancepb.CreateInstanceConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/instance/apiv1/instancepb#CreateInstanceConfigRequest. + } + op, err := c.CreateInstanceConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END spanner_v1_generated_InstanceAdmin_CreateInstanceConfig_sync] diff --git a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/DeleteInstance/main.go b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/DeleteInstance/main.go index b52ab7e4fd9e..1489baa70ad6 100644 --- a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/DeleteInstance/main.go +++ b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/DeleteInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" instance "cloud.google.com/go/spanner/admin/instance/apiv1" - instancepb "google.golang.org/genproto/googleapis/spanner/admin/instance/v1" + instancepb "cloud.google.com/go/spanner/admin/instance/apiv1/instancepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &instancepb.DeleteInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/instance/v1#DeleteInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/instance/apiv1/instancepb#DeleteInstanceRequest. } err = c.DeleteInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/DeleteInstanceConfig/main.go b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/DeleteInstanceConfig/main.go new file mode 100644 index 000000000000..38bdeda08c15 --- /dev/null +++ b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/DeleteInstanceConfig/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START spanner_v1_generated_InstanceAdmin_DeleteInstanceConfig_sync] + +package main + +import ( + "context" + + instance "cloud.google.com/go/spanner/admin/instance/apiv1" + instancepb "cloud.google.com/go/spanner/admin/instance/apiv1/instancepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := instance.NewInstanceAdminClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &instancepb.DeleteInstanceConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/instance/apiv1/instancepb#DeleteInstanceConfigRequest. + } + err = c.DeleteInstanceConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END spanner_v1_generated_InstanceAdmin_DeleteInstanceConfig_sync] diff --git a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/GetIamPolicy/main.go b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/GetIamPolicy/main.go index fd7f65f2f136..6d56f54289d1 100644 --- a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/GetIamPolicy/main.go +++ b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/GetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" instance "cloud.google.com/go/spanner/admin/instance/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/GetInstance/main.go b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/GetInstance/main.go index 8914a5108ff8..e2168dea83ec 100644 --- a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/GetInstance/main.go +++ b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/GetInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" instance "cloud.google.com/go/spanner/admin/instance/apiv1" - instancepb "google.golang.org/genproto/googleapis/spanner/admin/instance/v1" + instancepb "cloud.google.com/go/spanner/admin/instance/apiv1/instancepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &instancepb.GetInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/instance/v1#GetInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/instance/apiv1/instancepb#GetInstanceRequest. } resp, err := c.GetInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/GetInstanceConfig/main.go b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/GetInstanceConfig/main.go index 45ccdf57e2b9..e10acc211d47 100644 --- a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/GetInstanceConfig/main.go +++ b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/GetInstanceConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" instance "cloud.google.com/go/spanner/admin/instance/apiv1" - instancepb "google.golang.org/genproto/googleapis/spanner/admin/instance/v1" + instancepb "cloud.google.com/go/spanner/admin/instance/apiv1/instancepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &instancepb.GetInstanceConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/instance/v1#GetInstanceConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/instance/apiv1/instancepb#GetInstanceConfigRequest. } resp, err := c.GetInstanceConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/ListInstanceConfigOperations/main.go b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/ListInstanceConfigOperations/main.go new file mode 100644 index 000000000000..d104949ac911 --- /dev/null +++ b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/ListInstanceConfigOperations/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START spanner_v1_generated_InstanceAdmin_ListInstanceConfigOperations_sync] + +package main + +import ( + "context" + + instance "cloud.google.com/go/spanner/admin/instance/apiv1" + instancepb "cloud.google.com/go/spanner/admin/instance/apiv1/instancepb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := instance.NewInstanceAdminClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &instancepb.ListInstanceConfigOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/instance/apiv1/instancepb#ListInstanceConfigOperationsRequest. + } + it := c.ListInstanceConfigOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END spanner_v1_generated_InstanceAdmin_ListInstanceConfigOperations_sync] diff --git a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/ListInstanceConfigs/main.go b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/ListInstanceConfigs/main.go index 8c59ea6feb1d..f5f88a486e73 100644 --- a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/ListInstanceConfigs/main.go +++ b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/ListInstanceConfigs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" instance "cloud.google.com/go/spanner/admin/instance/apiv1" + instancepb "cloud.google.com/go/spanner/admin/instance/apiv1/instancepb" "google.golang.org/api/iterator" - instancepb "google.golang.org/genproto/googleapis/spanner/admin/instance/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &instancepb.ListInstanceConfigsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/instance/v1#ListInstanceConfigsRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/instance/apiv1/instancepb#ListInstanceConfigsRequest. } it := c.ListInstanceConfigs(ctx, req) for { diff --git a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/ListInstances/main.go b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/ListInstances/main.go index 5139add98035..4c7e041831bd 100644 --- a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/ListInstances/main.go +++ b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/ListInstances/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" instance "cloud.google.com/go/spanner/admin/instance/apiv1" + instancepb "cloud.google.com/go/spanner/admin/instance/apiv1/instancepb" "google.golang.org/api/iterator" - instancepb "google.golang.org/genproto/googleapis/spanner/admin/instance/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &instancepb.ListInstancesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/instance/v1#ListInstancesRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/instance/apiv1/instancepb#ListInstancesRequest. } it := c.ListInstances(ctx, req) for { diff --git a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/SetIamPolicy/main.go b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/SetIamPolicy/main.go index 45ea84e063ac..dfa2dd4f012f 100644 --- a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/SetIamPolicy/main.go +++ b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/SetIamPolicy/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" instance "cloud.google.com/go/spanner/admin/instance/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/TestIamPermissions/main.go b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/TestIamPermissions/main.go index 25831f5b19dd..9c7e6581a903 100644 --- a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/TestIamPermissions/main.go +++ b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/TestIamPermissions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,17 @@ import ( "context" instance "cloud.google.com/go/spanner/admin/instance/apiv1" + iampb "google.golang.org/genproto/googleapis/iam/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/UpdateInstance/main.go b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/UpdateInstance/main.go index e94aa6cfba20..1074f40f14f0 100644 --- a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/UpdateInstance/main.go +++ b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/UpdateInstance/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" instance "cloud.google.com/go/spanner/admin/instance/apiv1" - instancepb "google.golang.org/genproto/googleapis/spanner/admin/instance/v1" + instancepb "cloud.google.com/go/spanner/admin/instance/apiv1/instancepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := instance.NewInstanceAdminClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &instancepb.UpdateInstanceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/admin/instance/v1#UpdateInstanceRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/instance/apiv1/instancepb#UpdateInstanceRequest. } op, err := c.UpdateInstance(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/UpdateInstanceConfig/main.go b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/UpdateInstanceConfig/main.go new file mode 100644 index 000000000000..084b2be02d4f --- /dev/null +++ b/internal/generated/snippets/spanner/admin/instance/apiv1/InstanceAdminClient/UpdateInstanceConfig/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START spanner_v1_generated_InstanceAdmin_UpdateInstanceConfig_sync] + +package main + +import ( + "context" + + instance "cloud.google.com/go/spanner/admin/instance/apiv1" + instancepb "cloud.google.com/go/spanner/admin/instance/apiv1/instancepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := instance.NewInstanceAdminClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &instancepb.UpdateInstanceConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/spanner/admin/instance/apiv1/instancepb#UpdateInstanceConfigRequest. + } + op, err := c.UpdateInstanceConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END spanner_v1_generated_InstanceAdmin_UpdateInstanceConfig_sync] diff --git a/internal/generated/snippets/spanner/admin/instance/apiv1/snippet_metadata.google.spanner.admin.instance.v1.json b/internal/generated/snippets/spanner/admin/instance/apiv1/snippet_metadata.google.spanner.admin.instance.v1.json new file mode 100644 index 000000000000..ddfcfc3dfb83 --- /dev/null +++ b/internal/generated/snippets/spanner/admin/instance/apiv1/snippet_metadata.google.spanner.admin.instance.v1.json @@ -0,0 +1,657 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/spanner/admin/instance/apiv1", + "version": "1.42.0", + "language": "GO", + "apis": [ + { + "id": "google.spanner.admin.instance.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "spanner_v1_generated_InstanceAdmin_CreateInstance_sync", + "title": "spanner CreateInstance Sample", + "description": "CreateInstance creates an instance and begins preparing it to begin serving. The\nreturned [long-running operation][google.longrunning.Operation]\ncan be used to track the progress of preparing the new\ninstance. The instance name is assigned by the caller. If the\nnamed instance already exists, CreateInstance returns\nALREADY_EXISTS.\n\nImmediately upon completion of this request: \n\n\tThe instance is readable via the API, with all requested attributes\n\tbut no allocated resources. Its state is CREATING.\n\nUntil completion of the returned operation: \n\n\tCancelling the operation renders the instance immediately unreadable\n\tvia the API.\n\n\tThe instance can be deleted.\n\n\tAll other attempts to modify the instance are rejected.\n\nUpon completion of the returned operation: \n\n\tBilling for all successfully-allocated resources begins (some types\n\tmay have lower than the requested levels).\n\n\tDatabases can be created in the instance.\n\n\tThe instance’s allocated resource levels are readable via the API.\n\n\tThe instance’s state becomes READY.\n\nThe returned [long-running operation][google.longrunning.Operation] will\nhave a name of the format /operations/ and\ncan be used to track creation of the instance. The\nmetadata field type is\nCreateInstanceMetadata.\nThe response field type is\nInstance, if successful.", + "file": "InstanceAdminClient/CreateInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateInstance", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient.CreateInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "instancepb.CreateInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateInstanceOperation", + "client": { + "shortName": "InstanceAdminClient", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient" + }, + "method": { + "shortName": "CreateInstance", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance", + "service": { + "shortName": "InstanceAdmin", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_InstanceAdmin_CreateInstanceConfig_sync", + "title": "spanner CreateInstanceConfig Sample", + "description": "CreateInstanceConfig creates an instance config and begins preparing it to be used. The\nreturned [long-running operation][google.longrunning.Operation]\ncan be used to track the progress of preparing the new\ninstance config. The instance config name is assigned by the caller. If the\nnamed instance config already exists, CreateInstanceConfig returns\nALREADY_EXISTS.\n\nImmediately after the request returns: \n\n\tThe instance config is readable via the API, with all requested\n\tattributes. The instance config’s\n\treconciling\n\tfield is set to true. Its state is CREATING.\n\nWhile the operation is pending: \n\n\tCancelling the operation renders the instance config immediately\n\tunreadable via the API.\n\n\tExcept for deleting the creating resource, all other attempts to modify\n\tthe instance config are rejected.\n\nUpon completion of the returned operation: \n\n\tInstances can be created using the instance configuration.\n\n\tThe instance config’s\n\treconciling\n\tfield becomes false. Its state becomes READY.\n\nThe returned [long-running operation][google.longrunning.Operation] will\nhave a name of the format\n/operations/ and can be used to track\ncreation of the instance config. The\nmetadata field type is\nCreateInstanceConfigMetadata.\nThe response field type is\nInstanceConfig, if\nsuccessful.\n\nAuthorization requires spanner.instanceConfigs.create permission on\nthe resource\nparent.", + "file": "InstanceAdminClient/CreateInstanceConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateInstanceConfig", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient.CreateInstanceConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "instancepb.CreateInstanceConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateInstanceConfigOperation", + "client": { + "shortName": "InstanceAdminClient", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient" + }, + "method": { + "shortName": "CreateInstanceConfig", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig", + "service": { + "shortName": "InstanceAdmin", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_InstanceAdmin_DeleteInstance_sync", + "title": "spanner DeleteInstance Sample", + "description": "DeleteInstance deletes an instance.\n\nImmediately upon completion of the request: \n\n\tBilling ceases for all of the instance’s reserved resources.\n\nSoon afterward: \n\n\tThe instance and all of its databases immediately and\n\tirrevocably disappear from the API. All data in the databases\n\tis permanently deleted.", + "file": "InstanceAdminClient/DeleteInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteInstance", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient.DeleteInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "instancepb.DeleteInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "InstanceAdminClient", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient" + }, + "method": { + "shortName": "DeleteInstance", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstance", + "service": { + "shortName": "InstanceAdmin", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_InstanceAdmin_DeleteInstanceConfig_sync", + "title": "spanner DeleteInstanceConfig Sample", + "description": "DeleteInstanceConfig deletes the instance config. Deletion is only allowed when no\ninstances are using the configuration. If any instances are using\nthe config, returns FAILED_PRECONDITION.\n\nOnly user managed configurations can be deleted.\n\nAuthorization requires spanner.instanceConfigs.delete permission on\nthe resource [name][google.spanner.admin.instance.v1.InstanceConfig.name (at http: //google.spanner.admin.instance.v1.InstanceConfig.name)].", + "file": "InstanceAdminClient/DeleteInstanceConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteInstanceConfig", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient.DeleteInstanceConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "instancepb.DeleteInstanceConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "InstanceAdminClient", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient" + }, + "method": { + "shortName": "DeleteInstanceConfig", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstanceConfig", + "service": { + "shortName": "InstanceAdmin", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_InstanceAdmin_GetIamPolicy_sync", + "title": "spanner GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for an instance resource. Returns an empty\npolicy if an instance exists but does not have a policy set.\n\nAuthorization requires spanner.instances.getIamPolicy on\nresource.", + "file": "InstanceAdminClient/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "InstanceAdminClient", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin.GetIamPolicy", + "service": { + "shortName": "InstanceAdmin", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_InstanceAdmin_GetInstance_sync", + "title": "spanner GetInstance Sample", + "description": "GetInstance gets information about a particular instance.", + "file": "InstanceAdminClient/GetInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInstance", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient.GetInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "instancepb.GetInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "instancepb.Instance", + "client": { + "shortName": "InstanceAdminClient", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient" + }, + "method": { + "shortName": "GetInstance", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin.GetInstance", + "service": { + "shortName": "InstanceAdmin", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_InstanceAdmin_GetInstanceConfig_sync", + "title": "spanner GetInstanceConfig Sample", + "description": "GetInstanceConfig gets information about a particular instance configuration.", + "file": "InstanceAdminClient/GetInstanceConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInstanceConfig", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient.GetInstanceConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "instancepb.GetInstanceConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "instancepb.InstanceConfig", + "client": { + "shortName": "InstanceAdminClient", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient" + }, + "method": { + "shortName": "GetInstanceConfig", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceConfig", + "service": { + "shortName": "InstanceAdmin", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_InstanceAdmin_ListInstanceConfigOperations_sync", + "title": "spanner ListInstanceConfigOperations Sample", + "description": "ListInstanceConfigOperations lists the user-managed instance config [long-running\noperations][google.longrunning.Operation] in the given project. An instance\nconfig operation has a name of the form\nprojects//instanceConfigs//operations/.\nThe long-running operation\nmetadata field type\nmetadata.type_url describes the type of the metadata. Operations returned\ninclude those that have completed/failed/canceled within the last 7 days,\nand pending operations. Operations returned are ordered by\noperation.metadata.value.start_time in descending order starting\nfrom the most recently started operation.", + "file": "InstanceAdminClient/ListInstanceConfigOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListInstanceConfigOperations", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient.ListInstanceConfigOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "instancepb.ListInstanceConfigOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "InstanceAdminClient", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient" + }, + "method": { + "shortName": "ListInstanceConfigOperations", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations", + "service": { + "shortName": "InstanceAdmin", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_InstanceAdmin_ListInstanceConfigs_sync", + "title": "spanner ListInstanceConfigs Sample", + "description": "ListInstanceConfigs lists the supported instance configurations for a given project.", + "file": "InstanceAdminClient/ListInstanceConfigs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListInstanceConfigs", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient.ListInstanceConfigs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "instancepb.ListInstanceConfigsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "InstanceConfigIterator", + "client": { + "shortName": "InstanceAdminClient", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient" + }, + "method": { + "shortName": "ListInstanceConfigs", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs", + "service": { + "shortName": "InstanceAdmin", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_InstanceAdmin_ListInstances_sync", + "title": "spanner ListInstances Sample", + "description": "ListInstances lists all instances in the given project.", + "file": "InstanceAdminClient/ListInstances/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListInstances", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient.ListInstances", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "instancepb.ListInstancesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "InstanceIterator", + "client": { + "shortName": "InstanceAdminClient", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient" + }, + "method": { + "shortName": "ListInstances", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin.ListInstances", + "service": { + "shortName": "InstanceAdmin", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_InstanceAdmin_SetIamPolicy_sync", + "title": "spanner SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on an instance resource. Replaces any\nexisting policy.\n\nAuthorization requires spanner.instances.setIamPolicy on\nresource.", + "file": "InstanceAdminClient/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "InstanceAdminClient", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin.SetIamPolicy", + "service": { + "shortName": "InstanceAdmin", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_InstanceAdmin_TestIamPermissions_sync", + "title": "spanner TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that the caller has on the specified instance resource.\n\nAttempting this RPC on a non-existent Cloud Spanner instance resource will\nresult in a NOT_FOUND error if the user has spanner.instances.list\npermission on the containing Google Cloud Project. Otherwise returns an\nempty set of permissions.", + "file": "InstanceAdminClient/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "InstanceAdminClient", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin.TestIamPermissions", + "service": { + "shortName": "InstanceAdmin", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_InstanceAdmin_UpdateInstance_sync", + "title": "spanner UpdateInstance Sample", + "description": "UpdateInstance updates an instance, and begins allocating or releasing resources\nas requested. The returned [long-running\noperation][google.longrunning.Operation] can be used to track the\nprogress of updating the instance. If the named instance does not\nexist, returns NOT_FOUND.\n\nImmediately upon completion of this request: \n\n\tFor resource types for which a decrease in the instance’s allocation\n\thas been requested, billing is based on the newly-requested level.\n\nUntil completion of the returned operation: \n\n\tCancelling the operation sets its metadata’s\n\tcancel_time,\n\tand begins restoring resources to their pre-request values. The\n\toperation is guaranteed to succeed at undoing all resource changes,\n\tafter which point it terminates with a CANCELLED status.\n\n\tAll other attempts to modify the instance are rejected.\n\n\tReading the instance via the API continues to give the pre-request\n\tresource levels.\n\nUpon completion of the returned operation: \n\n\tBilling begins for all successfully-allocated resources (some types\n\tmay have lower than the requested levels).\n\n\tAll newly-reserved resources are available for serving the instance’s\n\ttables.\n\n\tThe instance’s new resource levels are readable via the API.\n\nThe returned [long-running operation][google.longrunning.Operation] will\nhave a name of the format /operations/ and\ncan be used to track the instance modification. The\nmetadata field type is\nUpdateInstanceMetadata.\nThe response field type is\nInstance, if successful.\n\nAuthorization requires spanner.instances.update permission on\nthe resource [name][google.spanner.admin.instance.v1.Instance.name (at http: //google.spanner.admin.instance.v1.Instance.name)].", + "file": "InstanceAdminClient/UpdateInstance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateInstance", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient.UpdateInstance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "instancepb.UpdateInstanceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateInstanceOperation", + "client": { + "shortName": "InstanceAdminClient", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient" + }, + "method": { + "shortName": "UpdateInstance", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance", + "service": { + "shortName": "InstanceAdmin", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_InstanceAdmin_UpdateInstanceConfig_sync", + "title": "spanner UpdateInstanceConfig Sample", + "description": "UpdateInstanceConfig updates an instance config. The returned\n[long-running operation][google.longrunning.Operation] can be used to track\nthe progress of updating the instance. If the named instance config does\nnot exist, returns NOT_FOUND.\n\nOnly user managed configurations can be updated.\n\nImmediately after the request returns: \n\n\tThe instance config’s\n\treconciling\n\tfield is set to true.\n\nWhile the operation is pending: \n\n\tCancelling the operation sets its metadata’s\n\tcancel_time.\n\tThe operation is guaranteed to succeed at undoing all changes, after\n\twhich point it terminates with a CANCELLED status.\n\n\tAll other attempts to modify the instance config are rejected.\n\n\tReading the instance config via the API continues to give the\n\tpre-request values.\n\nUpon completion of the returned operation: \n\n\tCreating instances using the instance configuration uses the new\n\tvalues.\n\n\tThe instance config’s new values are readable via the API.\n\n\tThe instance config’s\n\treconciling\n\tfield becomes false.\n\nThe returned [long-running operation][google.longrunning.Operation] will\nhave a name of the format\n/operations/ and can be used to track\nthe instance config modification. The\nmetadata field type is\nUpdateInstanceConfigMetadata.\nThe response field type is\nInstanceConfig, if\nsuccessful.\n\nAuthorization requires spanner.instanceConfigs.update permission on\nthe resource [name][google.spanner.admin.instance.v1.InstanceConfig.name (at http: //google.spanner.admin.instance.v1.InstanceConfig.name)].", + "file": "InstanceAdminClient/UpdateInstanceConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateInstanceConfig", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient.UpdateInstanceConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "instancepb.UpdateInstanceConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateInstanceConfigOperation", + "client": { + "shortName": "InstanceAdminClient", + "fullName": "google.spanner.admin.instance.v1.InstanceAdminClient" + }, + "method": { + "shortName": "UpdateInstanceConfig", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig", + "service": { + "shortName": "InstanceAdmin", + "fullName": "google.spanner.admin.instance.v1.InstanceAdmin" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/spanner/apiv1/Client/BatchCreateSessions/main.go b/internal/generated/snippets/spanner/apiv1/Client/BatchCreateSessions/main.go index ef93563fb80c..7fad08e11653 100644 --- a/internal/generated/snippets/spanner/apiv1/Client/BatchCreateSessions/main.go +++ b/internal/generated/snippets/spanner/apiv1/Client/BatchCreateSessions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" spanner "cloud.google.com/go/spanner/apiv1" - spannerpb "google.golang.org/genproto/googleapis/spanner/v1" + spannerpb "cloud.google.com/go/spanner/apiv1/spannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &spannerpb.BatchCreateSessionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/v1#BatchCreateSessionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/apiv1/spannerpb#BatchCreateSessionsRequest. } resp, err := c.BatchCreateSessions(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/apiv1/Client/BeginTransaction/main.go b/internal/generated/snippets/spanner/apiv1/Client/BeginTransaction/main.go index 6bafee32ac83..400d628b8b49 100644 --- a/internal/generated/snippets/spanner/apiv1/Client/BeginTransaction/main.go +++ b/internal/generated/snippets/spanner/apiv1/Client/BeginTransaction/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" spanner "cloud.google.com/go/spanner/apiv1" - spannerpb "google.golang.org/genproto/googleapis/spanner/v1" + spannerpb "cloud.google.com/go/spanner/apiv1/spannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &spannerpb.BeginTransactionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/v1#BeginTransactionRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/apiv1/spannerpb#BeginTransactionRequest. } resp, err := c.BeginTransaction(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/apiv1/Client/Commit/main.go b/internal/generated/snippets/spanner/apiv1/Client/Commit/main.go index b73db218d0f9..284a4668e145 100644 --- a/internal/generated/snippets/spanner/apiv1/Client/Commit/main.go +++ b/internal/generated/snippets/spanner/apiv1/Client/Commit/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" spanner "cloud.google.com/go/spanner/apiv1" - spannerpb "google.golang.org/genproto/googleapis/spanner/v1" + spannerpb "cloud.google.com/go/spanner/apiv1/spannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &spannerpb.CommitRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/v1#CommitRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/apiv1/spannerpb#CommitRequest. } resp, err := c.Commit(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/apiv1/Client/CreateSession/main.go b/internal/generated/snippets/spanner/apiv1/Client/CreateSession/main.go index 109fbd867ab3..7479de75515f 100644 --- a/internal/generated/snippets/spanner/apiv1/Client/CreateSession/main.go +++ b/internal/generated/snippets/spanner/apiv1/Client/CreateSession/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" spanner "cloud.google.com/go/spanner/apiv1" - spannerpb "google.golang.org/genproto/googleapis/spanner/v1" + spannerpb "cloud.google.com/go/spanner/apiv1/spannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &spannerpb.CreateSessionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/v1#CreateSessionRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/apiv1/spannerpb#CreateSessionRequest. } resp, err := c.CreateSession(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/apiv1/Client/DeleteSession/main.go b/internal/generated/snippets/spanner/apiv1/Client/DeleteSession/main.go index e4b341937b51..56ab7b99317e 100644 --- a/internal/generated/snippets/spanner/apiv1/Client/DeleteSession/main.go +++ b/internal/generated/snippets/spanner/apiv1/Client/DeleteSession/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" spanner "cloud.google.com/go/spanner/apiv1" - spannerpb "google.golang.org/genproto/googleapis/spanner/v1" + spannerpb "cloud.google.com/go/spanner/apiv1/spannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &spannerpb.DeleteSessionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/v1#DeleteSessionRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/apiv1/spannerpb#DeleteSessionRequest. } err = c.DeleteSession(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/apiv1/Client/ExecuteBatchDml/main.go b/internal/generated/snippets/spanner/apiv1/Client/ExecuteBatchDml/main.go index 3b62fc1faf82..3869c877c05a 100644 --- a/internal/generated/snippets/spanner/apiv1/Client/ExecuteBatchDml/main.go +++ b/internal/generated/snippets/spanner/apiv1/Client/ExecuteBatchDml/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" spanner "cloud.google.com/go/spanner/apiv1" - spannerpb "google.golang.org/genproto/googleapis/spanner/v1" + spannerpb "cloud.google.com/go/spanner/apiv1/spannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &spannerpb.ExecuteBatchDmlRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/v1#ExecuteBatchDmlRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/apiv1/spannerpb#ExecuteBatchDmlRequest. } resp, err := c.ExecuteBatchDml(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/apiv1/Client/ExecuteSql/main.go b/internal/generated/snippets/spanner/apiv1/Client/ExecuteSql/main.go index 95d110a52dc1..2bfb7824808a 100644 --- a/internal/generated/snippets/spanner/apiv1/Client/ExecuteSql/main.go +++ b/internal/generated/snippets/spanner/apiv1/Client/ExecuteSql/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" spanner "cloud.google.com/go/spanner/apiv1" - spannerpb "google.golang.org/genproto/googleapis/spanner/v1" + spannerpb "cloud.google.com/go/spanner/apiv1/spannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &spannerpb.ExecuteSqlRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/v1#ExecuteSqlRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/apiv1/spannerpb#ExecuteSqlRequest. } resp, err := c.ExecuteSql(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/apiv1/Client/GetSession/main.go b/internal/generated/snippets/spanner/apiv1/Client/GetSession/main.go index 3cdb223403f7..968350d12eae 100644 --- a/internal/generated/snippets/spanner/apiv1/Client/GetSession/main.go +++ b/internal/generated/snippets/spanner/apiv1/Client/GetSession/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" spanner "cloud.google.com/go/spanner/apiv1" - spannerpb "google.golang.org/genproto/googleapis/spanner/v1" + spannerpb "cloud.google.com/go/spanner/apiv1/spannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &spannerpb.GetSessionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/v1#GetSessionRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/apiv1/spannerpb#GetSessionRequest. } resp, err := c.GetSession(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/apiv1/Client/ListSessions/main.go b/internal/generated/snippets/spanner/apiv1/Client/ListSessions/main.go index 47363bbc803d..203b261b7485 100644 --- a/internal/generated/snippets/spanner/apiv1/Client/ListSessions/main.go +++ b/internal/generated/snippets/spanner/apiv1/Client/ListSessions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" spanner "cloud.google.com/go/spanner/apiv1" + spannerpb "cloud.google.com/go/spanner/apiv1/spannerpb" "google.golang.org/api/iterator" - spannerpb "google.golang.org/genproto/googleapis/spanner/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &spannerpb.ListSessionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/v1#ListSessionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/apiv1/spannerpb#ListSessionsRequest. } it := c.ListSessions(ctx, req) for { diff --git a/internal/generated/snippets/spanner/apiv1/Client/PartitionQuery/main.go b/internal/generated/snippets/spanner/apiv1/Client/PartitionQuery/main.go index 92ef392e2e6d..2d6268e7da53 100644 --- a/internal/generated/snippets/spanner/apiv1/Client/PartitionQuery/main.go +++ b/internal/generated/snippets/spanner/apiv1/Client/PartitionQuery/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" spanner "cloud.google.com/go/spanner/apiv1" - spannerpb "google.golang.org/genproto/googleapis/spanner/v1" + spannerpb "cloud.google.com/go/spanner/apiv1/spannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &spannerpb.PartitionQueryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/v1#PartitionQueryRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/apiv1/spannerpb#PartitionQueryRequest. } resp, err := c.PartitionQuery(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/apiv1/Client/PartitionRead/main.go b/internal/generated/snippets/spanner/apiv1/Client/PartitionRead/main.go index 5dea1877140d..7619de2a7329 100644 --- a/internal/generated/snippets/spanner/apiv1/Client/PartitionRead/main.go +++ b/internal/generated/snippets/spanner/apiv1/Client/PartitionRead/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" spanner "cloud.google.com/go/spanner/apiv1" - spannerpb "google.golang.org/genproto/googleapis/spanner/v1" + spannerpb "cloud.google.com/go/spanner/apiv1/spannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &spannerpb.PartitionReadRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/v1#PartitionReadRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/apiv1/spannerpb#PartitionReadRequest. } resp, err := c.PartitionRead(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/apiv1/Client/Read/main.go b/internal/generated/snippets/spanner/apiv1/Client/Read/main.go index 3a439431332a..91c8e61174c9 100644 --- a/internal/generated/snippets/spanner/apiv1/Client/Read/main.go +++ b/internal/generated/snippets/spanner/apiv1/Client/Read/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" spanner "cloud.google.com/go/spanner/apiv1" - spannerpb "google.golang.org/genproto/googleapis/spanner/v1" + spannerpb "cloud.google.com/go/spanner/apiv1/spannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &spannerpb.ReadRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/v1#ReadRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/apiv1/spannerpb#ReadRequest. } resp, err := c.Read(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/apiv1/Client/Rollback/main.go b/internal/generated/snippets/spanner/apiv1/Client/Rollback/main.go index c1c8949a7587..84d5bf9e2ce7 100644 --- a/internal/generated/snippets/spanner/apiv1/Client/Rollback/main.go +++ b/internal/generated/snippets/spanner/apiv1/Client/Rollback/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" spanner "cloud.google.com/go/spanner/apiv1" - spannerpb "google.golang.org/genproto/googleapis/spanner/v1" + spannerpb "cloud.google.com/go/spanner/apiv1/spannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := spanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &spannerpb.RollbackRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/spanner/v1#RollbackRequest. + // See https://pkg.go.dev/cloud.google.com/go/spanner/apiv1/spannerpb#RollbackRequest. } err = c.Rollback(ctx, req) if err != nil { diff --git a/internal/generated/snippets/spanner/apiv1/snippet_metadata.google.spanner.v1.json b/internal/generated/snippets/spanner/apiv1/snippet_metadata.google.spanner.v1.json new file mode 100644 index 000000000000..ae32865f6065 --- /dev/null +++ b/internal/generated/snippets/spanner/apiv1/snippet_metadata.google.spanner.v1.json @@ -0,0 +1,701 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/spanner/apiv1", + "version": "1.42.0", + "language": "GO", + "apis": [ + { + "id": "google.spanner.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "spanner_v1_generated_Spanner_BatchCreateSessions_sync", + "title": "spanner BatchCreateSessions Sample", + "description": "BatchCreateSessions creates multiple new sessions.\n\nThis API can be used to initialize a session cache on the clients.\nSee https: //goo.gl/TgSFN2 (at https: //goo.gl/TgSFN2) for best practices on session cache management.", + "file": "Client/BatchCreateSessions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchCreateSessions", + "fullName": "google.spanner.v1.Client.BatchCreateSessions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "spannerpb.BatchCreateSessionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "spannerpb.BatchCreateSessionsResponse", + "client": { + "shortName": "Client", + "fullName": "google.spanner.v1.Client" + }, + "method": { + "shortName": "BatchCreateSessions", + "fullName": "google.spanner.v1.Spanner.BatchCreateSessions", + "service": { + "shortName": "Spanner", + "fullName": "google.spanner.v1.Spanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_Spanner_BeginTransaction_sync", + "title": "spanner BeginTransaction Sample", + "description": "BeginTransaction begins a new transaction. This step can often be skipped: \nRead, ExecuteSql and\nCommit can begin a new transaction as a\nside-effect.", + "file": "Client/BeginTransaction/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BeginTransaction", + "fullName": "google.spanner.v1.Client.BeginTransaction", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "spannerpb.BeginTransactionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "spannerpb.Transaction", + "client": { + "shortName": "Client", + "fullName": "google.spanner.v1.Client" + }, + "method": { + "shortName": "BeginTransaction", + "fullName": "google.spanner.v1.Spanner.BeginTransaction", + "service": { + "shortName": "Spanner", + "fullName": "google.spanner.v1.Spanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_Spanner_Commit_sync", + "title": "spanner Commit Sample", + "description": "Commit commits a transaction. The request includes the mutations to be\napplied to rows in the database.\n\nCommit might return an ABORTED error. This can occur at any time;\ncommonly, the cause is conflicts with concurrent\ntransactions. However, it can also happen for a variety of other\nreasons. If Commit returns ABORTED, the caller should re-attempt\nthe transaction from the beginning, re-using the same session.\n\nOn very rare occasions, Commit might return UNKNOWN. This can happen,\nfor example, if the client job experiences a 1+ hour networking failure.\nAt that point, Cloud Spanner has lost track of the transaction outcome and\nwe recommend that you perform another read from the database to see the\nstate of things as they are now.", + "file": "Client/Commit/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Commit", + "fullName": "google.spanner.v1.Client.Commit", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "spannerpb.CommitRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "spannerpb.CommitResponse", + "client": { + "shortName": "Client", + "fullName": "google.spanner.v1.Client" + }, + "method": { + "shortName": "Commit", + "fullName": "google.spanner.v1.Spanner.Commit", + "service": { + "shortName": "Spanner", + "fullName": "google.spanner.v1.Spanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_Spanner_CreateSession_sync", + "title": "spanner CreateSession Sample", + "description": "CreateSession creates a new session. A session can be used to perform\ntransactions that read and/or modify data in a Cloud Spanner database.\nSessions are meant to be reused for many consecutive\ntransactions.\n\nSessions can only execute one transaction at a time. To execute\nmultiple concurrent read-write/write-only transactions, create\nmultiple sessions. Note that standalone reads and queries use a\ntransaction internally, and count toward the one transaction\nlimit.\n\nActive sessions use additional server resources, so it is a good idea to\ndelete idle and unneeded sessions.\nAside from explicit deletes, Cloud Spanner may delete sessions for which no\noperations are sent for more than an hour. If a session is deleted,\nrequests to it return NOT_FOUND.\n\nIdle sessions can be kept alive by sending a trivial SQL query\nperiodically, e.g., \"SELECT 1\".", + "file": "Client/CreateSession/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSession", + "fullName": "google.spanner.v1.Client.CreateSession", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "spannerpb.CreateSessionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "spannerpb.Session", + "client": { + "shortName": "Client", + "fullName": "google.spanner.v1.Client" + }, + "method": { + "shortName": "CreateSession", + "fullName": "google.spanner.v1.Spanner.CreateSession", + "service": { + "shortName": "Spanner", + "fullName": "google.spanner.v1.Spanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_Spanner_DeleteSession_sync", + "title": "spanner DeleteSession Sample", + "description": "DeleteSession ends a session, releasing server resources associated with it. This will\nasynchronously trigger cancellation of any operations that are running with\nthis session.", + "file": "Client/DeleteSession/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteSession", + "fullName": "google.spanner.v1.Client.DeleteSession", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "spannerpb.DeleteSessionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.spanner.v1.Client" + }, + "method": { + "shortName": "DeleteSession", + "fullName": "google.spanner.v1.Spanner.DeleteSession", + "service": { + "shortName": "Spanner", + "fullName": "google.spanner.v1.Spanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_Spanner_ExecuteBatchDml_sync", + "title": "spanner ExecuteBatchDml Sample", + "description": "ExecuteBatchDml executes a batch of SQL DML statements. This method allows many statements\nto be run with lower latency than submitting them sequentially with\nExecuteSql.\n\nStatements are executed in sequential order. A request can succeed even if\na statement fails. The ExecuteBatchDmlResponse.status field in the\nresponse provides information about the statement that failed. Clients must\ninspect this field to determine whether an error occurred.\n\nExecution stops after the first failed statement; the remaining statements\nare not executed.", + "file": "Client/ExecuteBatchDml/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ExecuteBatchDml", + "fullName": "google.spanner.v1.Client.ExecuteBatchDml", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "spannerpb.ExecuteBatchDmlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "spannerpb.ExecuteBatchDmlResponse", + "client": { + "shortName": "Client", + "fullName": "google.spanner.v1.Client" + }, + "method": { + "shortName": "ExecuteBatchDml", + "fullName": "google.spanner.v1.Spanner.ExecuteBatchDml", + "service": { + "shortName": "Spanner", + "fullName": "google.spanner.v1.Spanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_Spanner_ExecuteSql_sync", + "title": "spanner ExecuteSql Sample", + "description": "ExecuteSql executes an SQL statement, returning all results in a single reply. This\nmethod cannot be used to return a result set larger than 10 MiB;\nif the query yields more data than that, the query fails with\na FAILED_PRECONDITION error.\n\nOperations inside read-write transactions might return ABORTED. If\nthis occurs, the application should restart the transaction from\nthe beginning. See Transaction for more details.\n\nLarger result sets can be fetched in streaming fashion by calling\nExecuteStreamingSql instead.", + "file": "Client/ExecuteSql/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ExecuteSql", + "fullName": "google.spanner.v1.Client.ExecuteSql", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "spannerpb.ExecuteSqlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "spannerpb.ResultSet", + "client": { + "shortName": "Client", + "fullName": "google.spanner.v1.Client" + }, + "method": { + "shortName": "ExecuteSql", + "fullName": "google.spanner.v1.Spanner.ExecuteSql", + "service": { + "shortName": "Spanner", + "fullName": "google.spanner.v1.Spanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_Spanner_ExecuteStreamingSql_sync", + "title": "spanner ExecuteStreamingSql Sample", + "description": "ExecuteStreamingSql like ExecuteSql, except returns the result\nset as a stream. Unlike ExecuteSql, there\nis no limit on the size of the returned result set. However, no\nindividual row in the result set can exceed 100 MiB, and no\ncolumn value can exceed 10 MiB.", + "file": "Client/ExecuteStreamingSql/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ExecuteStreamingSql", + "fullName": "google.spanner.v1.Client.ExecuteStreamingSql", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "spannerpb.ExecuteSqlRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.spanner.v1.Client" + }, + "method": { + "shortName": "ExecuteStreamingSql", + "fullName": "google.spanner.v1.Spanner.ExecuteStreamingSql", + "service": { + "shortName": "Spanner", + "fullName": "google.spanner.v1.Spanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 1, + "end": -1, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_Spanner_GetSession_sync", + "title": "spanner GetSession Sample", + "description": "GetSession gets a session. Returns NOT_FOUND if the session does not exist.\nThis is mainly useful for determining whether a session is still\nalive.", + "file": "Client/GetSession/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSession", + "fullName": "google.spanner.v1.Client.GetSession", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "spannerpb.GetSessionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "spannerpb.Session", + "client": { + "shortName": "Client", + "fullName": "google.spanner.v1.Client" + }, + "method": { + "shortName": "GetSession", + "fullName": "google.spanner.v1.Spanner.GetSession", + "service": { + "shortName": "Spanner", + "fullName": "google.spanner.v1.Spanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_Spanner_ListSessions_sync", + "title": "spanner ListSessions Sample", + "description": "ListSessions lists all sessions in a given database.", + "file": "Client/ListSessions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListSessions", + "fullName": "google.spanner.v1.Client.ListSessions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "spannerpb.ListSessionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SessionIterator", + "client": { + "shortName": "Client", + "fullName": "google.spanner.v1.Client" + }, + "method": { + "shortName": "ListSessions", + "fullName": "google.spanner.v1.Spanner.ListSessions", + "service": { + "shortName": "Spanner", + "fullName": "google.spanner.v1.Spanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_Spanner_PartitionQuery_sync", + "title": "spanner PartitionQuery Sample", + "description": "PartitionQuery creates a set of partition tokens that can be used to execute a query\noperation in parallel. Each of the returned partition tokens can be used\nby ExecuteStreamingSql to specify a subset\nof the query result to read. The same session and read-only transaction\nmust be used by the PartitionQueryRequest used to create the\npartition tokens and the ExecuteSqlRequests that use the partition tokens.\n\nPartition tokens become invalid when the session used to create them\nis deleted, is idle for too long, begins a new transaction, or becomes too\nold. When any of these happen, it is not possible to resume the query, and\nthe whole operation must be restarted from the beginning.", + "file": "Client/PartitionQuery/main.go", + "language": "GO", + "clientMethod": { + "shortName": "PartitionQuery", + "fullName": "google.spanner.v1.Client.PartitionQuery", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "spannerpb.PartitionQueryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "spannerpb.PartitionResponse", + "client": { + "shortName": "Client", + "fullName": "google.spanner.v1.Client" + }, + "method": { + "shortName": "PartitionQuery", + "fullName": "google.spanner.v1.Spanner.PartitionQuery", + "service": { + "shortName": "Spanner", + "fullName": "google.spanner.v1.Spanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_Spanner_PartitionRead_sync", + "title": "spanner PartitionRead Sample", + "description": "PartitionRead creates a set of partition tokens that can be used to execute a read\noperation in parallel. Each of the returned partition tokens can be used\nby StreamingRead to specify a subset of the read\nresult to read. The same session and read-only transaction must be used by\nthe PartitionReadRequest used to create the partition tokens and the\nReadRequests that use the partition tokens. There are no ordering\nguarantees on rows returned among the returned partition tokens, or even\nwithin each individual StreamingRead call issued with a partition_token.\n\nPartition tokens become invalid when the session used to create them\nis deleted, is idle for too long, begins a new transaction, or becomes too\nold. When any of these happen, it is not possible to resume the read, and\nthe whole operation must be restarted from the beginning.", + "file": "Client/PartitionRead/main.go", + "language": "GO", + "clientMethod": { + "shortName": "PartitionRead", + "fullName": "google.spanner.v1.Client.PartitionRead", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "spannerpb.PartitionReadRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "spannerpb.PartitionResponse", + "client": { + "shortName": "Client", + "fullName": "google.spanner.v1.Client" + }, + "method": { + "shortName": "PartitionRead", + "fullName": "google.spanner.v1.Spanner.PartitionRead", + "service": { + "shortName": "Spanner", + "fullName": "google.spanner.v1.Spanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_Spanner_Read_sync", + "title": "spanner Read Sample", + "description": "Read reads rows from the database using key lookups and scans, as a\nsimple key/value style alternative to\nExecuteSql. This method cannot be used to\nreturn a result set larger than 10 MiB; if the read matches more\ndata than that, the read fails with a FAILED_PRECONDITION\nerror.\n\nReads inside read-write transactions might return ABORTED. If\nthis occurs, the application should restart the transaction from\nthe beginning. See Transaction for more details.\n\nLarger result sets can be yielded in streaming fashion by calling\nStreamingRead instead.", + "file": "Client/Read/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Read", + "fullName": "google.spanner.v1.Client.Read", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "spannerpb.ReadRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "spannerpb.ResultSet", + "client": { + "shortName": "Client", + "fullName": "google.spanner.v1.Client" + }, + "method": { + "shortName": "Read", + "fullName": "google.spanner.v1.Spanner.Read", + "service": { + "shortName": "Spanner", + "fullName": "google.spanner.v1.Spanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_Spanner_Rollback_sync", + "title": "spanner Rollback Sample", + "description": "Rollback rolls back a transaction, releasing any locks it holds. It is a good\nidea to call this for any transaction that includes one or more\nRead or ExecuteSql requests and\nultimately decides not to commit.\n\nRollback returns OK if it successfully aborts the transaction, the\ntransaction was already aborted, or the transaction is not\nfound. Rollback never returns ABORTED.", + "file": "Client/Rollback/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Rollback", + "fullName": "google.spanner.v1.Client.Rollback", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "spannerpb.RollbackRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.spanner.v1.Client" + }, + "method": { + "shortName": "Rollback", + "fullName": "google.spanner.v1.Spanner.Rollback", + "service": { + "shortName": "Spanner", + "fullName": "google.spanner.v1.Spanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "spanner_v1_generated_Spanner_StreamingRead_sync", + "title": "spanner StreamingRead Sample", + "description": "StreamingRead like Read, except returns the result set as a\nstream. Unlike Read, there is no limit on the\nsize of the returned result set. However, no individual row in\nthe result set can exceed 100 MiB, and no column value can exceed\n10 MiB.", + "file": "Client/StreamingRead/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StreamingRead", + "fullName": "google.spanner.v1.Client.StreamingRead", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "spannerpb.ReadRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.spanner.v1.Client" + }, + "method": { + "shortName": "StreamingRead", + "fullName": "google.spanner.v1.Spanner.StreamingRead", + "service": { + "shortName": "Spanner", + "fullName": "google.spanner.v1.Spanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 1, + "end": -1, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/speech/apiv1/AdaptationClient/CreateCustomClass/main.go b/internal/generated/snippets/speech/apiv1/AdaptationClient/CreateCustomClass/main.go new file mode 100644 index 000000000000..122e48f356df --- /dev/null +++ b/internal/generated/snippets/speech/apiv1/AdaptationClient/CreateCustomClass/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v1_generated_Adaptation_CreateCustomClass_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv1" + speechpb "cloud.google.com/go/speech/apiv1/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewAdaptationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.CreateCustomClassRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1/speechpb#CreateCustomClassRequest. + } + resp, err := c.CreateCustomClass(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v1_generated_Adaptation_CreateCustomClass_sync] diff --git a/internal/generated/snippets/speech/apiv1/AdaptationClient/CreatePhraseSet/main.go b/internal/generated/snippets/speech/apiv1/AdaptationClient/CreatePhraseSet/main.go new file mode 100644 index 000000000000..422cf0a6cd5f --- /dev/null +++ b/internal/generated/snippets/speech/apiv1/AdaptationClient/CreatePhraseSet/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v1_generated_Adaptation_CreatePhraseSet_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv1" + speechpb "cloud.google.com/go/speech/apiv1/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewAdaptationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.CreatePhraseSetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1/speechpb#CreatePhraseSetRequest. + } + resp, err := c.CreatePhraseSet(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v1_generated_Adaptation_CreatePhraseSet_sync] diff --git a/internal/generated/snippets/speech/apiv1/AdaptationClient/DeleteCustomClass/main.go b/internal/generated/snippets/speech/apiv1/AdaptationClient/DeleteCustomClass/main.go new file mode 100644 index 000000000000..9597e106d4c1 --- /dev/null +++ b/internal/generated/snippets/speech/apiv1/AdaptationClient/DeleteCustomClass/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v1_generated_Adaptation_DeleteCustomClass_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv1" + speechpb "cloud.google.com/go/speech/apiv1/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewAdaptationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.DeleteCustomClassRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1/speechpb#DeleteCustomClassRequest. + } + err = c.DeleteCustomClass(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END speech_v1_generated_Adaptation_DeleteCustomClass_sync] diff --git a/internal/generated/snippets/speech/apiv1/AdaptationClient/DeletePhraseSet/main.go b/internal/generated/snippets/speech/apiv1/AdaptationClient/DeletePhraseSet/main.go new file mode 100644 index 000000000000..7af2c2b8d1b3 --- /dev/null +++ b/internal/generated/snippets/speech/apiv1/AdaptationClient/DeletePhraseSet/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v1_generated_Adaptation_DeletePhraseSet_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv1" + speechpb "cloud.google.com/go/speech/apiv1/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewAdaptationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.DeletePhraseSetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1/speechpb#DeletePhraseSetRequest. + } + err = c.DeletePhraseSet(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END speech_v1_generated_Adaptation_DeletePhraseSet_sync] diff --git a/internal/generated/snippets/speech/apiv1/AdaptationClient/GetCustomClass/main.go b/internal/generated/snippets/speech/apiv1/AdaptationClient/GetCustomClass/main.go new file mode 100644 index 000000000000..d0be06b3ff09 --- /dev/null +++ b/internal/generated/snippets/speech/apiv1/AdaptationClient/GetCustomClass/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v1_generated_Adaptation_GetCustomClass_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv1" + speechpb "cloud.google.com/go/speech/apiv1/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewAdaptationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.GetCustomClassRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1/speechpb#GetCustomClassRequest. + } + resp, err := c.GetCustomClass(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v1_generated_Adaptation_GetCustomClass_sync] diff --git a/internal/generated/snippets/speech/apiv1/AdaptationClient/GetOperation/main.go b/internal/generated/snippets/speech/apiv1/AdaptationClient/GetOperation/main.go new file mode 100644 index 000000000000..cfa5c3529dbc --- /dev/null +++ b/internal/generated/snippets/speech/apiv1/AdaptationClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v1_generated_Adaptation_GetOperation_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewAdaptationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v1_generated_Adaptation_GetOperation_sync] diff --git a/internal/generated/snippets/speech/apiv1/AdaptationClient/GetPhraseSet/main.go b/internal/generated/snippets/speech/apiv1/AdaptationClient/GetPhraseSet/main.go new file mode 100644 index 000000000000..de6d9a1ee290 --- /dev/null +++ b/internal/generated/snippets/speech/apiv1/AdaptationClient/GetPhraseSet/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v1_generated_Adaptation_GetPhraseSet_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv1" + speechpb "cloud.google.com/go/speech/apiv1/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewAdaptationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.GetPhraseSetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1/speechpb#GetPhraseSetRequest. + } + resp, err := c.GetPhraseSet(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v1_generated_Adaptation_GetPhraseSet_sync] diff --git a/internal/generated/snippets/speech/apiv1/AdaptationClient/ListCustomClasses/main.go b/internal/generated/snippets/speech/apiv1/AdaptationClient/ListCustomClasses/main.go new file mode 100644 index 000000000000..65583fd80f9f --- /dev/null +++ b/internal/generated/snippets/speech/apiv1/AdaptationClient/ListCustomClasses/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v1_generated_Adaptation_ListCustomClasses_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv1" + speechpb "cloud.google.com/go/speech/apiv1/speechpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewAdaptationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.ListCustomClassesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1/speechpb#ListCustomClassesRequest. + } + it := c.ListCustomClasses(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END speech_v1_generated_Adaptation_ListCustomClasses_sync] diff --git a/internal/generated/snippets/speech/apiv1/AdaptationClient/ListOperations/main.go b/internal/generated/snippets/speech/apiv1/AdaptationClient/ListOperations/main.go new file mode 100644 index 000000000000..a53f92dba326 --- /dev/null +++ b/internal/generated/snippets/speech/apiv1/AdaptationClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v1_generated_Adaptation_ListOperations_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewAdaptationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END speech_v1_generated_Adaptation_ListOperations_sync] diff --git a/internal/generated/snippets/speech/apiv1/AdaptationClient/ListPhraseSet/main.go b/internal/generated/snippets/speech/apiv1/AdaptationClient/ListPhraseSet/main.go new file mode 100644 index 000000000000..139f18a426f6 --- /dev/null +++ b/internal/generated/snippets/speech/apiv1/AdaptationClient/ListPhraseSet/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v1_generated_Adaptation_ListPhraseSet_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv1" + speechpb "cloud.google.com/go/speech/apiv1/speechpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewAdaptationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.ListPhraseSetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1/speechpb#ListPhraseSetRequest. + } + it := c.ListPhraseSet(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END speech_v1_generated_Adaptation_ListPhraseSet_sync] diff --git a/internal/generated/snippets/speech/apiv1/AdaptationClient/UpdateCustomClass/main.go b/internal/generated/snippets/speech/apiv1/AdaptationClient/UpdateCustomClass/main.go new file mode 100644 index 000000000000..7c3b85657474 --- /dev/null +++ b/internal/generated/snippets/speech/apiv1/AdaptationClient/UpdateCustomClass/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v1_generated_Adaptation_UpdateCustomClass_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv1" + speechpb "cloud.google.com/go/speech/apiv1/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewAdaptationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.UpdateCustomClassRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1/speechpb#UpdateCustomClassRequest. + } + resp, err := c.UpdateCustomClass(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v1_generated_Adaptation_UpdateCustomClass_sync] diff --git a/internal/generated/snippets/speech/apiv1/AdaptationClient/UpdatePhraseSet/main.go b/internal/generated/snippets/speech/apiv1/AdaptationClient/UpdatePhraseSet/main.go new file mode 100644 index 000000000000..c38d46b676f1 --- /dev/null +++ b/internal/generated/snippets/speech/apiv1/AdaptationClient/UpdatePhraseSet/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v1_generated_Adaptation_UpdatePhraseSet_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv1" + speechpb "cloud.google.com/go/speech/apiv1/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewAdaptationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.UpdatePhraseSetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1/speechpb#UpdatePhraseSetRequest. + } + resp, err := c.UpdatePhraseSet(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v1_generated_Adaptation_UpdatePhraseSet_sync] diff --git a/internal/generated/snippets/speech/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/speech/apiv1/Client/GetOperation/main.go new file mode 100644 index 000000000000..024f7dee076e --- /dev/null +++ b/internal/generated/snippets/speech/apiv1/Client/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v1_generated_Speech_GetOperation_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v1_generated_Speech_GetOperation_sync] diff --git a/internal/generated/snippets/speech/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/speech/apiv1/Client/ListOperations/main.go new file mode 100644 index 000000000000..89c81f27875b --- /dev/null +++ b/internal/generated/snippets/speech/apiv1/Client/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v1_generated_Speech_ListOperations_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END speech_v1_generated_Speech_ListOperations_sync] diff --git a/internal/generated/snippets/speech/apiv1/Client/LongRunningRecognize/main.go b/internal/generated/snippets/speech/apiv1/Client/LongRunningRecognize/main.go index 23b546485b5d..f3c80300fd0e 100644 --- a/internal/generated/snippets/speech/apiv1/Client/LongRunningRecognize/main.go +++ b/internal/generated/snippets/speech/apiv1/Client/LongRunningRecognize/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" speech "cloud.google.com/go/speech/apiv1" - speechpb "google.golang.org/genproto/googleapis/cloud/speech/v1" + speechpb "cloud.google.com/go/speech/apiv1/speechpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &speechpb.LongRunningRecognizeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/speech/v1#LongRunningRecognizeRequest. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1/speechpb#LongRunningRecognizeRequest. } op, err := c.LongRunningRecognize(ctx, req) if err != nil { diff --git a/internal/generated/snippets/speech/apiv1/Client/Recognize/main.go b/internal/generated/snippets/speech/apiv1/Client/Recognize/main.go index 209435ef8f56..a37e940ce72b 100644 --- a/internal/generated/snippets/speech/apiv1/Client/Recognize/main.go +++ b/internal/generated/snippets/speech/apiv1/Client/Recognize/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" speech "cloud.google.com/go/speech/apiv1" - speechpb "google.golang.org/genproto/googleapis/cloud/speech/v1" + speechpb "cloud.google.com/go/speech/apiv1/speechpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &speechpb.RecognizeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/speech/v1#RecognizeRequest. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1/speechpb#RecognizeRequest. } resp, err := c.Recognize(ctx, req) if err != nil { diff --git a/internal/generated/snippets/speech/apiv1/Client/StreamingRecognize/main.go b/internal/generated/snippets/speech/apiv1/Client/StreamingRecognize/main.go index 16455a4325fb..d10ca3e69031 100644 --- a/internal/generated/snippets/speech/apiv1/Client/StreamingRecognize/main.go +++ b/internal/generated/snippets/speech/apiv1/Client/StreamingRecognize/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,11 +23,16 @@ import ( "io" speech "cloud.google.com/go/speech/apiv1" - speechpb "google.golang.org/genproto/googleapis/cloud/speech/v1" + speechpb "cloud.google.com/go/speech/apiv1/speechpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/speech/apiv1/snippet_metadata.google.cloud.speech.v1.json b/internal/generated/snippets/speech/apiv1/snippet_metadata.google.cloud.speech.v1.json new file mode 100644 index 000000000000..264d0e1a4461 --- /dev/null +++ b/internal/generated/snippets/speech/apiv1/snippet_metadata.google.cloud.speech.v1.json @@ -0,0 +1,790 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/speech/apiv1", + "version": "1.12.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.speech.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "speech_v1_generated_Adaptation_CreateCustomClass_sync", + "title": "speech CreateCustomClass Sample", + "description": "CreateCustomClass create a custom class.", + "file": "AdaptationClient/CreateCustomClass/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateCustomClass", + "fullName": "google.cloud.speech.v1.AdaptationClient.CreateCustomClass", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.CreateCustomClassRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.CustomClass", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1.AdaptationClient" + }, + "method": { + "shortName": "CreateCustomClass", + "fullName": "google.cloud.speech.v1.Adaptation.CreateCustomClass", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1_generated_Adaptation_CreatePhraseSet_sync", + "title": "speech CreatePhraseSet Sample", + "description": "CreatePhraseSet create a set of phrase hints. Each item in the set can be a single word or\na multi-word phrase. The items in the PhraseSet are favored by the\nrecognition model when you send a call that includes the PhraseSet.", + "file": "AdaptationClient/CreatePhraseSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreatePhraseSet", + "fullName": "google.cloud.speech.v1.AdaptationClient.CreatePhraseSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.CreatePhraseSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.PhraseSet", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1.AdaptationClient" + }, + "method": { + "shortName": "CreatePhraseSet", + "fullName": "google.cloud.speech.v1.Adaptation.CreatePhraseSet", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1_generated_Adaptation_DeleteCustomClass_sync", + "title": "speech DeleteCustomClass Sample", + "description": "DeleteCustomClass delete a custom class.", + "file": "AdaptationClient/DeleteCustomClass/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteCustomClass", + "fullName": "google.cloud.speech.v1.AdaptationClient.DeleteCustomClass", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.DeleteCustomClassRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1.AdaptationClient" + }, + "method": { + "shortName": "DeleteCustomClass", + "fullName": "google.cloud.speech.v1.Adaptation.DeleteCustomClass", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1_generated_Adaptation_DeletePhraseSet_sync", + "title": "speech DeletePhraseSet Sample", + "description": "DeletePhraseSet delete a phrase set.", + "file": "AdaptationClient/DeletePhraseSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeletePhraseSet", + "fullName": "google.cloud.speech.v1.AdaptationClient.DeletePhraseSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.DeletePhraseSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1.AdaptationClient" + }, + "method": { + "shortName": "DeletePhraseSet", + "fullName": "google.cloud.speech.v1.Adaptation.DeletePhraseSet", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1_generated_Adaptation_GetCustomClass_sync", + "title": "speech GetCustomClass Sample", + "description": "GetCustomClass get a custom class.", + "file": "AdaptationClient/GetCustomClass/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCustomClass", + "fullName": "google.cloud.speech.v1.AdaptationClient.GetCustomClass", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.GetCustomClassRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.CustomClass", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1.AdaptationClient" + }, + "method": { + "shortName": "GetCustomClass", + "fullName": "google.cloud.speech.v1.Adaptation.GetCustomClass", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1_generated_Adaptation_GetOperation_sync", + "title": "speech GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "AdaptationClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.speech.v1.AdaptationClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1.AdaptationClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.speech.v1.Adaptation.GetOperation", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1_generated_Adaptation_GetPhraseSet_sync", + "title": "speech GetPhraseSet Sample", + "description": "GetPhraseSet get a phrase set.", + "file": "AdaptationClient/GetPhraseSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetPhraseSet", + "fullName": "google.cloud.speech.v1.AdaptationClient.GetPhraseSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.GetPhraseSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.PhraseSet", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1.AdaptationClient" + }, + "method": { + "shortName": "GetPhraseSet", + "fullName": "google.cloud.speech.v1.Adaptation.GetPhraseSet", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1_generated_Adaptation_ListCustomClasses_sync", + "title": "speech ListCustomClasses Sample", + "description": "ListCustomClasses list custom classes.", + "file": "AdaptationClient/ListCustomClasses/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCustomClasses", + "fullName": "google.cloud.speech.v1.AdaptationClient.ListCustomClasses", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.ListCustomClassesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CustomClassIterator", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1.AdaptationClient" + }, + "method": { + "shortName": "ListCustomClasses", + "fullName": "google.cloud.speech.v1.Adaptation.ListCustomClasses", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1_generated_Adaptation_ListOperations_sync", + "title": "speech ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "AdaptationClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.speech.v1.AdaptationClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1.AdaptationClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.speech.v1.Adaptation.ListOperations", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1_generated_Adaptation_ListPhraseSet_sync", + "title": "speech ListPhraseSet Sample", + "description": "ListPhraseSet list phrase sets.", + "file": "AdaptationClient/ListPhraseSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListPhraseSet", + "fullName": "google.cloud.speech.v1.AdaptationClient.ListPhraseSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.ListPhraseSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PhraseSetIterator", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1.AdaptationClient" + }, + "method": { + "shortName": "ListPhraseSet", + "fullName": "google.cloud.speech.v1.Adaptation.ListPhraseSet", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1_generated_Adaptation_UpdateCustomClass_sync", + "title": "speech UpdateCustomClass Sample", + "description": "UpdateCustomClass update a custom class.", + "file": "AdaptationClient/UpdateCustomClass/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCustomClass", + "fullName": "google.cloud.speech.v1.AdaptationClient.UpdateCustomClass", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.UpdateCustomClassRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.CustomClass", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1.AdaptationClient" + }, + "method": { + "shortName": "UpdateCustomClass", + "fullName": "google.cloud.speech.v1.Adaptation.UpdateCustomClass", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1_generated_Adaptation_UpdatePhraseSet_sync", + "title": "speech UpdatePhraseSet Sample", + "description": "UpdatePhraseSet update a phrase set.", + "file": "AdaptationClient/UpdatePhraseSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdatePhraseSet", + "fullName": "google.cloud.speech.v1.AdaptationClient.UpdatePhraseSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.UpdatePhraseSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.PhraseSet", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1.AdaptationClient" + }, + "method": { + "shortName": "UpdatePhraseSet", + "fullName": "google.cloud.speech.v1.Adaptation.UpdatePhraseSet", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1_generated_Speech_GetOperation_sync", + "title": "speech GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "Client/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.speech.v1.Client.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v1.Client" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.speech.v1.Speech.GetOperation", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v1.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1_generated_Speech_ListOperations_sync", + "title": "speech ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "Client/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.speech.v1.Client.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v1.Client" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.speech.v1.Speech.ListOperations", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v1.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1_generated_Speech_LongRunningRecognize_sync", + "title": "speech LongRunningRecognize Sample", + "description": "LongRunningRecognize performs asynchronous speech recognition: receive results via the\ngoogle.longrunning.Operations interface. Returns either an\nOperation.error or an Operation.response which contains\na LongRunningRecognizeResponse message.\nFor more information on asynchronous speech recognition, see the\nhow-to (at https: //cloud.google.com/speech-to-text/docs/async-recognize).", + "file": "Client/LongRunningRecognize/main.go", + "language": "GO", + "clientMethod": { + "shortName": "LongRunningRecognize", + "fullName": "google.cloud.speech.v1.Client.LongRunningRecognize", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.LongRunningRecognizeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LongRunningRecognizeOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v1.Client" + }, + "method": { + "shortName": "LongRunningRecognize", + "fullName": "google.cloud.speech.v1.Speech.LongRunningRecognize", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v1.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1_generated_Speech_Recognize_sync", + "title": "speech Recognize Sample", + "description": "Recognize performs synchronous speech recognition: receive results after all audio\nhas been sent and processed.", + "file": "Client/Recognize/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Recognize", + "fullName": "google.cloud.speech.v1.Client.Recognize", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.RecognizeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.RecognizeResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v1.Client" + }, + "method": { + "shortName": "Recognize", + "fullName": "google.cloud.speech.v1.Speech.Recognize", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v1.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1_generated_Speech_StreamingRecognize_sync", + "title": "speech StreamingRecognize Sample", + "description": "StreamingRecognize performs bidirectional streaming speech recognition: receive results while\nsending audio. This method is only available via the gRPC API (not REST).\n\nThis method is not supported for the REST transport.", + "file": "Client/StreamingRecognize/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StreamingRecognize", + "fullName": "google.cloud.speech.v1.Client.StreamingRecognize", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v1.Client" + }, + "method": { + "shortName": "StreamingRecognize", + "fullName": "google.cloud.speech.v1.Speech.StreamingRecognize", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v1.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 69, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/CreateCustomClass/main.go b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/CreateCustomClass/main.go index 0d6d8d397b30..b1eef49406aa 100644 --- a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/CreateCustomClass/main.go +++ b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/CreateCustomClass/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" speech "cloud.google.com/go/speech/apiv1p1beta1" - speechpb "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1" + speechpb "cloud.google.com/go/speech/apiv1p1beta1/speechpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &speechpb.CreateCustomClassRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1#CreateCustomClassRequest. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1p1beta1/speechpb#CreateCustomClassRequest. } resp, err := c.CreateCustomClass(ctx, req) if err != nil { diff --git a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/CreatePhraseSet/main.go b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/CreatePhraseSet/main.go index cdafd89c70b9..b535b95f2ba9 100644 --- a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/CreatePhraseSet/main.go +++ b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/CreatePhraseSet/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" speech "cloud.google.com/go/speech/apiv1p1beta1" - speechpb "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1" + speechpb "cloud.google.com/go/speech/apiv1p1beta1/speechpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &speechpb.CreatePhraseSetRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1#CreatePhraseSetRequest. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1p1beta1/speechpb#CreatePhraseSetRequest. } resp, err := c.CreatePhraseSet(ctx, req) if err != nil { diff --git a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/DeleteCustomClass/main.go b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/DeleteCustomClass/main.go index cc6aa712ba16..544a7b5c3311 100644 --- a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/DeleteCustomClass/main.go +++ b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/DeleteCustomClass/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" speech "cloud.google.com/go/speech/apiv1p1beta1" - speechpb "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1" + speechpb "cloud.google.com/go/speech/apiv1p1beta1/speechpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &speechpb.DeleteCustomClassRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1#DeleteCustomClassRequest. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1p1beta1/speechpb#DeleteCustomClassRequest. } err = c.DeleteCustomClass(ctx, req) if err != nil { diff --git a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/DeletePhraseSet/main.go b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/DeletePhraseSet/main.go index 42a846e40d3f..ff9f4b48a849 100644 --- a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/DeletePhraseSet/main.go +++ b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/DeletePhraseSet/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" speech "cloud.google.com/go/speech/apiv1p1beta1" - speechpb "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1" + speechpb "cloud.google.com/go/speech/apiv1p1beta1/speechpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &speechpb.DeletePhraseSetRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1#DeletePhraseSetRequest. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1p1beta1/speechpb#DeletePhraseSetRequest. } err = c.DeletePhraseSet(ctx, req) if err != nil { diff --git a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/GetCustomClass/main.go b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/GetCustomClass/main.go index 5b69e8edf2a0..63230a1b960f 100644 --- a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/GetCustomClass/main.go +++ b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/GetCustomClass/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" speech "cloud.google.com/go/speech/apiv1p1beta1" - speechpb "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1" + speechpb "cloud.google.com/go/speech/apiv1p1beta1/speechpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &speechpb.GetCustomClassRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1#GetCustomClassRequest. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1p1beta1/speechpb#GetCustomClassRequest. } resp, err := c.GetCustomClass(ctx, req) if err != nil { diff --git a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/GetOperation/main.go b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/GetOperation/main.go new file mode 100644 index 000000000000..59750f6ca08a --- /dev/null +++ b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v1p1beta1_generated_Adaptation_GetOperation_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv1p1beta1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewAdaptationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v1p1beta1_generated_Adaptation_GetOperation_sync] diff --git a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/GetPhraseSet/main.go b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/GetPhraseSet/main.go index f1801e817bef..925b8c518063 100644 --- a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/GetPhraseSet/main.go +++ b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/GetPhraseSet/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" speech "cloud.google.com/go/speech/apiv1p1beta1" - speechpb "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1" + speechpb "cloud.google.com/go/speech/apiv1p1beta1/speechpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &speechpb.GetPhraseSetRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1#GetPhraseSetRequest. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1p1beta1/speechpb#GetPhraseSetRequest. } resp, err := c.GetPhraseSet(ctx, req) if err != nil { diff --git a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/ListCustomClasses/main.go b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/ListCustomClasses/main.go index 1abf20832ba8..254126cbbe26 100644 --- a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/ListCustomClasses/main.go +++ b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/ListCustomClasses/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" speech "cloud.google.com/go/speech/apiv1p1beta1" + speechpb "cloud.google.com/go/speech/apiv1p1beta1/speechpb" "google.golang.org/api/iterator" - speechpb "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &speechpb.ListCustomClassesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1#ListCustomClassesRequest. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1p1beta1/speechpb#ListCustomClassesRequest. } it := c.ListCustomClasses(ctx, req) for { diff --git a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/ListOperations/main.go b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/ListOperations/main.go new file mode 100644 index 000000000000..e4b746bd2384 --- /dev/null +++ b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v1p1beta1_generated_Adaptation_ListOperations_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv1p1beta1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewAdaptationClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END speech_v1p1beta1_generated_Adaptation_ListOperations_sync] diff --git a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/ListPhraseSet/main.go b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/ListPhraseSet/main.go index ec345ef9780f..abb40b5297a9 100644 --- a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/ListPhraseSet/main.go +++ b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/ListPhraseSet/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" speech "cloud.google.com/go/speech/apiv1p1beta1" + speechpb "cloud.google.com/go/speech/apiv1p1beta1/speechpb" "google.golang.org/api/iterator" - speechpb "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &speechpb.ListPhraseSetRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1#ListPhraseSetRequest. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1p1beta1/speechpb#ListPhraseSetRequest. } it := c.ListPhraseSet(ctx, req) for { diff --git a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/UpdateCustomClass/main.go b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/UpdateCustomClass/main.go index 5ab4dbe8ece4..dbeef5e5a3b5 100644 --- a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/UpdateCustomClass/main.go +++ b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/UpdateCustomClass/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" speech "cloud.google.com/go/speech/apiv1p1beta1" - speechpb "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1" + speechpb "cloud.google.com/go/speech/apiv1p1beta1/speechpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &speechpb.UpdateCustomClassRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1#UpdateCustomClassRequest. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1p1beta1/speechpb#UpdateCustomClassRequest. } resp, err := c.UpdateCustomClass(ctx, req) if err != nil { diff --git a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/UpdatePhraseSet/main.go b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/UpdatePhraseSet/main.go index a6e6c8c6b53a..277f1356259b 100644 --- a/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/UpdatePhraseSet/main.go +++ b/internal/generated/snippets/speech/apiv1p1beta1/AdaptationClient/UpdatePhraseSet/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" speech "cloud.google.com/go/speech/apiv1p1beta1" - speechpb "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1" + speechpb "cloud.google.com/go/speech/apiv1p1beta1/speechpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewAdaptationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &speechpb.UpdatePhraseSetRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1#UpdatePhraseSetRequest. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1p1beta1/speechpb#UpdatePhraseSetRequest. } resp, err := c.UpdatePhraseSet(ctx, req) if err != nil { diff --git a/internal/generated/snippets/speech/apiv1p1beta1/Client/GetOperation/main.go b/internal/generated/snippets/speech/apiv1p1beta1/Client/GetOperation/main.go new file mode 100644 index 000000000000..f9d64157f06e --- /dev/null +++ b/internal/generated/snippets/speech/apiv1p1beta1/Client/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v1p1beta1_generated_Speech_GetOperation_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv1p1beta1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v1p1beta1_generated_Speech_GetOperation_sync] diff --git a/internal/generated/snippets/speech/apiv1p1beta1/Client/ListOperations/main.go b/internal/generated/snippets/speech/apiv1p1beta1/Client/ListOperations/main.go new file mode 100644 index 000000000000..1b2ca4be5fdf --- /dev/null +++ b/internal/generated/snippets/speech/apiv1p1beta1/Client/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v1p1beta1_generated_Speech_ListOperations_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv1p1beta1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END speech_v1p1beta1_generated_Speech_ListOperations_sync] diff --git a/internal/generated/snippets/speech/apiv1p1beta1/Client/LongRunningRecognize/main.go b/internal/generated/snippets/speech/apiv1p1beta1/Client/LongRunningRecognize/main.go index 0e2a317ed48c..28b12a3c7834 100644 --- a/internal/generated/snippets/speech/apiv1p1beta1/Client/LongRunningRecognize/main.go +++ b/internal/generated/snippets/speech/apiv1p1beta1/Client/LongRunningRecognize/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" speech "cloud.google.com/go/speech/apiv1p1beta1" - speechpb "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1" + speechpb "cloud.google.com/go/speech/apiv1p1beta1/speechpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &speechpb.LongRunningRecognizeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1#LongRunningRecognizeRequest. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1p1beta1/speechpb#LongRunningRecognizeRequest. } op, err := c.LongRunningRecognize(ctx, req) if err != nil { diff --git a/internal/generated/snippets/speech/apiv1p1beta1/Client/Recognize/main.go b/internal/generated/snippets/speech/apiv1p1beta1/Client/Recognize/main.go index 18bfe3444231..14ec9ddbcfd9 100644 --- a/internal/generated/snippets/speech/apiv1p1beta1/Client/Recognize/main.go +++ b/internal/generated/snippets/speech/apiv1p1beta1/Client/Recognize/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" speech "cloud.google.com/go/speech/apiv1p1beta1" - speechpb "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1" + speechpb "cloud.google.com/go/speech/apiv1p1beta1/speechpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &speechpb.RecognizeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1#RecognizeRequest. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv1p1beta1/speechpb#RecognizeRequest. } resp, err := c.Recognize(ctx, req) if err != nil { diff --git a/internal/generated/snippets/speech/apiv1p1beta1/Client/StreamingRecognize/main.go b/internal/generated/snippets/speech/apiv1p1beta1/Client/StreamingRecognize/main.go index 73974f3e4e02..10503c428e04 100644 --- a/internal/generated/snippets/speech/apiv1p1beta1/Client/StreamingRecognize/main.go +++ b/internal/generated/snippets/speech/apiv1p1beta1/Client/StreamingRecognize/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,11 +23,16 @@ import ( "io" speech "cloud.google.com/go/speech/apiv1p1beta1" - speechpb "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1" + speechpb "cloud.google.com/go/speech/apiv1p1beta1/speechpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := speech.NewClient(ctx) if err != nil { // TODO: Handle error. diff --git a/internal/generated/snippets/speech/apiv1p1beta1/snippet_metadata.google.cloud.speech.v1p1beta1.json b/internal/generated/snippets/speech/apiv1p1beta1/snippet_metadata.google.cloud.speech.v1p1beta1.json new file mode 100644 index 000000000000..98f3b343cc63 --- /dev/null +++ b/internal/generated/snippets/speech/apiv1p1beta1/snippet_metadata.google.cloud.speech.v1p1beta1.json @@ -0,0 +1,790 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/speech/apiv1p1beta1", + "version": "1.12.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.speech.v1p1beta1", + "version": "v1p1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "speech_v1p1beta1_generated_Adaptation_CreateCustomClass_sync", + "title": "speech CreateCustomClass Sample", + "description": "CreateCustomClass create a custom class.", + "file": "AdaptationClient/CreateCustomClass/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateCustomClass", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient.CreateCustomClass", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.CreateCustomClassRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.CustomClass", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "CreateCustomClass", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClass", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1p1beta1_generated_Adaptation_CreatePhraseSet_sync", + "title": "speech CreatePhraseSet Sample", + "description": "CreatePhraseSet create a set of phrase hints. Each item in the set can be a single word or\na multi-word phrase. The items in the PhraseSet are favored by the\nrecognition model when you send a call that includes the PhraseSet.", + "file": "AdaptationClient/CreatePhraseSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreatePhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient.CreatePhraseSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.CreatePhraseSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.PhraseSet", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "CreatePhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSet", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1p1beta1_generated_Adaptation_DeleteCustomClass_sync", + "title": "speech DeleteCustomClass Sample", + "description": "DeleteCustomClass delete a custom class.", + "file": "AdaptationClient/DeleteCustomClass/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteCustomClass", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient.DeleteCustomClass", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.DeleteCustomClassRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "DeleteCustomClass", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClass", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1p1beta1_generated_Adaptation_DeletePhraseSet_sync", + "title": "speech DeletePhraseSet Sample", + "description": "DeletePhraseSet delete a phrase set.", + "file": "AdaptationClient/DeletePhraseSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeletePhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient.DeletePhraseSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.DeletePhraseSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "DeletePhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSet", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1p1beta1_generated_Adaptation_GetCustomClass_sync", + "title": "speech GetCustomClass Sample", + "description": "GetCustomClass get a custom class.", + "file": "AdaptationClient/GetCustomClass/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCustomClass", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient.GetCustomClass", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.GetCustomClassRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.CustomClass", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "GetCustomClass", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetCustomClass", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1p1beta1_generated_Adaptation_GetOperation_sync", + "title": "speech GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "AdaptationClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetOperation", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1p1beta1_generated_Adaptation_GetPhraseSet_sync", + "title": "speech GetPhraseSet Sample", + "description": "GetPhraseSet get a phrase set.", + "file": "AdaptationClient/GetPhraseSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetPhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient.GetPhraseSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.GetPhraseSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.PhraseSet", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "GetPhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSet", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1p1beta1_generated_Adaptation_ListCustomClasses_sync", + "title": "speech ListCustomClasses Sample", + "description": "ListCustomClasses list custom classes.", + "file": "AdaptationClient/ListCustomClasses/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCustomClasses", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient.ListCustomClasses", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.ListCustomClassesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CustomClassIterator", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "ListCustomClasses", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListCustomClasses", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1p1beta1_generated_Adaptation_ListOperations_sync", + "title": "speech ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "AdaptationClient/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListOperations", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1p1beta1_generated_Adaptation_ListPhraseSet_sync", + "title": "speech ListPhraseSet Sample", + "description": "ListPhraseSet list phrase sets.", + "file": "AdaptationClient/ListPhraseSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListPhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient.ListPhraseSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.ListPhraseSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PhraseSetIterator", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "ListPhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSet", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdateCustomClass_sync", + "title": "speech UpdateCustomClass Sample", + "description": "UpdateCustomClass update a custom class.", + "file": "AdaptationClient/UpdateCustomClass/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCustomClass", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient.UpdateCustomClass", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.UpdateCustomClassRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.CustomClass", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "UpdateCustomClass", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClass", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdatePhraseSet_sync", + "title": "speech UpdatePhraseSet Sample", + "description": "UpdatePhraseSet update a phrase set.", + "file": "AdaptationClient/UpdatePhraseSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdatePhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient.UpdatePhraseSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.UpdatePhraseSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.PhraseSet", + "client": { + "shortName": "AdaptationClient", + "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" + }, + "method": { + "shortName": "UpdatePhraseSet", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSet", + "service": { + "shortName": "Adaptation", + "fullName": "google.cloud.speech.v1p1beta1.Adaptation" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1p1beta1_generated_Speech_GetOperation_sync", + "title": "speech GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "Client/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.speech.v1p1beta1.Client.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v1p1beta1.Client" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.speech.v1p1beta1.Speech.GetOperation", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v1p1beta1.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1p1beta1_generated_Speech_ListOperations_sync", + "title": "speech ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "Client/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.speech.v1p1beta1.Client.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v1p1beta1.Client" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.speech.v1p1beta1.Speech.ListOperations", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v1p1beta1.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1p1beta1_generated_Speech_LongRunningRecognize_sync", + "title": "speech LongRunningRecognize Sample", + "description": "LongRunningRecognize performs asynchronous speech recognition: receive results via the\ngoogle.longrunning.Operations interface. Returns either an\nOperation.error or an Operation.response which contains\na LongRunningRecognizeResponse message.\nFor more information on asynchronous speech recognition, see the\nhow-to (at https: //cloud.google.com/speech-to-text/docs/async-recognize).", + "file": "Client/LongRunningRecognize/main.go", + "language": "GO", + "clientMethod": { + "shortName": "LongRunningRecognize", + "fullName": "google.cloud.speech.v1p1beta1.Client.LongRunningRecognize", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.LongRunningRecognizeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LongRunningRecognizeOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v1p1beta1.Client" + }, + "method": { + "shortName": "LongRunningRecognize", + "fullName": "google.cloud.speech.v1p1beta1.Speech.LongRunningRecognize", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v1p1beta1.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1p1beta1_generated_Speech_Recognize_sync", + "title": "speech Recognize Sample", + "description": "Recognize performs synchronous speech recognition: receive results after all audio\nhas been sent and processed.", + "file": "Client/Recognize/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Recognize", + "fullName": "google.cloud.speech.v1p1beta1.Client.Recognize", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.RecognizeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.RecognizeResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v1p1beta1.Client" + }, + "method": { + "shortName": "Recognize", + "fullName": "google.cloud.speech.v1p1beta1.Speech.Recognize", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v1p1beta1.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v1p1beta1_generated_Speech_StreamingRecognize_sync", + "title": "speech StreamingRecognize Sample", + "description": "StreamingRecognize performs bidirectional streaming speech recognition: receive results while\nsending audio. This method is only available via the gRPC API (not REST).\n\nThis method is not supported for the REST transport.", + "file": "Client/StreamingRecognize/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StreamingRecognize", + "fullName": "google.cloud.speech.v1p1beta1.Client.StreamingRecognize", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v1p1beta1.Client" + }, + "method": { + "shortName": "StreamingRecognize", + "fullName": "google.cloud.speech.v1p1beta1.Speech.StreamingRecognize", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v1p1beta1.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 69, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/speech/apiv2/Client/BatchRecognize/main.go b/internal/generated/snippets/speech/apiv2/Client/BatchRecognize/main.go new file mode 100644 index 000000000000..3e182ac1cc18 --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/BatchRecognize/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_BatchRecognize_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.BatchRecognizeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#BatchRecognizeRequest. + } + op, err := c.BatchRecognize(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_BatchRecognize_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/CancelOperation/main.go b/internal/generated/snippets/speech/apiv2/Client/CancelOperation/main.go new file mode 100644 index 000000000000..fe09bc5b670e --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_CancelOperation_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END speech_v2_generated_Speech_CancelOperation_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/CreateCustomClass/main.go b/internal/generated/snippets/speech/apiv2/Client/CreateCustomClass/main.go new file mode 100644 index 000000000000..983a65bba97b --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/CreateCustomClass/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_CreateCustomClass_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.CreateCustomClassRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#CreateCustomClassRequest. + } + op, err := c.CreateCustomClass(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_CreateCustomClass_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/CreatePhraseSet/main.go b/internal/generated/snippets/speech/apiv2/Client/CreatePhraseSet/main.go new file mode 100644 index 000000000000..e05c99fd536e --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/CreatePhraseSet/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_CreatePhraseSet_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.CreatePhraseSetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#CreatePhraseSetRequest. + } + op, err := c.CreatePhraseSet(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_CreatePhraseSet_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/CreateRecognizer/main.go b/internal/generated/snippets/speech/apiv2/Client/CreateRecognizer/main.go new file mode 100644 index 000000000000..5625367e803a --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/CreateRecognizer/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_CreateRecognizer_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.CreateRecognizerRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#CreateRecognizerRequest. + } + op, err := c.CreateRecognizer(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_CreateRecognizer_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/DeleteCustomClass/main.go b/internal/generated/snippets/speech/apiv2/Client/DeleteCustomClass/main.go new file mode 100644 index 000000000000..f0bb7fa6f3c4 --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/DeleteCustomClass/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_DeleteCustomClass_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.DeleteCustomClassRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#DeleteCustomClassRequest. + } + op, err := c.DeleteCustomClass(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_DeleteCustomClass_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/DeleteOperation/main.go b/internal/generated/snippets/speech/apiv2/Client/DeleteOperation/main.go new file mode 100644 index 000000000000..6ef2851130c7 --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_DeleteOperation_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END speech_v2_generated_Speech_DeleteOperation_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/DeletePhraseSet/main.go b/internal/generated/snippets/speech/apiv2/Client/DeletePhraseSet/main.go new file mode 100644 index 000000000000..a96fbd509d68 --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/DeletePhraseSet/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_DeletePhraseSet_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.DeletePhraseSetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#DeletePhraseSetRequest. + } + op, err := c.DeletePhraseSet(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_DeletePhraseSet_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/DeleteRecognizer/main.go b/internal/generated/snippets/speech/apiv2/Client/DeleteRecognizer/main.go new file mode 100644 index 000000000000..93cafbabe0c7 --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/DeleteRecognizer/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_DeleteRecognizer_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.DeleteRecognizerRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#DeleteRecognizerRequest. + } + op, err := c.DeleteRecognizer(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_DeleteRecognizer_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/GetConfig/main.go b/internal/generated/snippets/speech/apiv2/Client/GetConfig/main.go new file mode 100644 index 000000000000..aed037440ad4 --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/GetConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_GetConfig_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.GetConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#GetConfigRequest. + } + resp, err := c.GetConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_GetConfig_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/GetCustomClass/main.go b/internal/generated/snippets/speech/apiv2/Client/GetCustomClass/main.go new file mode 100644 index 000000000000..d566891d29eb --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/GetCustomClass/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_GetCustomClass_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.GetCustomClassRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#GetCustomClassRequest. + } + resp, err := c.GetCustomClass(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_GetCustomClass_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/GetOperation/main.go b/internal/generated/snippets/speech/apiv2/Client/GetOperation/main.go new file mode 100644 index 000000000000..7032622f23b9 --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_GetOperation_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_GetOperation_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/GetPhraseSet/main.go b/internal/generated/snippets/speech/apiv2/Client/GetPhraseSet/main.go new file mode 100644 index 000000000000..f8c50b1fd8f4 --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/GetPhraseSet/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_GetPhraseSet_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.GetPhraseSetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#GetPhraseSetRequest. + } + resp, err := c.GetPhraseSet(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_GetPhraseSet_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/GetRecognizer/main.go b/internal/generated/snippets/speech/apiv2/Client/GetRecognizer/main.go new file mode 100644 index 000000000000..c8eddcf8260e --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/GetRecognizer/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_GetRecognizer_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.GetRecognizerRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#GetRecognizerRequest. + } + resp, err := c.GetRecognizer(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_GetRecognizer_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/ListCustomClasses/main.go b/internal/generated/snippets/speech/apiv2/Client/ListCustomClasses/main.go new file mode 100644 index 000000000000..59a32da6f374 --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/ListCustomClasses/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_ListCustomClasses_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.ListCustomClassesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#ListCustomClassesRequest. + } + it := c.ListCustomClasses(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END speech_v2_generated_Speech_ListCustomClasses_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/ListOperations/main.go b/internal/generated/snippets/speech/apiv2/Client/ListOperations/main.go new file mode 100644 index 000000000000..083c0fb53aed --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_ListOperations_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END speech_v2_generated_Speech_ListOperations_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/ListPhraseSets/main.go b/internal/generated/snippets/speech/apiv2/Client/ListPhraseSets/main.go new file mode 100644 index 000000000000..e3adaf6344a3 --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/ListPhraseSets/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_ListPhraseSets_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.ListPhraseSetsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#ListPhraseSetsRequest. + } + it := c.ListPhraseSets(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END speech_v2_generated_Speech_ListPhraseSets_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/ListRecognizers/main.go b/internal/generated/snippets/speech/apiv2/Client/ListRecognizers/main.go new file mode 100644 index 000000000000..03a477c291c5 --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/ListRecognizers/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_ListRecognizers_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.ListRecognizersRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#ListRecognizersRequest. + } + it := c.ListRecognizers(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END speech_v2_generated_Speech_ListRecognizers_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/Recognize/main.go b/internal/generated/snippets/speech/apiv2/Client/Recognize/main.go new file mode 100644 index 000000000000..1a5f4f74281a --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/Recognize/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_Recognize_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.RecognizeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#RecognizeRequest. + } + resp, err := c.Recognize(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_Recognize_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/StreamingRecognize/main.go b/internal/generated/snippets/speech/apiv2/Client/StreamingRecognize/main.go new file mode 100644 index 000000000000..907d051aefdc --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/StreamingRecognize/main.go @@ -0,0 +1,69 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_StreamingRecognize_sync] + +package main + +import ( + "context" + "io" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + stream, err := c.StreamingRecognize(ctx) + if err != nil { + // TODO: Handle error. + } + go func() { + reqs := []*speechpb.StreamingRecognizeRequest{ + // TODO: Create requests. + } + for _, req := range reqs { + if err := stream.Send(req); err != nil { + // TODO: Handle error. + } + } + stream.CloseSend() + }() + for { + resp, err := stream.Recv() + if err == io.EOF { + break + } + if err != nil { + // TODO: handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END speech_v2_generated_Speech_StreamingRecognize_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/UndeleteCustomClass/main.go b/internal/generated/snippets/speech/apiv2/Client/UndeleteCustomClass/main.go new file mode 100644 index 000000000000..de0fe3bf85f5 --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/UndeleteCustomClass/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_UndeleteCustomClass_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.UndeleteCustomClassRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#UndeleteCustomClassRequest. + } + op, err := c.UndeleteCustomClass(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_UndeleteCustomClass_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/UndeletePhraseSet/main.go b/internal/generated/snippets/speech/apiv2/Client/UndeletePhraseSet/main.go new file mode 100644 index 000000000000..fd353876cbc4 --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/UndeletePhraseSet/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_UndeletePhraseSet_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.UndeletePhraseSetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#UndeletePhraseSetRequest. + } + op, err := c.UndeletePhraseSet(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_UndeletePhraseSet_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/UndeleteRecognizer/main.go b/internal/generated/snippets/speech/apiv2/Client/UndeleteRecognizer/main.go new file mode 100644 index 000000000000..0d94a2fac4b2 --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/UndeleteRecognizer/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_UndeleteRecognizer_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.UndeleteRecognizerRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#UndeleteRecognizerRequest. + } + op, err := c.UndeleteRecognizer(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_UndeleteRecognizer_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/UpdateConfig/main.go b/internal/generated/snippets/speech/apiv2/Client/UpdateConfig/main.go new file mode 100644 index 000000000000..d400ba86d9d3 --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/UpdateConfig/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_UpdateConfig_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.UpdateConfigRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#UpdateConfigRequest. + } + resp, err := c.UpdateConfig(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_UpdateConfig_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/UpdateCustomClass/main.go b/internal/generated/snippets/speech/apiv2/Client/UpdateCustomClass/main.go new file mode 100644 index 000000000000..ed46a94758b5 --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/UpdateCustomClass/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_UpdateCustomClass_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.UpdateCustomClassRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#UpdateCustomClassRequest. + } + op, err := c.UpdateCustomClass(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_UpdateCustomClass_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/UpdatePhraseSet/main.go b/internal/generated/snippets/speech/apiv2/Client/UpdatePhraseSet/main.go new file mode 100644 index 000000000000..58553d02b20d --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/UpdatePhraseSet/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_UpdatePhraseSet_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.UpdatePhraseSetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#UpdatePhraseSetRequest. + } + op, err := c.UpdatePhraseSet(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_UpdatePhraseSet_sync] diff --git a/internal/generated/snippets/speech/apiv2/Client/UpdateRecognizer/main.go b/internal/generated/snippets/speech/apiv2/Client/UpdateRecognizer/main.go new file mode 100644 index 000000000000..77925468ec8f --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/Client/UpdateRecognizer/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START speech_v2_generated_Speech_UpdateRecognizer_sync] + +package main + +import ( + "context" + + speech "cloud.google.com/go/speech/apiv2" + speechpb "cloud.google.com/go/speech/apiv2/speechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := speech.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &speechpb.UpdateRecognizerRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/speech/apiv2/speechpb#UpdateRecognizerRequest. + } + op, err := c.UpdateRecognizer(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END speech_v2_generated_Speech_UpdateRecognizer_sync] diff --git a/internal/generated/snippets/speech/apiv2/snippet_metadata.google.cloud.speech.v2.json b/internal/generated/snippets/speech/apiv2/snippet_metadata.google.cloud.speech.v2.json new file mode 100644 index 000000000000..9964a9e08161 --- /dev/null +++ b/internal/generated/snippets/speech/apiv2/snippet_metadata.google.cloud.speech.v2.json @@ -0,0 +1,1250 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/speech/apiv2", + "version": "1.12.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.speech.v2", + "version": "v2" + } + ] + }, + "snippets": [ + { + "regionTag": "speech_v2_generated_Speech_BatchRecognize_sync", + "title": "speech BatchRecognize Sample", + "description": "BatchRecognize performs batch asynchronous speech recognition: send a request with N\naudio files and receive a long running operation that can be polled to see\nwhen the transcriptions are finished.", + "file": "Client/BatchRecognize/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchRecognize", + "fullName": "google.cloud.speech.v2.Client.BatchRecognize", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.BatchRecognizeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "BatchRecognizeOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "BatchRecognize", + "fullName": "google.cloud.speech.v2.Speech.BatchRecognize", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_CancelOperation_sync", + "title": "speech CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "Client/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.speech.v2.Client.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.speech.v2.Speech.CancelOperation", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_CreateCustomClass_sync", + "title": "speech CreateCustomClass Sample", + "description": "CreateCustomClass creates a CustomClass.", + "file": "Client/CreateCustomClass/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateCustomClass", + "fullName": "google.cloud.speech.v2.Client.CreateCustomClass", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.CreateCustomClassRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateCustomClassOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "CreateCustomClass", + "fullName": "google.cloud.speech.v2.Speech.CreateCustomClass", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_CreatePhraseSet_sync", + "title": "speech CreatePhraseSet Sample", + "description": "CreatePhraseSet creates a PhraseSet.", + "file": "Client/CreatePhraseSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreatePhraseSet", + "fullName": "google.cloud.speech.v2.Client.CreatePhraseSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.CreatePhraseSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreatePhraseSetOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "CreatePhraseSet", + "fullName": "google.cloud.speech.v2.Speech.CreatePhraseSet", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_CreateRecognizer_sync", + "title": "speech CreateRecognizer Sample", + "description": "CreateRecognizer creates a Recognizer.", + "file": "Client/CreateRecognizer/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateRecognizer", + "fullName": "google.cloud.speech.v2.Client.CreateRecognizer", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.CreateRecognizerRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateRecognizerOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "CreateRecognizer", + "fullName": "google.cloud.speech.v2.Speech.CreateRecognizer", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_DeleteCustomClass_sync", + "title": "speech DeleteCustomClass Sample", + "description": "DeleteCustomClass deletes the CustomClass.", + "file": "Client/DeleteCustomClass/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteCustomClass", + "fullName": "google.cloud.speech.v2.Client.DeleteCustomClass", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.DeleteCustomClassRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteCustomClassOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "DeleteCustomClass", + "fullName": "google.cloud.speech.v2.Speech.DeleteCustomClass", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_DeleteOperation_sync", + "title": "speech DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "Client/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.speech.v2.Client.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.speech.v2.Speech.DeleteOperation", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_DeletePhraseSet_sync", + "title": "speech DeletePhraseSet Sample", + "description": "DeletePhraseSet deletes the PhraseSet.", + "file": "Client/DeletePhraseSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeletePhraseSet", + "fullName": "google.cloud.speech.v2.Client.DeletePhraseSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.DeletePhraseSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeletePhraseSetOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "DeletePhraseSet", + "fullName": "google.cloud.speech.v2.Speech.DeletePhraseSet", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_DeleteRecognizer_sync", + "title": "speech DeleteRecognizer Sample", + "description": "DeleteRecognizer deletes the Recognizer.", + "file": "Client/DeleteRecognizer/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteRecognizer", + "fullName": "google.cloud.speech.v2.Client.DeleteRecognizer", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.DeleteRecognizerRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteRecognizerOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "DeleteRecognizer", + "fullName": "google.cloud.speech.v2.Speech.DeleteRecognizer", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_GetConfig_sync", + "title": "speech GetConfig Sample", + "description": "GetConfig returns the requested Config.", + "file": "Client/GetConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetConfig", + "fullName": "google.cloud.speech.v2.Client.GetConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.GetConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.Config", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "GetConfig", + "fullName": "google.cloud.speech.v2.Speech.GetConfig", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_GetCustomClass_sync", + "title": "speech GetCustomClass Sample", + "description": "GetCustomClass returns the requested\nCustomClass.", + "file": "Client/GetCustomClass/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCustomClass", + "fullName": "google.cloud.speech.v2.Client.GetCustomClass", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.GetCustomClassRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.CustomClass", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "GetCustomClass", + "fullName": "google.cloud.speech.v2.Speech.GetCustomClass", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_GetOperation_sync", + "title": "speech GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "Client/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.speech.v2.Client.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.speech.v2.Speech.GetOperation", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_GetPhraseSet_sync", + "title": "speech GetPhraseSet Sample", + "description": "GetPhraseSet returns the requested\nPhraseSet.", + "file": "Client/GetPhraseSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetPhraseSet", + "fullName": "google.cloud.speech.v2.Client.GetPhraseSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.GetPhraseSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.PhraseSet", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "GetPhraseSet", + "fullName": "google.cloud.speech.v2.Speech.GetPhraseSet", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_GetRecognizer_sync", + "title": "speech GetRecognizer Sample", + "description": "GetRecognizer returns the requested\nRecognizer. Fails with\nNOT_FOUND if the requested recognizer doesn’t\nexist.", + "file": "Client/GetRecognizer/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetRecognizer", + "fullName": "google.cloud.speech.v2.Client.GetRecognizer", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.GetRecognizerRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.Recognizer", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "GetRecognizer", + "fullName": "google.cloud.speech.v2.Speech.GetRecognizer", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_ListCustomClasses_sync", + "title": "speech ListCustomClasses Sample", + "description": "ListCustomClasses lists CustomClasses.", + "file": "Client/ListCustomClasses/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCustomClasses", + "fullName": "google.cloud.speech.v2.Client.ListCustomClasses", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.ListCustomClassesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CustomClassIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "ListCustomClasses", + "fullName": "google.cloud.speech.v2.Speech.ListCustomClasses", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_ListOperations_sync", + "title": "speech ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "Client/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.speech.v2.Client.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.speech.v2.Speech.ListOperations", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_ListPhraseSets_sync", + "title": "speech ListPhraseSets Sample", + "description": "ListPhraseSets lists PhraseSets.", + "file": "Client/ListPhraseSets/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListPhraseSets", + "fullName": "google.cloud.speech.v2.Client.ListPhraseSets", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.ListPhraseSetsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PhraseSetIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "ListPhraseSets", + "fullName": "google.cloud.speech.v2.Speech.ListPhraseSets", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_ListRecognizers_sync", + "title": "speech ListRecognizers Sample", + "description": "ListRecognizers lists Recognizers.", + "file": "Client/ListRecognizers/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListRecognizers", + "fullName": "google.cloud.speech.v2.Client.ListRecognizers", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.ListRecognizersRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RecognizerIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "ListRecognizers", + "fullName": "google.cloud.speech.v2.Speech.ListRecognizers", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_Recognize_sync", + "title": "speech Recognize Sample", + "description": "Recognize performs synchronous Speech recognition: receive results after all audio\nhas been sent and processed.", + "file": "Client/Recognize/main.go", + "language": "GO", + "clientMethod": { + "shortName": "Recognize", + "fullName": "google.cloud.speech.v2.Client.Recognize", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.RecognizeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.RecognizeResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "Recognize", + "fullName": "google.cloud.speech.v2.Speech.Recognize", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_StreamingRecognize_sync", + "title": "speech StreamingRecognize Sample", + "description": "StreamingRecognize performs bidirectional streaming speech recognition: receive results while\nsending audio. This method is only available via the gRPC API (not REST).\n\nThis method is not supported for the REST transport.", + "file": "Client/StreamingRecognize/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StreamingRecognize", + "fullName": "google.cloud.speech.v2.Client.StreamingRecognize", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "StreamingRecognize", + "fullName": "google.cloud.speech.v2.Speech.StreamingRecognize", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 69, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_UndeleteCustomClass_sync", + "title": "speech UndeleteCustomClass Sample", + "description": "UndeleteCustomClass undeletes the CustomClass.", + "file": "Client/UndeleteCustomClass/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UndeleteCustomClass", + "fullName": "google.cloud.speech.v2.Client.UndeleteCustomClass", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.UndeleteCustomClassRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UndeleteCustomClassOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "UndeleteCustomClass", + "fullName": "google.cloud.speech.v2.Speech.UndeleteCustomClass", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_UndeletePhraseSet_sync", + "title": "speech UndeletePhraseSet Sample", + "description": "UndeletePhraseSet undeletes the PhraseSet.", + "file": "Client/UndeletePhraseSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UndeletePhraseSet", + "fullName": "google.cloud.speech.v2.Client.UndeletePhraseSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.UndeletePhraseSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UndeletePhraseSetOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "UndeletePhraseSet", + "fullName": "google.cloud.speech.v2.Speech.UndeletePhraseSet", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_UndeleteRecognizer_sync", + "title": "speech UndeleteRecognizer Sample", + "description": "UndeleteRecognizer undeletes the Recognizer.", + "file": "Client/UndeleteRecognizer/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UndeleteRecognizer", + "fullName": "google.cloud.speech.v2.Client.UndeleteRecognizer", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.UndeleteRecognizerRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UndeleteRecognizerOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "UndeleteRecognizer", + "fullName": "google.cloud.speech.v2.Speech.UndeleteRecognizer", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_UpdateConfig_sync", + "title": "speech UpdateConfig Sample", + "description": "UpdateConfig updates the Config.", + "file": "Client/UpdateConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateConfig", + "fullName": "google.cloud.speech.v2.Client.UpdateConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.UpdateConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "speechpb.Config", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "UpdateConfig", + "fullName": "google.cloud.speech.v2.Speech.UpdateConfig", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_UpdateCustomClass_sync", + "title": "speech UpdateCustomClass Sample", + "description": "UpdateCustomClass updates the CustomClass.", + "file": "Client/UpdateCustomClass/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCustomClass", + "fullName": "google.cloud.speech.v2.Client.UpdateCustomClass", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.UpdateCustomClassRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateCustomClassOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "UpdateCustomClass", + "fullName": "google.cloud.speech.v2.Speech.UpdateCustomClass", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_UpdatePhraseSet_sync", + "title": "speech UpdatePhraseSet Sample", + "description": "UpdatePhraseSet updates the PhraseSet.", + "file": "Client/UpdatePhraseSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdatePhraseSet", + "fullName": "google.cloud.speech.v2.Client.UpdatePhraseSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.UpdatePhraseSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdatePhraseSetOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "UpdatePhraseSet", + "fullName": "google.cloud.speech.v2.Speech.UpdatePhraseSet", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "speech_v2_generated_Speech_UpdateRecognizer_sync", + "title": "speech UpdateRecognizer Sample", + "description": "UpdateRecognizer updates the Recognizer.", + "file": "Client/UpdateRecognizer/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateRecognizer", + "fullName": "google.cloud.speech.v2.Client.UpdateRecognizer", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "speechpb.UpdateRecognizerRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateRecognizerOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.speech.v2.Client" + }, + "method": { + "shortName": "UpdateRecognizer", + "fullName": "google.cloud.speech.v2.Speech.UpdateRecognizer", + "service": { + "shortName": "Speech", + "fullName": "google.cloud.speech.v2.Speech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/storagetransfer/apiv1/Client/CancelOperation/main.go b/internal/generated/snippets/storagetransfer/apiv1/Client/CancelOperation/main.go new file mode 100644 index 000000000000..c07ba95ad518 --- /dev/null +++ b/internal/generated/snippets/storagetransfer/apiv1/Client/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START storagetransfer_v1_generated_StorageTransferService_CancelOperation_sync] + +package main + +import ( + "context" + + storagetransfer "cloud.google.com/go/storagetransfer/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := storagetransfer.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END storagetransfer_v1_generated_StorageTransferService_CancelOperation_sync] diff --git a/internal/generated/snippets/storagetransfer/apiv1/Client/CreateAgentPool/main.go b/internal/generated/snippets/storagetransfer/apiv1/Client/CreateAgentPool/main.go index 1b9a7e2e6053..c7b139a6bfc8 100644 --- a/internal/generated/snippets/storagetransfer/apiv1/Client/CreateAgentPool/main.go +++ b/internal/generated/snippets/storagetransfer/apiv1/Client/CreateAgentPool/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" storagetransfer "cloud.google.com/go/storagetransfer/apiv1" - storagetransferpb "google.golang.org/genproto/googleapis/storagetransfer/v1" + storagetransferpb "cloud.google.com/go/storagetransfer/apiv1/storagetransferpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &storagetransferpb.CreateAgentPoolRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/storagetransfer/v1#CreateAgentPoolRequest. + // See https://pkg.go.dev/cloud.google.com/go/storagetransfer/apiv1/storagetransferpb#CreateAgentPoolRequest. } resp, err := c.CreateAgentPool(ctx, req) if err != nil { diff --git a/internal/generated/snippets/storagetransfer/apiv1/Client/CreateTransferJob/main.go b/internal/generated/snippets/storagetransfer/apiv1/Client/CreateTransferJob/main.go index c107e4db0892..1273c8544427 100644 --- a/internal/generated/snippets/storagetransfer/apiv1/Client/CreateTransferJob/main.go +++ b/internal/generated/snippets/storagetransfer/apiv1/Client/CreateTransferJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" storagetransfer "cloud.google.com/go/storagetransfer/apiv1" - storagetransferpb "google.golang.org/genproto/googleapis/storagetransfer/v1" + storagetransferpb "cloud.google.com/go/storagetransfer/apiv1/storagetransferpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &storagetransferpb.CreateTransferJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/storagetransfer/v1#CreateTransferJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/storagetransfer/apiv1/storagetransferpb#CreateTransferJobRequest. } resp, err := c.CreateTransferJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/storagetransfer/apiv1/Client/DeleteAgentPool/main.go b/internal/generated/snippets/storagetransfer/apiv1/Client/DeleteAgentPool/main.go index 0cf5f1284c4b..f34d6ba2fc8e 100644 --- a/internal/generated/snippets/storagetransfer/apiv1/Client/DeleteAgentPool/main.go +++ b/internal/generated/snippets/storagetransfer/apiv1/Client/DeleteAgentPool/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" storagetransfer "cloud.google.com/go/storagetransfer/apiv1" - storagetransferpb "google.golang.org/genproto/googleapis/storagetransfer/v1" + storagetransferpb "cloud.google.com/go/storagetransfer/apiv1/storagetransferpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &storagetransferpb.DeleteAgentPoolRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/storagetransfer/v1#DeleteAgentPoolRequest. + // See https://pkg.go.dev/cloud.google.com/go/storagetransfer/apiv1/storagetransferpb#DeleteAgentPoolRequest. } err = c.DeleteAgentPool(ctx, req) if err != nil { diff --git a/internal/generated/snippets/storagetransfer/apiv1/Client/DeleteTransferJob/main.go b/internal/generated/snippets/storagetransfer/apiv1/Client/DeleteTransferJob/main.go new file mode 100644 index 000000000000..e6a74b39e2a5 --- /dev/null +++ b/internal/generated/snippets/storagetransfer/apiv1/Client/DeleteTransferJob/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START storagetransfer_v1_generated_StorageTransferService_DeleteTransferJob_sync] + +package main + +import ( + "context" + + storagetransfer "cloud.google.com/go/storagetransfer/apiv1" + storagetransferpb "cloud.google.com/go/storagetransfer/apiv1/storagetransferpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := storagetransfer.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &storagetransferpb.DeleteTransferJobRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/storagetransfer/apiv1/storagetransferpb#DeleteTransferJobRequest. + } + err = c.DeleteTransferJob(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END storagetransfer_v1_generated_StorageTransferService_DeleteTransferJob_sync] diff --git a/internal/generated/snippets/storagetransfer/apiv1/Client/GetAgentPool/main.go b/internal/generated/snippets/storagetransfer/apiv1/Client/GetAgentPool/main.go index da8e49b5e4be..841fb37ca1b7 100644 --- a/internal/generated/snippets/storagetransfer/apiv1/Client/GetAgentPool/main.go +++ b/internal/generated/snippets/storagetransfer/apiv1/Client/GetAgentPool/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" storagetransfer "cloud.google.com/go/storagetransfer/apiv1" - storagetransferpb "google.golang.org/genproto/googleapis/storagetransfer/v1" + storagetransferpb "cloud.google.com/go/storagetransfer/apiv1/storagetransferpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &storagetransferpb.GetAgentPoolRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/storagetransfer/v1#GetAgentPoolRequest. + // See https://pkg.go.dev/cloud.google.com/go/storagetransfer/apiv1/storagetransferpb#GetAgentPoolRequest. } resp, err := c.GetAgentPool(ctx, req) if err != nil { diff --git a/internal/generated/snippets/storagetransfer/apiv1/Client/GetGoogleServiceAccount/main.go b/internal/generated/snippets/storagetransfer/apiv1/Client/GetGoogleServiceAccount/main.go index 870fc0978be4..f05ae204212b 100644 --- a/internal/generated/snippets/storagetransfer/apiv1/Client/GetGoogleServiceAccount/main.go +++ b/internal/generated/snippets/storagetransfer/apiv1/Client/GetGoogleServiceAccount/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" storagetransfer "cloud.google.com/go/storagetransfer/apiv1" - storagetransferpb "google.golang.org/genproto/googleapis/storagetransfer/v1" + storagetransferpb "cloud.google.com/go/storagetransfer/apiv1/storagetransferpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &storagetransferpb.GetGoogleServiceAccountRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/storagetransfer/v1#GetGoogleServiceAccountRequest. + // See https://pkg.go.dev/cloud.google.com/go/storagetransfer/apiv1/storagetransferpb#GetGoogleServiceAccountRequest. } resp, err := c.GetGoogleServiceAccount(ctx, req) if err != nil { diff --git a/internal/generated/snippets/storagetransfer/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/storagetransfer/apiv1/Client/GetOperation/main.go new file mode 100644 index 000000000000..b35449a0d478 --- /dev/null +++ b/internal/generated/snippets/storagetransfer/apiv1/Client/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START storagetransfer_v1_generated_StorageTransferService_GetOperation_sync] + +package main + +import ( + "context" + + storagetransfer "cloud.google.com/go/storagetransfer/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := storagetransfer.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END storagetransfer_v1_generated_StorageTransferService_GetOperation_sync] diff --git a/internal/generated/snippets/storagetransfer/apiv1/Client/GetTransferJob/main.go b/internal/generated/snippets/storagetransfer/apiv1/Client/GetTransferJob/main.go index 845036febdb0..df77338cb9f4 100644 --- a/internal/generated/snippets/storagetransfer/apiv1/Client/GetTransferJob/main.go +++ b/internal/generated/snippets/storagetransfer/apiv1/Client/GetTransferJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" storagetransfer "cloud.google.com/go/storagetransfer/apiv1" - storagetransferpb "google.golang.org/genproto/googleapis/storagetransfer/v1" + storagetransferpb "cloud.google.com/go/storagetransfer/apiv1/storagetransferpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &storagetransferpb.GetTransferJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/storagetransfer/v1#GetTransferJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/storagetransfer/apiv1/storagetransferpb#GetTransferJobRequest. } resp, err := c.GetTransferJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/storagetransfer/apiv1/Client/ListAgentPools/main.go b/internal/generated/snippets/storagetransfer/apiv1/Client/ListAgentPools/main.go index 9167aee26ea8..33f46650fcb0 100644 --- a/internal/generated/snippets/storagetransfer/apiv1/Client/ListAgentPools/main.go +++ b/internal/generated/snippets/storagetransfer/apiv1/Client/ListAgentPools/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" storagetransfer "cloud.google.com/go/storagetransfer/apiv1" + storagetransferpb "cloud.google.com/go/storagetransfer/apiv1/storagetransferpb" "google.golang.org/api/iterator" - storagetransferpb "google.golang.org/genproto/googleapis/storagetransfer/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &storagetransferpb.ListAgentPoolsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/storagetransfer/v1#ListAgentPoolsRequest. + // See https://pkg.go.dev/cloud.google.com/go/storagetransfer/apiv1/storagetransferpb#ListAgentPoolsRequest. } it := c.ListAgentPools(ctx, req) for { diff --git a/internal/generated/snippets/storagetransfer/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/storagetransfer/apiv1/Client/ListOperations/main.go new file mode 100644 index 000000000000..448e52b1f602 --- /dev/null +++ b/internal/generated/snippets/storagetransfer/apiv1/Client/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START storagetransfer_v1_generated_StorageTransferService_ListOperations_sync] + +package main + +import ( + "context" + + storagetransfer "cloud.google.com/go/storagetransfer/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := storagetransfer.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END storagetransfer_v1_generated_StorageTransferService_ListOperations_sync] diff --git a/internal/generated/snippets/storagetransfer/apiv1/Client/ListTransferJobs/main.go b/internal/generated/snippets/storagetransfer/apiv1/Client/ListTransferJobs/main.go index f010325d0055..23ca81491a19 100644 --- a/internal/generated/snippets/storagetransfer/apiv1/Client/ListTransferJobs/main.go +++ b/internal/generated/snippets/storagetransfer/apiv1/Client/ListTransferJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" storagetransfer "cloud.google.com/go/storagetransfer/apiv1" + storagetransferpb "cloud.google.com/go/storagetransfer/apiv1/storagetransferpb" "google.golang.org/api/iterator" - storagetransferpb "google.golang.org/genproto/googleapis/storagetransfer/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &storagetransferpb.ListTransferJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/storagetransfer/v1#ListTransferJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/storagetransfer/apiv1/storagetransferpb#ListTransferJobsRequest. } it := c.ListTransferJobs(ctx, req) for { diff --git a/internal/generated/snippets/storagetransfer/apiv1/Client/PauseTransferOperation/main.go b/internal/generated/snippets/storagetransfer/apiv1/Client/PauseTransferOperation/main.go index aa75ca5f274b..88e535b8d521 100644 --- a/internal/generated/snippets/storagetransfer/apiv1/Client/PauseTransferOperation/main.go +++ b/internal/generated/snippets/storagetransfer/apiv1/Client/PauseTransferOperation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" storagetransfer "cloud.google.com/go/storagetransfer/apiv1" - storagetransferpb "google.golang.org/genproto/googleapis/storagetransfer/v1" + storagetransferpb "cloud.google.com/go/storagetransfer/apiv1/storagetransferpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &storagetransferpb.PauseTransferOperationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/storagetransfer/v1#PauseTransferOperationRequest. + // See https://pkg.go.dev/cloud.google.com/go/storagetransfer/apiv1/storagetransferpb#PauseTransferOperationRequest. } err = c.PauseTransferOperation(ctx, req) if err != nil { diff --git a/internal/generated/snippets/storagetransfer/apiv1/Client/ResumeTransferOperation/main.go b/internal/generated/snippets/storagetransfer/apiv1/Client/ResumeTransferOperation/main.go index daec16575977..90824f12f242 100644 --- a/internal/generated/snippets/storagetransfer/apiv1/Client/ResumeTransferOperation/main.go +++ b/internal/generated/snippets/storagetransfer/apiv1/Client/ResumeTransferOperation/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" storagetransfer "cloud.google.com/go/storagetransfer/apiv1" - storagetransferpb "google.golang.org/genproto/googleapis/storagetransfer/v1" + storagetransferpb "cloud.google.com/go/storagetransfer/apiv1/storagetransferpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &storagetransferpb.ResumeTransferOperationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/storagetransfer/v1#ResumeTransferOperationRequest. + // See https://pkg.go.dev/cloud.google.com/go/storagetransfer/apiv1/storagetransferpb#ResumeTransferOperationRequest. } err = c.ResumeTransferOperation(ctx, req) if err != nil { diff --git a/internal/generated/snippets/storagetransfer/apiv1/Client/RunTransferJob/main.go b/internal/generated/snippets/storagetransfer/apiv1/Client/RunTransferJob/main.go index d2ac51e35856..b15f1e0e3a43 100644 --- a/internal/generated/snippets/storagetransfer/apiv1/Client/RunTransferJob/main.go +++ b/internal/generated/snippets/storagetransfer/apiv1/Client/RunTransferJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" storagetransfer "cloud.google.com/go/storagetransfer/apiv1" - storagetransferpb "google.golang.org/genproto/googleapis/storagetransfer/v1" + storagetransferpb "cloud.google.com/go/storagetransfer/apiv1/storagetransferpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &storagetransferpb.RunTransferJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/storagetransfer/v1#RunTransferJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/storagetransfer/apiv1/storagetransferpb#RunTransferJobRequest. } op, err := c.RunTransferJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/storagetransfer/apiv1/Client/UpdateAgentPool/main.go b/internal/generated/snippets/storagetransfer/apiv1/Client/UpdateAgentPool/main.go index db488ad4e2c9..30ec8c0b5138 100644 --- a/internal/generated/snippets/storagetransfer/apiv1/Client/UpdateAgentPool/main.go +++ b/internal/generated/snippets/storagetransfer/apiv1/Client/UpdateAgentPool/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" storagetransfer "cloud.google.com/go/storagetransfer/apiv1" - storagetransferpb "google.golang.org/genproto/googleapis/storagetransfer/v1" + storagetransferpb "cloud.google.com/go/storagetransfer/apiv1/storagetransferpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &storagetransferpb.UpdateAgentPoolRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/storagetransfer/v1#UpdateAgentPoolRequest. + // See https://pkg.go.dev/cloud.google.com/go/storagetransfer/apiv1/storagetransferpb#UpdateAgentPoolRequest. } resp, err := c.UpdateAgentPool(ctx, req) if err != nil { diff --git a/internal/generated/snippets/storagetransfer/apiv1/Client/UpdateTransferJob/main.go b/internal/generated/snippets/storagetransfer/apiv1/Client/UpdateTransferJob/main.go index de10122f1dc5..ab6c70f7ad44 100644 --- a/internal/generated/snippets/storagetransfer/apiv1/Client/UpdateTransferJob/main.go +++ b/internal/generated/snippets/storagetransfer/apiv1/Client/UpdateTransferJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" storagetransfer "cloud.google.com/go/storagetransfer/apiv1" - storagetransferpb "google.golang.org/genproto/googleapis/storagetransfer/v1" + storagetransferpb "cloud.google.com/go/storagetransfer/apiv1/storagetransferpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := storagetransfer.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &storagetransferpb.UpdateTransferJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/storagetransfer/v1#UpdateTransferJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/storagetransfer/apiv1/storagetransferpb#UpdateTransferJobRequest. } resp, err := c.UpdateTransferJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/storagetransfer/apiv1/snippet_metadata.google.storagetransfer.v1.json b/internal/generated/snippets/storagetransfer/apiv1/snippet_metadata.google.storagetransfer.v1.json new file mode 100644 index 000000000000..b163547e335a --- /dev/null +++ b/internal/generated/snippets/storagetransfer/apiv1/snippet_metadata.google.storagetransfer.v1.json @@ -0,0 +1,792 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/storagetransfer/apiv1", + "version": "1.7.0", + "language": "GO", + "apis": [ + { + "id": "google.storagetransfer.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "storagetransfer_v1_generated_StorageTransferService_CancelOperation_sync", + "title": "storagetransfer CancelOperation Sample", + "description": "CancelOperation cancels a transfer. Use\nthe transferOperations.get\nmethod to check if the cancellation succeeded or if the operation\ncompleted despite the cancel request.\n\nWhen you cancel an operation, the currently running transfer is\ninterrupted. For recurring transfer jobs, the next instance of the\ntransfer job will still run. For example, if your job is configured\nto run every day at 1pm and you cancel Monday’s operation at 1: 05pm,\nMonday’s transfer\nwill stop. However, a transfer job will still be attempted on Tuesday.\n\nThis applies only to currently running operations. If an operation is\nnot currently running, cancel does nothing.\n\nWhen you cancel a job, the next job computes a delta of files and may\nrepair any inconsistent state. For instance, if you run a job every\nday, and today’s job found 10 new files and transferred five files\nbefore you canceled the job, tomorrow’s transfer operation will\ncompute a new delta with the five files that were not copied today\nplus any new files discovered tomorrow.", + "file": "Client/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.storagetransfer.v1.Client.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.storagetransfer.v1.Client" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.storagetransfer.v1.StorageTransferService.CancelOperation", + "service": { + "shortName": "StorageTransferService", + "fullName": "google.storagetransfer.v1.StorageTransferService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "storagetransfer_v1_generated_StorageTransferService_CreateAgentPool_sync", + "title": "storagetransfer CreateAgentPool Sample", + "description": "CreateAgentPool creates an agent pool resource.", + "file": "Client/CreateAgentPool/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateAgentPool", + "fullName": "google.storagetransfer.v1.Client.CreateAgentPool", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "storagetransferpb.CreateAgentPoolRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "storagetransferpb.AgentPool", + "client": { + "shortName": "Client", + "fullName": "google.storagetransfer.v1.Client" + }, + "method": { + "shortName": "CreateAgentPool", + "fullName": "google.storagetransfer.v1.StorageTransferService.CreateAgentPool", + "service": { + "shortName": "StorageTransferService", + "fullName": "google.storagetransfer.v1.StorageTransferService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "storagetransfer_v1_generated_StorageTransferService_CreateTransferJob_sync", + "title": "storagetransfer CreateTransferJob Sample", + "description": "CreateTransferJob creates a transfer job that runs periodically.", + "file": "Client/CreateTransferJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateTransferJob", + "fullName": "google.storagetransfer.v1.Client.CreateTransferJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "storagetransferpb.CreateTransferJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "storagetransferpb.TransferJob", + "client": { + "shortName": "Client", + "fullName": "google.storagetransfer.v1.Client" + }, + "method": { + "shortName": "CreateTransferJob", + "fullName": "google.storagetransfer.v1.StorageTransferService.CreateTransferJob", + "service": { + "shortName": "StorageTransferService", + "fullName": "google.storagetransfer.v1.StorageTransferService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "storagetransfer_v1_generated_StorageTransferService_DeleteAgentPool_sync", + "title": "storagetransfer DeleteAgentPool Sample", + "description": "DeleteAgentPool deletes an agent pool.", + "file": "Client/DeleteAgentPool/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteAgentPool", + "fullName": "google.storagetransfer.v1.Client.DeleteAgentPool", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "storagetransferpb.DeleteAgentPoolRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.storagetransfer.v1.Client" + }, + "method": { + "shortName": "DeleteAgentPool", + "fullName": "google.storagetransfer.v1.StorageTransferService.DeleteAgentPool", + "service": { + "shortName": "StorageTransferService", + "fullName": "google.storagetransfer.v1.StorageTransferService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "storagetransfer_v1_generated_StorageTransferService_DeleteTransferJob_sync", + "title": "storagetransfer DeleteTransferJob Sample", + "description": "DeleteTransferJob deletes a transfer job. Deleting a transfer job sets its status to\nDELETED.", + "file": "Client/DeleteTransferJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteTransferJob", + "fullName": "google.storagetransfer.v1.Client.DeleteTransferJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "storagetransferpb.DeleteTransferJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.storagetransfer.v1.Client" + }, + "method": { + "shortName": "DeleteTransferJob", + "fullName": "google.storagetransfer.v1.StorageTransferService.DeleteTransferJob", + "service": { + "shortName": "StorageTransferService", + "fullName": "google.storagetransfer.v1.StorageTransferService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "storagetransfer_v1_generated_StorageTransferService_GetAgentPool_sync", + "title": "storagetransfer GetAgentPool Sample", + "description": "GetAgentPool gets an agent pool.", + "file": "Client/GetAgentPool/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetAgentPool", + "fullName": "google.storagetransfer.v1.Client.GetAgentPool", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "storagetransferpb.GetAgentPoolRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "storagetransferpb.AgentPool", + "client": { + "shortName": "Client", + "fullName": "google.storagetransfer.v1.Client" + }, + "method": { + "shortName": "GetAgentPool", + "fullName": "google.storagetransfer.v1.StorageTransferService.GetAgentPool", + "service": { + "shortName": "StorageTransferService", + "fullName": "google.storagetransfer.v1.StorageTransferService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "storagetransfer_v1_generated_StorageTransferService_GetGoogleServiceAccount_sync", + "title": "storagetransfer GetGoogleServiceAccount Sample", + "description": "GetGoogleServiceAccount returns the Google service account that is used by Storage Transfer\nService to access buckets in the project where transfers\nrun or in other projects. Each Google service account is associated\nwith one Google Cloud project. Users\nshould add this service account to the Google Cloud Storage bucket\nACLs to grant access to Storage Transfer Service. This service\naccount is created and owned by Storage Transfer Service and can\nonly be used by Storage Transfer Service.", + "file": "Client/GetGoogleServiceAccount/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetGoogleServiceAccount", + "fullName": "google.storagetransfer.v1.Client.GetGoogleServiceAccount", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "storagetransferpb.GetGoogleServiceAccountRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "storagetransferpb.GoogleServiceAccount", + "client": { + "shortName": "Client", + "fullName": "google.storagetransfer.v1.Client" + }, + "method": { + "shortName": "GetGoogleServiceAccount", + "fullName": "google.storagetransfer.v1.StorageTransferService.GetGoogleServiceAccount", + "service": { + "shortName": "StorageTransferService", + "fullName": "google.storagetransfer.v1.StorageTransferService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "storagetransfer_v1_generated_StorageTransferService_GetOperation_sync", + "title": "storagetransfer GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "Client/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.storagetransfer.v1.Client.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "Client", + "fullName": "google.storagetransfer.v1.Client" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.storagetransfer.v1.StorageTransferService.GetOperation", + "service": { + "shortName": "StorageTransferService", + "fullName": "google.storagetransfer.v1.StorageTransferService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "storagetransfer_v1_generated_StorageTransferService_GetTransferJob_sync", + "title": "storagetransfer GetTransferJob Sample", + "description": "GetTransferJob gets a transfer job.", + "file": "Client/GetTransferJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetTransferJob", + "fullName": "google.storagetransfer.v1.Client.GetTransferJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "storagetransferpb.GetTransferJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "storagetransferpb.TransferJob", + "client": { + "shortName": "Client", + "fullName": "google.storagetransfer.v1.Client" + }, + "method": { + "shortName": "GetTransferJob", + "fullName": "google.storagetransfer.v1.StorageTransferService.GetTransferJob", + "service": { + "shortName": "StorageTransferService", + "fullName": "google.storagetransfer.v1.StorageTransferService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "storagetransfer_v1_generated_StorageTransferService_ListAgentPools_sync", + "title": "storagetransfer ListAgentPools Sample", + "description": "ListAgentPools lists agent pools.", + "file": "Client/ListAgentPools/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListAgentPools", + "fullName": "google.storagetransfer.v1.Client.ListAgentPools", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "storagetransferpb.ListAgentPoolsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AgentPoolIterator", + "client": { + "shortName": "Client", + "fullName": "google.storagetransfer.v1.Client" + }, + "method": { + "shortName": "ListAgentPools", + "fullName": "google.storagetransfer.v1.StorageTransferService.ListAgentPools", + "service": { + "shortName": "StorageTransferService", + "fullName": "google.storagetransfer.v1.StorageTransferService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "storagetransfer_v1_generated_StorageTransferService_ListOperations_sync", + "title": "storagetransfer ListOperations Sample", + "description": "ListOperations lists transfer operations. Operations are ordered by their creation\ntime in reverse chronological order.", + "file": "Client/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.storagetransfer.v1.Client.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "Client", + "fullName": "google.storagetransfer.v1.Client" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.storagetransfer.v1.StorageTransferService.ListOperations", + "service": { + "shortName": "StorageTransferService", + "fullName": "google.storagetransfer.v1.StorageTransferService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "storagetransfer_v1_generated_StorageTransferService_ListTransferJobs_sync", + "title": "storagetransfer ListTransferJobs Sample", + "description": "ListTransferJobs lists transfer jobs.", + "file": "Client/ListTransferJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListTransferJobs", + "fullName": "google.storagetransfer.v1.Client.ListTransferJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "storagetransferpb.ListTransferJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "TransferJobIterator", + "client": { + "shortName": "Client", + "fullName": "google.storagetransfer.v1.Client" + }, + "method": { + "shortName": "ListTransferJobs", + "fullName": "google.storagetransfer.v1.StorageTransferService.ListTransferJobs", + "service": { + "shortName": "StorageTransferService", + "fullName": "google.storagetransfer.v1.StorageTransferService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "storagetransfer_v1_generated_StorageTransferService_PauseTransferOperation_sync", + "title": "storagetransfer PauseTransferOperation Sample", + "description": "PauseTransferOperation pauses a transfer operation.", + "file": "Client/PauseTransferOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "PauseTransferOperation", + "fullName": "google.storagetransfer.v1.Client.PauseTransferOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "storagetransferpb.PauseTransferOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.storagetransfer.v1.Client" + }, + "method": { + "shortName": "PauseTransferOperation", + "fullName": "google.storagetransfer.v1.StorageTransferService.PauseTransferOperation", + "service": { + "shortName": "StorageTransferService", + "fullName": "google.storagetransfer.v1.StorageTransferService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "storagetransfer_v1_generated_StorageTransferService_ResumeTransferOperation_sync", + "title": "storagetransfer ResumeTransferOperation Sample", + "description": "ResumeTransferOperation resumes a transfer operation that is paused.", + "file": "Client/ResumeTransferOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResumeTransferOperation", + "fullName": "google.storagetransfer.v1.Client.ResumeTransferOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "storagetransferpb.ResumeTransferOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.storagetransfer.v1.Client" + }, + "method": { + "shortName": "ResumeTransferOperation", + "fullName": "google.storagetransfer.v1.StorageTransferService.ResumeTransferOperation", + "service": { + "shortName": "StorageTransferService", + "fullName": "google.storagetransfer.v1.StorageTransferService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "storagetransfer_v1_generated_StorageTransferService_RunTransferJob_sync", + "title": "storagetransfer RunTransferJob Sample", + "description": "RunTransferJob attempts to start a new TransferOperation for the current TransferJob. A\nTransferJob has a maximum of one active TransferOperation. If this method\nis called while a TransferOperation is active, an error will be returned.", + "file": "Client/RunTransferJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RunTransferJob", + "fullName": "google.storagetransfer.v1.Client.RunTransferJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "storagetransferpb.RunTransferJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RunTransferJobOperation", + "client": { + "shortName": "Client", + "fullName": "google.storagetransfer.v1.Client" + }, + "method": { + "shortName": "RunTransferJob", + "fullName": "google.storagetransfer.v1.StorageTransferService.RunTransferJob", + "service": { + "shortName": "StorageTransferService", + "fullName": "google.storagetransfer.v1.StorageTransferService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "storagetransfer_v1_generated_StorageTransferService_UpdateAgentPool_sync", + "title": "storagetransfer UpdateAgentPool Sample", + "description": "UpdateAgentPool updates an existing agent pool resource.", + "file": "Client/UpdateAgentPool/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateAgentPool", + "fullName": "google.storagetransfer.v1.Client.UpdateAgentPool", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "storagetransferpb.UpdateAgentPoolRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "storagetransferpb.AgentPool", + "client": { + "shortName": "Client", + "fullName": "google.storagetransfer.v1.Client" + }, + "method": { + "shortName": "UpdateAgentPool", + "fullName": "google.storagetransfer.v1.StorageTransferService.UpdateAgentPool", + "service": { + "shortName": "StorageTransferService", + "fullName": "google.storagetransfer.v1.StorageTransferService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "storagetransfer_v1_generated_StorageTransferService_UpdateTransferJob_sync", + "title": "storagetransfer UpdateTransferJob Sample", + "description": "UpdateTransferJob updates a transfer job. Updating a job’s transfer spec does not affect\ntransfer operations that are running already.\n\nNote: The job’s status field can be modified\nusing this RPC (for example, to set a job’s status to\nDELETED,\nDISABLED, or\nENABLED).", + "file": "Client/UpdateTransferJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateTransferJob", + "fullName": "google.storagetransfer.v1.Client.UpdateTransferJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "storagetransferpb.UpdateTransferJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "storagetransferpb.TransferJob", + "client": { + "shortName": "Client", + "fullName": "google.storagetransfer.v1.Client" + }, + "method": { + "shortName": "UpdateTransferJob", + "fullName": "google.storagetransfer.v1.StorageTransferService.UpdateTransferJob", + "service": { + "shortName": "StorageTransferService", + "fullName": "google.storagetransfer.v1.StorageTransferService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/talent/apiv4/CompanyClient/CreateCompany/main.go b/internal/generated/snippets/talent/apiv4/CompanyClient/CreateCompany/main.go index 3b8e2a22bf07..318fcc44fdfb 100644 --- a/internal/generated/snippets/talent/apiv4/CompanyClient/CreateCompany/main.go +++ b/internal/generated/snippets/talent/apiv4/CompanyClient/CreateCompany/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.CreateCompanyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#CreateCompanyRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#CreateCompanyRequest. } resp, err := c.CreateCompany(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/CompanyClient/DeleteCompany/main.go b/internal/generated/snippets/talent/apiv4/CompanyClient/DeleteCompany/main.go index 31c809b4999b..a15560396f05 100644 --- a/internal/generated/snippets/talent/apiv4/CompanyClient/DeleteCompany/main.go +++ b/internal/generated/snippets/talent/apiv4/CompanyClient/DeleteCompany/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.DeleteCompanyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#DeleteCompanyRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#DeleteCompanyRequest. } err = c.DeleteCompany(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/CompanyClient/GetCompany/main.go b/internal/generated/snippets/talent/apiv4/CompanyClient/GetCompany/main.go index 6e865af7aa64..c95c5e3a55c0 100644 --- a/internal/generated/snippets/talent/apiv4/CompanyClient/GetCompany/main.go +++ b/internal/generated/snippets/talent/apiv4/CompanyClient/GetCompany/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.GetCompanyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#GetCompanyRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#GetCompanyRequest. } resp, err := c.GetCompany(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/CompanyClient/GetOperation/main.go b/internal/generated/snippets/talent/apiv4/CompanyClient/GetOperation/main.go new file mode 100644 index 000000000000..b068bc4d21bb --- /dev/null +++ b/internal/generated/snippets/talent/apiv4/CompanyClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START jobs_v4_generated_CompanyService_GetOperation_sync] + +package main + +import ( + "context" + + talent "cloud.google.com/go/talent/apiv4" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := talent.NewCompanyClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END jobs_v4_generated_CompanyService_GetOperation_sync] diff --git a/internal/generated/snippets/talent/apiv4/CompanyClient/ListCompanies/main.go b/internal/generated/snippets/talent/apiv4/CompanyClient/ListCompanies/main.go index c8a205ac1695..ca6060cae14e 100644 --- a/internal/generated/snippets/talent/apiv4/CompanyClient/ListCompanies/main.go +++ b/internal/generated/snippets/talent/apiv4/CompanyClient/ListCompanies/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" "google.golang.org/api/iterator" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &talentpb.ListCompaniesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#ListCompaniesRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#ListCompaniesRequest. } it := c.ListCompanies(ctx, req) for { diff --git a/internal/generated/snippets/talent/apiv4/CompanyClient/UpdateCompany/main.go b/internal/generated/snippets/talent/apiv4/CompanyClient/UpdateCompany/main.go index e6be27be4d00..5ec4d51588ef 100644 --- a/internal/generated/snippets/talent/apiv4/CompanyClient/UpdateCompany/main.go +++ b/internal/generated/snippets/talent/apiv4/CompanyClient/UpdateCompany/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.UpdateCompanyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#UpdateCompanyRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#UpdateCompanyRequest. } resp, err := c.UpdateCompany(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/CompletionClient/CompleteQuery/main.go b/internal/generated/snippets/talent/apiv4/CompletionClient/CompleteQuery/main.go index 201ee6c3d260..0cdbe1d20fb8 100644 --- a/internal/generated/snippets/talent/apiv4/CompletionClient/CompleteQuery/main.go +++ b/internal/generated/snippets/talent/apiv4/CompletionClient/CompleteQuery/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.CompleteQueryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#CompleteQueryRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#CompleteQueryRequest. } resp, err := c.CompleteQuery(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/CompletionClient/GetOperation/main.go b/internal/generated/snippets/talent/apiv4/CompletionClient/GetOperation/main.go new file mode 100644 index 000000000000..a7a505600e90 --- /dev/null +++ b/internal/generated/snippets/talent/apiv4/CompletionClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START jobs_v4_generated_Completion_GetOperation_sync] + +package main + +import ( + "context" + + talent "cloud.google.com/go/talent/apiv4" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := talent.NewCompletionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END jobs_v4_generated_Completion_GetOperation_sync] diff --git a/internal/generated/snippets/talent/apiv4/EventClient/CreateClientEvent/main.go b/internal/generated/snippets/talent/apiv4/EventClient/CreateClientEvent/main.go index be9babd110d8..69a9faec96b0 100644 --- a/internal/generated/snippets/talent/apiv4/EventClient/CreateClientEvent/main.go +++ b/internal/generated/snippets/talent/apiv4/EventClient/CreateClientEvent/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewEventClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.CreateClientEventRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#CreateClientEventRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#CreateClientEventRequest. } resp, err := c.CreateClientEvent(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/EventClient/GetOperation/main.go b/internal/generated/snippets/talent/apiv4/EventClient/GetOperation/main.go new file mode 100644 index 000000000000..b02eadd16278 --- /dev/null +++ b/internal/generated/snippets/talent/apiv4/EventClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START jobs_v4_generated_EventService_GetOperation_sync] + +package main + +import ( + "context" + + talent "cloud.google.com/go/talent/apiv4" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := talent.NewEventClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END jobs_v4_generated_EventService_GetOperation_sync] diff --git a/internal/generated/snippets/talent/apiv4/JobClient/BatchCreateJobs/main.go b/internal/generated/snippets/talent/apiv4/JobClient/BatchCreateJobs/main.go index c5e50a55cdd4..9cf684449e08 100644 --- a/internal/generated/snippets/talent/apiv4/JobClient/BatchCreateJobs/main.go +++ b/internal/generated/snippets/talent/apiv4/JobClient/BatchCreateJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.BatchCreateJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#BatchCreateJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#BatchCreateJobsRequest. } op, err := c.BatchCreateJobs(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/JobClient/BatchDeleteJobs/main.go b/internal/generated/snippets/talent/apiv4/JobClient/BatchDeleteJobs/main.go index 71d77daa9bbf..49568f6b157a 100644 --- a/internal/generated/snippets/talent/apiv4/JobClient/BatchDeleteJobs/main.go +++ b/internal/generated/snippets/talent/apiv4/JobClient/BatchDeleteJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.BatchDeleteJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#BatchDeleteJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#BatchDeleteJobsRequest. } op, err := c.BatchDeleteJobs(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/JobClient/BatchUpdateJobs/main.go b/internal/generated/snippets/talent/apiv4/JobClient/BatchUpdateJobs/main.go index 0f0a00ff24dc..f80a50cd245d 100644 --- a/internal/generated/snippets/talent/apiv4/JobClient/BatchUpdateJobs/main.go +++ b/internal/generated/snippets/talent/apiv4/JobClient/BatchUpdateJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.BatchUpdateJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#BatchUpdateJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#BatchUpdateJobsRequest. } op, err := c.BatchUpdateJobs(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/JobClient/CreateJob/main.go b/internal/generated/snippets/talent/apiv4/JobClient/CreateJob/main.go index ed3ebfe93026..d098e53cfe4c 100644 --- a/internal/generated/snippets/talent/apiv4/JobClient/CreateJob/main.go +++ b/internal/generated/snippets/talent/apiv4/JobClient/CreateJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.CreateJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#CreateJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#CreateJobRequest. } resp, err := c.CreateJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/JobClient/DeleteJob/main.go b/internal/generated/snippets/talent/apiv4/JobClient/DeleteJob/main.go index ad77103fb2b6..06a92ac9a5a2 100644 --- a/internal/generated/snippets/talent/apiv4/JobClient/DeleteJob/main.go +++ b/internal/generated/snippets/talent/apiv4/JobClient/DeleteJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.DeleteJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#DeleteJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#DeleteJobRequest. } err = c.DeleteJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/JobClient/GetJob/main.go b/internal/generated/snippets/talent/apiv4/JobClient/GetJob/main.go index ad4ce0005364..7e03645c7df2 100644 --- a/internal/generated/snippets/talent/apiv4/JobClient/GetJob/main.go +++ b/internal/generated/snippets/talent/apiv4/JobClient/GetJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.GetJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#GetJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#GetJobRequest. } resp, err := c.GetJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/JobClient/GetOperation/main.go b/internal/generated/snippets/talent/apiv4/JobClient/GetOperation/main.go new file mode 100644 index 000000000000..0e5e3abfcbc7 --- /dev/null +++ b/internal/generated/snippets/talent/apiv4/JobClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START jobs_v4_generated_JobService_GetOperation_sync] + +package main + +import ( + "context" + + talent "cloud.google.com/go/talent/apiv4" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := talent.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END jobs_v4_generated_JobService_GetOperation_sync] diff --git a/internal/generated/snippets/talent/apiv4/JobClient/ListJobs/main.go b/internal/generated/snippets/talent/apiv4/JobClient/ListJobs/main.go index 16b064a0f1eb..74eebd7ba331 100644 --- a/internal/generated/snippets/talent/apiv4/JobClient/ListJobs/main.go +++ b/internal/generated/snippets/talent/apiv4/JobClient/ListJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" "google.golang.org/api/iterator" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &talentpb.ListJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#ListJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#ListJobsRequest. } it := c.ListJobs(ctx, req) for { diff --git a/internal/generated/snippets/talent/apiv4/JobClient/SearchJobs/main.go b/internal/generated/snippets/talent/apiv4/JobClient/SearchJobs/main.go index a939e2a15d78..819ef7f2dac3 100644 --- a/internal/generated/snippets/talent/apiv4/JobClient/SearchJobs/main.go +++ b/internal/generated/snippets/talent/apiv4/JobClient/SearchJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.SearchJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#SearchJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#SearchJobsRequest. } resp, err := c.SearchJobs(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/JobClient/SearchJobsForAlert/main.go b/internal/generated/snippets/talent/apiv4/JobClient/SearchJobsForAlert/main.go index b4233150b729..f7db174a61f7 100644 --- a/internal/generated/snippets/talent/apiv4/JobClient/SearchJobsForAlert/main.go +++ b/internal/generated/snippets/talent/apiv4/JobClient/SearchJobsForAlert/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.SearchJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#SearchJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#SearchJobsRequest. } resp, err := c.SearchJobsForAlert(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/JobClient/UpdateJob/main.go b/internal/generated/snippets/talent/apiv4/JobClient/UpdateJob/main.go index f3445e596246..dd66d5e78fdb 100644 --- a/internal/generated/snippets/talent/apiv4/JobClient/UpdateJob/main.go +++ b/internal/generated/snippets/talent/apiv4/JobClient/UpdateJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.UpdateJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#UpdateJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#UpdateJobRequest. } resp, err := c.UpdateJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/TenantClient/CreateTenant/main.go b/internal/generated/snippets/talent/apiv4/TenantClient/CreateTenant/main.go index a90f432cceb9..31a124aac70a 100644 --- a/internal/generated/snippets/talent/apiv4/TenantClient/CreateTenant/main.go +++ b/internal/generated/snippets/talent/apiv4/TenantClient/CreateTenant/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.CreateTenantRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#CreateTenantRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#CreateTenantRequest. } resp, err := c.CreateTenant(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/TenantClient/DeleteTenant/main.go b/internal/generated/snippets/talent/apiv4/TenantClient/DeleteTenant/main.go index 2501ef9dfc1c..882d22af0a0e 100644 --- a/internal/generated/snippets/talent/apiv4/TenantClient/DeleteTenant/main.go +++ b/internal/generated/snippets/talent/apiv4/TenantClient/DeleteTenant/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.DeleteTenantRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#DeleteTenantRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#DeleteTenantRequest. } err = c.DeleteTenant(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/TenantClient/GetOperation/main.go b/internal/generated/snippets/talent/apiv4/TenantClient/GetOperation/main.go new file mode 100644 index 000000000000..f9d24e5caa7a --- /dev/null +++ b/internal/generated/snippets/talent/apiv4/TenantClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START jobs_v4_generated_TenantService_GetOperation_sync] + +package main + +import ( + "context" + + talent "cloud.google.com/go/talent/apiv4" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := talent.NewTenantClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END jobs_v4_generated_TenantService_GetOperation_sync] diff --git a/internal/generated/snippets/talent/apiv4/TenantClient/GetTenant/main.go b/internal/generated/snippets/talent/apiv4/TenantClient/GetTenant/main.go index 6a1fc3a93190..4f6b2df17a03 100644 --- a/internal/generated/snippets/talent/apiv4/TenantClient/GetTenant/main.go +++ b/internal/generated/snippets/talent/apiv4/TenantClient/GetTenant/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.GetTenantRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#GetTenantRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#GetTenantRequest. } resp, err := c.GetTenant(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/TenantClient/ListTenants/main.go b/internal/generated/snippets/talent/apiv4/TenantClient/ListTenants/main.go index 04135a5353c6..0c78ca4a6f77 100644 --- a/internal/generated/snippets/talent/apiv4/TenantClient/ListTenants/main.go +++ b/internal/generated/snippets/talent/apiv4/TenantClient/ListTenants/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" "google.golang.org/api/iterator" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &talentpb.ListTenantsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#ListTenantsRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#ListTenantsRequest. } it := c.ListTenants(ctx, req) for { diff --git a/internal/generated/snippets/talent/apiv4/TenantClient/UpdateTenant/main.go b/internal/generated/snippets/talent/apiv4/TenantClient/UpdateTenant/main.go index e0540c247792..c0b9493d0448 100644 --- a/internal/generated/snippets/talent/apiv4/TenantClient/UpdateTenant/main.go +++ b/internal/generated/snippets/talent/apiv4/TenantClient/UpdateTenant/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4" + talentpb "cloud.google.com/go/talent/apiv4/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.UpdateTenantRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4#UpdateTenantRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4/talentpb#UpdateTenantRequest. } resp, err := c.UpdateTenant(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4/snippet_metadata.google.cloud.talent.v4.json b/internal/generated/snippets/talent/apiv4/snippet_metadata.google.cloud.talent.v4.json new file mode 100644 index 000000000000..26bcaed90b55 --- /dev/null +++ b/internal/generated/snippets/talent/apiv4/snippet_metadata.google.cloud.talent.v4.json @@ -0,0 +1,1254 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/talent/apiv4", + "version": "1.5.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.talent.v4", + "version": "v4" + } + ] + }, + "snippets": [ + { + "regionTag": "jobs_v4_generated_CompanyService_CreateCompany_sync", + "title": "jobs CreateCompany Sample", + "description": "CreateCompany creates a new company entity.", + "file": "CompanyClient/CreateCompany/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateCompany", + "fullName": "google.cloud.talent.v4.CompanyClient.CreateCompany", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.CreateCompanyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.Company", + "client": { + "shortName": "CompanyClient", + "fullName": "google.cloud.talent.v4.CompanyClient" + }, + "method": { + "shortName": "CreateCompany", + "fullName": "google.cloud.talent.v4.CompanyService.CreateCompany", + "service": { + "shortName": "CompanyService", + "fullName": "google.cloud.talent.v4.CompanyService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_CompanyService_DeleteCompany_sync", + "title": "jobs DeleteCompany Sample", + "description": "DeleteCompany deletes specified company.\nPrerequisite: The company has no jobs associated with it.", + "file": "CompanyClient/DeleteCompany/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteCompany", + "fullName": "google.cloud.talent.v4.CompanyClient.DeleteCompany", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.DeleteCompanyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "CompanyClient", + "fullName": "google.cloud.talent.v4.CompanyClient" + }, + "method": { + "shortName": "DeleteCompany", + "fullName": "google.cloud.talent.v4.CompanyService.DeleteCompany", + "service": { + "shortName": "CompanyService", + "fullName": "google.cloud.talent.v4.CompanyService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_CompanyService_GetCompany_sync", + "title": "jobs GetCompany Sample", + "description": "GetCompany retrieves specified company.", + "file": "CompanyClient/GetCompany/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCompany", + "fullName": "google.cloud.talent.v4.CompanyClient.GetCompany", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.GetCompanyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.Company", + "client": { + "shortName": "CompanyClient", + "fullName": "google.cloud.talent.v4.CompanyClient" + }, + "method": { + "shortName": "GetCompany", + "fullName": "google.cloud.talent.v4.CompanyService.GetCompany", + "service": { + "shortName": "CompanyService", + "fullName": "google.cloud.talent.v4.CompanyService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_CompanyService_GetOperation_sync", + "title": "jobs GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "CompanyClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4.CompanyClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "CompanyClient", + "fullName": "google.cloud.talent.v4.CompanyClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4.CompanyService.GetOperation", + "service": { + "shortName": "CompanyService", + "fullName": "google.cloud.talent.v4.CompanyService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_CompanyService_ListCompanies_sync", + "title": "jobs ListCompanies Sample", + "description": "ListCompanies lists all companies associated with the project.", + "file": "CompanyClient/ListCompanies/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCompanies", + "fullName": "google.cloud.talent.v4.CompanyClient.ListCompanies", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.ListCompaniesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CompanyIterator", + "client": { + "shortName": "CompanyClient", + "fullName": "google.cloud.talent.v4.CompanyClient" + }, + "method": { + "shortName": "ListCompanies", + "fullName": "google.cloud.talent.v4.CompanyService.ListCompanies", + "service": { + "shortName": "CompanyService", + "fullName": "google.cloud.talent.v4.CompanyService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_CompanyService_UpdateCompany_sync", + "title": "jobs UpdateCompany Sample", + "description": "UpdateCompany updates specified company.", + "file": "CompanyClient/UpdateCompany/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCompany", + "fullName": "google.cloud.talent.v4.CompanyClient.UpdateCompany", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.UpdateCompanyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.Company", + "client": { + "shortName": "CompanyClient", + "fullName": "google.cloud.talent.v4.CompanyClient" + }, + "method": { + "shortName": "UpdateCompany", + "fullName": "google.cloud.talent.v4.CompanyService.UpdateCompany", + "service": { + "shortName": "CompanyService", + "fullName": "google.cloud.talent.v4.CompanyService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_Completion_CompleteQuery_sync", + "title": "jobs CompleteQuery Sample", + "description": "CompleteQuery completes the specified prefix with keyword suggestions.\nIntended for use by a job search auto-complete search box.", + "file": "CompletionClient/CompleteQuery/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CompleteQuery", + "fullName": "google.cloud.talent.v4.CompletionClient.CompleteQuery", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.CompleteQueryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.CompleteQueryResponse", + "client": { + "shortName": "CompletionClient", + "fullName": "google.cloud.talent.v4.CompletionClient" + }, + "method": { + "shortName": "CompleteQuery", + "fullName": "google.cloud.talent.v4.Completion.CompleteQuery", + "service": { + "shortName": "Completion", + "fullName": "google.cloud.talent.v4.Completion" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_Completion_GetOperation_sync", + "title": "jobs GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "CompletionClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4.CompletionClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "CompletionClient", + "fullName": "google.cloud.talent.v4.CompletionClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4.Completion.GetOperation", + "service": { + "shortName": "Completion", + "fullName": "google.cloud.talent.v4.Completion" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_EventService_CreateClientEvent_sync", + "title": "jobs CreateClientEvent Sample", + "description": "CreateClientEvent report events issued when end user interacts with customer’s application\nthat uses Cloud Talent Solution. You may inspect the created events in\nself service\ntools (at https: //console.cloud.google.com/talent-solution/overview).\nLearn\nmore (at https: //cloud.google.com/talent-solution/docs/management-tools)\nabout self service tools.", + "file": "EventClient/CreateClientEvent/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateClientEvent", + "fullName": "google.cloud.talent.v4.EventClient.CreateClientEvent", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.CreateClientEventRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.ClientEvent", + "client": { + "shortName": "EventClient", + "fullName": "google.cloud.talent.v4.EventClient" + }, + "method": { + "shortName": "CreateClientEvent", + "fullName": "google.cloud.talent.v4.EventService.CreateClientEvent", + "service": { + "shortName": "EventService", + "fullName": "google.cloud.talent.v4.EventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_EventService_GetOperation_sync", + "title": "jobs GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "EventClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4.EventClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "EventClient", + "fullName": "google.cloud.talent.v4.EventClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4.EventService.GetOperation", + "service": { + "shortName": "EventService", + "fullName": "google.cloud.talent.v4.EventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_JobService_BatchCreateJobs_sync", + "title": "jobs BatchCreateJobs Sample", + "description": "BatchCreateJobs begins executing a batch create jobs operation.", + "file": "JobClient/BatchCreateJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchCreateJobs", + "fullName": "google.cloud.talent.v4.JobClient.BatchCreateJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.BatchCreateJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "BatchCreateJobsOperation", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4.JobClient" + }, + "method": { + "shortName": "BatchCreateJobs", + "fullName": "google.cloud.talent.v4.JobService.BatchCreateJobs", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_JobService_BatchDeleteJobs_sync", + "title": "jobs BatchDeleteJobs Sample", + "description": "BatchDeleteJobs begins executing a batch delete jobs operation.", + "file": "JobClient/BatchDeleteJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchDeleteJobs", + "fullName": "google.cloud.talent.v4.JobClient.BatchDeleteJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.BatchDeleteJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "BatchDeleteJobsOperation", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4.JobClient" + }, + "method": { + "shortName": "BatchDeleteJobs", + "fullName": "google.cloud.talent.v4.JobService.BatchDeleteJobs", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_JobService_BatchUpdateJobs_sync", + "title": "jobs BatchUpdateJobs Sample", + "description": "BatchUpdateJobs begins executing a batch update jobs operation.", + "file": "JobClient/BatchUpdateJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchUpdateJobs", + "fullName": "google.cloud.talent.v4.JobClient.BatchUpdateJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.BatchUpdateJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "BatchUpdateJobsOperation", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4.JobClient" + }, + "method": { + "shortName": "BatchUpdateJobs", + "fullName": "google.cloud.talent.v4.JobService.BatchUpdateJobs", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_JobService_CreateJob_sync", + "title": "jobs CreateJob Sample", + "description": "CreateJob creates a new job.\n\nTypically, the job becomes searchable within 10 seconds, but it may take\nup to 5 minutes.", + "file": "JobClient/CreateJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateJob", + "fullName": "google.cloud.talent.v4.JobClient.CreateJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.CreateJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.Job", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4.JobClient" + }, + "method": { + "shortName": "CreateJob", + "fullName": "google.cloud.talent.v4.JobService.CreateJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_JobService_DeleteJob_sync", + "title": "jobs DeleteJob Sample", + "description": "DeleteJob deletes the specified job.\n\nTypically, the job becomes unsearchable within 10 seconds, but it may take\nup to 5 minutes.", + "file": "JobClient/DeleteJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteJob", + "fullName": "google.cloud.talent.v4.JobClient.DeleteJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.DeleteJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4.JobClient" + }, + "method": { + "shortName": "DeleteJob", + "fullName": "google.cloud.talent.v4.JobService.DeleteJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_JobService_GetJob_sync", + "title": "jobs GetJob Sample", + "description": "GetJob retrieves the specified job, whose status is OPEN or recently EXPIRED\nwithin the last 90 days.", + "file": "JobClient/GetJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetJob", + "fullName": "google.cloud.talent.v4.JobClient.GetJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.GetJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.Job", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4.JobClient" + }, + "method": { + "shortName": "GetJob", + "fullName": "google.cloud.talent.v4.JobService.GetJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_JobService_GetOperation_sync", + "title": "jobs GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "JobClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4.JobClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4.JobClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4.JobService.GetOperation", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_JobService_ListJobs_sync", + "title": "jobs ListJobs Sample", + "description": "ListJobs lists jobs by filter.", + "file": "JobClient/ListJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListJobs", + "fullName": "google.cloud.talent.v4.JobClient.ListJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.ListJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "JobIterator", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4.JobClient" + }, + "method": { + "shortName": "ListJobs", + "fullName": "google.cloud.talent.v4.JobService.ListJobs", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_JobService_SearchJobs_sync", + "title": "jobs SearchJobs Sample", + "description": "SearchJobs searches for jobs using the provided SearchJobsRequest.\n\nThis call constrains the visibility of jobs\npresent in the database, and only returns jobs that the caller has\npermission to search against.", + "file": "JobClient/SearchJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SearchJobs", + "fullName": "google.cloud.talent.v4.JobClient.SearchJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.SearchJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.SearchJobsResponse", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4.JobClient" + }, + "method": { + "shortName": "SearchJobs", + "fullName": "google.cloud.talent.v4.JobService.SearchJobs", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_JobService_SearchJobsForAlert_sync", + "title": "jobs SearchJobsForAlert Sample", + "description": "SearchJobsForAlert searches for jobs using the provided SearchJobsRequest.\n\nThis API call is intended for the use case of targeting passive job\nseekers (for example, job seekers who have signed up to receive email\nalerts about potential job opportunities), it has different algorithmic\nadjustments that are designed to specifically target passive job seekers.\n\nThis call constrains the visibility of jobs\npresent in the database, and only returns jobs the caller has\npermission to search against.", + "file": "JobClient/SearchJobsForAlert/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SearchJobsForAlert", + "fullName": "google.cloud.talent.v4.JobClient.SearchJobsForAlert", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.SearchJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.SearchJobsResponse", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4.JobClient" + }, + "method": { + "shortName": "SearchJobsForAlert", + "fullName": "google.cloud.talent.v4.JobService.SearchJobsForAlert", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_JobService_UpdateJob_sync", + "title": "jobs UpdateJob Sample", + "description": "UpdateJob updates specified job.\n\nTypically, updated contents become visible in search results within 10\nseconds, but it may take up to 5 minutes.", + "file": "JobClient/UpdateJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateJob", + "fullName": "google.cloud.talent.v4.JobClient.UpdateJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.UpdateJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.Job", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4.JobClient" + }, + "method": { + "shortName": "UpdateJob", + "fullName": "google.cloud.talent.v4.JobService.UpdateJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_TenantService_CreateTenant_sync", + "title": "jobs CreateTenant Sample", + "description": "CreateTenant creates a new tenant entity.", + "file": "TenantClient/CreateTenant/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateTenant", + "fullName": "google.cloud.talent.v4.TenantClient.CreateTenant", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.CreateTenantRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.Tenant", + "client": { + "shortName": "TenantClient", + "fullName": "google.cloud.talent.v4.TenantClient" + }, + "method": { + "shortName": "CreateTenant", + "fullName": "google.cloud.talent.v4.TenantService.CreateTenant", + "service": { + "shortName": "TenantService", + "fullName": "google.cloud.talent.v4.TenantService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_TenantService_DeleteTenant_sync", + "title": "jobs DeleteTenant Sample", + "description": "DeleteTenant deletes specified tenant.", + "file": "TenantClient/DeleteTenant/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteTenant", + "fullName": "google.cloud.talent.v4.TenantClient.DeleteTenant", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.DeleteTenantRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "TenantClient", + "fullName": "google.cloud.talent.v4.TenantClient" + }, + "method": { + "shortName": "DeleteTenant", + "fullName": "google.cloud.talent.v4.TenantService.DeleteTenant", + "service": { + "shortName": "TenantService", + "fullName": "google.cloud.talent.v4.TenantService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_TenantService_GetOperation_sync", + "title": "jobs GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "TenantClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4.TenantClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "TenantClient", + "fullName": "google.cloud.talent.v4.TenantClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4.TenantService.GetOperation", + "service": { + "shortName": "TenantService", + "fullName": "google.cloud.talent.v4.TenantService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_TenantService_GetTenant_sync", + "title": "jobs GetTenant Sample", + "description": "GetTenant retrieves specified tenant.", + "file": "TenantClient/GetTenant/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetTenant", + "fullName": "google.cloud.talent.v4.TenantClient.GetTenant", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.GetTenantRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.Tenant", + "client": { + "shortName": "TenantClient", + "fullName": "google.cloud.talent.v4.TenantClient" + }, + "method": { + "shortName": "GetTenant", + "fullName": "google.cloud.talent.v4.TenantService.GetTenant", + "service": { + "shortName": "TenantService", + "fullName": "google.cloud.talent.v4.TenantService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_TenantService_ListTenants_sync", + "title": "jobs ListTenants Sample", + "description": "ListTenants lists all tenants associated with the project.", + "file": "TenantClient/ListTenants/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListTenants", + "fullName": "google.cloud.talent.v4.TenantClient.ListTenants", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.ListTenantsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "TenantIterator", + "client": { + "shortName": "TenantClient", + "fullName": "google.cloud.talent.v4.TenantClient" + }, + "method": { + "shortName": "ListTenants", + "fullName": "google.cloud.talent.v4.TenantService.ListTenants", + "service": { + "shortName": "TenantService", + "fullName": "google.cloud.talent.v4.TenantService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4_generated_TenantService_UpdateTenant_sync", + "title": "jobs UpdateTenant Sample", + "description": "UpdateTenant updates specified tenant.", + "file": "TenantClient/UpdateTenant/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateTenant", + "fullName": "google.cloud.talent.v4.TenantClient.UpdateTenant", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.UpdateTenantRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.Tenant", + "client": { + "shortName": "TenantClient", + "fullName": "google.cloud.talent.v4.TenantClient" + }, + "method": { + "shortName": "UpdateTenant", + "fullName": "google.cloud.talent.v4.TenantService.UpdateTenant", + "service": { + "shortName": "TenantService", + "fullName": "google.cloud.talent.v4.TenantService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/talent/apiv4beta1/CompanyClient/CreateCompany/main.go b/internal/generated/snippets/talent/apiv4beta1/CompanyClient/CreateCompany/main.go index f32fd3a62392..e20d886aa64f 100644 --- a/internal/generated/snippets/talent/apiv4beta1/CompanyClient/CreateCompany/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/CompanyClient/CreateCompany/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.CreateCompanyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#CreateCompanyRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#CreateCompanyRequest. } resp, err := c.CreateCompany(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4beta1/CompanyClient/DeleteCompany/main.go b/internal/generated/snippets/talent/apiv4beta1/CompanyClient/DeleteCompany/main.go index 9fc0437d4b19..80e252b218bb 100644 --- a/internal/generated/snippets/talent/apiv4beta1/CompanyClient/DeleteCompany/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/CompanyClient/DeleteCompany/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.DeleteCompanyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#DeleteCompanyRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#DeleteCompanyRequest. } err = c.DeleteCompany(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4beta1/CompanyClient/GetCompany/main.go b/internal/generated/snippets/talent/apiv4beta1/CompanyClient/GetCompany/main.go index 4e999b027ae9..183975702b55 100644 --- a/internal/generated/snippets/talent/apiv4beta1/CompanyClient/GetCompany/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/CompanyClient/GetCompany/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.GetCompanyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#GetCompanyRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#GetCompanyRequest. } resp, err := c.GetCompany(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4beta1/CompanyClient/GetOperation/main.go b/internal/generated/snippets/talent/apiv4beta1/CompanyClient/GetOperation/main.go new file mode 100644 index 000000000000..1a5913acfd6c --- /dev/null +++ b/internal/generated/snippets/talent/apiv4beta1/CompanyClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START jobs_v4beta1_generated_CompanyService_GetOperation_sync] + +package main + +import ( + "context" + + talent "cloud.google.com/go/talent/apiv4beta1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := talent.NewCompanyClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END jobs_v4beta1_generated_CompanyService_GetOperation_sync] diff --git a/internal/generated/snippets/talent/apiv4beta1/CompanyClient/ListCompanies/main.go b/internal/generated/snippets/talent/apiv4beta1/CompanyClient/ListCompanies/main.go index 375ee003e794..ad9281140114 100644 --- a/internal/generated/snippets/talent/apiv4beta1/CompanyClient/ListCompanies/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/CompanyClient/ListCompanies/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" "google.golang.org/api/iterator" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &talentpb.ListCompaniesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#ListCompaniesRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#ListCompaniesRequest. } it := c.ListCompanies(ctx, req) for { diff --git a/internal/generated/snippets/talent/apiv4beta1/CompanyClient/UpdateCompany/main.go b/internal/generated/snippets/talent/apiv4beta1/CompanyClient/UpdateCompany/main.go index 620c08b2204c..7958fb68e8ea 100644 --- a/internal/generated/snippets/talent/apiv4beta1/CompanyClient/UpdateCompany/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/CompanyClient/UpdateCompany/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompanyClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.UpdateCompanyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#UpdateCompanyRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#UpdateCompanyRequest. } resp, err := c.UpdateCompany(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4beta1/CompletionClient/CompleteQuery/main.go b/internal/generated/snippets/talent/apiv4beta1/CompletionClient/CompleteQuery/main.go index 185dd68373dd..f1b5a0750b02 100644 --- a/internal/generated/snippets/talent/apiv4beta1/CompletionClient/CompleteQuery/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/CompletionClient/CompleteQuery/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewCompletionClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.CompleteQueryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#CompleteQueryRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#CompleteQueryRequest. } resp, err := c.CompleteQuery(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4beta1/CompletionClient/GetOperation/main.go b/internal/generated/snippets/talent/apiv4beta1/CompletionClient/GetOperation/main.go new file mode 100644 index 000000000000..bead61102466 --- /dev/null +++ b/internal/generated/snippets/talent/apiv4beta1/CompletionClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START jobs_v4beta1_generated_Completion_GetOperation_sync] + +package main + +import ( + "context" + + talent "cloud.google.com/go/talent/apiv4beta1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := talent.NewCompletionClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END jobs_v4beta1_generated_Completion_GetOperation_sync] diff --git a/internal/generated/snippets/talent/apiv4beta1/EventClient/CreateClientEvent/main.go b/internal/generated/snippets/talent/apiv4beta1/EventClient/CreateClientEvent/main.go index b344a2af6ba2..3557a704bbbc 100644 --- a/internal/generated/snippets/talent/apiv4beta1/EventClient/CreateClientEvent/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/EventClient/CreateClientEvent/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewEventClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.CreateClientEventRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#CreateClientEventRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#CreateClientEventRequest. } resp, err := c.CreateClientEvent(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4beta1/EventClient/GetOperation/main.go b/internal/generated/snippets/talent/apiv4beta1/EventClient/GetOperation/main.go new file mode 100644 index 000000000000..92ab1b9bc106 --- /dev/null +++ b/internal/generated/snippets/talent/apiv4beta1/EventClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START jobs_v4beta1_generated_EventService_GetOperation_sync] + +package main + +import ( + "context" + + talent "cloud.google.com/go/talent/apiv4beta1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := talent.NewEventClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END jobs_v4beta1_generated_EventService_GetOperation_sync] diff --git a/internal/generated/snippets/talent/apiv4beta1/JobClient/BatchCreateJobs/main.go b/internal/generated/snippets/talent/apiv4beta1/JobClient/BatchCreateJobs/main.go index c71727dab531..60e21f4b2a54 100644 --- a/internal/generated/snippets/talent/apiv4beta1/JobClient/BatchCreateJobs/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/JobClient/BatchCreateJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.BatchCreateJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#BatchCreateJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#BatchCreateJobsRequest. } op, err := c.BatchCreateJobs(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4beta1/JobClient/BatchDeleteJobs/main.go b/internal/generated/snippets/talent/apiv4beta1/JobClient/BatchDeleteJobs/main.go index dd690873a855..0f7c6e4e4851 100644 --- a/internal/generated/snippets/talent/apiv4beta1/JobClient/BatchDeleteJobs/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/JobClient/BatchDeleteJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.BatchDeleteJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#BatchDeleteJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#BatchDeleteJobsRequest. } err = c.BatchDeleteJobs(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4beta1/JobClient/BatchUpdateJobs/main.go b/internal/generated/snippets/talent/apiv4beta1/JobClient/BatchUpdateJobs/main.go index 5c79d250dfbc..8a521dfb1616 100644 --- a/internal/generated/snippets/talent/apiv4beta1/JobClient/BatchUpdateJobs/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/JobClient/BatchUpdateJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.BatchUpdateJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#BatchUpdateJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#BatchUpdateJobsRequest. } op, err := c.BatchUpdateJobs(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4beta1/JobClient/CreateJob/main.go b/internal/generated/snippets/talent/apiv4beta1/JobClient/CreateJob/main.go index 72703138c4a6..ce9c9d52e24c 100644 --- a/internal/generated/snippets/talent/apiv4beta1/JobClient/CreateJob/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/JobClient/CreateJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.CreateJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#CreateJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#CreateJobRequest. } resp, err := c.CreateJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4beta1/JobClient/DeleteJob/main.go b/internal/generated/snippets/talent/apiv4beta1/JobClient/DeleteJob/main.go index f7aa1ae24d90..ba3b6f04b6e7 100644 --- a/internal/generated/snippets/talent/apiv4beta1/JobClient/DeleteJob/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/JobClient/DeleteJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.DeleteJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#DeleteJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#DeleteJobRequest. } err = c.DeleteJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4beta1/JobClient/GetJob/main.go b/internal/generated/snippets/talent/apiv4beta1/JobClient/GetJob/main.go index 8c6d75e3f045..7441e9b00a05 100644 --- a/internal/generated/snippets/talent/apiv4beta1/JobClient/GetJob/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/JobClient/GetJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.GetJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#GetJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#GetJobRequest. } resp, err := c.GetJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4beta1/JobClient/GetOperation/main.go b/internal/generated/snippets/talent/apiv4beta1/JobClient/GetOperation/main.go new file mode 100644 index 000000000000..a99e26cfcda4 --- /dev/null +++ b/internal/generated/snippets/talent/apiv4beta1/JobClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START jobs_v4beta1_generated_JobService_GetOperation_sync] + +package main + +import ( + "context" + + talent "cloud.google.com/go/talent/apiv4beta1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := talent.NewJobClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END jobs_v4beta1_generated_JobService_GetOperation_sync] diff --git a/internal/generated/snippets/talent/apiv4beta1/JobClient/ListJobs/main.go b/internal/generated/snippets/talent/apiv4beta1/JobClient/ListJobs/main.go index fc51407dbb44..a87907b075b8 100644 --- a/internal/generated/snippets/talent/apiv4beta1/JobClient/ListJobs/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/JobClient/ListJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" "google.golang.org/api/iterator" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &talentpb.ListJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#ListJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#ListJobsRequest. } it := c.ListJobs(ctx, req) for { diff --git a/internal/generated/snippets/talent/apiv4beta1/JobClient/SearchJobs/main.go b/internal/generated/snippets/talent/apiv4beta1/JobClient/SearchJobs/main.go index e0d68e7c1483..90c267abb3f6 100644 --- a/internal/generated/snippets/talent/apiv4beta1/JobClient/SearchJobs/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/JobClient/SearchJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.SearchJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#SearchJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#SearchJobsRequest. } resp, err := c.SearchJobs(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4beta1/JobClient/SearchJobsForAlert/main.go b/internal/generated/snippets/talent/apiv4beta1/JobClient/SearchJobsForAlert/main.go index 508db3e98910..b5d401222b3f 100644 --- a/internal/generated/snippets/talent/apiv4beta1/JobClient/SearchJobsForAlert/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/JobClient/SearchJobsForAlert/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" "google.golang.org/api/iterator" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &talentpb.SearchJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#SearchJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#SearchJobsRequest. } it := c.SearchJobsForAlert(ctx, req) for { diff --git a/internal/generated/snippets/talent/apiv4beta1/JobClient/UpdateJob/main.go b/internal/generated/snippets/talent/apiv4beta1/JobClient/UpdateJob/main.go index d5b63d424895..1bd9252088ca 100644 --- a/internal/generated/snippets/talent/apiv4beta1/JobClient/UpdateJob/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/JobClient/UpdateJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewJobClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.UpdateJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#UpdateJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#UpdateJobRequest. } resp, err := c.UpdateJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4beta1/TenantClient/CreateTenant/main.go b/internal/generated/snippets/talent/apiv4beta1/TenantClient/CreateTenant/main.go index 2cdd42527a38..6d21e9ab38ba 100644 --- a/internal/generated/snippets/talent/apiv4beta1/TenantClient/CreateTenant/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/TenantClient/CreateTenant/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.CreateTenantRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#CreateTenantRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#CreateTenantRequest. } resp, err := c.CreateTenant(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4beta1/TenantClient/DeleteTenant/main.go b/internal/generated/snippets/talent/apiv4beta1/TenantClient/DeleteTenant/main.go index 0660ea1d7aef..1f4d485ff162 100644 --- a/internal/generated/snippets/talent/apiv4beta1/TenantClient/DeleteTenant/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/TenantClient/DeleteTenant/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.DeleteTenantRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#DeleteTenantRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#DeleteTenantRequest. } err = c.DeleteTenant(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4beta1/TenantClient/GetOperation/main.go b/internal/generated/snippets/talent/apiv4beta1/TenantClient/GetOperation/main.go new file mode 100644 index 000000000000..5bcb0c8225f3 --- /dev/null +++ b/internal/generated/snippets/talent/apiv4beta1/TenantClient/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START jobs_v4beta1_generated_TenantService_GetOperation_sync] + +package main + +import ( + "context" + + talent "cloud.google.com/go/talent/apiv4beta1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := talent.NewTenantClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END jobs_v4beta1_generated_TenantService_GetOperation_sync] diff --git a/internal/generated/snippets/talent/apiv4beta1/TenantClient/GetTenant/main.go b/internal/generated/snippets/talent/apiv4beta1/TenantClient/GetTenant/main.go index c1695ae76fab..1bb10577ff91 100644 --- a/internal/generated/snippets/talent/apiv4beta1/TenantClient/GetTenant/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/TenantClient/GetTenant/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.GetTenantRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#GetTenantRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#GetTenantRequest. } resp, err := c.GetTenant(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4beta1/TenantClient/ListTenants/main.go b/internal/generated/snippets/talent/apiv4beta1/TenantClient/ListTenants/main.go index 3cf9fc5045b9..9be731081057 100644 --- a/internal/generated/snippets/talent/apiv4beta1/TenantClient/ListTenants/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/TenantClient/ListTenants/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" "google.golang.org/api/iterator" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &talentpb.ListTenantsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#ListTenantsRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#ListTenantsRequest. } it := c.ListTenants(ctx, req) for { diff --git a/internal/generated/snippets/talent/apiv4beta1/TenantClient/UpdateTenant/main.go b/internal/generated/snippets/talent/apiv4beta1/TenantClient/UpdateTenant/main.go index 2c117503ffa0..5fc6be437aea 100644 --- a/internal/generated/snippets/talent/apiv4beta1/TenantClient/UpdateTenant/main.go +++ b/internal/generated/snippets/talent/apiv4beta1/TenantClient/UpdateTenant/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" talent "cloud.google.com/go/talent/apiv4beta1" - talentpb "google.golang.org/genproto/googleapis/cloud/talent/v4beta1" + talentpb "cloud.google.com/go/talent/apiv4beta1/talentpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := talent.NewTenantClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &talentpb.UpdateTenantRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#UpdateTenantRequest. + // See https://pkg.go.dev/cloud.google.com/go/talent/apiv4beta1/talentpb#UpdateTenantRequest. } resp, err := c.UpdateTenant(ctx, req) if err != nil { diff --git a/internal/generated/snippets/talent/apiv4beta1/snippet_metadata.google.cloud.talent.v4beta1.json b/internal/generated/snippets/talent/apiv4beta1/snippet_metadata.google.cloud.talent.v4beta1.json new file mode 100644 index 000000000000..349e19745190 --- /dev/null +++ b/internal/generated/snippets/talent/apiv4beta1/snippet_metadata.google.cloud.talent.v4beta1.json @@ -0,0 +1,1253 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/talent/apiv4beta1", + "version": "1.5.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.talent.v4beta1", + "version": "v4beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "jobs_v4beta1_generated_CompanyService_CreateCompany_sync", + "title": "jobs CreateCompany Sample", + "description": "CreateCompany creates a new company entity.", + "file": "CompanyClient/CreateCompany/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateCompany", + "fullName": "google.cloud.talent.v4beta1.CompanyClient.CreateCompany", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.CreateCompanyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.Company", + "client": { + "shortName": "CompanyClient", + "fullName": "google.cloud.talent.v4beta1.CompanyClient" + }, + "method": { + "shortName": "CreateCompany", + "fullName": "google.cloud.talent.v4beta1.CompanyService.CreateCompany", + "service": { + "shortName": "CompanyService", + "fullName": "google.cloud.talent.v4beta1.CompanyService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_CompanyService_DeleteCompany_sync", + "title": "jobs DeleteCompany Sample", + "description": "DeleteCompany deletes specified company.\nPrerequisite: The company has no jobs associated with it.", + "file": "CompanyClient/DeleteCompany/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteCompany", + "fullName": "google.cloud.talent.v4beta1.CompanyClient.DeleteCompany", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.DeleteCompanyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "CompanyClient", + "fullName": "google.cloud.talent.v4beta1.CompanyClient" + }, + "method": { + "shortName": "DeleteCompany", + "fullName": "google.cloud.talent.v4beta1.CompanyService.DeleteCompany", + "service": { + "shortName": "CompanyService", + "fullName": "google.cloud.talent.v4beta1.CompanyService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_CompanyService_GetCompany_sync", + "title": "jobs GetCompany Sample", + "description": "GetCompany retrieves specified company.", + "file": "CompanyClient/GetCompany/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCompany", + "fullName": "google.cloud.talent.v4beta1.CompanyClient.GetCompany", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.GetCompanyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.Company", + "client": { + "shortName": "CompanyClient", + "fullName": "google.cloud.talent.v4beta1.CompanyClient" + }, + "method": { + "shortName": "GetCompany", + "fullName": "google.cloud.talent.v4beta1.CompanyService.GetCompany", + "service": { + "shortName": "CompanyService", + "fullName": "google.cloud.talent.v4beta1.CompanyService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_CompanyService_GetOperation_sync", + "title": "jobs GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "CompanyClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4beta1.CompanyClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "CompanyClient", + "fullName": "google.cloud.talent.v4beta1.CompanyClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4beta1.CompanyService.GetOperation", + "service": { + "shortName": "CompanyService", + "fullName": "google.cloud.talent.v4beta1.CompanyService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_CompanyService_ListCompanies_sync", + "title": "jobs ListCompanies Sample", + "description": "ListCompanies lists all companies associated with the project.", + "file": "CompanyClient/ListCompanies/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCompanies", + "fullName": "google.cloud.talent.v4beta1.CompanyClient.ListCompanies", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.ListCompaniesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CompanyIterator", + "client": { + "shortName": "CompanyClient", + "fullName": "google.cloud.talent.v4beta1.CompanyClient" + }, + "method": { + "shortName": "ListCompanies", + "fullName": "google.cloud.talent.v4beta1.CompanyService.ListCompanies", + "service": { + "shortName": "CompanyService", + "fullName": "google.cloud.talent.v4beta1.CompanyService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_CompanyService_UpdateCompany_sync", + "title": "jobs UpdateCompany Sample", + "description": "UpdateCompany updates specified company.", + "file": "CompanyClient/UpdateCompany/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCompany", + "fullName": "google.cloud.talent.v4beta1.CompanyClient.UpdateCompany", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.UpdateCompanyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.Company", + "client": { + "shortName": "CompanyClient", + "fullName": "google.cloud.talent.v4beta1.CompanyClient" + }, + "method": { + "shortName": "UpdateCompany", + "fullName": "google.cloud.talent.v4beta1.CompanyService.UpdateCompany", + "service": { + "shortName": "CompanyService", + "fullName": "google.cloud.talent.v4beta1.CompanyService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_Completion_CompleteQuery_sync", + "title": "jobs CompleteQuery Sample", + "description": "CompleteQuery completes the specified prefix with keyword suggestions.\nIntended for use by a job search auto-complete search box.", + "file": "CompletionClient/CompleteQuery/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CompleteQuery", + "fullName": "google.cloud.talent.v4beta1.CompletionClient.CompleteQuery", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.CompleteQueryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.CompleteQueryResponse", + "client": { + "shortName": "CompletionClient", + "fullName": "google.cloud.talent.v4beta1.CompletionClient" + }, + "method": { + "shortName": "CompleteQuery", + "fullName": "google.cloud.talent.v4beta1.Completion.CompleteQuery", + "service": { + "shortName": "Completion", + "fullName": "google.cloud.talent.v4beta1.Completion" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_Completion_GetOperation_sync", + "title": "jobs GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "CompletionClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4beta1.CompletionClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "CompletionClient", + "fullName": "google.cloud.talent.v4beta1.CompletionClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4beta1.Completion.GetOperation", + "service": { + "shortName": "Completion", + "fullName": "google.cloud.talent.v4beta1.Completion" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_EventService_CreateClientEvent_sync", + "title": "jobs CreateClientEvent Sample", + "description": "CreateClientEvent report events issued when end user interacts with customer’s application\nthat uses Cloud Talent Solution. You may inspect the created events in\nself service\ntools (at https: //console.cloud.google.com/talent-solution/overview).\nLearn\nmore (at https: //cloud.google.com/talent-solution/docs/management-tools)\nabout self service tools.", + "file": "EventClient/CreateClientEvent/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateClientEvent", + "fullName": "google.cloud.talent.v4beta1.EventClient.CreateClientEvent", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.CreateClientEventRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.ClientEvent", + "client": { + "shortName": "EventClient", + "fullName": "google.cloud.talent.v4beta1.EventClient" + }, + "method": { + "shortName": "CreateClientEvent", + "fullName": "google.cloud.talent.v4beta1.EventService.CreateClientEvent", + "service": { + "shortName": "EventService", + "fullName": "google.cloud.talent.v4beta1.EventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_EventService_GetOperation_sync", + "title": "jobs GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "EventClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4beta1.EventClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "EventClient", + "fullName": "google.cloud.talent.v4beta1.EventClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4beta1.EventService.GetOperation", + "service": { + "shortName": "EventService", + "fullName": "google.cloud.talent.v4beta1.EventService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_JobService_BatchCreateJobs_sync", + "title": "jobs BatchCreateJobs Sample", + "description": "BatchCreateJobs begins executing a batch create jobs operation.", + "file": "JobClient/BatchCreateJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchCreateJobs", + "fullName": "google.cloud.talent.v4beta1.JobClient.BatchCreateJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.BatchCreateJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "BatchCreateJobsOperation", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4beta1.JobClient" + }, + "method": { + "shortName": "BatchCreateJobs", + "fullName": "google.cloud.talent.v4beta1.JobService.BatchCreateJobs", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4beta1.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_JobService_BatchDeleteJobs_sync", + "title": "jobs BatchDeleteJobs Sample", + "description": "BatchDeleteJobs deletes a list of Jobs by filter.", + "file": "JobClient/BatchDeleteJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchDeleteJobs", + "fullName": "google.cloud.talent.v4beta1.JobClient.BatchDeleteJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.BatchDeleteJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4beta1.JobClient" + }, + "method": { + "shortName": "BatchDeleteJobs", + "fullName": "google.cloud.talent.v4beta1.JobService.BatchDeleteJobs", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4beta1.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_JobService_BatchUpdateJobs_sync", + "title": "jobs BatchUpdateJobs Sample", + "description": "BatchUpdateJobs begins executing a batch update jobs operation.", + "file": "JobClient/BatchUpdateJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchUpdateJobs", + "fullName": "google.cloud.talent.v4beta1.JobClient.BatchUpdateJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.BatchUpdateJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "BatchUpdateJobsOperation", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4beta1.JobClient" + }, + "method": { + "shortName": "BatchUpdateJobs", + "fullName": "google.cloud.talent.v4beta1.JobService.BatchUpdateJobs", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4beta1.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_JobService_CreateJob_sync", + "title": "jobs CreateJob Sample", + "description": "CreateJob creates a new job.\n\nTypically, the job becomes searchable within 10 seconds, but it may take\nup to 5 minutes.", + "file": "JobClient/CreateJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateJob", + "fullName": "google.cloud.talent.v4beta1.JobClient.CreateJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.CreateJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.Job", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4beta1.JobClient" + }, + "method": { + "shortName": "CreateJob", + "fullName": "google.cloud.talent.v4beta1.JobService.CreateJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4beta1.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_JobService_DeleteJob_sync", + "title": "jobs DeleteJob Sample", + "description": "DeleteJob deletes the specified job.\n\nTypically, the job becomes unsearchable within 10 seconds, but it may take\nup to 5 minutes.", + "file": "JobClient/DeleteJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteJob", + "fullName": "google.cloud.talent.v4beta1.JobClient.DeleteJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.DeleteJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4beta1.JobClient" + }, + "method": { + "shortName": "DeleteJob", + "fullName": "google.cloud.talent.v4beta1.JobService.DeleteJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4beta1.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_JobService_GetJob_sync", + "title": "jobs GetJob Sample", + "description": "GetJob retrieves the specified job, whose status is OPEN or recently EXPIRED\nwithin the last 90 days.", + "file": "JobClient/GetJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetJob", + "fullName": "google.cloud.talent.v4beta1.JobClient.GetJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.GetJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.Job", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4beta1.JobClient" + }, + "method": { + "shortName": "GetJob", + "fullName": "google.cloud.talent.v4beta1.JobService.GetJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4beta1.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_JobService_GetOperation_sync", + "title": "jobs GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "JobClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4beta1.JobClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4beta1.JobClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4beta1.JobService.GetOperation", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4beta1.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_JobService_ListJobs_sync", + "title": "jobs ListJobs Sample", + "description": "ListJobs lists jobs by filter.", + "file": "JobClient/ListJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListJobs", + "fullName": "google.cloud.talent.v4beta1.JobClient.ListJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.ListJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "JobIterator", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4beta1.JobClient" + }, + "method": { + "shortName": "ListJobs", + "fullName": "google.cloud.talent.v4beta1.JobService.ListJobs", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4beta1.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_JobService_SearchJobs_sync", + "title": "jobs SearchJobs Sample", + "description": "SearchJobs searches for jobs using the provided SearchJobsRequest.\n\nThis call constrains the visibility of jobs\npresent in the database, and only returns jobs that the caller has\npermission to search against.", + "file": "JobClient/SearchJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SearchJobs", + "fullName": "google.cloud.talent.v4beta1.JobClient.SearchJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.SearchJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.SearchJobsResponse", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4beta1.JobClient" + }, + "method": { + "shortName": "SearchJobs", + "fullName": "google.cloud.talent.v4beta1.JobService.SearchJobs", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4beta1.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_JobService_SearchJobsForAlert_sync", + "title": "jobs SearchJobsForAlert Sample", + "description": "SearchJobsForAlert searches for jobs using the provided SearchJobsRequest.\n\nThis API call is intended for the use case of targeting passive job\nseekers (for example, job seekers who have signed up to receive email\nalerts about potential job opportunities), and has different algorithmic\nadjustments that are targeted to passive job seekers.\n\nThis call constrains the visibility of jobs\npresent in the database, and only returns jobs the caller has\npermission to search against.", + "file": "JobClient/SearchJobsForAlert/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SearchJobsForAlert", + "fullName": "google.cloud.talent.v4beta1.JobClient.SearchJobsForAlert", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.SearchJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SearchJobsResponse_MatchingJobIterator", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4beta1.JobClient" + }, + "method": { + "shortName": "SearchJobsForAlert", + "fullName": "google.cloud.talent.v4beta1.JobService.SearchJobsForAlert", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4beta1.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_JobService_UpdateJob_sync", + "title": "jobs UpdateJob Sample", + "description": "UpdateJob updates specified job.\n\nTypically, updated contents become visible in search results within 10\nseconds, but it may take up to 5 minutes.", + "file": "JobClient/UpdateJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateJob", + "fullName": "google.cloud.talent.v4beta1.JobClient.UpdateJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.UpdateJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.Job", + "client": { + "shortName": "JobClient", + "fullName": "google.cloud.talent.v4beta1.JobClient" + }, + "method": { + "shortName": "UpdateJob", + "fullName": "google.cloud.talent.v4beta1.JobService.UpdateJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.talent.v4beta1.JobService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_TenantService_CreateTenant_sync", + "title": "jobs CreateTenant Sample", + "description": "CreateTenant creates a new tenant entity.", + "file": "TenantClient/CreateTenant/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateTenant", + "fullName": "google.cloud.talent.v4beta1.TenantClient.CreateTenant", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.CreateTenantRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.Tenant", + "client": { + "shortName": "TenantClient", + "fullName": "google.cloud.talent.v4beta1.TenantClient" + }, + "method": { + "shortName": "CreateTenant", + "fullName": "google.cloud.talent.v4beta1.TenantService.CreateTenant", + "service": { + "shortName": "TenantService", + "fullName": "google.cloud.talent.v4beta1.TenantService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_TenantService_DeleteTenant_sync", + "title": "jobs DeleteTenant Sample", + "description": "DeleteTenant deletes specified tenant.", + "file": "TenantClient/DeleteTenant/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteTenant", + "fullName": "google.cloud.talent.v4beta1.TenantClient.DeleteTenant", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.DeleteTenantRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "TenantClient", + "fullName": "google.cloud.talent.v4beta1.TenantClient" + }, + "method": { + "shortName": "DeleteTenant", + "fullName": "google.cloud.talent.v4beta1.TenantService.DeleteTenant", + "service": { + "shortName": "TenantService", + "fullName": "google.cloud.talent.v4beta1.TenantService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_TenantService_GetOperation_sync", + "title": "jobs GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "TenantClient/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4beta1.TenantClient.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "TenantClient", + "fullName": "google.cloud.talent.v4beta1.TenantClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.talent.v4beta1.TenantService.GetOperation", + "service": { + "shortName": "TenantService", + "fullName": "google.cloud.talent.v4beta1.TenantService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_TenantService_GetTenant_sync", + "title": "jobs GetTenant Sample", + "description": "GetTenant retrieves specified tenant.", + "file": "TenantClient/GetTenant/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetTenant", + "fullName": "google.cloud.talent.v4beta1.TenantClient.GetTenant", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.GetTenantRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.Tenant", + "client": { + "shortName": "TenantClient", + "fullName": "google.cloud.talent.v4beta1.TenantClient" + }, + "method": { + "shortName": "GetTenant", + "fullName": "google.cloud.talent.v4beta1.TenantService.GetTenant", + "service": { + "shortName": "TenantService", + "fullName": "google.cloud.talent.v4beta1.TenantService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_TenantService_ListTenants_sync", + "title": "jobs ListTenants Sample", + "description": "ListTenants lists all tenants associated with the project.", + "file": "TenantClient/ListTenants/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListTenants", + "fullName": "google.cloud.talent.v4beta1.TenantClient.ListTenants", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.ListTenantsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "TenantIterator", + "client": { + "shortName": "TenantClient", + "fullName": "google.cloud.talent.v4beta1.TenantClient" + }, + "method": { + "shortName": "ListTenants", + "fullName": "google.cloud.talent.v4beta1.TenantService.ListTenants", + "service": { + "shortName": "TenantService", + "fullName": "google.cloud.talent.v4beta1.TenantService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "jobs_v4beta1_generated_TenantService_UpdateTenant_sync", + "title": "jobs UpdateTenant Sample", + "description": "UpdateTenant updates specified tenant.", + "file": "TenantClient/UpdateTenant/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateTenant", + "fullName": "google.cloud.talent.v4beta1.TenantClient.UpdateTenant", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "talentpb.UpdateTenantRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "talentpb.Tenant", + "client": { + "shortName": "TenantClient", + "fullName": "google.cloud.talent.v4beta1.TenantClient" + }, + "method": { + "shortName": "UpdateTenant", + "fullName": "google.cloud.talent.v4beta1.TenantService.UpdateTenant", + "service": { + "shortName": "TenantService", + "fullName": "google.cloud.talent.v4beta1.TenantService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/texttospeech/apiv1/Client/ListVoices/main.go b/internal/generated/snippets/texttospeech/apiv1/Client/ListVoices/main.go index 0a58c36d3ccd..a3c89c35d265 100644 --- a/internal/generated/snippets/texttospeech/apiv1/Client/ListVoices/main.go +++ b/internal/generated/snippets/texttospeech/apiv1/Client/ListVoices/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" texttospeech "cloud.google.com/go/texttospeech/apiv1" - texttospeechpb "google.golang.org/genproto/googleapis/cloud/texttospeech/v1" + texttospeechpb "cloud.google.com/go/texttospeech/apiv1/texttospeechpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := texttospeech.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &texttospeechpb.ListVoicesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/texttospeech/v1#ListVoicesRequest. + // See https://pkg.go.dev/cloud.google.com/go/texttospeech/apiv1/texttospeechpb#ListVoicesRequest. } resp, err := c.ListVoices(ctx, req) if err != nil { diff --git a/internal/generated/snippets/texttospeech/apiv1/Client/SynthesizeSpeech/main.go b/internal/generated/snippets/texttospeech/apiv1/Client/SynthesizeSpeech/main.go index 76b601ca6b85..096f674e0e12 100644 --- a/internal/generated/snippets/texttospeech/apiv1/Client/SynthesizeSpeech/main.go +++ b/internal/generated/snippets/texttospeech/apiv1/Client/SynthesizeSpeech/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" texttospeech "cloud.google.com/go/texttospeech/apiv1" - texttospeechpb "google.golang.org/genproto/googleapis/cloud/texttospeech/v1" + texttospeechpb "cloud.google.com/go/texttospeech/apiv1/texttospeechpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := texttospeech.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &texttospeechpb.SynthesizeSpeechRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/texttospeech/v1#SynthesizeSpeechRequest. + // See https://pkg.go.dev/cloud.google.com/go/texttospeech/apiv1/texttospeechpb#SynthesizeSpeechRequest. } resp, err := c.SynthesizeSpeech(ctx, req) if err != nil { diff --git a/internal/generated/snippets/texttospeech/apiv1/TextToSpeechLongAudioSynthesizeClient/SynthesizeLongAudio/main.go b/internal/generated/snippets/texttospeech/apiv1/TextToSpeechLongAudioSynthesizeClient/SynthesizeLongAudio/main.go new file mode 100644 index 000000000000..8c6f2f4f489d --- /dev/null +++ b/internal/generated/snippets/texttospeech/apiv1/TextToSpeechLongAudioSynthesizeClient/SynthesizeLongAudio/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START texttospeech_v1_generated_TextToSpeechLongAudioSynthesize_SynthesizeLongAudio_sync] + +package main + +import ( + "context" + + texttospeech "cloud.google.com/go/texttospeech/apiv1" + texttospeechpb "cloud.google.com/go/texttospeech/apiv1/texttospeechpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := texttospeech.NewTextToSpeechLongAudioSynthesizeClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &texttospeechpb.SynthesizeLongAudioRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/texttospeech/apiv1/texttospeechpb#SynthesizeLongAudioRequest. + } + op, err := c.SynthesizeLongAudio(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END texttospeech_v1_generated_TextToSpeechLongAudioSynthesize_SynthesizeLongAudio_sync] diff --git a/internal/generated/snippets/texttospeech/apiv1/snippet_metadata.google.cloud.texttospeech.v1.json b/internal/generated/snippets/texttospeech/apiv1/snippet_metadata.google.cloud.texttospeech.v1.json new file mode 100644 index 000000000000..286937f5c873 --- /dev/null +++ b/internal/generated/snippets/texttospeech/apiv1/snippet_metadata.google.cloud.texttospeech.v1.json @@ -0,0 +1,153 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/texttospeech/apiv1", + "version": "1.6.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.texttospeech.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "texttospeech_v1_generated_TextToSpeech_ListVoices_sync", + "title": "texttospeech ListVoices Sample", + "description": "ListVoices returns a list of Voice supported for synthesis.", + "file": "Client/ListVoices/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListVoices", + "fullName": "google.cloud.texttospeech.v1.Client.ListVoices", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "texttospeechpb.ListVoicesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "texttospeechpb.ListVoicesResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.texttospeech.v1.Client" + }, + "method": { + "shortName": "ListVoices", + "fullName": "google.cloud.texttospeech.v1.TextToSpeech.ListVoices", + "service": { + "shortName": "TextToSpeech", + "fullName": "google.cloud.texttospeech.v1.TextToSpeech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "texttospeech_v1_generated_TextToSpeech_SynthesizeSpeech_sync", + "title": "texttospeech SynthesizeSpeech Sample", + "description": "SynthesizeSpeech synthesizes speech synchronously: receive results after all text input\nhas been processed.", + "file": "Client/SynthesizeSpeech/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SynthesizeSpeech", + "fullName": "google.cloud.texttospeech.v1.Client.SynthesizeSpeech", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "texttospeechpb.SynthesizeSpeechRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "texttospeechpb.SynthesizeSpeechResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.texttospeech.v1.Client" + }, + "method": { + "shortName": "SynthesizeSpeech", + "fullName": "google.cloud.texttospeech.v1.TextToSpeech.SynthesizeSpeech", + "service": { + "shortName": "TextToSpeech", + "fullName": "google.cloud.texttospeech.v1.TextToSpeech" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "texttospeech_v1_generated_TextToSpeechLongAudioSynthesize_SynthesizeLongAudio_sync", + "title": "texttospeech SynthesizeLongAudio Sample", + "description": "SynthesizeLongAudio synthesizes long form text asynchronously.", + "file": "TextToSpeechLongAudioSynthesizeClient/SynthesizeLongAudio/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SynthesizeLongAudio", + "fullName": "google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesizeClient.SynthesizeLongAudio", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "texttospeechpb.SynthesizeLongAudioRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SynthesizeLongAudioOperation", + "client": { + "shortName": "TextToSpeechLongAudioSynthesizeClient", + "fullName": "google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesizeClient" + }, + "method": { + "shortName": "SynthesizeLongAudio", + "fullName": "google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesize.SynthesizeLongAudio", + "service": { + "shortName": "TextToSpeechLongAudioSynthesize", + "fullName": "google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesize" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/tpu/apiv1/Client/CancelOperation/main.go b/internal/generated/snippets/tpu/apiv1/Client/CancelOperation/main.go new file mode 100644 index 000000000000..36ac93040d81 --- /dev/null +++ b/internal/generated/snippets/tpu/apiv1/Client/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START tpu_v1_generated_Tpu_CancelOperation_sync] + +package main + +import ( + "context" + + tpu "cloud.google.com/go/tpu/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := tpu.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END tpu_v1_generated_Tpu_CancelOperation_sync] diff --git a/internal/generated/snippets/tpu/apiv1/Client/CreateNode/main.go b/internal/generated/snippets/tpu/apiv1/Client/CreateNode/main.go index 715bc30d0a92..5560dc906ee0 100644 --- a/internal/generated/snippets/tpu/apiv1/Client/CreateNode/main.go +++ b/internal/generated/snippets/tpu/apiv1/Client/CreateNode/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" tpu "cloud.google.com/go/tpu/apiv1" - tpupb "google.golang.org/genproto/googleapis/cloud/tpu/v1" + tpupb "cloud.google.com/go/tpu/apiv1/tpupb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &tpupb.CreateNodeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/tpu/v1#CreateNodeRequest. + // See https://pkg.go.dev/cloud.google.com/go/tpu/apiv1/tpupb#CreateNodeRequest. } op, err := c.CreateNode(ctx, req) if err != nil { diff --git a/internal/generated/snippets/tpu/apiv1/Client/DeleteNode/main.go b/internal/generated/snippets/tpu/apiv1/Client/DeleteNode/main.go index c189d177d936..ff360d817fef 100644 --- a/internal/generated/snippets/tpu/apiv1/Client/DeleteNode/main.go +++ b/internal/generated/snippets/tpu/apiv1/Client/DeleteNode/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" tpu "cloud.google.com/go/tpu/apiv1" - tpupb "google.golang.org/genproto/googleapis/cloud/tpu/v1" + tpupb "cloud.google.com/go/tpu/apiv1/tpupb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &tpupb.DeleteNodeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/tpu/v1#DeleteNodeRequest. + // See https://pkg.go.dev/cloud.google.com/go/tpu/apiv1/tpupb#DeleteNodeRequest. } op, err := c.DeleteNode(ctx, req) if err != nil { diff --git a/internal/generated/snippets/tpu/apiv1/Client/DeleteOperation/main.go b/internal/generated/snippets/tpu/apiv1/Client/DeleteOperation/main.go new file mode 100644 index 000000000000..2c9744eb3bcf --- /dev/null +++ b/internal/generated/snippets/tpu/apiv1/Client/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START tpu_v1_generated_Tpu_DeleteOperation_sync] + +package main + +import ( + "context" + + tpu "cloud.google.com/go/tpu/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := tpu.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END tpu_v1_generated_Tpu_DeleteOperation_sync] diff --git a/internal/generated/snippets/tpu/apiv1/Client/GetAcceleratorType/main.go b/internal/generated/snippets/tpu/apiv1/Client/GetAcceleratorType/main.go index f23892e358d7..6705d8c00981 100644 --- a/internal/generated/snippets/tpu/apiv1/Client/GetAcceleratorType/main.go +++ b/internal/generated/snippets/tpu/apiv1/Client/GetAcceleratorType/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" tpu "cloud.google.com/go/tpu/apiv1" - tpupb "google.golang.org/genproto/googleapis/cloud/tpu/v1" + tpupb "cloud.google.com/go/tpu/apiv1/tpupb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &tpupb.GetAcceleratorTypeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/tpu/v1#GetAcceleratorTypeRequest. + // See https://pkg.go.dev/cloud.google.com/go/tpu/apiv1/tpupb#GetAcceleratorTypeRequest. } resp, err := c.GetAcceleratorType(ctx, req) if err != nil { diff --git a/internal/generated/snippets/tpu/apiv1/Client/GetLocation/main.go b/internal/generated/snippets/tpu/apiv1/Client/GetLocation/main.go new file mode 100644 index 000000000000..4db24c7010cc --- /dev/null +++ b/internal/generated/snippets/tpu/apiv1/Client/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START tpu_v1_generated_Tpu_GetLocation_sync] + +package main + +import ( + "context" + + tpu "cloud.google.com/go/tpu/apiv1" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := tpu.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END tpu_v1_generated_Tpu_GetLocation_sync] diff --git a/internal/generated/snippets/tpu/apiv1/Client/GetNode/main.go b/internal/generated/snippets/tpu/apiv1/Client/GetNode/main.go index a3ef2c0abee9..19a23c65c7b1 100644 --- a/internal/generated/snippets/tpu/apiv1/Client/GetNode/main.go +++ b/internal/generated/snippets/tpu/apiv1/Client/GetNode/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" tpu "cloud.google.com/go/tpu/apiv1" - tpupb "google.golang.org/genproto/googleapis/cloud/tpu/v1" + tpupb "cloud.google.com/go/tpu/apiv1/tpupb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &tpupb.GetNodeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/tpu/v1#GetNodeRequest. + // See https://pkg.go.dev/cloud.google.com/go/tpu/apiv1/tpupb#GetNodeRequest. } resp, err := c.GetNode(ctx, req) if err != nil { diff --git a/internal/generated/snippets/tpu/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/tpu/apiv1/Client/GetOperation/main.go new file mode 100644 index 000000000000..b499c3c805b5 --- /dev/null +++ b/internal/generated/snippets/tpu/apiv1/Client/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START tpu_v1_generated_Tpu_GetOperation_sync] + +package main + +import ( + "context" + + tpu "cloud.google.com/go/tpu/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := tpu.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END tpu_v1_generated_Tpu_GetOperation_sync] diff --git a/internal/generated/snippets/tpu/apiv1/Client/GetTensorFlowVersion/main.go b/internal/generated/snippets/tpu/apiv1/Client/GetTensorFlowVersion/main.go index c2184f490620..d71dcbadaa09 100644 --- a/internal/generated/snippets/tpu/apiv1/Client/GetTensorFlowVersion/main.go +++ b/internal/generated/snippets/tpu/apiv1/Client/GetTensorFlowVersion/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" tpu "cloud.google.com/go/tpu/apiv1" - tpupb "google.golang.org/genproto/googleapis/cloud/tpu/v1" + tpupb "cloud.google.com/go/tpu/apiv1/tpupb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &tpupb.GetTensorFlowVersionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/tpu/v1#GetTensorFlowVersionRequest. + // See https://pkg.go.dev/cloud.google.com/go/tpu/apiv1/tpupb#GetTensorFlowVersionRequest. } resp, err := c.GetTensorFlowVersion(ctx, req) if err != nil { diff --git a/internal/generated/snippets/tpu/apiv1/Client/ListAcceleratorTypes/main.go b/internal/generated/snippets/tpu/apiv1/Client/ListAcceleratorTypes/main.go index 7cd043daf0db..aad4bcb9fe55 100644 --- a/internal/generated/snippets/tpu/apiv1/Client/ListAcceleratorTypes/main.go +++ b/internal/generated/snippets/tpu/apiv1/Client/ListAcceleratorTypes/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" tpu "cloud.google.com/go/tpu/apiv1" + tpupb "cloud.google.com/go/tpu/apiv1/tpupb" "google.golang.org/api/iterator" - tpupb "google.golang.org/genproto/googleapis/cloud/tpu/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &tpupb.ListAcceleratorTypesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/tpu/v1#ListAcceleratorTypesRequest. + // See https://pkg.go.dev/cloud.google.com/go/tpu/apiv1/tpupb#ListAcceleratorTypesRequest. } it := c.ListAcceleratorTypes(ctx, req) for { diff --git a/internal/generated/snippets/tpu/apiv1/Client/ListLocations/main.go b/internal/generated/snippets/tpu/apiv1/Client/ListLocations/main.go new file mode 100644 index 000000000000..ae71f1517341 --- /dev/null +++ b/internal/generated/snippets/tpu/apiv1/Client/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START tpu_v1_generated_Tpu_ListLocations_sync] + +package main + +import ( + "context" + + tpu "cloud.google.com/go/tpu/apiv1" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := tpu.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END tpu_v1_generated_Tpu_ListLocations_sync] diff --git a/internal/generated/snippets/tpu/apiv1/Client/ListNodes/main.go b/internal/generated/snippets/tpu/apiv1/Client/ListNodes/main.go index 20e4c873beaf..0341d0237b1c 100644 --- a/internal/generated/snippets/tpu/apiv1/Client/ListNodes/main.go +++ b/internal/generated/snippets/tpu/apiv1/Client/ListNodes/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" tpu "cloud.google.com/go/tpu/apiv1" + tpupb "cloud.google.com/go/tpu/apiv1/tpupb" "google.golang.org/api/iterator" - tpupb "google.golang.org/genproto/googleapis/cloud/tpu/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &tpupb.ListNodesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/tpu/v1#ListNodesRequest. + // See https://pkg.go.dev/cloud.google.com/go/tpu/apiv1/tpupb#ListNodesRequest. } it := c.ListNodes(ctx, req) for { diff --git a/internal/generated/snippets/tpu/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/tpu/apiv1/Client/ListOperations/main.go new file mode 100644 index 000000000000..6a453b85b31c --- /dev/null +++ b/internal/generated/snippets/tpu/apiv1/Client/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START tpu_v1_generated_Tpu_ListOperations_sync] + +package main + +import ( + "context" + + tpu "cloud.google.com/go/tpu/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := tpu.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END tpu_v1_generated_Tpu_ListOperations_sync] diff --git a/internal/generated/snippets/tpu/apiv1/Client/ListTensorFlowVersions/main.go b/internal/generated/snippets/tpu/apiv1/Client/ListTensorFlowVersions/main.go index 2bb0f7987e20..9ef363e65def 100644 --- a/internal/generated/snippets/tpu/apiv1/Client/ListTensorFlowVersions/main.go +++ b/internal/generated/snippets/tpu/apiv1/Client/ListTensorFlowVersions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" tpu "cloud.google.com/go/tpu/apiv1" + tpupb "cloud.google.com/go/tpu/apiv1/tpupb" "google.golang.org/api/iterator" - tpupb "google.golang.org/genproto/googleapis/cloud/tpu/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &tpupb.ListTensorFlowVersionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/tpu/v1#ListTensorFlowVersionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/tpu/apiv1/tpupb#ListTensorFlowVersionsRequest. } it := c.ListTensorFlowVersions(ctx, req) for { diff --git a/internal/generated/snippets/tpu/apiv1/Client/ReimageNode/main.go b/internal/generated/snippets/tpu/apiv1/Client/ReimageNode/main.go index c977f4e1065d..b8046961f182 100644 --- a/internal/generated/snippets/tpu/apiv1/Client/ReimageNode/main.go +++ b/internal/generated/snippets/tpu/apiv1/Client/ReimageNode/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" tpu "cloud.google.com/go/tpu/apiv1" - tpupb "google.golang.org/genproto/googleapis/cloud/tpu/v1" + tpupb "cloud.google.com/go/tpu/apiv1/tpupb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &tpupb.ReimageNodeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/tpu/v1#ReimageNodeRequest. + // See https://pkg.go.dev/cloud.google.com/go/tpu/apiv1/tpupb#ReimageNodeRequest. } op, err := c.ReimageNode(ctx, req) if err != nil { diff --git a/internal/generated/snippets/tpu/apiv1/Client/StartNode/main.go b/internal/generated/snippets/tpu/apiv1/Client/StartNode/main.go index 4b628f61d840..766959b4c4a8 100644 --- a/internal/generated/snippets/tpu/apiv1/Client/StartNode/main.go +++ b/internal/generated/snippets/tpu/apiv1/Client/StartNode/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" tpu "cloud.google.com/go/tpu/apiv1" - tpupb "google.golang.org/genproto/googleapis/cloud/tpu/v1" + tpupb "cloud.google.com/go/tpu/apiv1/tpupb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &tpupb.StartNodeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/tpu/v1#StartNodeRequest. + // See https://pkg.go.dev/cloud.google.com/go/tpu/apiv1/tpupb#StartNodeRequest. } op, err := c.StartNode(ctx, req) if err != nil { diff --git a/internal/generated/snippets/tpu/apiv1/Client/StopNode/main.go b/internal/generated/snippets/tpu/apiv1/Client/StopNode/main.go index 4da052a32335..a696ec9791c3 100644 --- a/internal/generated/snippets/tpu/apiv1/Client/StopNode/main.go +++ b/internal/generated/snippets/tpu/apiv1/Client/StopNode/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" tpu "cloud.google.com/go/tpu/apiv1" - tpupb "google.golang.org/genproto/googleapis/cloud/tpu/v1" + tpupb "cloud.google.com/go/tpu/apiv1/tpupb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := tpu.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &tpupb.StopNodeRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/tpu/v1#StopNodeRequest. + // See https://pkg.go.dev/cloud.google.com/go/tpu/apiv1/tpupb#StopNodeRequest. } op, err := c.StopNode(ctx, req) if err != nil { diff --git a/internal/generated/snippets/tpu/apiv1/snippet_metadata.google.cloud.tpu.v1.json b/internal/generated/snippets/tpu/apiv1/snippet_metadata.google.cloud.tpu.v1.json new file mode 100644 index 000000000000..38c02d236d6d --- /dev/null +++ b/internal/generated/snippets/tpu/apiv1/snippet_metadata.google.cloud.tpu.v1.json @@ -0,0 +1,795 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/tpu/apiv1", + "version": "1.5.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.tpu.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "tpu_v1_generated_Tpu_CancelOperation_sync", + "title": "tpu CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "Client/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.tpu.v1.Client.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.tpu.v1.Client" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.tpu.v1.Tpu.CancelOperation", + "service": { + "shortName": "Tpu", + "fullName": "google.cloud.tpu.v1.Tpu" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "tpu_v1_generated_Tpu_CreateNode_sync", + "title": "tpu CreateNode Sample", + "description": "CreateNode creates a node.", + "file": "Client/CreateNode/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateNode", + "fullName": "google.cloud.tpu.v1.Client.CreateNode", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "tpupb.CreateNodeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateNodeOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.tpu.v1.Client" + }, + "method": { + "shortName": "CreateNode", + "fullName": "google.cloud.tpu.v1.Tpu.CreateNode", + "service": { + "shortName": "Tpu", + "fullName": "google.cloud.tpu.v1.Tpu" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "tpu_v1_generated_Tpu_DeleteNode_sync", + "title": "tpu DeleteNode Sample", + "description": "DeleteNode deletes a node.", + "file": "Client/DeleteNode/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteNode", + "fullName": "google.cloud.tpu.v1.Client.DeleteNode", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "tpupb.DeleteNodeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteNodeOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.tpu.v1.Client" + }, + "method": { + "shortName": "DeleteNode", + "fullName": "google.cloud.tpu.v1.Tpu.DeleteNode", + "service": { + "shortName": "Tpu", + "fullName": "google.cloud.tpu.v1.Tpu" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "tpu_v1_generated_Tpu_DeleteOperation_sync", + "title": "tpu DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "Client/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.tpu.v1.Client.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.tpu.v1.Client" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.tpu.v1.Tpu.DeleteOperation", + "service": { + "shortName": "Tpu", + "fullName": "google.cloud.tpu.v1.Tpu" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "tpu_v1_generated_Tpu_GetAcceleratorType_sync", + "title": "tpu GetAcceleratorType Sample", + "description": "GetAcceleratorType gets AcceleratorType.", + "file": "Client/GetAcceleratorType/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetAcceleratorType", + "fullName": "google.cloud.tpu.v1.Client.GetAcceleratorType", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "tpupb.GetAcceleratorTypeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "tpupb.AcceleratorType", + "client": { + "shortName": "Client", + "fullName": "google.cloud.tpu.v1.Client" + }, + "method": { + "shortName": "GetAcceleratorType", + "fullName": "google.cloud.tpu.v1.Tpu.GetAcceleratorType", + "service": { + "shortName": "Tpu", + "fullName": "google.cloud.tpu.v1.Tpu" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "tpu_v1_generated_Tpu_GetLocation_sync", + "title": "tpu GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "Client/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.tpu.v1.Client.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "Client", + "fullName": "google.cloud.tpu.v1.Client" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.tpu.v1.Tpu.GetLocation", + "service": { + "shortName": "Tpu", + "fullName": "google.cloud.tpu.v1.Tpu" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "tpu_v1_generated_Tpu_GetNode_sync", + "title": "tpu GetNode Sample", + "description": "GetNode gets the details of a node.", + "file": "Client/GetNode/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetNode", + "fullName": "google.cloud.tpu.v1.Client.GetNode", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "tpupb.GetNodeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "tpupb.Node", + "client": { + "shortName": "Client", + "fullName": "google.cloud.tpu.v1.Client" + }, + "method": { + "shortName": "GetNode", + "fullName": "google.cloud.tpu.v1.Tpu.GetNode", + "service": { + "shortName": "Tpu", + "fullName": "google.cloud.tpu.v1.Tpu" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "tpu_v1_generated_Tpu_GetOperation_sync", + "title": "tpu GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "Client/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.tpu.v1.Client.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.tpu.v1.Client" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.tpu.v1.Tpu.GetOperation", + "service": { + "shortName": "Tpu", + "fullName": "google.cloud.tpu.v1.Tpu" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "tpu_v1_generated_Tpu_GetTensorFlowVersion_sync", + "title": "tpu GetTensorFlowVersion Sample", + "description": "GetTensorFlowVersion gets TensorFlow Version.", + "file": "Client/GetTensorFlowVersion/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetTensorFlowVersion", + "fullName": "google.cloud.tpu.v1.Client.GetTensorFlowVersion", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "tpupb.GetTensorFlowVersionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "tpupb.TensorFlowVersion", + "client": { + "shortName": "Client", + "fullName": "google.cloud.tpu.v1.Client" + }, + "method": { + "shortName": "GetTensorFlowVersion", + "fullName": "google.cloud.tpu.v1.Tpu.GetTensorFlowVersion", + "service": { + "shortName": "Tpu", + "fullName": "google.cloud.tpu.v1.Tpu" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "tpu_v1_generated_Tpu_ListAcceleratorTypes_sync", + "title": "tpu ListAcceleratorTypes Sample", + "description": "ListAcceleratorTypes lists accelerator types supported by this API.", + "file": "Client/ListAcceleratorTypes/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListAcceleratorTypes", + "fullName": "google.cloud.tpu.v1.Client.ListAcceleratorTypes", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "tpupb.ListAcceleratorTypesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AcceleratorTypeIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.tpu.v1.Client" + }, + "method": { + "shortName": "ListAcceleratorTypes", + "fullName": "google.cloud.tpu.v1.Tpu.ListAcceleratorTypes", + "service": { + "shortName": "Tpu", + "fullName": "google.cloud.tpu.v1.Tpu" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "tpu_v1_generated_Tpu_ListLocations_sync", + "title": "tpu ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "Client/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.tpu.v1.Client.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.tpu.v1.Client" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.tpu.v1.Tpu.ListLocations", + "service": { + "shortName": "Tpu", + "fullName": "google.cloud.tpu.v1.Tpu" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "tpu_v1_generated_Tpu_ListNodes_sync", + "title": "tpu ListNodes Sample", + "description": "ListNodes lists nodes.", + "file": "Client/ListNodes/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListNodes", + "fullName": "google.cloud.tpu.v1.Client.ListNodes", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "tpupb.ListNodesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "NodeIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.tpu.v1.Client" + }, + "method": { + "shortName": "ListNodes", + "fullName": "google.cloud.tpu.v1.Tpu.ListNodes", + "service": { + "shortName": "Tpu", + "fullName": "google.cloud.tpu.v1.Tpu" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "tpu_v1_generated_Tpu_ListOperations_sync", + "title": "tpu ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "Client/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.tpu.v1.Client.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.tpu.v1.Client" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.tpu.v1.Tpu.ListOperations", + "service": { + "shortName": "Tpu", + "fullName": "google.cloud.tpu.v1.Tpu" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "tpu_v1_generated_Tpu_ListTensorFlowVersions_sync", + "title": "tpu ListTensorFlowVersions Sample", + "description": "ListTensorFlowVersions list TensorFlow versions supported by this API.", + "file": "Client/ListTensorFlowVersions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListTensorFlowVersions", + "fullName": "google.cloud.tpu.v1.Client.ListTensorFlowVersions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "tpupb.ListTensorFlowVersionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "TensorFlowVersionIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.tpu.v1.Client" + }, + "method": { + "shortName": "ListTensorFlowVersions", + "fullName": "google.cloud.tpu.v1.Tpu.ListTensorFlowVersions", + "service": { + "shortName": "Tpu", + "fullName": "google.cloud.tpu.v1.Tpu" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "tpu_v1_generated_Tpu_ReimageNode_sync", + "title": "tpu ReimageNode Sample", + "description": "ReimageNode reimages a node’s OS.", + "file": "Client/ReimageNode/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ReimageNode", + "fullName": "google.cloud.tpu.v1.Client.ReimageNode", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "tpupb.ReimageNodeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ReimageNodeOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.tpu.v1.Client" + }, + "method": { + "shortName": "ReimageNode", + "fullName": "google.cloud.tpu.v1.Tpu.ReimageNode", + "service": { + "shortName": "Tpu", + "fullName": "google.cloud.tpu.v1.Tpu" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "tpu_v1_generated_Tpu_StartNode_sync", + "title": "tpu StartNode Sample", + "description": "StartNode starts a node.", + "file": "Client/StartNode/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StartNode", + "fullName": "google.cloud.tpu.v1.Client.StartNode", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "tpupb.StartNodeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "StartNodeOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.tpu.v1.Client" + }, + "method": { + "shortName": "StartNode", + "fullName": "google.cloud.tpu.v1.Tpu.StartNode", + "service": { + "shortName": "Tpu", + "fullName": "google.cloud.tpu.v1.Tpu" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "tpu_v1_generated_Tpu_StopNode_sync", + "title": "tpu StopNode Sample", + "description": "StopNode stops a node, this operation is only available with single TPU nodes.", + "file": "Client/StopNode/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StopNode", + "fullName": "google.cloud.tpu.v1.Client.StopNode", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "tpupb.StopNodeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "StopNodeOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.tpu.v1.Client" + }, + "method": { + "shortName": "StopNode", + "fullName": "google.cloud.tpu.v1.Tpu.StopNode", + "service": { + "shortName": "Tpu", + "fullName": "google.cloud.tpu.v1.Tpu" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/trace/apiv1/Client/GetTrace/main.go b/internal/generated/snippets/trace/apiv1/Client/GetTrace/main.go index ecb9ca493305..76c2dea320f8 100644 --- a/internal/generated/snippets/trace/apiv1/Client/GetTrace/main.go +++ b/internal/generated/snippets/trace/apiv1/Client/GetTrace/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,20 +22,25 @@ import ( "context" trace "cloud.google.com/go/trace/apiv1" - cloudtracepb "google.golang.org/genproto/googleapis/devtools/cloudtrace/v1" + tracepb "cloud.google.com/go/trace/apiv1/tracepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := trace.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() - req := &cloudtracepb.GetTraceRequest{ + req := &tracepb.GetTraceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/devtools/cloudtrace/v1#GetTraceRequest. + // See https://pkg.go.dev/cloud.google.com/go/trace/apiv1/tracepb#GetTraceRequest. } resp, err := c.GetTrace(ctx, req) if err != nil { diff --git a/internal/generated/snippets/trace/apiv1/Client/ListTraces/main.go b/internal/generated/snippets/trace/apiv1/Client/ListTraces/main.go index 7e117901ec05..80883f820d53 100644 --- a/internal/generated/snippets/trace/apiv1/Client/ListTraces/main.go +++ b/internal/generated/snippets/trace/apiv1/Client/ListTraces/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,21 +22,26 @@ import ( "context" trace "cloud.google.com/go/trace/apiv1" + tracepb "cloud.google.com/go/trace/apiv1/tracepb" "google.golang.org/api/iterator" - cloudtracepb "google.golang.org/genproto/googleapis/devtools/cloudtrace/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := trace.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() - req := &cloudtracepb.ListTracesRequest{ + req := &tracepb.ListTracesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/devtools/cloudtrace/v1#ListTracesRequest. + // See https://pkg.go.dev/cloud.google.com/go/trace/apiv1/tracepb#ListTracesRequest. } it := c.ListTraces(ctx, req) for { diff --git a/internal/generated/snippets/trace/apiv1/Client/PatchTraces/main.go b/internal/generated/snippets/trace/apiv1/Client/PatchTraces/main.go index 5770c82c95ad..4990c98701f4 100644 --- a/internal/generated/snippets/trace/apiv1/Client/PatchTraces/main.go +++ b/internal/generated/snippets/trace/apiv1/Client/PatchTraces/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,20 +22,25 @@ import ( "context" trace "cloud.google.com/go/trace/apiv1" - cloudtracepb "google.golang.org/genproto/googleapis/devtools/cloudtrace/v1" + tracepb "cloud.google.com/go/trace/apiv1/tracepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := trace.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() - req := &cloudtracepb.PatchTracesRequest{ + req := &tracepb.PatchTracesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/devtools/cloudtrace/v1#PatchTracesRequest. + // See https://pkg.go.dev/cloud.google.com/go/trace/apiv1/tracepb#PatchTracesRequest. } err = c.PatchTraces(ctx, req) if err != nil { diff --git a/internal/generated/snippets/trace/apiv1/snippet_metadata.google.devtools.cloudtrace.v1.json b/internal/generated/snippets/trace/apiv1/snippet_metadata.google.devtools.cloudtrace.v1.json new file mode 100644 index 000000000000..cedf937e94aa --- /dev/null +++ b/internal/generated/snippets/trace/apiv1/snippet_metadata.google.devtools.cloudtrace.v1.json @@ -0,0 +1,152 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/trace/apiv1", + "version": "1.5.0", + "language": "GO", + "apis": [ + { + "id": "google.devtools.cloudtrace.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "cloudtrace_v1_generated_TraceService_GetTrace_sync", + "title": "cloudtrace GetTrace Sample", + "description": "GetTrace gets a single trace by its ID.", + "file": "Client/GetTrace/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetTrace", + "fullName": "google.devtools.cloudtrace.v1.Client.GetTrace", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "tracepb.GetTraceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "tracepb.Trace", + "client": { + "shortName": "Client", + "fullName": "google.devtools.cloudtrace.v1.Client" + }, + "method": { + "shortName": "GetTrace", + "fullName": "google.devtools.cloudtrace.v1.TraceService.GetTrace", + "service": { + "shortName": "TraceService", + "fullName": "google.devtools.cloudtrace.v1.TraceService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudtrace_v1_generated_TraceService_ListTraces_sync", + "title": "cloudtrace ListTraces Sample", + "description": "ListTraces returns of a list of traces that match the specified filter conditions.", + "file": "Client/ListTraces/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListTraces", + "fullName": "google.devtools.cloudtrace.v1.Client.ListTraces", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "tracepb.ListTracesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "TraceIterator", + "client": { + "shortName": "Client", + "fullName": "google.devtools.cloudtrace.v1.Client" + }, + "method": { + "shortName": "ListTraces", + "fullName": "google.devtools.cloudtrace.v1.TraceService.ListTraces", + "service": { + "shortName": "TraceService", + "fullName": "google.devtools.cloudtrace.v1.TraceService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudtrace_v1_generated_TraceService_PatchTraces_sync", + "title": "cloudtrace PatchTraces Sample", + "description": "PatchTraces sends new traces to Stackdriver Trace or updates existing traces. If the ID\nof a trace that you send matches that of an existing trace, any fields\nin the existing trace and its spans are overwritten by the provided values,\nand any new fields provided are merged with the existing trace data. If the\nID does not match, a new trace is created.", + "file": "Client/PatchTraces/main.go", + "language": "GO", + "clientMethod": { + "shortName": "PatchTraces", + "fullName": "google.devtools.cloudtrace.v1.Client.PatchTraces", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "tracepb.PatchTracesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.devtools.cloudtrace.v1.Client" + }, + "method": { + "shortName": "PatchTraces", + "fullName": "google.devtools.cloudtrace.v1.TraceService.PatchTraces", + "service": { + "shortName": "TraceService", + "fullName": "google.devtools.cloudtrace.v1.TraceService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/trace/apiv2/Client/BatchWriteSpans/main.go b/internal/generated/snippets/trace/apiv2/Client/BatchWriteSpans/main.go index d406504a4c46..73b7bb5c2fc4 100644 --- a/internal/generated/snippets/trace/apiv2/Client/BatchWriteSpans/main.go +++ b/internal/generated/snippets/trace/apiv2/Client/BatchWriteSpans/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,20 +22,25 @@ import ( "context" trace "cloud.google.com/go/trace/apiv2" - cloudtracepb "google.golang.org/genproto/googleapis/devtools/cloudtrace/v2" + tracepb "cloud.google.com/go/trace/apiv2/tracepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := trace.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() - req := &cloudtracepb.BatchWriteSpansRequest{ + req := &tracepb.BatchWriteSpansRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/devtools/cloudtrace/v2#BatchWriteSpansRequest. + // See https://pkg.go.dev/cloud.google.com/go/trace/apiv2/tracepb#BatchWriteSpansRequest. } err = c.BatchWriteSpans(ctx, req) if err != nil { diff --git a/internal/generated/snippets/trace/apiv2/Client/CreateSpan/main.go b/internal/generated/snippets/trace/apiv2/Client/CreateSpan/main.go index 58a1bd8263f6..d9f084bdaf4d 100644 --- a/internal/generated/snippets/trace/apiv2/Client/CreateSpan/main.go +++ b/internal/generated/snippets/trace/apiv2/Client/CreateSpan/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,20 +22,25 @@ import ( "context" trace "cloud.google.com/go/trace/apiv2" - cloudtracepb "google.golang.org/genproto/googleapis/devtools/cloudtrace/v2" + tracepb "cloud.google.com/go/trace/apiv2/tracepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := trace.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() - req := &cloudtracepb.Span{ + req := &tracepb.Span{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/devtools/cloudtrace/v2#Span. + // See https://pkg.go.dev/cloud.google.com/go/trace/apiv2/tracepb#Span. } resp, err := c.CreateSpan(ctx, req) if err != nil { diff --git a/internal/generated/snippets/trace/apiv2/snippet_metadata.google.devtools.cloudtrace.v2.json b/internal/generated/snippets/trace/apiv2/snippet_metadata.google.devtools.cloudtrace.v2.json new file mode 100644 index 000000000000..8e9a6600a06f --- /dev/null +++ b/internal/generated/snippets/trace/apiv2/snippet_metadata.google.devtools.cloudtrace.v2.json @@ -0,0 +1,106 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/trace/apiv2", + "version": "1.5.0", + "language": "GO", + "apis": [ + { + "id": "google.devtools.cloudtrace.v2", + "version": "v2" + } + ] + }, + "snippets": [ + { + "regionTag": "cloudtrace_v2_generated_TraceService_BatchWriteSpans_sync", + "title": "cloudtrace BatchWriteSpans Sample", + "description": "BatchWriteSpans sends new spans to new or existing traces. You cannot update\nexisting spans.", + "file": "Client/BatchWriteSpans/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchWriteSpans", + "fullName": "google.devtools.cloudtrace.v2.Client.BatchWriteSpans", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "tracepb.BatchWriteSpansRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.devtools.cloudtrace.v2.Client" + }, + "method": { + "shortName": "BatchWriteSpans", + "fullName": "google.devtools.cloudtrace.v2.TraceService.BatchWriteSpans", + "service": { + "shortName": "TraceService", + "fullName": "google.devtools.cloudtrace.v2.TraceService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "cloudtrace_v2_generated_TraceService_CreateSpan_sync", + "title": "cloudtrace CreateSpan Sample", + "description": "CreateSpan creates a new span.", + "file": "Client/CreateSpan/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSpan", + "fullName": "google.devtools.cloudtrace.v2.Client.CreateSpan", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "tracepb.Span", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "tracepb.Span", + "client": { + "shortName": "Client", + "fullName": "google.devtools.cloudtrace.v2.Client" + }, + "method": { + "shortName": "CreateSpan", + "fullName": "google.devtools.cloudtrace.v2.TraceService.CreateSpan", + "service": { + "shortName": "TraceService", + "fullName": "google.devtools.cloudtrace.v2.TraceService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/translate/apiv3/TranslationClient/BatchTranslateDocument/main.go b/internal/generated/snippets/translate/apiv3/TranslationClient/BatchTranslateDocument/main.go index 86e8b29f0a75..1173a7bdfc3a 100644 --- a/internal/generated/snippets/translate/apiv3/TranslationClient/BatchTranslateDocument/main.go +++ b/internal/generated/snippets/translate/apiv3/TranslationClient/BatchTranslateDocument/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" translate "cloud.google.com/go/translate/apiv3" - translatepb "google.golang.org/genproto/googleapis/cloud/translate/v3" + translatepb "cloud.google.com/go/translate/apiv3/translatepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &translatepb.BatchTranslateDocumentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/translate/v3#BatchTranslateDocumentRequest. + // See https://pkg.go.dev/cloud.google.com/go/translate/apiv3/translatepb#BatchTranslateDocumentRequest. } op, err := c.BatchTranslateDocument(ctx, req) if err != nil { diff --git a/internal/generated/snippets/translate/apiv3/TranslationClient/BatchTranslateText/main.go b/internal/generated/snippets/translate/apiv3/TranslationClient/BatchTranslateText/main.go index 3341568bd11c..32c171527098 100644 --- a/internal/generated/snippets/translate/apiv3/TranslationClient/BatchTranslateText/main.go +++ b/internal/generated/snippets/translate/apiv3/TranslationClient/BatchTranslateText/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" translate "cloud.google.com/go/translate/apiv3" - translatepb "google.golang.org/genproto/googleapis/cloud/translate/v3" + translatepb "cloud.google.com/go/translate/apiv3/translatepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &translatepb.BatchTranslateTextRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/translate/v3#BatchTranslateTextRequest. + // See https://pkg.go.dev/cloud.google.com/go/translate/apiv3/translatepb#BatchTranslateTextRequest. } op, err := c.BatchTranslateText(ctx, req) if err != nil { diff --git a/internal/generated/snippets/translate/apiv3/TranslationClient/CreateGlossary/main.go b/internal/generated/snippets/translate/apiv3/TranslationClient/CreateGlossary/main.go index 4da975db1a68..d31e99ef0cd2 100644 --- a/internal/generated/snippets/translate/apiv3/TranslationClient/CreateGlossary/main.go +++ b/internal/generated/snippets/translate/apiv3/TranslationClient/CreateGlossary/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" translate "cloud.google.com/go/translate/apiv3" - translatepb "google.golang.org/genproto/googleapis/cloud/translate/v3" + translatepb "cloud.google.com/go/translate/apiv3/translatepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &translatepb.CreateGlossaryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/translate/v3#CreateGlossaryRequest. + // See https://pkg.go.dev/cloud.google.com/go/translate/apiv3/translatepb#CreateGlossaryRequest. } op, err := c.CreateGlossary(ctx, req) if err != nil { diff --git a/internal/generated/snippets/translate/apiv3/TranslationClient/DeleteGlossary/main.go b/internal/generated/snippets/translate/apiv3/TranslationClient/DeleteGlossary/main.go index 9e6a467e0043..afb0da10b3ce 100644 --- a/internal/generated/snippets/translate/apiv3/TranslationClient/DeleteGlossary/main.go +++ b/internal/generated/snippets/translate/apiv3/TranslationClient/DeleteGlossary/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" translate "cloud.google.com/go/translate/apiv3" - translatepb "google.golang.org/genproto/googleapis/cloud/translate/v3" + translatepb "cloud.google.com/go/translate/apiv3/translatepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &translatepb.DeleteGlossaryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/translate/v3#DeleteGlossaryRequest. + // See https://pkg.go.dev/cloud.google.com/go/translate/apiv3/translatepb#DeleteGlossaryRequest. } op, err := c.DeleteGlossary(ctx, req) if err != nil { diff --git a/internal/generated/snippets/translate/apiv3/TranslationClient/DetectLanguage/main.go b/internal/generated/snippets/translate/apiv3/TranslationClient/DetectLanguage/main.go index 0edb830eb8ec..d40949d0be08 100644 --- a/internal/generated/snippets/translate/apiv3/TranslationClient/DetectLanguage/main.go +++ b/internal/generated/snippets/translate/apiv3/TranslationClient/DetectLanguage/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" translate "cloud.google.com/go/translate/apiv3" - translatepb "google.golang.org/genproto/googleapis/cloud/translate/v3" + translatepb "cloud.google.com/go/translate/apiv3/translatepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &translatepb.DetectLanguageRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/translate/v3#DetectLanguageRequest. + // See https://pkg.go.dev/cloud.google.com/go/translate/apiv3/translatepb#DetectLanguageRequest. } resp, err := c.DetectLanguage(ctx, req) if err != nil { diff --git a/internal/generated/snippets/translate/apiv3/TranslationClient/GetGlossary/main.go b/internal/generated/snippets/translate/apiv3/TranslationClient/GetGlossary/main.go index 5d146a72d38a..ee8118fd9399 100644 --- a/internal/generated/snippets/translate/apiv3/TranslationClient/GetGlossary/main.go +++ b/internal/generated/snippets/translate/apiv3/TranslationClient/GetGlossary/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" translate "cloud.google.com/go/translate/apiv3" - translatepb "google.golang.org/genproto/googleapis/cloud/translate/v3" + translatepb "cloud.google.com/go/translate/apiv3/translatepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &translatepb.GetGlossaryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/translate/v3#GetGlossaryRequest. + // See https://pkg.go.dev/cloud.google.com/go/translate/apiv3/translatepb#GetGlossaryRequest. } resp, err := c.GetGlossary(ctx, req) if err != nil { diff --git a/internal/generated/snippets/translate/apiv3/TranslationClient/GetSupportedLanguages/main.go b/internal/generated/snippets/translate/apiv3/TranslationClient/GetSupportedLanguages/main.go index 8773e5429fe7..76234e10db38 100644 --- a/internal/generated/snippets/translate/apiv3/TranslationClient/GetSupportedLanguages/main.go +++ b/internal/generated/snippets/translate/apiv3/TranslationClient/GetSupportedLanguages/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" translate "cloud.google.com/go/translate/apiv3" - translatepb "google.golang.org/genproto/googleapis/cloud/translate/v3" + translatepb "cloud.google.com/go/translate/apiv3/translatepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &translatepb.GetSupportedLanguagesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/translate/v3#GetSupportedLanguagesRequest. + // See https://pkg.go.dev/cloud.google.com/go/translate/apiv3/translatepb#GetSupportedLanguagesRequest. } resp, err := c.GetSupportedLanguages(ctx, req) if err != nil { diff --git a/internal/generated/snippets/translate/apiv3/TranslationClient/ListGlossaries/main.go b/internal/generated/snippets/translate/apiv3/TranslationClient/ListGlossaries/main.go index 4feea57fcac9..787fa595776e 100644 --- a/internal/generated/snippets/translate/apiv3/TranslationClient/ListGlossaries/main.go +++ b/internal/generated/snippets/translate/apiv3/TranslationClient/ListGlossaries/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" translate "cloud.google.com/go/translate/apiv3" + translatepb "cloud.google.com/go/translate/apiv3/translatepb" "google.golang.org/api/iterator" - translatepb "google.golang.org/genproto/googleapis/cloud/translate/v3" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &translatepb.ListGlossariesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/translate/v3#ListGlossariesRequest. + // See https://pkg.go.dev/cloud.google.com/go/translate/apiv3/translatepb#ListGlossariesRequest. } it := c.ListGlossaries(ctx, req) for { diff --git a/internal/generated/snippets/translate/apiv3/TranslationClient/TranslateDocument/main.go b/internal/generated/snippets/translate/apiv3/TranslationClient/TranslateDocument/main.go index 777c46bf23da..6d59afa50069 100644 --- a/internal/generated/snippets/translate/apiv3/TranslationClient/TranslateDocument/main.go +++ b/internal/generated/snippets/translate/apiv3/TranslationClient/TranslateDocument/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" translate "cloud.google.com/go/translate/apiv3" - translatepb "google.golang.org/genproto/googleapis/cloud/translate/v3" + translatepb "cloud.google.com/go/translate/apiv3/translatepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &translatepb.TranslateDocumentRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/translate/v3#TranslateDocumentRequest. + // See https://pkg.go.dev/cloud.google.com/go/translate/apiv3/translatepb#TranslateDocumentRequest. } resp, err := c.TranslateDocument(ctx, req) if err != nil { diff --git a/internal/generated/snippets/translate/apiv3/TranslationClient/TranslateText/main.go b/internal/generated/snippets/translate/apiv3/TranslationClient/TranslateText/main.go index f228a96f1f73..709b19251896 100644 --- a/internal/generated/snippets/translate/apiv3/TranslationClient/TranslateText/main.go +++ b/internal/generated/snippets/translate/apiv3/TranslationClient/TranslateText/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" translate "cloud.google.com/go/translate/apiv3" - translatepb "google.golang.org/genproto/googleapis/cloud/translate/v3" + translatepb "cloud.google.com/go/translate/apiv3/translatepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := translate.NewTranslationClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &translatepb.TranslateTextRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/translate/v3#TranslateTextRequest. + // See https://pkg.go.dev/cloud.google.com/go/translate/apiv3/translatepb#TranslateTextRequest. } resp, err := c.TranslateText(ctx, req) if err != nil { diff --git a/internal/generated/snippets/translate/apiv3/snippet_metadata.google.cloud.translation.v3.json b/internal/generated/snippets/translate/apiv3/snippet_metadata.google.cloud.translation.v3.json new file mode 100644 index 000000000000..d2818467b809 --- /dev/null +++ b/internal/generated/snippets/translate/apiv3/snippet_metadata.google.cloud.translation.v3.json @@ -0,0 +1,475 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/translate/apiv3", + "version": "1.5.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.translation.v3", + "version": "v3" + } + ] + }, + "snippets": [ + { + "regionTag": "translate_v3_generated_TranslationService_BatchTranslateDocument_sync", + "title": "translate BatchTranslateDocument Sample", + "description": "BatchTranslateDocument translates a large volume of document in asynchronous batch mode.\nThis function provides real-time output as the inputs are being processed.\nIf caller cancels a request, the partial results (for an input file, it’s\nall or nothing) may still be available on the specified output location.\n\nThis call returns immediately and you can use\ngoogle.longrunning.Operation.name (at http: //google.longrunning.Operation.name) to poll the status of the call.", + "file": "TranslationClient/BatchTranslateDocument/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchTranslateDocument", + "fullName": "google.cloud.translation.v3.TranslationClient.BatchTranslateDocument", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "translatepb.BatchTranslateDocumentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "BatchTranslateDocumentOperation", + "client": { + "shortName": "TranslationClient", + "fullName": "google.cloud.translation.v3.TranslationClient" + }, + "method": { + "shortName": "BatchTranslateDocument", + "fullName": "google.cloud.translation.v3.TranslationService.BatchTranslateDocument", + "service": { + "shortName": "TranslationService", + "fullName": "google.cloud.translation.v3.TranslationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "translate_v3_generated_TranslationService_BatchTranslateText_sync", + "title": "translate BatchTranslateText Sample", + "description": "BatchTranslateText translates a large volume of text in asynchronous batch mode.\nThis function provides real-time output as the inputs are being processed.\nIf caller cancels a request, the partial results (for an input file, it’s\nall or nothing) may still be available on the specified output location.\n\nThis call returns immediately and you can\nuse google.longrunning.Operation.name (at http: //google.longrunning.Operation.name) to poll the status of the call.", + "file": "TranslationClient/BatchTranslateText/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchTranslateText", + "fullName": "google.cloud.translation.v3.TranslationClient.BatchTranslateText", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "translatepb.BatchTranslateTextRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "BatchTranslateTextOperation", + "client": { + "shortName": "TranslationClient", + "fullName": "google.cloud.translation.v3.TranslationClient" + }, + "method": { + "shortName": "BatchTranslateText", + "fullName": "google.cloud.translation.v3.TranslationService.BatchTranslateText", + "service": { + "shortName": "TranslationService", + "fullName": "google.cloud.translation.v3.TranslationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "translate_v3_generated_TranslationService_CreateGlossary_sync", + "title": "translate CreateGlossary Sample", + "description": "CreateGlossary creates a glossary and returns the long-running operation. Returns\nNOT_FOUND, if the project doesn’t exist.", + "file": "TranslationClient/CreateGlossary/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateGlossary", + "fullName": "google.cloud.translation.v3.TranslationClient.CreateGlossary", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "translatepb.CreateGlossaryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateGlossaryOperation", + "client": { + "shortName": "TranslationClient", + "fullName": "google.cloud.translation.v3.TranslationClient" + }, + "method": { + "shortName": "CreateGlossary", + "fullName": "google.cloud.translation.v3.TranslationService.CreateGlossary", + "service": { + "shortName": "TranslationService", + "fullName": "google.cloud.translation.v3.TranslationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "translate_v3_generated_TranslationService_DeleteGlossary_sync", + "title": "translate DeleteGlossary Sample", + "description": "DeleteGlossary deletes a glossary, or cancels glossary construction\nif the glossary isn’t created yet.\nReturns NOT_FOUND, if the glossary doesn’t exist.", + "file": "TranslationClient/DeleteGlossary/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteGlossary", + "fullName": "google.cloud.translation.v3.TranslationClient.DeleteGlossary", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "translatepb.DeleteGlossaryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteGlossaryOperation", + "client": { + "shortName": "TranslationClient", + "fullName": "google.cloud.translation.v3.TranslationClient" + }, + "method": { + "shortName": "DeleteGlossary", + "fullName": "google.cloud.translation.v3.TranslationService.DeleteGlossary", + "service": { + "shortName": "TranslationService", + "fullName": "google.cloud.translation.v3.TranslationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "translate_v3_generated_TranslationService_DetectLanguage_sync", + "title": "translate DetectLanguage Sample", + "description": "DetectLanguage detects the language of text within a request.", + "file": "TranslationClient/DetectLanguage/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DetectLanguage", + "fullName": "google.cloud.translation.v3.TranslationClient.DetectLanguage", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "translatepb.DetectLanguageRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "translatepb.DetectLanguageResponse", + "client": { + "shortName": "TranslationClient", + "fullName": "google.cloud.translation.v3.TranslationClient" + }, + "method": { + "shortName": "DetectLanguage", + "fullName": "google.cloud.translation.v3.TranslationService.DetectLanguage", + "service": { + "shortName": "TranslationService", + "fullName": "google.cloud.translation.v3.TranslationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "translate_v3_generated_TranslationService_GetGlossary_sync", + "title": "translate GetGlossary Sample", + "description": "GetGlossary gets a glossary. Returns NOT_FOUND, if the glossary doesn’t\nexist.", + "file": "TranslationClient/GetGlossary/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetGlossary", + "fullName": "google.cloud.translation.v3.TranslationClient.GetGlossary", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "translatepb.GetGlossaryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "translatepb.Glossary", + "client": { + "shortName": "TranslationClient", + "fullName": "google.cloud.translation.v3.TranslationClient" + }, + "method": { + "shortName": "GetGlossary", + "fullName": "google.cloud.translation.v3.TranslationService.GetGlossary", + "service": { + "shortName": "TranslationService", + "fullName": "google.cloud.translation.v3.TranslationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "translate_v3_generated_TranslationService_GetSupportedLanguages_sync", + "title": "translate GetSupportedLanguages Sample", + "description": "GetSupportedLanguages returns a list of supported languages for translation.", + "file": "TranslationClient/GetSupportedLanguages/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSupportedLanguages", + "fullName": "google.cloud.translation.v3.TranslationClient.GetSupportedLanguages", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "translatepb.GetSupportedLanguagesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "translatepb.SupportedLanguages", + "client": { + "shortName": "TranslationClient", + "fullName": "google.cloud.translation.v3.TranslationClient" + }, + "method": { + "shortName": "GetSupportedLanguages", + "fullName": "google.cloud.translation.v3.TranslationService.GetSupportedLanguages", + "service": { + "shortName": "TranslationService", + "fullName": "google.cloud.translation.v3.TranslationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "translate_v3_generated_TranslationService_ListGlossaries_sync", + "title": "translate ListGlossaries Sample", + "description": "ListGlossaries lists glossaries in a project. Returns NOT_FOUND, if the project doesn’t\nexist.", + "file": "TranslationClient/ListGlossaries/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListGlossaries", + "fullName": "google.cloud.translation.v3.TranslationClient.ListGlossaries", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "translatepb.ListGlossariesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "GlossaryIterator", + "client": { + "shortName": "TranslationClient", + "fullName": "google.cloud.translation.v3.TranslationClient" + }, + "method": { + "shortName": "ListGlossaries", + "fullName": "google.cloud.translation.v3.TranslationService.ListGlossaries", + "service": { + "shortName": "TranslationService", + "fullName": "google.cloud.translation.v3.TranslationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "translate_v3_generated_TranslationService_TranslateDocument_sync", + "title": "translate TranslateDocument Sample", + "description": "TranslateDocument translates documents in synchronous mode.", + "file": "TranslationClient/TranslateDocument/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TranslateDocument", + "fullName": "google.cloud.translation.v3.TranslationClient.TranslateDocument", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "translatepb.TranslateDocumentRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "translatepb.TranslateDocumentResponse", + "client": { + "shortName": "TranslationClient", + "fullName": "google.cloud.translation.v3.TranslationClient" + }, + "method": { + "shortName": "TranslateDocument", + "fullName": "google.cloud.translation.v3.TranslationService.TranslateDocument", + "service": { + "shortName": "TranslationService", + "fullName": "google.cloud.translation.v3.TranslationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "translate_v3_generated_TranslationService_TranslateText_sync", + "title": "translate TranslateText Sample", + "description": "TranslateText translates input text and returns translated text.", + "file": "TranslationClient/TranslateText/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TranslateText", + "fullName": "google.cloud.translation.v3.TranslationClient.TranslateText", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "translatepb.TranslateTextRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "translatepb.TranslateTextResponse", + "client": { + "shortName": "TranslationClient", + "fullName": "google.cloud.translation.v3.TranslationClient" + }, + "method": { + "shortName": "TranslateText", + "fullName": "google.cloud.translation.v3.TranslationService.TranslateText", + "service": { + "shortName": "TranslationService", + "fullName": "google.cloud.translation.v3.TranslationService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/video/livestream/apiv1/Client/CreateChannel/main.go b/internal/generated/snippets/video/livestream/apiv1/Client/CreateChannel/main.go index e6888a34038d..d0ac87ca2481 100644 --- a/internal/generated/snippets/video/livestream/apiv1/Client/CreateChannel/main.go +++ b/internal/generated/snippets/video/livestream/apiv1/Client/CreateChannel/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" livestream "cloud.google.com/go/video/livestream/apiv1" - livestreampb "google.golang.org/genproto/googleapis/cloud/video/livestream/v1" + livestreampb "cloud.google.com/go/video/livestream/apiv1/livestreampb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &livestreampb.CreateChannelRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/livestream/v1#CreateChannelRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/livestream/apiv1/livestreampb#CreateChannelRequest. } op, err := c.CreateChannel(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/livestream/apiv1/Client/CreateEvent/main.go b/internal/generated/snippets/video/livestream/apiv1/Client/CreateEvent/main.go index 8463625b11f6..41e33218fbef 100644 --- a/internal/generated/snippets/video/livestream/apiv1/Client/CreateEvent/main.go +++ b/internal/generated/snippets/video/livestream/apiv1/Client/CreateEvent/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" livestream "cloud.google.com/go/video/livestream/apiv1" - livestreampb "google.golang.org/genproto/googleapis/cloud/video/livestream/v1" + livestreampb "cloud.google.com/go/video/livestream/apiv1/livestreampb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &livestreampb.CreateEventRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/livestream/v1#CreateEventRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/livestream/apiv1/livestreampb#CreateEventRequest. } resp, err := c.CreateEvent(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/livestream/apiv1/Client/CreateInput/main.go b/internal/generated/snippets/video/livestream/apiv1/Client/CreateInput/main.go index 660fc64beeda..535cf0cd5f10 100644 --- a/internal/generated/snippets/video/livestream/apiv1/Client/CreateInput/main.go +++ b/internal/generated/snippets/video/livestream/apiv1/Client/CreateInput/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" livestream "cloud.google.com/go/video/livestream/apiv1" - livestreampb "google.golang.org/genproto/googleapis/cloud/video/livestream/v1" + livestreampb "cloud.google.com/go/video/livestream/apiv1/livestreampb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &livestreampb.CreateInputRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/livestream/v1#CreateInputRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/livestream/apiv1/livestreampb#CreateInputRequest. } op, err := c.CreateInput(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/livestream/apiv1/Client/DeleteChannel/main.go b/internal/generated/snippets/video/livestream/apiv1/Client/DeleteChannel/main.go index eb054fa8482d..962db8677aad 100644 --- a/internal/generated/snippets/video/livestream/apiv1/Client/DeleteChannel/main.go +++ b/internal/generated/snippets/video/livestream/apiv1/Client/DeleteChannel/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" livestream "cloud.google.com/go/video/livestream/apiv1" - livestreampb "google.golang.org/genproto/googleapis/cloud/video/livestream/v1" + livestreampb "cloud.google.com/go/video/livestream/apiv1/livestreampb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &livestreampb.DeleteChannelRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/livestream/v1#DeleteChannelRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/livestream/apiv1/livestreampb#DeleteChannelRequest. } op, err := c.DeleteChannel(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/livestream/apiv1/Client/DeleteEvent/main.go b/internal/generated/snippets/video/livestream/apiv1/Client/DeleteEvent/main.go index 1d14dbadfd5d..f55d1eb65dac 100644 --- a/internal/generated/snippets/video/livestream/apiv1/Client/DeleteEvent/main.go +++ b/internal/generated/snippets/video/livestream/apiv1/Client/DeleteEvent/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" livestream "cloud.google.com/go/video/livestream/apiv1" - livestreampb "google.golang.org/genproto/googleapis/cloud/video/livestream/v1" + livestreampb "cloud.google.com/go/video/livestream/apiv1/livestreampb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &livestreampb.DeleteEventRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/livestream/v1#DeleteEventRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/livestream/apiv1/livestreampb#DeleteEventRequest. } err = c.DeleteEvent(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/livestream/apiv1/Client/DeleteInput/main.go b/internal/generated/snippets/video/livestream/apiv1/Client/DeleteInput/main.go index e1ff122bee59..727eacf6c0f8 100644 --- a/internal/generated/snippets/video/livestream/apiv1/Client/DeleteInput/main.go +++ b/internal/generated/snippets/video/livestream/apiv1/Client/DeleteInput/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" livestream "cloud.google.com/go/video/livestream/apiv1" - livestreampb "google.golang.org/genproto/googleapis/cloud/video/livestream/v1" + livestreampb "cloud.google.com/go/video/livestream/apiv1/livestreampb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &livestreampb.DeleteInputRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/livestream/v1#DeleteInputRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/livestream/apiv1/livestreampb#DeleteInputRequest. } op, err := c.DeleteInput(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/livestream/apiv1/Client/GetChannel/main.go b/internal/generated/snippets/video/livestream/apiv1/Client/GetChannel/main.go index 27ec25302cdc..b70f23ac916e 100644 --- a/internal/generated/snippets/video/livestream/apiv1/Client/GetChannel/main.go +++ b/internal/generated/snippets/video/livestream/apiv1/Client/GetChannel/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" livestream "cloud.google.com/go/video/livestream/apiv1" - livestreampb "google.golang.org/genproto/googleapis/cloud/video/livestream/v1" + livestreampb "cloud.google.com/go/video/livestream/apiv1/livestreampb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &livestreampb.GetChannelRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/livestream/v1#GetChannelRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/livestream/apiv1/livestreampb#GetChannelRequest. } resp, err := c.GetChannel(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/livestream/apiv1/Client/GetEvent/main.go b/internal/generated/snippets/video/livestream/apiv1/Client/GetEvent/main.go index fea97b3b3a0b..afe917eea89b 100644 --- a/internal/generated/snippets/video/livestream/apiv1/Client/GetEvent/main.go +++ b/internal/generated/snippets/video/livestream/apiv1/Client/GetEvent/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" livestream "cloud.google.com/go/video/livestream/apiv1" - livestreampb "google.golang.org/genproto/googleapis/cloud/video/livestream/v1" + livestreampb "cloud.google.com/go/video/livestream/apiv1/livestreampb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &livestreampb.GetEventRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/livestream/v1#GetEventRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/livestream/apiv1/livestreampb#GetEventRequest. } resp, err := c.GetEvent(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/livestream/apiv1/Client/GetInput/main.go b/internal/generated/snippets/video/livestream/apiv1/Client/GetInput/main.go index e1badc02a8d2..94011f51d581 100644 --- a/internal/generated/snippets/video/livestream/apiv1/Client/GetInput/main.go +++ b/internal/generated/snippets/video/livestream/apiv1/Client/GetInput/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" livestream "cloud.google.com/go/video/livestream/apiv1" - livestreampb "google.golang.org/genproto/googleapis/cloud/video/livestream/v1" + livestreampb "cloud.google.com/go/video/livestream/apiv1/livestreampb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &livestreampb.GetInputRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/livestream/v1#GetInputRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/livestream/apiv1/livestreampb#GetInputRequest. } resp, err := c.GetInput(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/livestream/apiv1/Client/ListChannels/main.go b/internal/generated/snippets/video/livestream/apiv1/Client/ListChannels/main.go index 62ad835b7f52..0e383e162ff9 100644 --- a/internal/generated/snippets/video/livestream/apiv1/Client/ListChannels/main.go +++ b/internal/generated/snippets/video/livestream/apiv1/Client/ListChannels/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" livestream "cloud.google.com/go/video/livestream/apiv1" + livestreampb "cloud.google.com/go/video/livestream/apiv1/livestreampb" "google.golang.org/api/iterator" - livestreampb "google.golang.org/genproto/googleapis/cloud/video/livestream/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &livestreampb.ListChannelsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/livestream/v1#ListChannelsRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/livestream/apiv1/livestreampb#ListChannelsRequest. } it := c.ListChannels(ctx, req) for { diff --git a/internal/generated/snippets/video/livestream/apiv1/Client/ListEvents/main.go b/internal/generated/snippets/video/livestream/apiv1/Client/ListEvents/main.go index 46001f17307e..d958927638e1 100644 --- a/internal/generated/snippets/video/livestream/apiv1/Client/ListEvents/main.go +++ b/internal/generated/snippets/video/livestream/apiv1/Client/ListEvents/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" livestream "cloud.google.com/go/video/livestream/apiv1" + livestreampb "cloud.google.com/go/video/livestream/apiv1/livestreampb" "google.golang.org/api/iterator" - livestreampb "google.golang.org/genproto/googleapis/cloud/video/livestream/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &livestreampb.ListEventsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/livestream/v1#ListEventsRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/livestream/apiv1/livestreampb#ListEventsRequest. } it := c.ListEvents(ctx, req) for { diff --git a/internal/generated/snippets/video/livestream/apiv1/Client/ListInputs/main.go b/internal/generated/snippets/video/livestream/apiv1/Client/ListInputs/main.go index c1adf4175631..554bac34dfff 100644 --- a/internal/generated/snippets/video/livestream/apiv1/Client/ListInputs/main.go +++ b/internal/generated/snippets/video/livestream/apiv1/Client/ListInputs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" livestream "cloud.google.com/go/video/livestream/apiv1" + livestreampb "cloud.google.com/go/video/livestream/apiv1/livestreampb" "google.golang.org/api/iterator" - livestreampb "google.golang.org/genproto/googleapis/cloud/video/livestream/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &livestreampb.ListInputsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/livestream/v1#ListInputsRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/livestream/apiv1/livestreampb#ListInputsRequest. } it := c.ListInputs(ctx, req) for { diff --git a/internal/generated/snippets/video/livestream/apiv1/Client/StartChannel/main.go b/internal/generated/snippets/video/livestream/apiv1/Client/StartChannel/main.go index 0e9a0ed18f47..eb6587c5e7d7 100644 --- a/internal/generated/snippets/video/livestream/apiv1/Client/StartChannel/main.go +++ b/internal/generated/snippets/video/livestream/apiv1/Client/StartChannel/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" livestream "cloud.google.com/go/video/livestream/apiv1" - livestreampb "google.golang.org/genproto/googleapis/cloud/video/livestream/v1" + livestreampb "cloud.google.com/go/video/livestream/apiv1/livestreampb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &livestreampb.StartChannelRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/livestream/v1#StartChannelRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/livestream/apiv1/livestreampb#StartChannelRequest. } op, err := c.StartChannel(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/livestream/apiv1/Client/StopChannel/main.go b/internal/generated/snippets/video/livestream/apiv1/Client/StopChannel/main.go index 7fdb2f986afc..1a97f50c2d67 100644 --- a/internal/generated/snippets/video/livestream/apiv1/Client/StopChannel/main.go +++ b/internal/generated/snippets/video/livestream/apiv1/Client/StopChannel/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" livestream "cloud.google.com/go/video/livestream/apiv1" - livestreampb "google.golang.org/genproto/googleapis/cloud/video/livestream/v1" + livestreampb "cloud.google.com/go/video/livestream/apiv1/livestreampb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &livestreampb.StopChannelRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/livestream/v1#StopChannelRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/livestream/apiv1/livestreampb#StopChannelRequest. } op, err := c.StopChannel(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/livestream/apiv1/Client/UpdateChannel/main.go b/internal/generated/snippets/video/livestream/apiv1/Client/UpdateChannel/main.go index 76e779492369..fb37a65e37d4 100644 --- a/internal/generated/snippets/video/livestream/apiv1/Client/UpdateChannel/main.go +++ b/internal/generated/snippets/video/livestream/apiv1/Client/UpdateChannel/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" livestream "cloud.google.com/go/video/livestream/apiv1" - livestreampb "google.golang.org/genproto/googleapis/cloud/video/livestream/v1" + livestreampb "cloud.google.com/go/video/livestream/apiv1/livestreampb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &livestreampb.UpdateChannelRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/livestream/v1#UpdateChannelRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/livestream/apiv1/livestreampb#UpdateChannelRequest. } op, err := c.UpdateChannel(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/livestream/apiv1/Client/UpdateInput/main.go b/internal/generated/snippets/video/livestream/apiv1/Client/UpdateInput/main.go index 5214ddb5244c..af4df5f7d30a 100644 --- a/internal/generated/snippets/video/livestream/apiv1/Client/UpdateInput/main.go +++ b/internal/generated/snippets/video/livestream/apiv1/Client/UpdateInput/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" livestream "cloud.google.com/go/video/livestream/apiv1" - livestreampb "google.golang.org/genproto/googleapis/cloud/video/livestream/v1" + livestreampb "cloud.google.com/go/video/livestream/apiv1/livestreampb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := livestream.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &livestreampb.UpdateInputRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/livestream/v1#UpdateInputRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/livestream/apiv1/livestreampb#UpdateInputRequest. } op, err := c.UpdateInput(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/livestream/apiv1/snippet_metadata.google.cloud.video.livestream.v1.json b/internal/generated/snippets/video/livestream/apiv1/snippet_metadata.google.cloud.video.livestream.v1.json new file mode 100644 index 000000000000..8e2ecc225f0e --- /dev/null +++ b/internal/generated/snippets/video/livestream/apiv1/snippet_metadata.google.cloud.video.livestream.v1.json @@ -0,0 +1,750 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/video/livestream/apiv1", + "version": "1.12.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.video.livestream.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "livestream_v1_generated_LivestreamService_CreateChannel_sync", + "title": "livestream CreateChannel Sample", + "description": "CreateChannel creates a channel with the provided unique ID in the specified\nregion.", + "file": "Client/CreateChannel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateChannel", + "fullName": "google.cloud.video.livestream.v1.Client.CreateChannel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "livestreampb.CreateChannelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateChannelOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.livestream.v1.Client" + }, + "method": { + "shortName": "CreateChannel", + "fullName": "google.cloud.video.livestream.v1.LivestreamService.CreateChannel", + "service": { + "shortName": "LivestreamService", + "fullName": "google.cloud.video.livestream.v1.LivestreamService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "livestream_v1_generated_LivestreamService_CreateEvent_sync", + "title": "livestream CreateEvent Sample", + "description": "CreateEvent creates an event with the provided unique ID in the specified channel.", + "file": "Client/CreateEvent/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateEvent", + "fullName": "google.cloud.video.livestream.v1.Client.CreateEvent", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "livestreampb.CreateEventRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "livestreampb.Event", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.livestream.v1.Client" + }, + "method": { + "shortName": "CreateEvent", + "fullName": "google.cloud.video.livestream.v1.LivestreamService.CreateEvent", + "service": { + "shortName": "LivestreamService", + "fullName": "google.cloud.video.livestream.v1.LivestreamService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "livestream_v1_generated_LivestreamService_CreateInput_sync", + "title": "livestream CreateInput Sample", + "description": "CreateInput creates an input with the provided unique ID in the specified region.", + "file": "Client/CreateInput/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateInput", + "fullName": "google.cloud.video.livestream.v1.Client.CreateInput", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "livestreampb.CreateInputRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateInputOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.livestream.v1.Client" + }, + "method": { + "shortName": "CreateInput", + "fullName": "google.cloud.video.livestream.v1.LivestreamService.CreateInput", + "service": { + "shortName": "LivestreamService", + "fullName": "google.cloud.video.livestream.v1.LivestreamService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "livestream_v1_generated_LivestreamService_DeleteChannel_sync", + "title": "livestream DeleteChannel Sample", + "description": "DeleteChannel deletes the specified channel.", + "file": "Client/DeleteChannel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteChannel", + "fullName": "google.cloud.video.livestream.v1.Client.DeleteChannel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "livestreampb.DeleteChannelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteChannelOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.livestream.v1.Client" + }, + "method": { + "shortName": "DeleteChannel", + "fullName": "google.cloud.video.livestream.v1.LivestreamService.DeleteChannel", + "service": { + "shortName": "LivestreamService", + "fullName": "google.cloud.video.livestream.v1.LivestreamService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "livestream_v1_generated_LivestreamService_DeleteEvent_sync", + "title": "livestream DeleteEvent Sample", + "description": "DeleteEvent deletes the specified event.", + "file": "Client/DeleteEvent/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteEvent", + "fullName": "google.cloud.video.livestream.v1.Client.DeleteEvent", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "livestreampb.DeleteEventRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.livestream.v1.Client" + }, + "method": { + "shortName": "DeleteEvent", + "fullName": "google.cloud.video.livestream.v1.LivestreamService.DeleteEvent", + "service": { + "shortName": "LivestreamService", + "fullName": "google.cloud.video.livestream.v1.LivestreamService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "livestream_v1_generated_LivestreamService_DeleteInput_sync", + "title": "livestream DeleteInput Sample", + "description": "DeleteInput deletes the specified input.", + "file": "Client/DeleteInput/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteInput", + "fullName": "google.cloud.video.livestream.v1.Client.DeleteInput", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "livestreampb.DeleteInputRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteInputOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.livestream.v1.Client" + }, + "method": { + "shortName": "DeleteInput", + "fullName": "google.cloud.video.livestream.v1.LivestreamService.DeleteInput", + "service": { + "shortName": "LivestreamService", + "fullName": "google.cloud.video.livestream.v1.LivestreamService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "livestream_v1_generated_LivestreamService_GetChannel_sync", + "title": "livestream GetChannel Sample", + "description": "GetChannel returns the specified channel.", + "file": "Client/GetChannel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetChannel", + "fullName": "google.cloud.video.livestream.v1.Client.GetChannel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "livestreampb.GetChannelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "livestreampb.Channel", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.livestream.v1.Client" + }, + "method": { + "shortName": "GetChannel", + "fullName": "google.cloud.video.livestream.v1.LivestreamService.GetChannel", + "service": { + "shortName": "LivestreamService", + "fullName": "google.cloud.video.livestream.v1.LivestreamService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "livestream_v1_generated_LivestreamService_GetEvent_sync", + "title": "livestream GetEvent Sample", + "description": "GetEvent returns the specified event.", + "file": "Client/GetEvent/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetEvent", + "fullName": "google.cloud.video.livestream.v1.Client.GetEvent", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "livestreampb.GetEventRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "livestreampb.Event", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.livestream.v1.Client" + }, + "method": { + "shortName": "GetEvent", + "fullName": "google.cloud.video.livestream.v1.LivestreamService.GetEvent", + "service": { + "shortName": "LivestreamService", + "fullName": "google.cloud.video.livestream.v1.LivestreamService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "livestream_v1_generated_LivestreamService_GetInput_sync", + "title": "livestream GetInput Sample", + "description": "GetInput returns the specified input.", + "file": "Client/GetInput/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetInput", + "fullName": "google.cloud.video.livestream.v1.Client.GetInput", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "livestreampb.GetInputRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "livestreampb.Input", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.livestream.v1.Client" + }, + "method": { + "shortName": "GetInput", + "fullName": "google.cloud.video.livestream.v1.LivestreamService.GetInput", + "service": { + "shortName": "LivestreamService", + "fullName": "google.cloud.video.livestream.v1.LivestreamService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "livestream_v1_generated_LivestreamService_ListChannels_sync", + "title": "livestream ListChannels Sample", + "description": "ListChannels returns a list of all channels in the specified region.", + "file": "Client/ListChannels/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListChannels", + "fullName": "google.cloud.video.livestream.v1.Client.ListChannels", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "livestreampb.ListChannelsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ChannelIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.livestream.v1.Client" + }, + "method": { + "shortName": "ListChannels", + "fullName": "google.cloud.video.livestream.v1.LivestreamService.ListChannels", + "service": { + "shortName": "LivestreamService", + "fullName": "google.cloud.video.livestream.v1.LivestreamService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "livestream_v1_generated_LivestreamService_ListEvents_sync", + "title": "livestream ListEvents Sample", + "description": "ListEvents returns a list of all events in the specified channel.", + "file": "Client/ListEvents/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListEvents", + "fullName": "google.cloud.video.livestream.v1.Client.ListEvents", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "livestreampb.ListEventsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "EventIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.livestream.v1.Client" + }, + "method": { + "shortName": "ListEvents", + "fullName": "google.cloud.video.livestream.v1.LivestreamService.ListEvents", + "service": { + "shortName": "LivestreamService", + "fullName": "google.cloud.video.livestream.v1.LivestreamService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "livestream_v1_generated_LivestreamService_ListInputs_sync", + "title": "livestream ListInputs Sample", + "description": "ListInputs returns a list of all inputs in the specified region.", + "file": "Client/ListInputs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListInputs", + "fullName": "google.cloud.video.livestream.v1.Client.ListInputs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "livestreampb.ListInputsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "InputIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.livestream.v1.Client" + }, + "method": { + "shortName": "ListInputs", + "fullName": "google.cloud.video.livestream.v1.LivestreamService.ListInputs", + "service": { + "shortName": "LivestreamService", + "fullName": "google.cloud.video.livestream.v1.LivestreamService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "livestream_v1_generated_LivestreamService_StartChannel_sync", + "title": "livestream StartChannel Sample", + "description": "StartChannel starts the specified channel. Part of the video pipeline will be created\nonly when the StartChannel request is received by the server.", + "file": "Client/StartChannel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StartChannel", + "fullName": "google.cloud.video.livestream.v1.Client.StartChannel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "livestreampb.StartChannelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "StartChannelOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.livestream.v1.Client" + }, + "method": { + "shortName": "StartChannel", + "fullName": "google.cloud.video.livestream.v1.LivestreamService.StartChannel", + "service": { + "shortName": "LivestreamService", + "fullName": "google.cloud.video.livestream.v1.LivestreamService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "livestream_v1_generated_LivestreamService_StopChannel_sync", + "title": "livestream StopChannel Sample", + "description": "StopChannel stops the specified channel. Part of the video pipeline will be released\nwhen the StopChannel request is received by the server.", + "file": "Client/StopChannel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StopChannel", + "fullName": "google.cloud.video.livestream.v1.Client.StopChannel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "livestreampb.StopChannelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "StopChannelOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.livestream.v1.Client" + }, + "method": { + "shortName": "StopChannel", + "fullName": "google.cloud.video.livestream.v1.LivestreamService.StopChannel", + "service": { + "shortName": "LivestreamService", + "fullName": "google.cloud.video.livestream.v1.LivestreamService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "livestream_v1_generated_LivestreamService_UpdateChannel_sync", + "title": "livestream UpdateChannel Sample", + "description": "UpdateChannel updates the specified channel.", + "file": "Client/UpdateChannel/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateChannel", + "fullName": "google.cloud.video.livestream.v1.Client.UpdateChannel", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "livestreampb.UpdateChannelRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateChannelOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.livestream.v1.Client" + }, + "method": { + "shortName": "UpdateChannel", + "fullName": "google.cloud.video.livestream.v1.LivestreamService.UpdateChannel", + "service": { + "shortName": "LivestreamService", + "fullName": "google.cloud.video.livestream.v1.LivestreamService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "livestream_v1_generated_LivestreamService_UpdateInput_sync", + "title": "livestream UpdateInput Sample", + "description": "UpdateInput updates the specified input.", + "file": "Client/UpdateInput/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateInput", + "fullName": "google.cloud.video.livestream.v1.Client.UpdateInput", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "livestreampb.UpdateInputRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateInputOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.livestream.v1.Client" + }, + "method": { + "shortName": "UpdateInput", + "fullName": "google.cloud.video.livestream.v1.LivestreamService.UpdateInput", + "service": { + "shortName": "LivestreamService", + "fullName": "google.cloud.video.livestream.v1.LivestreamService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/CreateCdnKey/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/CreateCdnKey/main.go index 8b2a2d47a43f..e9f1cfd96c8b 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/CreateCdnKey/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/CreateCdnKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &stitcherpb.CreateCdnKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#CreateCdnKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#CreateCdnKeyRequest. } resp, err := c.CreateCdnKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/CreateLiveSession/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/CreateLiveSession/main.go index d11e652dd9c2..27aa458efd16 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/CreateLiveSession/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/CreateLiveSession/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &stitcherpb.CreateLiveSessionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#CreateLiveSessionRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#CreateLiveSessionRequest. } resp, err := c.CreateLiveSession(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/CreateSlate/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/CreateSlate/main.go index 39318a44129e..e2e1c63088a6 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/CreateSlate/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/CreateSlate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &stitcherpb.CreateSlateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#CreateSlateRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#CreateSlateRequest. } resp, err := c.CreateSlate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/CreateVodSession/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/CreateVodSession/main.go index 76bc7135bb21..788f1df165ca 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/CreateVodSession/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/CreateVodSession/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &stitcherpb.CreateVodSessionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#CreateVodSessionRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#CreateVodSessionRequest. } resp, err := c.CreateVodSession(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/DeleteCdnKey/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/DeleteCdnKey/main.go index 54f6327f8807..e5235b5b4ddf 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/DeleteCdnKey/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/DeleteCdnKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &stitcherpb.DeleteCdnKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#DeleteCdnKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#DeleteCdnKeyRequest. } err = c.DeleteCdnKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/DeleteSlate/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/DeleteSlate/main.go index f17c45175e82..a537fae824ec 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/DeleteSlate/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/DeleteSlate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &stitcherpb.DeleteSlateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#DeleteSlateRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#DeleteSlateRequest. } err = c.DeleteSlate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetCdnKey/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetCdnKey/main.go index 301fb0ab6066..f52dbeb3b54e 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetCdnKey/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetCdnKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &stitcherpb.GetCdnKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#GetCdnKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#GetCdnKeyRequest. } resp, err := c.GetCdnKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetLiveAdTagDetail/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetLiveAdTagDetail/main.go index 2486c57f6152..1e06b3a4e2e5 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetLiveAdTagDetail/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetLiveAdTagDetail/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &stitcherpb.GetLiveAdTagDetailRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#GetLiveAdTagDetailRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#GetLiveAdTagDetailRequest. } resp, err := c.GetLiveAdTagDetail(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetLiveSession/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetLiveSession/main.go index 4969e8dab3eb..ece8b1d7d367 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetLiveSession/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetLiveSession/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &stitcherpb.GetLiveSessionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#GetLiveSessionRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#GetLiveSessionRequest. } resp, err := c.GetLiveSession(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetSlate/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetSlate/main.go index d31b068489d2..54acfb3a11f3 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetSlate/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetSlate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &stitcherpb.GetSlateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#GetSlateRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#GetSlateRequest. } resp, err := c.GetSlate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetVodAdTagDetail/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetVodAdTagDetail/main.go index 97ee63974e0f..0091f91b54d3 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetVodAdTagDetail/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetVodAdTagDetail/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &stitcherpb.GetVodAdTagDetailRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#GetVodAdTagDetailRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#GetVodAdTagDetailRequest. } resp, err := c.GetVodAdTagDetail(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetVodSession/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetVodSession/main.go index 6c4f9a6e4aff..46fca14e639d 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetVodSession/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetVodSession/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &stitcherpb.GetVodSessionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#GetVodSessionRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#GetVodSessionRequest. } resp, err := c.GetVodSession(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetVodStitchDetail/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetVodStitchDetail/main.go index 573a179f5c1d..ef0157636303 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetVodStitchDetail/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/GetVodStitchDetail/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &stitcherpb.GetVodStitchDetailRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#GetVodStitchDetailRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#GetVodStitchDetailRequest. } resp, err := c.GetVodStitchDetail(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListCdnKeys/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListCdnKeys/main.go index 61ab28b66010..1295ba53f6c7 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListCdnKeys/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListCdnKeys/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" "google.golang.org/api/iterator" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &stitcherpb.ListCdnKeysRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#ListCdnKeysRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#ListCdnKeysRequest. } it := c.ListCdnKeys(ctx, req) for { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListLiveAdTagDetails/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListLiveAdTagDetails/main.go index 243b6e0b244c..d9c7e23167d2 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListLiveAdTagDetails/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListLiveAdTagDetails/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" "google.golang.org/api/iterator" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &stitcherpb.ListLiveAdTagDetailsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#ListLiveAdTagDetailsRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#ListLiveAdTagDetailsRequest. } it := c.ListLiveAdTagDetails(ctx, req) for { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListSlates/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListSlates/main.go index 663e679a56f0..9f4cc836b6d6 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListSlates/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListSlates/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" "google.golang.org/api/iterator" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &stitcherpb.ListSlatesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#ListSlatesRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#ListSlatesRequest. } it := c.ListSlates(ctx, req) for { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListVodAdTagDetails/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListVodAdTagDetails/main.go index c24bc61b555b..4a9b1e32e3aa 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListVodAdTagDetails/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListVodAdTagDetails/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" "google.golang.org/api/iterator" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &stitcherpb.ListVodAdTagDetailsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#ListVodAdTagDetailsRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#ListVodAdTagDetailsRequest. } it := c.ListVodAdTagDetails(ctx, req) for { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListVodStitchDetails/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListVodStitchDetails/main.go index 515d1181f0ce..a51e06283cff 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListVodStitchDetails/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/ListVodStitchDetails/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" "google.golang.org/api/iterator" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &stitcherpb.ListVodStitchDetailsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#ListVodStitchDetailsRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#ListVodStitchDetailsRequest. } it := c.ListVodStitchDetails(ctx, req) for { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/UpdateCdnKey/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/UpdateCdnKey/main.go index 06bee8139468..fddf08bcc4f6 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/UpdateCdnKey/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/UpdateCdnKey/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &stitcherpb.UpdateCdnKeyRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#UpdateCdnKeyRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#UpdateCdnKeyRequest. } resp, err := c.UpdateCdnKey(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/UpdateSlate/main.go b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/UpdateSlate/main.go index 195fbd0ca226..662ab7b708fd 100644 --- a/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/UpdateSlate/main.go +++ b/internal/generated/snippets/video/stitcher/apiv1/VideoStitcherClient/UpdateSlate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" - stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1" + stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &stitcherpb.UpdateSlateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#UpdateSlateRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#UpdateSlateRequest. } resp, err := c.UpdateSlate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/stitcher/apiv1/snippet_metadata.google.cloud.video.stitcher.v1.json b/internal/generated/snippets/video/stitcher/apiv1/snippet_metadata.google.cloud.video.stitcher.v1.json new file mode 100644 index 000000000000..82f108086a4b --- /dev/null +++ b/internal/generated/snippets/video/stitcher/apiv1/snippet_metadata.google.cloud.video.stitcher.v1.json @@ -0,0 +1,933 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/video/stitcher/apiv1", + "version": "1.12.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.video.stitcher.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_CreateCdnKey_sync", + "title": "videostitcher CreateCdnKey Sample", + "description": "CreateCdnKey creates a new CDN key.", + "file": "VideoStitcherClient/CreateCdnKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateCdnKey", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.CreateCdnKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.CreateCdnKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "stitcherpb.CdnKey", + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "CreateCdnKey", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.CreateCdnKey", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_CreateLiveSession_sync", + "title": "videostitcher CreateLiveSession Sample", + "description": "CreateLiveSession creates a new live session.", + "file": "VideoStitcherClient/CreateLiveSession/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateLiveSession", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.CreateLiveSession", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.CreateLiveSessionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "stitcherpb.LiveSession", + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "CreateLiveSession", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.CreateLiveSession", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_CreateSlate_sync", + "title": "videostitcher CreateSlate Sample", + "description": "CreateSlate creates a slate.", + "file": "VideoStitcherClient/CreateSlate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSlate", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.CreateSlate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.CreateSlateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "stitcherpb.Slate", + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "CreateSlate", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.CreateSlate", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_CreateVodSession_sync", + "title": "videostitcher CreateVodSession Sample", + "description": "CreateVodSession creates a client side playback VOD session and returns the full\ntracking and playback metadata of the session.", + "file": "VideoStitcherClient/CreateVodSession/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateVodSession", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.CreateVodSession", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.CreateVodSessionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "stitcherpb.VodSession", + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "CreateVodSession", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.CreateVodSession", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_DeleteCdnKey_sync", + "title": "videostitcher DeleteCdnKey Sample", + "description": "DeleteCdnKey deletes the specified CDN key.", + "file": "VideoStitcherClient/DeleteCdnKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteCdnKey", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.DeleteCdnKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.DeleteCdnKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "DeleteCdnKey", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.DeleteCdnKey", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_DeleteSlate_sync", + "title": "videostitcher DeleteSlate Sample", + "description": "DeleteSlate deletes the specified slate.", + "file": "VideoStitcherClient/DeleteSlate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteSlate", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.DeleteSlate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.DeleteSlateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "DeleteSlate", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.DeleteSlate", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_GetCdnKey_sync", + "title": "videostitcher GetCdnKey Sample", + "description": "GetCdnKey returns the specified CDN key.", + "file": "VideoStitcherClient/GetCdnKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCdnKey", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.GetCdnKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.GetCdnKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "stitcherpb.CdnKey", + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "GetCdnKey", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetCdnKey", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_GetLiveAdTagDetail_sync", + "title": "videostitcher GetLiveAdTagDetail Sample", + "description": "GetLiveAdTagDetail returns the specified ad tag detail for the specified live session.", + "file": "VideoStitcherClient/GetLiveAdTagDetail/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLiveAdTagDetail", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.GetLiveAdTagDetail", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.GetLiveAdTagDetailRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "stitcherpb.LiveAdTagDetail", + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "GetLiveAdTagDetail", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetLiveAdTagDetail", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_GetLiveSession_sync", + "title": "videostitcher GetLiveSession Sample", + "description": "GetLiveSession returns the details for the specified live session.", + "file": "VideoStitcherClient/GetLiveSession/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLiveSession", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.GetLiveSession", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.GetLiveSessionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "stitcherpb.LiveSession", + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "GetLiveSession", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetLiveSession", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_GetSlate_sync", + "title": "videostitcher GetSlate Sample", + "description": "GetSlate returns the specified slate.", + "file": "VideoStitcherClient/GetSlate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSlate", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.GetSlate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.GetSlateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "stitcherpb.Slate", + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "GetSlate", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetSlate", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_GetVodAdTagDetail_sync", + "title": "videostitcher GetVodAdTagDetail Sample", + "description": "GetVodAdTagDetail returns the specified ad tag detail for the specified VOD session.", + "file": "VideoStitcherClient/GetVodAdTagDetail/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetVodAdTagDetail", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.GetVodAdTagDetail", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.GetVodAdTagDetailRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "stitcherpb.VodAdTagDetail", + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "GetVodAdTagDetail", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetVodAdTagDetail", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_GetVodSession_sync", + "title": "videostitcher GetVodSession Sample", + "description": "GetVodSession returns the full tracking, playback metadata, and relevant ad-ops\nlogs for the specified VOD session.", + "file": "VideoStitcherClient/GetVodSession/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetVodSession", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.GetVodSession", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.GetVodSessionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "stitcherpb.VodSession", + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "GetVodSession", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetVodSession", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_GetVodStitchDetail_sync", + "title": "videostitcher GetVodStitchDetail Sample", + "description": "GetVodStitchDetail returns the specified stitching information for the specified VOD session.", + "file": "VideoStitcherClient/GetVodStitchDetail/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetVodStitchDetail", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.GetVodStitchDetail", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.GetVodStitchDetailRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "stitcherpb.VodStitchDetail", + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "GetVodStitchDetail", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetVodStitchDetail", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_ListCdnKeys_sync", + "title": "videostitcher ListCdnKeys Sample", + "description": "ListCdnKeys lists all CDN keys in the specified project and location.", + "file": "VideoStitcherClient/ListCdnKeys/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCdnKeys", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.ListCdnKeys", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.ListCdnKeysRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CdnKeyIterator", + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "ListCdnKeys", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListCdnKeys", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_ListLiveAdTagDetails_sync", + "title": "videostitcher ListLiveAdTagDetails Sample", + "description": "ListLiveAdTagDetails return the list of ad tag details for the specified live session.", + "file": "VideoStitcherClient/ListLiveAdTagDetails/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLiveAdTagDetails", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.ListLiveAdTagDetails", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.ListLiveAdTagDetailsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LiveAdTagDetailIterator", + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "ListLiveAdTagDetails", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListLiveAdTagDetails", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_ListSlates_sync", + "title": "videostitcher ListSlates Sample", + "description": "ListSlates lists all slates in the specified project and location.", + "file": "VideoStitcherClient/ListSlates/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListSlates", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.ListSlates", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.ListSlatesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SlateIterator", + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "ListSlates", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListSlates", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_ListVodAdTagDetails_sync", + "title": "videostitcher ListVodAdTagDetails Sample", + "description": "ListVodAdTagDetails return the list of ad tag details for the specified VOD session.", + "file": "VideoStitcherClient/ListVodAdTagDetails/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListVodAdTagDetails", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.ListVodAdTagDetails", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.ListVodAdTagDetailsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "VodAdTagDetailIterator", + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "ListVodAdTagDetails", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListVodAdTagDetails", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_ListVodStitchDetails_sync", + "title": "videostitcher ListVodStitchDetails Sample", + "description": "ListVodStitchDetails returns a list of detailed stitching information of the specified VOD\nsession.", + "file": "VideoStitcherClient/ListVodStitchDetails/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListVodStitchDetails", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.ListVodStitchDetails", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.ListVodStitchDetailsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "VodStitchDetailIterator", + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "ListVodStitchDetails", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListVodStitchDetails", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_UpdateCdnKey_sync", + "title": "videostitcher UpdateCdnKey Sample", + "description": "UpdateCdnKey updates the specified CDN key. Only update fields specified\nin the call method body.", + "file": "VideoStitcherClient/UpdateCdnKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCdnKey", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.UpdateCdnKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.UpdateCdnKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "stitcherpb.CdnKey", + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "UpdateCdnKey", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.UpdateCdnKey", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "videostitcher_v1_generated_VideoStitcherService_UpdateSlate_sync", + "title": "videostitcher UpdateSlate Sample", + "description": "UpdateSlate updates the specified slate.", + "file": "VideoStitcherClient/UpdateSlate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSlate", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient.UpdateSlate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "stitcherpb.UpdateSlateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "stitcherpb.Slate", + "client": { + "shortName": "VideoStitcherClient", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherClient" + }, + "method": { + "shortName": "UpdateSlate", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.UpdateSlate", + "service": { + "shortName": "VideoStitcherService", + "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/video/transcoder/apiv1/Client/CreateJob/main.go b/internal/generated/snippets/video/transcoder/apiv1/Client/CreateJob/main.go index fe3373550052..08f6435cb791 100644 --- a/internal/generated/snippets/video/transcoder/apiv1/Client/CreateJob/main.go +++ b/internal/generated/snippets/video/transcoder/apiv1/Client/CreateJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" transcoder "cloud.google.com/go/video/transcoder/apiv1" - transcoderpb "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1" + transcoderpb "cloud.google.com/go/video/transcoder/apiv1/transcoderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := transcoder.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &transcoderpb.CreateJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/transcoder/v1#CreateJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/transcoder/apiv1/transcoderpb#CreateJobRequest. } resp, err := c.CreateJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/transcoder/apiv1/Client/CreateJobTemplate/main.go b/internal/generated/snippets/video/transcoder/apiv1/Client/CreateJobTemplate/main.go index edee8915e1f7..dd09e7868741 100644 --- a/internal/generated/snippets/video/transcoder/apiv1/Client/CreateJobTemplate/main.go +++ b/internal/generated/snippets/video/transcoder/apiv1/Client/CreateJobTemplate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" transcoder "cloud.google.com/go/video/transcoder/apiv1" - transcoderpb "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1" + transcoderpb "cloud.google.com/go/video/transcoder/apiv1/transcoderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := transcoder.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &transcoderpb.CreateJobTemplateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/transcoder/v1#CreateJobTemplateRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/transcoder/apiv1/transcoderpb#CreateJobTemplateRequest. } resp, err := c.CreateJobTemplate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/transcoder/apiv1/Client/DeleteJob/main.go b/internal/generated/snippets/video/transcoder/apiv1/Client/DeleteJob/main.go index 8b9d8cb7a7c1..f8542689cfb9 100644 --- a/internal/generated/snippets/video/transcoder/apiv1/Client/DeleteJob/main.go +++ b/internal/generated/snippets/video/transcoder/apiv1/Client/DeleteJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" transcoder "cloud.google.com/go/video/transcoder/apiv1" - transcoderpb "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1" + transcoderpb "cloud.google.com/go/video/transcoder/apiv1/transcoderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := transcoder.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &transcoderpb.DeleteJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/transcoder/v1#DeleteJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/transcoder/apiv1/transcoderpb#DeleteJobRequest. } err = c.DeleteJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/transcoder/apiv1/Client/DeleteJobTemplate/main.go b/internal/generated/snippets/video/transcoder/apiv1/Client/DeleteJobTemplate/main.go index 9c14f59ed2f8..858b978965ed 100644 --- a/internal/generated/snippets/video/transcoder/apiv1/Client/DeleteJobTemplate/main.go +++ b/internal/generated/snippets/video/transcoder/apiv1/Client/DeleteJobTemplate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" transcoder "cloud.google.com/go/video/transcoder/apiv1" - transcoderpb "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1" + transcoderpb "cloud.google.com/go/video/transcoder/apiv1/transcoderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := transcoder.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &transcoderpb.DeleteJobTemplateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/transcoder/v1#DeleteJobTemplateRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/transcoder/apiv1/transcoderpb#DeleteJobTemplateRequest. } err = c.DeleteJobTemplate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/transcoder/apiv1/Client/GetJob/main.go b/internal/generated/snippets/video/transcoder/apiv1/Client/GetJob/main.go index cba2c0dbc92f..accbfc684f69 100644 --- a/internal/generated/snippets/video/transcoder/apiv1/Client/GetJob/main.go +++ b/internal/generated/snippets/video/transcoder/apiv1/Client/GetJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" transcoder "cloud.google.com/go/video/transcoder/apiv1" - transcoderpb "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1" + transcoderpb "cloud.google.com/go/video/transcoder/apiv1/transcoderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := transcoder.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &transcoderpb.GetJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/transcoder/v1#GetJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/transcoder/apiv1/transcoderpb#GetJobRequest. } resp, err := c.GetJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/transcoder/apiv1/Client/GetJobTemplate/main.go b/internal/generated/snippets/video/transcoder/apiv1/Client/GetJobTemplate/main.go index fd38bedd77c8..048226288964 100644 --- a/internal/generated/snippets/video/transcoder/apiv1/Client/GetJobTemplate/main.go +++ b/internal/generated/snippets/video/transcoder/apiv1/Client/GetJobTemplate/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" transcoder "cloud.google.com/go/video/transcoder/apiv1" - transcoderpb "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1" + transcoderpb "cloud.google.com/go/video/transcoder/apiv1/transcoderpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := transcoder.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &transcoderpb.GetJobTemplateRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/transcoder/v1#GetJobTemplateRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/transcoder/apiv1/transcoderpb#GetJobTemplateRequest. } resp, err := c.GetJobTemplate(ctx, req) if err != nil { diff --git a/internal/generated/snippets/video/transcoder/apiv1/Client/ListJobTemplates/main.go b/internal/generated/snippets/video/transcoder/apiv1/Client/ListJobTemplates/main.go index 5445332f6acb..c88016d2db7e 100644 --- a/internal/generated/snippets/video/transcoder/apiv1/Client/ListJobTemplates/main.go +++ b/internal/generated/snippets/video/transcoder/apiv1/Client/ListJobTemplates/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" transcoder "cloud.google.com/go/video/transcoder/apiv1" + transcoderpb "cloud.google.com/go/video/transcoder/apiv1/transcoderpb" "google.golang.org/api/iterator" - transcoderpb "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := transcoder.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &transcoderpb.ListJobTemplatesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/transcoder/v1#ListJobTemplatesRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/transcoder/apiv1/transcoderpb#ListJobTemplatesRequest. } it := c.ListJobTemplates(ctx, req) for { diff --git a/internal/generated/snippets/video/transcoder/apiv1/Client/ListJobs/main.go b/internal/generated/snippets/video/transcoder/apiv1/Client/ListJobs/main.go index 1e39e8a484d5..276f88b1e871 100644 --- a/internal/generated/snippets/video/transcoder/apiv1/Client/ListJobs/main.go +++ b/internal/generated/snippets/video/transcoder/apiv1/Client/ListJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" transcoder "cloud.google.com/go/video/transcoder/apiv1" + transcoderpb "cloud.google.com/go/video/transcoder/apiv1/transcoderpb" "google.golang.org/api/iterator" - transcoderpb "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := transcoder.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &transcoderpb.ListJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/transcoder/v1#ListJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/video/transcoder/apiv1/transcoderpb#ListJobsRequest. } it := c.ListJobs(ctx, req) for { diff --git a/internal/generated/snippets/video/transcoder/apiv1/snippet_metadata.google.cloud.video.transcoder.v1.json b/internal/generated/snippets/video/transcoder/apiv1/snippet_metadata.google.cloud.video.transcoder.v1.json new file mode 100644 index 000000000000..0d180fc50160 --- /dev/null +++ b/internal/generated/snippets/video/transcoder/apiv1/snippet_metadata.google.cloud.video.transcoder.v1.json @@ -0,0 +1,381 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/video/transcoder/apiv1", + "version": "1.12.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.video.transcoder.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "transcoder_v1_generated_TranscoderService_CreateJob_sync", + "title": "transcoder CreateJob Sample", + "description": "CreateJob creates a job in the specified region.", + "file": "Client/CreateJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateJob", + "fullName": "google.cloud.video.transcoder.v1.Client.CreateJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "transcoderpb.CreateJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "transcoderpb.Job", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.transcoder.v1.Client" + }, + "method": { + "shortName": "CreateJob", + "fullName": "google.cloud.video.transcoder.v1.TranscoderService.CreateJob", + "service": { + "shortName": "TranscoderService", + "fullName": "google.cloud.video.transcoder.v1.TranscoderService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "transcoder_v1_generated_TranscoderService_CreateJobTemplate_sync", + "title": "transcoder CreateJobTemplate Sample", + "description": "CreateJobTemplate creates a job template in the specified region.", + "file": "Client/CreateJobTemplate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateJobTemplate", + "fullName": "google.cloud.video.transcoder.v1.Client.CreateJobTemplate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "transcoderpb.CreateJobTemplateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "transcoderpb.JobTemplate", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.transcoder.v1.Client" + }, + "method": { + "shortName": "CreateJobTemplate", + "fullName": "google.cloud.video.transcoder.v1.TranscoderService.CreateJobTemplate", + "service": { + "shortName": "TranscoderService", + "fullName": "google.cloud.video.transcoder.v1.TranscoderService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "transcoder_v1_generated_TranscoderService_DeleteJob_sync", + "title": "transcoder DeleteJob Sample", + "description": "DeleteJob deletes a job.", + "file": "Client/DeleteJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteJob", + "fullName": "google.cloud.video.transcoder.v1.Client.DeleteJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "transcoderpb.DeleteJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.transcoder.v1.Client" + }, + "method": { + "shortName": "DeleteJob", + "fullName": "google.cloud.video.transcoder.v1.TranscoderService.DeleteJob", + "service": { + "shortName": "TranscoderService", + "fullName": "google.cloud.video.transcoder.v1.TranscoderService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "transcoder_v1_generated_TranscoderService_DeleteJobTemplate_sync", + "title": "transcoder DeleteJobTemplate Sample", + "description": "DeleteJobTemplate deletes a job template.", + "file": "Client/DeleteJobTemplate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteJobTemplate", + "fullName": "google.cloud.video.transcoder.v1.Client.DeleteJobTemplate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "transcoderpb.DeleteJobTemplateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.transcoder.v1.Client" + }, + "method": { + "shortName": "DeleteJobTemplate", + "fullName": "google.cloud.video.transcoder.v1.TranscoderService.DeleteJobTemplate", + "service": { + "shortName": "TranscoderService", + "fullName": "google.cloud.video.transcoder.v1.TranscoderService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "transcoder_v1_generated_TranscoderService_GetJob_sync", + "title": "transcoder GetJob Sample", + "description": "GetJob returns the job data.", + "file": "Client/GetJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetJob", + "fullName": "google.cloud.video.transcoder.v1.Client.GetJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "transcoderpb.GetJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "transcoderpb.Job", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.transcoder.v1.Client" + }, + "method": { + "shortName": "GetJob", + "fullName": "google.cloud.video.transcoder.v1.TranscoderService.GetJob", + "service": { + "shortName": "TranscoderService", + "fullName": "google.cloud.video.transcoder.v1.TranscoderService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "transcoder_v1_generated_TranscoderService_GetJobTemplate_sync", + "title": "transcoder GetJobTemplate Sample", + "description": "GetJobTemplate returns the job template data.", + "file": "Client/GetJobTemplate/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetJobTemplate", + "fullName": "google.cloud.video.transcoder.v1.Client.GetJobTemplate", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "transcoderpb.GetJobTemplateRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "transcoderpb.JobTemplate", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.transcoder.v1.Client" + }, + "method": { + "shortName": "GetJobTemplate", + "fullName": "google.cloud.video.transcoder.v1.TranscoderService.GetJobTemplate", + "service": { + "shortName": "TranscoderService", + "fullName": "google.cloud.video.transcoder.v1.TranscoderService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "transcoder_v1_generated_TranscoderService_ListJobTemplates_sync", + "title": "transcoder ListJobTemplates Sample", + "description": "ListJobTemplates lists job templates in the specified region.", + "file": "Client/ListJobTemplates/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListJobTemplates", + "fullName": "google.cloud.video.transcoder.v1.Client.ListJobTemplates", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "transcoderpb.ListJobTemplatesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "JobTemplateIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.transcoder.v1.Client" + }, + "method": { + "shortName": "ListJobTemplates", + "fullName": "google.cloud.video.transcoder.v1.TranscoderService.ListJobTemplates", + "service": { + "shortName": "TranscoderService", + "fullName": "google.cloud.video.transcoder.v1.TranscoderService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "transcoder_v1_generated_TranscoderService_ListJobs_sync", + "title": "transcoder ListJobs Sample", + "description": "ListJobs lists jobs in the specified region.", + "file": "Client/ListJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListJobs", + "fullName": "google.cloud.video.transcoder.v1.Client.ListJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "transcoderpb.ListJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "JobIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.video.transcoder.v1.Client" + }, + "method": { + "shortName": "ListJobs", + "fullName": "google.cloud.video.transcoder.v1.TranscoderService.ListJobs", + "service": { + "shortName": "TranscoderService", + "fullName": "google.cloud.video.transcoder.v1.TranscoderService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/videointelligence/apiv1/Client/AnnotateVideo/main.go b/internal/generated/snippets/videointelligence/apiv1/Client/AnnotateVideo/main.go index 93d8b6412889..cfb00a95546c 100644 --- a/internal/generated/snippets/videointelligence/apiv1/Client/AnnotateVideo/main.go +++ b/internal/generated/snippets/videointelligence/apiv1/Client/AnnotateVideo/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" videointelligence "cloud.google.com/go/videointelligence/apiv1" - videointelligencepb "google.golang.org/genproto/googleapis/cloud/videointelligence/v1" + videointelligencepb "cloud.google.com/go/videointelligence/apiv1/videointelligencepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := videointelligence.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &videointelligencepb.AnnotateVideoRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/videointelligence/v1#AnnotateVideoRequest. + // See https://pkg.go.dev/cloud.google.com/go/videointelligence/apiv1/videointelligencepb#AnnotateVideoRequest. } op, err := c.AnnotateVideo(ctx, req) if err != nil { diff --git a/internal/generated/snippets/videointelligence/apiv1/snippet_metadata.google.cloud.videointelligence.v1.json b/internal/generated/snippets/videointelligence/apiv1/snippet_metadata.google.cloud.videointelligence.v1.json new file mode 100644 index 000000000000..9f9e880fc958 --- /dev/null +++ b/internal/generated/snippets/videointelligence/apiv1/snippet_metadata.google.cloud.videointelligence.v1.json @@ -0,0 +1,61 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/videointelligence/apiv1", + "version": "1.10.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.videointelligence.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "videointelligence_v1_generated_VideoIntelligenceService_AnnotateVideo_sync", + "title": "videointelligence AnnotateVideo Sample", + "description": "AnnotateVideo performs asynchronous video annotation. Progress and results can be\nretrieved through the google.longrunning.Operations interface.\nOperation.metadata contains AnnotateVideoProgress (progress).\nOperation.response contains AnnotateVideoResponse (results).", + "file": "Client/AnnotateVideo/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AnnotateVideo", + "fullName": "google.cloud.videointelligence.v1.Client.AnnotateVideo", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "videointelligencepb.AnnotateVideoRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AnnotateVideoOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.videointelligence.v1.Client" + }, + "method": { + "shortName": "AnnotateVideo", + "fullName": "google.cloud.videointelligence.v1.VideoIntelligenceService.AnnotateVideo", + "service": { + "shortName": "VideoIntelligenceService", + "fullName": "google.cloud.videointelligence.v1.VideoIntelligenceService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/videointelligence/apiv1beta2/Client/AnnotateVideo/main.go b/internal/generated/snippets/videointelligence/apiv1beta2/Client/AnnotateVideo/main.go index c7a61344988f..fa24154ac5b1 100644 --- a/internal/generated/snippets/videointelligence/apiv1beta2/Client/AnnotateVideo/main.go +++ b/internal/generated/snippets/videointelligence/apiv1beta2/Client/AnnotateVideo/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" videointelligence "cloud.google.com/go/videointelligence/apiv1beta2" - videointelligencepb "google.golang.org/genproto/googleapis/cloud/videointelligence/v1beta2" + videointelligencepb "cloud.google.com/go/videointelligence/apiv1beta2/videointelligencepb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := videointelligence.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &videointelligencepb.AnnotateVideoRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/videointelligence/v1beta2#AnnotateVideoRequest. + // See https://pkg.go.dev/cloud.google.com/go/videointelligence/apiv1beta2/videointelligencepb#AnnotateVideoRequest. } op, err := c.AnnotateVideo(ctx, req) if err != nil { diff --git a/internal/generated/snippets/videointelligence/apiv1beta2/snippet_metadata.google.cloud.videointelligence.v1beta2.json b/internal/generated/snippets/videointelligence/apiv1beta2/snippet_metadata.google.cloud.videointelligence.v1beta2.json new file mode 100644 index 000000000000..b7b133af23da --- /dev/null +++ b/internal/generated/snippets/videointelligence/apiv1beta2/snippet_metadata.google.cloud.videointelligence.v1beta2.json @@ -0,0 +1,61 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/videointelligence/apiv1beta2", + "version": "1.10.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.videointelligence.v1beta2", + "version": "v1beta2" + } + ] + }, + "snippets": [ + { + "regionTag": "videointelligence_v1beta2_generated_VideoIntelligenceService_AnnotateVideo_sync", + "title": "videointelligence AnnotateVideo Sample", + "description": "AnnotateVideo performs asynchronous video annotation. Progress and results can be\nretrieved through the google.longrunning.Operations interface.\nOperation.metadata contains AnnotateVideoProgress (progress).\nOperation.response contains AnnotateVideoResponse (results).", + "file": "Client/AnnotateVideo/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AnnotateVideo", + "fullName": "google.cloud.videointelligence.v1beta2.Client.AnnotateVideo", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "videointelligencepb.AnnotateVideoRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AnnotateVideoOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.videointelligence.v1beta2.Client" + }, + "method": { + "shortName": "AnnotateVideo", + "fullName": "google.cloud.videointelligence.v1beta2.VideoIntelligenceService.AnnotateVideo", + "service": { + "shortName": "VideoIntelligenceService", + "fullName": "google.cloud.videointelligence.v1beta2.VideoIntelligenceService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/videointelligence/apiv1p3beta1/Client/AnnotateVideo/main.go b/internal/generated/snippets/videointelligence/apiv1p3beta1/Client/AnnotateVideo/main.go new file mode 100644 index 000000000000..ef64d7ff8afc --- /dev/null +++ b/internal/generated/snippets/videointelligence/apiv1p3beta1/Client/AnnotateVideo/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START videointelligence_v1p3beta1_generated_VideoIntelligenceService_AnnotateVideo_sync] + +package main + +import ( + "context" + + videointelligence "cloud.google.com/go/videointelligence/apiv1p3beta1" + videointelligencepb "cloud.google.com/go/videointelligence/apiv1p3beta1/videointelligencepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := videointelligence.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &videointelligencepb.AnnotateVideoRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/videointelligence/apiv1p3beta1/videointelligencepb#AnnotateVideoRequest. + } + op, err := c.AnnotateVideo(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END videointelligence_v1p3beta1_generated_VideoIntelligenceService_AnnotateVideo_sync] diff --git a/internal/generated/snippets/videointelligence/apiv1p3beta1/StreamingVideoIntelligenceClient/StreamingAnnotateVideo/main.go b/internal/generated/snippets/videointelligence/apiv1p3beta1/StreamingVideoIntelligenceClient/StreamingAnnotateVideo/main.go new file mode 100644 index 000000000000..188a24206017 --- /dev/null +++ b/internal/generated/snippets/videointelligence/apiv1p3beta1/StreamingVideoIntelligenceClient/StreamingAnnotateVideo/main.go @@ -0,0 +1,69 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START videointelligence_v1p3beta1_generated_StreamingVideoIntelligenceService_StreamingAnnotateVideo_sync] + +package main + +import ( + "context" + "io" + + videointelligence "cloud.google.com/go/videointelligence/apiv1p3beta1" + videointelligencepb "cloud.google.com/go/videointelligence/apiv1p3beta1/videointelligencepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := videointelligence.NewStreamingVideoIntelligenceClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + stream, err := c.StreamingAnnotateVideo(ctx) + if err != nil { + // TODO: Handle error. + } + go func() { + reqs := []*videointelligencepb.StreamingAnnotateVideoRequest{ + // TODO: Create requests. + } + for _, req := range reqs { + if err := stream.Send(req); err != nil { + // TODO: Handle error. + } + } + stream.CloseSend() + }() + for { + resp, err := stream.Recv() + if err == io.EOF { + break + } + if err != nil { + // TODO: handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END videointelligence_v1p3beta1_generated_StreamingVideoIntelligenceService_StreamingAnnotateVideo_sync] diff --git a/internal/generated/snippets/videointelligence/apiv1p3beta1/snippet_metadata.google.cloud.videointelligence.v1p3beta1.json b/internal/generated/snippets/videointelligence/apiv1p3beta1/snippet_metadata.google.cloud.videointelligence.v1p3beta1.json new file mode 100644 index 000000000000..4657f3121e50 --- /dev/null +++ b/internal/generated/snippets/videointelligence/apiv1p3beta1/snippet_metadata.google.cloud.videointelligence.v1p3beta1.json @@ -0,0 +1,102 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/videointelligence/apiv1p3beta1", + "version": "1.10.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.videointelligence.v1p3beta1", + "version": "v1p3beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "videointelligence_v1p3beta1_generated_VideoIntelligenceService_AnnotateVideo_sync", + "title": "videointelligence AnnotateVideo Sample", + "description": "AnnotateVideo performs asynchronous video annotation. Progress and results can be\nretrieved through the google.longrunning.Operations interface.\nOperation.metadata contains AnnotateVideoProgress (progress).\nOperation.response contains AnnotateVideoResponse (results).", + "file": "Client/AnnotateVideo/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AnnotateVideo", + "fullName": "google.cloud.videointelligence.v1p3beta1.Client.AnnotateVideo", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "videointelligencepb.AnnotateVideoRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AnnotateVideoOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.videointelligence.v1p3beta1.Client" + }, + "method": { + "shortName": "AnnotateVideo", + "fullName": "google.cloud.videointelligence.v1p3beta1.VideoIntelligenceService.AnnotateVideo", + "service": { + "shortName": "VideoIntelligenceService", + "fullName": "google.cloud.videointelligence.v1p3beta1.VideoIntelligenceService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "videointelligence_v1p3beta1_generated_StreamingVideoIntelligenceService_StreamingAnnotateVideo_sync", + "title": "videointelligence StreamingAnnotateVideo Sample", + "description": "StreamingAnnotateVideo performs video annotation with bidirectional streaming: emitting results\nwhile sending video/audio bytes.\nThis method is only available via the gRPC API (not REST).", + "file": "StreamingVideoIntelligenceClient/StreamingAnnotateVideo/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StreamingAnnotateVideo", + "fullName": "google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceClient.StreamingAnnotateVideo", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "StreamingVideoIntelligenceClient", + "fullName": "google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceClient" + }, + "method": { + "shortName": "StreamingAnnotateVideo", + "fullName": "google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceService.StreamingAnnotateVideo", + "service": { + "shortName": "StreamingVideoIntelligenceService", + "fullName": "google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 69, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/vision/v2/apiv1/ImageAnnotatorClient/AsyncBatchAnnotateFiles/main.go b/internal/generated/snippets/vision/v2/apiv1/ImageAnnotatorClient/AsyncBatchAnnotateFiles/main.go new file mode 100644 index 000000000000..c6d93235a7c0 --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ImageAnnotatorClient/AsyncBatchAnnotateFiles/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ImageAnnotator_AsyncBatchAnnotateFiles_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewImageAnnotatorClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.AsyncBatchAnnotateFilesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#AsyncBatchAnnotateFilesRequest. + } + op, err := c.AsyncBatchAnnotateFiles(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vision_v1_generated_ImageAnnotator_AsyncBatchAnnotateFiles_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ImageAnnotatorClient/AsyncBatchAnnotateImages/main.go b/internal/generated/snippets/vision/v2/apiv1/ImageAnnotatorClient/AsyncBatchAnnotateImages/main.go new file mode 100644 index 000000000000..4e8fd99c319c --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ImageAnnotatorClient/AsyncBatchAnnotateImages/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ImageAnnotator_AsyncBatchAnnotateImages_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewImageAnnotatorClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.AsyncBatchAnnotateImagesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#AsyncBatchAnnotateImagesRequest. + } + op, err := c.AsyncBatchAnnotateImages(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vision_v1_generated_ImageAnnotator_AsyncBatchAnnotateImages_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ImageAnnotatorClient/BatchAnnotateFiles/main.go b/internal/generated/snippets/vision/v2/apiv1/ImageAnnotatorClient/BatchAnnotateFiles/main.go new file mode 100644 index 000000000000..f3aca5ae530d --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ImageAnnotatorClient/BatchAnnotateFiles/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ImageAnnotator_BatchAnnotateFiles_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewImageAnnotatorClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.BatchAnnotateFilesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#BatchAnnotateFilesRequest. + } + resp, err := c.BatchAnnotateFiles(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vision_v1_generated_ImageAnnotator_BatchAnnotateFiles_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ImageAnnotatorClient/BatchAnnotateImages/main.go b/internal/generated/snippets/vision/v2/apiv1/ImageAnnotatorClient/BatchAnnotateImages/main.go new file mode 100644 index 000000000000..807980d80885 --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ImageAnnotatorClient/BatchAnnotateImages/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ImageAnnotator_BatchAnnotateImages_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewImageAnnotatorClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.BatchAnnotateImagesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#BatchAnnotateImagesRequest. + } + resp, err := c.BatchAnnotateImages(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vision_v1_generated_ImageAnnotator_BatchAnnotateImages_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/AddProductToProductSet/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/AddProductToProductSet/main.go new file mode 100644 index 000000000000..3b131734cf09 --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/AddProductToProductSet/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_AddProductToProductSet_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.AddProductToProductSetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#AddProductToProductSetRequest. + } + err = c.AddProductToProductSet(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END vision_v1_generated_ProductSearch_AddProductToProductSet_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/CreateProduct/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/CreateProduct/main.go new file mode 100644 index 000000000000..367bc7ab896a --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/CreateProduct/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_CreateProduct_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.CreateProductRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#CreateProductRequest. + } + resp, err := c.CreateProduct(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vision_v1_generated_ProductSearch_CreateProduct_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/CreateProductSet/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/CreateProductSet/main.go new file mode 100644 index 000000000000..9eaaeea9168a --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/CreateProductSet/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_CreateProductSet_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.CreateProductSetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#CreateProductSetRequest. + } + resp, err := c.CreateProductSet(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vision_v1_generated_ProductSearch_CreateProductSet_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/CreateReferenceImage/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/CreateReferenceImage/main.go new file mode 100644 index 000000000000..613b3de8fcd6 --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/CreateReferenceImage/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_CreateReferenceImage_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.CreateReferenceImageRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#CreateReferenceImageRequest. + } + resp, err := c.CreateReferenceImage(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vision_v1_generated_ProductSearch_CreateReferenceImage_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/DeleteProduct/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/DeleteProduct/main.go new file mode 100644 index 000000000000..8e10c3fa169b --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/DeleteProduct/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_DeleteProduct_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.DeleteProductRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#DeleteProductRequest. + } + err = c.DeleteProduct(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END vision_v1_generated_ProductSearch_DeleteProduct_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/DeleteProductSet/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/DeleteProductSet/main.go new file mode 100644 index 000000000000..d9fd3a199c1f --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/DeleteProductSet/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_DeleteProductSet_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.DeleteProductSetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#DeleteProductSetRequest. + } + err = c.DeleteProductSet(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END vision_v1_generated_ProductSearch_DeleteProductSet_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/DeleteReferenceImage/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/DeleteReferenceImage/main.go new file mode 100644 index 000000000000..7e99e97f6b2b --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/DeleteReferenceImage/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_DeleteReferenceImage_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.DeleteReferenceImageRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#DeleteReferenceImageRequest. + } + err = c.DeleteReferenceImage(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END vision_v1_generated_ProductSearch_DeleteReferenceImage_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/GetProduct/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/GetProduct/main.go new file mode 100644 index 000000000000..7b16bec30f51 --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/GetProduct/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_GetProduct_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.GetProductRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#GetProductRequest. + } + resp, err := c.GetProduct(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vision_v1_generated_ProductSearch_GetProduct_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/GetProductSet/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/GetProductSet/main.go new file mode 100644 index 000000000000..14f6e5076f51 --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/GetProductSet/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_GetProductSet_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.GetProductSetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#GetProductSetRequest. + } + resp, err := c.GetProductSet(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vision_v1_generated_ProductSearch_GetProductSet_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/GetReferenceImage/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/GetReferenceImage/main.go new file mode 100644 index 000000000000..e251de62eb8b --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/GetReferenceImage/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_GetReferenceImage_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.GetReferenceImageRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#GetReferenceImageRequest. + } + resp, err := c.GetReferenceImage(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vision_v1_generated_ProductSearch_GetReferenceImage_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/ImportProductSets/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/ImportProductSets/main.go new file mode 100644 index 000000000000..9d8126ae8ccc --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/ImportProductSets/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_ImportProductSets_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.ImportProductSetsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#ImportProductSetsRequest. + } + op, err := c.ImportProductSets(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vision_v1_generated_ProductSearch_ImportProductSets_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/ListProductSets/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/ListProductSets/main.go new file mode 100644 index 000000000000..04413d494916 --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/ListProductSets/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_ListProductSets_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.ListProductSetsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#ListProductSetsRequest. + } + it := c.ListProductSets(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vision_v1_generated_ProductSearch_ListProductSets_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/ListProducts/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/ListProducts/main.go new file mode 100644 index 000000000000..2344f2d87bd3 --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/ListProducts/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_ListProducts_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.ListProductsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#ListProductsRequest. + } + it := c.ListProducts(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vision_v1_generated_ProductSearch_ListProducts_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/ListProductsInProductSet/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/ListProductsInProductSet/main.go new file mode 100644 index 000000000000..727e4c29f9b4 --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/ListProductsInProductSet/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_ListProductsInProductSet_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.ListProductsInProductSetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#ListProductsInProductSetRequest. + } + it := c.ListProductsInProductSet(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vision_v1_generated_ProductSearch_ListProductsInProductSet_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/ListReferenceImages/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/ListReferenceImages/main.go new file mode 100644 index 000000000000..b8b804ad0dec --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/ListReferenceImages/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_ListReferenceImages_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.ListReferenceImagesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#ListReferenceImagesRequest. + } + it := c.ListReferenceImages(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vision_v1_generated_ProductSearch_ListReferenceImages_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/PurgeProducts/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/PurgeProducts/main.go new file mode 100644 index 000000000000..a7d58b30bc39 --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/PurgeProducts/main.go @@ -0,0 +1,56 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_PurgeProducts_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.PurgeProductsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#PurgeProductsRequest. + } + op, err := c.PurgeProducts(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END vision_v1_generated_ProductSearch_PurgeProducts_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/RemoveProductFromProductSet/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/RemoveProductFromProductSet/main.go new file mode 100644 index 000000000000..a992ebe3640e --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/RemoveProductFromProductSet/main.go @@ -0,0 +1,51 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_RemoveProductFromProductSet_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.RemoveProductFromProductSetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#RemoveProductFromProductSetRequest. + } + err = c.RemoveProductFromProductSet(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END vision_v1_generated_ProductSearch_RemoveProductFromProductSet_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/UpdateProduct/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/UpdateProduct/main.go new file mode 100644 index 000000000000..1870336ff505 --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/UpdateProduct/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_UpdateProduct_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.UpdateProductRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#UpdateProductRequest. + } + resp, err := c.UpdateProduct(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vision_v1_generated_ProductSearch_UpdateProduct_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/UpdateProductSet/main.go b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/UpdateProductSet/main.go new file mode 100644 index 000000000000..d5635ffe467d --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/ProductSearchClient/UpdateProductSet/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1_generated_ProductSearch_UpdateProductSet_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1" + visionpb "cloud.google.com/go/vision/v2/apiv1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewProductSearchClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.UpdateProductSetRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1/visionpb#UpdateProductSetRequest. + } + resp, err := c.UpdateProductSet(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vision_v1_generated_ProductSearch_UpdateProductSet_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1/snippet_metadata.google.cloud.vision.v1.json b/internal/generated/snippets/vision/v2/apiv1/snippet_metadata.google.cloud.vision.v1.json new file mode 100644 index 000000000000..f84ad78d1db6 --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1/snippet_metadata.google.cloud.vision.v1.json @@ -0,0 +1,1068 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/vision/v2/apiv1", + "version": "2.6.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.vision.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "vision_v1_generated_ImageAnnotator_AsyncBatchAnnotateFiles_sync", + "title": "vision AsyncBatchAnnotateFiles Sample", + "description": "AsyncBatchAnnotateFiles run asynchronous image detection and annotation for a list of generic\nfiles, such as PDF files, which may contain multiple pages and multiple\nimages per page. Progress and results can be retrieved through the\ngoogle.longrunning.Operations interface.\nOperation.metadata contains OperationMetadata (metadata).\nOperation.response contains AsyncBatchAnnotateFilesResponse (results).", + "file": "ImageAnnotatorClient/AsyncBatchAnnotateFiles/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AsyncBatchAnnotateFiles", + "fullName": "google.cloud.vision.v1.ImageAnnotatorClient.AsyncBatchAnnotateFiles", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.AsyncBatchAnnotateFilesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AsyncBatchAnnotateFilesOperation", + "client": { + "shortName": "ImageAnnotatorClient", + "fullName": "google.cloud.vision.v1.ImageAnnotatorClient" + }, + "method": { + "shortName": "AsyncBatchAnnotateFiles", + "fullName": "google.cloud.vision.v1.ImageAnnotator.AsyncBatchAnnotateFiles", + "service": { + "shortName": "ImageAnnotator", + "fullName": "google.cloud.vision.v1.ImageAnnotator" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ImageAnnotator_AsyncBatchAnnotateImages_sync", + "title": "vision AsyncBatchAnnotateImages Sample", + "description": "AsyncBatchAnnotateImages run asynchronous image detection and annotation for a list of images.\n\nProgress and results can be retrieved through the\ngoogle.longrunning.Operations interface.\nOperation.metadata contains OperationMetadata (metadata).\nOperation.response contains AsyncBatchAnnotateImagesResponse (results).\n\nThis service will write image annotation outputs to json files in customer\nGCS bucket, each json file containing BatchAnnotateImagesResponse proto.", + "file": "ImageAnnotatorClient/AsyncBatchAnnotateImages/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AsyncBatchAnnotateImages", + "fullName": "google.cloud.vision.v1.ImageAnnotatorClient.AsyncBatchAnnotateImages", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.AsyncBatchAnnotateImagesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AsyncBatchAnnotateImagesOperation", + "client": { + "shortName": "ImageAnnotatorClient", + "fullName": "google.cloud.vision.v1.ImageAnnotatorClient" + }, + "method": { + "shortName": "AsyncBatchAnnotateImages", + "fullName": "google.cloud.vision.v1.ImageAnnotator.AsyncBatchAnnotateImages", + "service": { + "shortName": "ImageAnnotator", + "fullName": "google.cloud.vision.v1.ImageAnnotator" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ImageAnnotator_BatchAnnotateFiles_sync", + "title": "vision BatchAnnotateFiles Sample", + "description": "BatchAnnotateFiles service that performs image detection and annotation for a batch of files.\nNow only “application/pdf”, “image/tiff” and “image/gif” are supported.\n\nThis service will extract at most 5 (customers can specify which 5 in\nAnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each\nfile provided and perform detection and annotation for each image\nextracted.", + "file": "ImageAnnotatorClient/BatchAnnotateFiles/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchAnnotateFiles", + "fullName": "google.cloud.vision.v1.ImageAnnotatorClient.BatchAnnotateFiles", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.BatchAnnotateFilesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "visionpb.BatchAnnotateFilesResponse", + "client": { + "shortName": "ImageAnnotatorClient", + "fullName": "google.cloud.vision.v1.ImageAnnotatorClient" + }, + "method": { + "shortName": "BatchAnnotateFiles", + "fullName": "google.cloud.vision.v1.ImageAnnotator.BatchAnnotateFiles", + "service": { + "shortName": "ImageAnnotator", + "fullName": "google.cloud.vision.v1.ImageAnnotator" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ImageAnnotator_BatchAnnotateImages_sync", + "title": "vision BatchAnnotateImages Sample", + "description": "BatchAnnotateImages run image detection and annotation for a batch of images.", + "file": "ImageAnnotatorClient/BatchAnnotateImages/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchAnnotateImages", + "fullName": "google.cloud.vision.v1.ImageAnnotatorClient.BatchAnnotateImages", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.BatchAnnotateImagesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "visionpb.BatchAnnotateImagesResponse", + "client": { + "shortName": "ImageAnnotatorClient", + "fullName": "google.cloud.vision.v1.ImageAnnotatorClient" + }, + "method": { + "shortName": "BatchAnnotateImages", + "fullName": "google.cloud.vision.v1.ImageAnnotator.BatchAnnotateImages", + "service": { + "shortName": "ImageAnnotator", + "fullName": "google.cloud.vision.v1.ImageAnnotator" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_AddProductToProductSet_sync", + "title": "vision AddProductToProductSet Sample", + "description": "AddProductToProductSet adds a Product to the specified ProductSet. If the Product is already\npresent, no change is made.\n\nOne Product can be added to at most 100 ProductSets.\n\nPossible errors: \n\n\tReturns NOT_FOUND if the Product or the ProductSet doesn’t exist.", + "file": "ProductSearchClient/AddProductToProductSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AddProductToProductSet", + "fullName": "google.cloud.vision.v1.ProductSearchClient.AddProductToProductSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.AddProductToProductSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "AddProductToProductSet", + "fullName": "google.cloud.vision.v1.ProductSearch.AddProductToProductSet", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_CreateProduct_sync", + "title": "vision CreateProduct Sample", + "description": "CreateProduct creates and returns a new product resource.\n\nPossible errors: \n\n\tReturns INVALID_ARGUMENT if display_name is missing or longer than 4096\n\tcharacters.\n\n\tReturns INVALID_ARGUMENT if description is longer than 4096 characters.\n\n\tReturns INVALID_ARGUMENT if product_category is missing or invalid.", + "file": "ProductSearchClient/CreateProduct/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateProduct", + "fullName": "google.cloud.vision.v1.ProductSearchClient.CreateProduct", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.CreateProductRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "visionpb.Product", + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "CreateProduct", + "fullName": "google.cloud.vision.v1.ProductSearch.CreateProduct", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_CreateProductSet_sync", + "title": "vision CreateProductSet Sample", + "description": "CreateProductSet creates and returns a new ProductSet resource.\n\nPossible errors: \n\n\tReturns INVALID_ARGUMENT if display_name is missing, or is longer than\n\t4096 characters.", + "file": "ProductSearchClient/CreateProductSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateProductSet", + "fullName": "google.cloud.vision.v1.ProductSearchClient.CreateProductSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.CreateProductSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "visionpb.ProductSet", + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "CreateProductSet", + "fullName": "google.cloud.vision.v1.ProductSearch.CreateProductSet", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_CreateReferenceImage_sync", + "title": "vision CreateReferenceImage Sample", + "description": "CreateReferenceImage creates and returns a new ReferenceImage resource.\n\nThe bounding_poly field is optional. If bounding_poly is not specified,\nthe system will try to detect regions of interest in the image that are\ncompatible with the product_category on the parent product. If it is\nspecified, detection is ALWAYS skipped. The system converts polygons into\nnon-rotated rectangles.\n\nNote that the pipeline will resize the image if the image resolution is too\nlarge to process (above 50MP).\n\nPossible errors: \n\n\tReturns INVALID_ARGUMENT if the image_uri is missing or longer than 4096\n\tcharacters.\n\n\tReturns INVALID_ARGUMENT if the product does not exist.\n\n\tReturns INVALID_ARGUMENT if bounding_poly is not provided, and nothing\n\tcompatible with the parent product’s product_category is detected.\n\n\tReturns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.", + "file": "ProductSearchClient/CreateReferenceImage/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateReferenceImage", + "fullName": "google.cloud.vision.v1.ProductSearchClient.CreateReferenceImage", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.CreateReferenceImageRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "visionpb.ReferenceImage", + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "CreateReferenceImage", + "fullName": "google.cloud.vision.v1.ProductSearch.CreateReferenceImage", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_DeleteProduct_sync", + "title": "vision DeleteProduct Sample", + "description": "DeleteProduct permanently deletes a product and its reference images.\n\nMetadata of the product and all its images will be deleted right away, but\nsearch queries against ProductSets containing the product may still work\nuntil all related caches are refreshed.", + "file": "ProductSearchClient/DeleteProduct/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteProduct", + "fullName": "google.cloud.vision.v1.ProductSearchClient.DeleteProduct", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.DeleteProductRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "DeleteProduct", + "fullName": "google.cloud.vision.v1.ProductSearch.DeleteProduct", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_DeleteProductSet_sync", + "title": "vision DeleteProductSet Sample", + "description": "DeleteProductSet permanently deletes a ProductSet. Products and ReferenceImages in the\nProductSet are not deleted.\n\nThe actual image files are not deleted from Google Cloud Storage.", + "file": "ProductSearchClient/DeleteProductSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteProductSet", + "fullName": "google.cloud.vision.v1.ProductSearchClient.DeleteProductSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.DeleteProductSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "DeleteProductSet", + "fullName": "google.cloud.vision.v1.ProductSearch.DeleteProductSet", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_DeleteReferenceImage_sync", + "title": "vision DeleteReferenceImage Sample", + "description": "DeleteReferenceImage permanently deletes a reference image.\n\nThe image metadata will be deleted right away, but search queries\nagainst ProductSets containing the image may still work until all related\ncaches are refreshed.\n\nThe actual image files are not deleted from Google Cloud Storage.", + "file": "ProductSearchClient/DeleteReferenceImage/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteReferenceImage", + "fullName": "google.cloud.vision.v1.ProductSearchClient.DeleteReferenceImage", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.DeleteReferenceImageRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "DeleteReferenceImage", + "fullName": "google.cloud.vision.v1.ProductSearch.DeleteReferenceImage", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_GetProduct_sync", + "title": "vision GetProduct Sample", + "description": "GetProduct gets information associated with a Product.\n\nPossible errors: \n\n\tReturns NOT_FOUND if the Product does not exist.", + "file": "ProductSearchClient/GetProduct/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetProduct", + "fullName": "google.cloud.vision.v1.ProductSearchClient.GetProduct", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.GetProductRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "visionpb.Product", + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "GetProduct", + "fullName": "google.cloud.vision.v1.ProductSearch.GetProduct", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_GetProductSet_sync", + "title": "vision GetProductSet Sample", + "description": "GetProductSet gets information associated with a ProductSet.\n\nPossible errors: \n\n\tReturns NOT_FOUND if the ProductSet does not exist.", + "file": "ProductSearchClient/GetProductSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetProductSet", + "fullName": "google.cloud.vision.v1.ProductSearchClient.GetProductSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.GetProductSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "visionpb.ProductSet", + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "GetProductSet", + "fullName": "google.cloud.vision.v1.ProductSearch.GetProductSet", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_GetReferenceImage_sync", + "title": "vision GetReferenceImage Sample", + "description": "GetReferenceImage gets information associated with a ReferenceImage.\n\nPossible errors: \n\n\tReturns NOT_FOUND if the specified image does not exist.", + "file": "ProductSearchClient/GetReferenceImage/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetReferenceImage", + "fullName": "google.cloud.vision.v1.ProductSearchClient.GetReferenceImage", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.GetReferenceImageRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "visionpb.ReferenceImage", + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "GetReferenceImage", + "fullName": "google.cloud.vision.v1.ProductSearch.GetReferenceImage", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_ImportProductSets_sync", + "title": "vision ImportProductSets Sample", + "description": "ImportProductSets asynchronous API that imports a list of reference images to specified\nproduct sets based on a list of image information.\n\nThe google.longrunning.Operation API can be used to keep track of the\nprogress and results of the request.\nOperation.metadata contains BatchOperationMetadata. (progress)\nOperation.response contains ImportProductSetsResponse. (results)\n\nThe input source of this method is a csv file on Google Cloud Storage.\nFor the format of the csv file please see\nImportProductSetsGcsSource.csv_file_uri.", + "file": "ProductSearchClient/ImportProductSets/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ImportProductSets", + "fullName": "google.cloud.vision.v1.ProductSearchClient.ImportProductSets", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.ImportProductSetsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ImportProductSetsOperation", + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "ImportProductSets", + "fullName": "google.cloud.vision.v1.ProductSearch.ImportProductSets", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_ListProductSets_sync", + "title": "vision ListProductSets Sample", + "description": "ListProductSets lists ProductSets in an unspecified order.\n\nPossible errors: \n\n\tReturns INVALID_ARGUMENT if page_size is greater than 100, or less\n\tthan 1.", + "file": "ProductSearchClient/ListProductSets/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListProductSets", + "fullName": "google.cloud.vision.v1.ProductSearchClient.ListProductSets", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.ListProductSetsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ProductSetIterator", + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "ListProductSets", + "fullName": "google.cloud.vision.v1.ProductSearch.ListProductSets", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_ListProducts_sync", + "title": "vision ListProducts Sample", + "description": "ListProducts lists products in an unspecified order.\n\nPossible errors: \n\n\tReturns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.", + "file": "ProductSearchClient/ListProducts/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListProducts", + "fullName": "google.cloud.vision.v1.ProductSearchClient.ListProducts", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.ListProductsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ProductIterator", + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "ListProducts", + "fullName": "google.cloud.vision.v1.ProductSearch.ListProducts", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_ListProductsInProductSet_sync", + "title": "vision ListProductsInProductSet Sample", + "description": "ListProductsInProductSet lists the Products in a ProductSet, in an unspecified order. If the\nProductSet does not exist, the products field of the response will be\nempty.\n\nPossible errors: \n\n\tReturns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.", + "file": "ProductSearchClient/ListProductsInProductSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListProductsInProductSet", + "fullName": "google.cloud.vision.v1.ProductSearchClient.ListProductsInProductSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.ListProductsInProductSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ProductIterator", + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "ListProductsInProductSet", + "fullName": "google.cloud.vision.v1.ProductSearch.ListProductsInProductSet", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_ListReferenceImages_sync", + "title": "vision ListReferenceImages Sample", + "description": "ListReferenceImages lists reference images.\n\nPossible errors: \n\n\tReturns NOT_FOUND if the parent product does not exist.\n\n\tReturns INVALID_ARGUMENT if the page_size is greater than 100, or less\n\tthan 1.", + "file": "ProductSearchClient/ListReferenceImages/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListReferenceImages", + "fullName": "google.cloud.vision.v1.ProductSearchClient.ListReferenceImages", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.ListReferenceImagesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ReferenceImageIterator", + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "ListReferenceImages", + "fullName": "google.cloud.vision.v1.ProductSearch.ListReferenceImages", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_PurgeProducts_sync", + "title": "vision PurgeProducts Sample", + "description": "PurgeProducts asynchronous API to delete all Products in a ProductSet or all Products\nthat are in no ProductSet.\n\nIf a Product is a member of the specified ProductSet in addition to other\nProductSets, the Product will still be deleted.\n\nIt is recommended to not delete the specified ProductSet until after this\noperation has completed. It is also recommended to not add any of the\nProducts involved in the batch delete to a new ProductSet while this\noperation is running because those Products may still end up deleted.\n\nIt’s not possible to undo the PurgeProducts operation. Therefore, it is\nrecommended to keep the csv files used in ImportProductSets (if that was\nhow you originally built the Product Set) before starting PurgeProducts, in\ncase you need to re-import the data after deletion.\n\nIf the plan is to purge all of the Products from a ProductSet and then\nre-use the empty ProductSet to re-import new Products into the empty\nProductSet, you must wait until the PurgeProducts operation has finished\nfor that ProductSet.\n\nThe google.longrunning.Operation API can be used to keep track of the\nprogress and results of the request.\nOperation.metadata contains BatchOperationMetadata. (progress)", + "file": "ProductSearchClient/PurgeProducts/main.go", + "language": "GO", + "clientMethod": { + "shortName": "PurgeProducts", + "fullName": "google.cloud.vision.v1.ProductSearchClient.PurgeProducts", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.PurgeProductsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PurgeProductsOperation", + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "PurgeProducts", + "fullName": "google.cloud.vision.v1.ProductSearch.PurgeProducts", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_RemoveProductFromProductSet_sync", + "title": "vision RemoveProductFromProductSet Sample", + "description": "RemoveProductFromProductSet removes a Product from the specified ProductSet.", + "file": "ProductSearchClient/RemoveProductFromProductSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RemoveProductFromProductSet", + "fullName": "google.cloud.vision.v1.ProductSearchClient.RemoveProductFromProductSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.RemoveProductFromProductSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "RemoveProductFromProductSet", + "fullName": "google.cloud.vision.v1.ProductSearch.RemoveProductFromProductSet", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_UpdateProduct_sync", + "title": "vision UpdateProduct Sample", + "description": "UpdateProduct makes changes to a Product resource.\nOnly the display_name, description, and labels fields can be updated\nright now.\n\nIf labels are updated, the change will not be reflected in queries until\nthe next index time.\n\nPossible errors: \n\n\tReturns NOT_FOUND if the Product does not exist.\n\n\tReturns INVALID_ARGUMENT if display_name is present in update_mask but is\n\tmissing from the request or longer than 4096 characters.\n\n\tReturns INVALID_ARGUMENT if description is present in update_mask but is\n\tlonger than 4096 characters.\n\n\tReturns INVALID_ARGUMENT if product_category is present in update_mask.", + "file": "ProductSearchClient/UpdateProduct/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateProduct", + "fullName": "google.cloud.vision.v1.ProductSearchClient.UpdateProduct", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.UpdateProductRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "visionpb.Product", + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "UpdateProduct", + "fullName": "google.cloud.vision.v1.ProductSearch.UpdateProduct", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vision_v1_generated_ProductSearch_UpdateProductSet_sync", + "title": "vision UpdateProductSet Sample", + "description": "UpdateProductSet makes changes to a ProductSet resource.\nOnly display_name can be updated currently.\n\nPossible errors: \n\n\tReturns NOT_FOUND if the ProductSet does not exist.\n\n\tReturns INVALID_ARGUMENT if display_name is present in update_mask but\n\tmissing from the request or longer than 4096 characters.", + "file": "ProductSearchClient/UpdateProductSet/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateProductSet", + "fullName": "google.cloud.vision.v1.ProductSearchClient.UpdateProductSet", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.UpdateProductSetRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "visionpb.ProductSet", + "client": { + "shortName": "ProductSearchClient", + "fullName": "google.cloud.vision.v1.ProductSearchClient" + }, + "method": { + "shortName": "UpdateProductSet", + "fullName": "google.cloud.vision.v1.ProductSearch.UpdateProductSet", + "service": { + "shortName": "ProductSearch", + "fullName": "google.cloud.vision.v1.ProductSearch" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/vision/v2/apiv1p1beta1/ImageAnnotatorClient/BatchAnnotateImages/main.go b/internal/generated/snippets/vision/v2/apiv1p1beta1/ImageAnnotatorClient/BatchAnnotateImages/main.go new file mode 100644 index 000000000000..974e647e0745 --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1p1beta1/ImageAnnotatorClient/BatchAnnotateImages/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vision_v1p1beta1_generated_ImageAnnotator_BatchAnnotateImages_sync] + +package main + +import ( + "context" + + vision "cloud.google.com/go/vision/v2/apiv1p1beta1" + visionpb "cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vision.NewImageAnnotatorClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &visionpb.BatchAnnotateImagesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vision/v2/apiv1p1beta1/visionpb#BatchAnnotateImagesRequest. + } + resp, err := c.BatchAnnotateImages(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vision_v1p1beta1_generated_ImageAnnotator_BatchAnnotateImages_sync] diff --git a/internal/generated/snippets/vision/v2/apiv1p1beta1/snippet_metadata.google.cloud.vision.v1p1beta1.json b/internal/generated/snippets/vision/v2/apiv1p1beta1/snippet_metadata.google.cloud.vision.v1p1beta1.json new file mode 100644 index 000000000000..552039aefdb7 --- /dev/null +++ b/internal/generated/snippets/vision/v2/apiv1p1beta1/snippet_metadata.google.cloud.vision.v1p1beta1.json @@ -0,0 +1,61 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/vision/v2/apiv1p1beta1", + "version": "2.6.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.vision.v1p1beta1", + "version": "v1p1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "vision_v1p1beta1_generated_ImageAnnotator_BatchAnnotateImages_sync", + "title": "vision BatchAnnotateImages Sample", + "description": "BatchAnnotateImages run image detection and annotation for a batch of images.", + "file": "ImageAnnotatorClient/BatchAnnotateImages/main.go", + "language": "GO", + "clientMethod": { + "shortName": "BatchAnnotateImages", + "fullName": "google.cloud.vision.v1p1beta1.ImageAnnotatorClient.BatchAnnotateImages", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "visionpb.BatchAnnotateImagesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "visionpb.BatchAnnotateImagesResponse", + "client": { + "shortName": "ImageAnnotatorClient", + "fullName": "google.cloud.vision.v1p1beta1.ImageAnnotatorClient" + }, + "method": { + "shortName": "BatchAnnotateImages", + "fullName": "google.cloud.vision.v1p1beta1.ImageAnnotator.BatchAnnotateImages", + "service": { + "shortName": "ImageAnnotator", + "fullName": "google.cloud.vision.v1p1beta1.ImageAnnotator" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/AddGroupMigration/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/AddGroupMigration/main.go index 696da27bd4f6..ec7e68f82897 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/AddGroupMigration/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/AddGroupMigration/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.AddGroupMigrationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#AddGroupMigrationRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#AddGroupMigrationRequest. } op, err := c.AddGroupMigration(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CancelCloneJob/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CancelCloneJob/main.go index 22ba8e6d1ce0..faeafe2d6077 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/CancelCloneJob/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CancelCloneJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.CancelCloneJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CancelCloneJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#CancelCloneJobRequest. } op, err := c.CancelCloneJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CancelCutoverJob/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CancelCutoverJob/main.go index eb08aa45d4bf..f786bb9461d2 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/CancelCutoverJob/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CancelCutoverJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.CancelCutoverJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CancelCutoverJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#CancelCutoverJobRequest. } op, err := c.CancelCutoverJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CancelOperation/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CancelOperation/main.go new file mode 100644 index 000000000000..ed5da78bac08 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CancelOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmmigration_v1_generated_VmMigration_CancelOperation_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END vmmigration_v1_generated_VmMigration_CancelOperation_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CreateCloneJob/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CreateCloneJob/main.go index 080f5ca2a4c1..0bab9b1ed119 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/CreateCloneJob/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CreateCloneJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.CreateCloneJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CreateCloneJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#CreateCloneJobRequest. } op, err := c.CreateCloneJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CreateCutoverJob/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CreateCutoverJob/main.go index 2a1f8909f20f..6b961fc51044 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/CreateCutoverJob/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CreateCutoverJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.CreateCutoverJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CreateCutoverJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#CreateCutoverJobRequest. } op, err := c.CreateCutoverJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CreateDatacenterConnector/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CreateDatacenterConnector/main.go index 10e292aa7d22..036ec54cf05c 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/CreateDatacenterConnector/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CreateDatacenterConnector/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.CreateDatacenterConnectorRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CreateDatacenterConnectorRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#CreateDatacenterConnectorRequest. } op, err := c.CreateDatacenterConnector(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CreateGroup/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CreateGroup/main.go index 4f6c49793acf..c83c04bc5eec 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/CreateGroup/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CreateGroup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.CreateGroupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CreateGroupRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#CreateGroupRequest. } op, err := c.CreateGroup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CreateMigratingVm/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CreateMigratingVm/main.go index bfc9c13eb4e3..486523888111 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/CreateMigratingVm/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CreateMigratingVm/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.CreateMigratingVmRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CreateMigratingVmRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#CreateMigratingVmRequest. } op, err := c.CreateMigratingVm(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CreateSource/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CreateSource/main.go index 5a479537f57d..07d2ffd3fd26 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/CreateSource/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CreateSource/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.CreateSourceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CreateSourceRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#CreateSourceRequest. } op, err := c.CreateSource(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CreateTargetProject/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CreateTargetProject/main.go index 751830b63a74..11d83a22605e 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/CreateTargetProject/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CreateTargetProject/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.CreateTargetProjectRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CreateTargetProjectRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#CreateTargetProjectRequest. } op, err := c.CreateTargetProject(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/CreateUtilizationReport/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/CreateUtilizationReport/main.go index 6f41ca1e25ec..4cda139bf533 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/CreateUtilizationReport/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/CreateUtilizationReport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.CreateUtilizationReportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#CreateUtilizationReportRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#CreateUtilizationReportRequest. } op, err := c.CreateUtilizationReport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteDatacenterConnector/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteDatacenterConnector/main.go index 8805e4dac8de..dda917811346 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteDatacenterConnector/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteDatacenterConnector/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.DeleteDatacenterConnectorRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#DeleteDatacenterConnectorRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#DeleteDatacenterConnectorRequest. } op, err := c.DeleteDatacenterConnector(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteGroup/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteGroup/main.go index 493a1bf39452..883084b97c94 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteGroup/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteGroup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.DeleteGroupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#DeleteGroupRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#DeleteGroupRequest. } op, err := c.DeleteGroup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteMigratingVm/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteMigratingVm/main.go index f8bcb1261ae4..9b4e91c95c27 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteMigratingVm/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteMigratingVm/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.DeleteMigratingVmRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#DeleteMigratingVmRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#DeleteMigratingVmRequest. } op, err := c.DeleteMigratingVm(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteOperation/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteOperation/main.go new file mode 100644 index 000000000000..ea074ba80562 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmmigration_v1_generated_VmMigration_DeleteOperation_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END vmmigration_v1_generated_VmMigration_DeleteOperation_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteSource/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteSource/main.go index 01967dce3beb..119242d19f14 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteSource/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteSource/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.DeleteSourceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#DeleteSourceRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#DeleteSourceRequest. } op, err := c.DeleteSource(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteTargetProject/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteTargetProject/main.go index 1fb5c53ba0dd..3094bcdc018b 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteTargetProject/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteTargetProject/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.DeleteTargetProjectRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#DeleteTargetProjectRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#DeleteTargetProjectRequest. } op, err := c.DeleteTargetProject(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteUtilizationReport/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteUtilizationReport/main.go index 30993dd4dd45..163c5119e90c 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/DeleteUtilizationReport/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/DeleteUtilizationReport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.DeleteUtilizationReportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#DeleteUtilizationReportRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#DeleteUtilizationReportRequest. } op, err := c.DeleteUtilizationReport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/FetchInventory/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/FetchInventory/main.go index e3ca6b39d5e9..375f0fff9d4f 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/FetchInventory/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/FetchInventory/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.FetchInventoryRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#FetchInventoryRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#FetchInventoryRequest. } resp, err := c.FetchInventory(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/FinalizeMigration/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/FinalizeMigration/main.go index ec78a457b5ed..f9bcb5e383cb 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/FinalizeMigration/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/FinalizeMigration/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.FinalizeMigrationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#FinalizeMigrationRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#FinalizeMigrationRequest. } op, err := c.FinalizeMigration(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetCloneJob/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetCloneJob/main.go index 214470b3e5dc..d554f58b5e08 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/GetCloneJob/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetCloneJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.GetCloneJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#GetCloneJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#GetCloneJobRequest. } resp, err := c.GetCloneJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetCutoverJob/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetCutoverJob/main.go index 3ab722d0552e..4a14e30e1c89 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/GetCutoverJob/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetCutoverJob/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.GetCutoverJobRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#GetCutoverJobRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#GetCutoverJobRequest. } resp, err := c.GetCutoverJob(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetDatacenterConnector/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetDatacenterConnector/main.go index 796455af7c59..5838f4fdda37 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/GetDatacenterConnector/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetDatacenterConnector/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.GetDatacenterConnectorRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#GetDatacenterConnectorRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#GetDatacenterConnectorRequest. } resp, err := c.GetDatacenterConnector(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetGroup/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetGroup/main.go index 251c2bbb0972..121888f3c148 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/GetGroup/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetGroup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.GetGroupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#GetGroupRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#GetGroupRequest. } resp, err := c.GetGroup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetLocation/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetLocation/main.go new file mode 100644 index 000000000000..bbd81fa5136e --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmmigration_v1_generated_VmMigration_GetLocation_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_GetLocation_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetMigratingVm/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetMigratingVm/main.go index a82d898388bb..38df1a41e564 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/GetMigratingVm/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetMigratingVm/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.GetMigratingVmRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#GetMigratingVmRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#GetMigratingVmRequest. } resp, err := c.GetMigratingVm(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetOperation/main.go new file mode 100644 index 000000000000..c49444a70d54 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmmigration_v1_generated_VmMigration_GetOperation_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_GetOperation_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetReplicationCycle/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetReplicationCycle/main.go new file mode 100644 index 000000000000..e2a134dc9541 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetReplicationCycle/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmmigration_v1_generated_VmMigration_GetReplicationCycle_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.GetReplicationCycleRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#GetReplicationCycleRequest. + } + resp, err := c.GetReplicationCycle(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_GetReplicationCycle_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetSource/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetSource/main.go index 7739028c87a0..ef0f3654b6a8 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/GetSource/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetSource/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.GetSourceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#GetSourceRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#GetSourceRequest. } resp, err := c.GetSource(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetTargetProject/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetTargetProject/main.go index c4f90db96d5d..4a14dbd75a24 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/GetTargetProject/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetTargetProject/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.GetTargetProjectRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#GetTargetProjectRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#GetTargetProjectRequest. } resp, err := c.GetTargetProject(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/GetUtilizationReport/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/GetUtilizationReport/main.go index 2d5234f62b7f..ecf259b050dd 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/GetUtilizationReport/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/GetUtilizationReport/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.GetUtilizationReportRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#GetUtilizationReportRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#GetUtilizationReportRequest. } resp, err := c.GetUtilizationReport(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListCloneJobs/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListCloneJobs/main.go index 7deaf4515869..a4775d0a4763 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/ListCloneJobs/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListCloneJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" "google.golang.org/api/iterator" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &vmmigrationpb.ListCloneJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#ListCloneJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#ListCloneJobsRequest. } it := c.ListCloneJobs(ctx, req) for { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListCutoverJobs/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListCutoverJobs/main.go index 3b308c894bbb..158c98a85a2d 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/ListCutoverJobs/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListCutoverJobs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" "google.golang.org/api/iterator" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &vmmigrationpb.ListCutoverJobsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#ListCutoverJobsRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#ListCutoverJobsRequest. } it := c.ListCutoverJobs(ctx, req) for { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListDatacenterConnectors/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListDatacenterConnectors/main.go index dca30641c4f1..6f0bd3def099 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/ListDatacenterConnectors/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListDatacenterConnectors/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" "google.golang.org/api/iterator" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &vmmigrationpb.ListDatacenterConnectorsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#ListDatacenterConnectorsRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#ListDatacenterConnectorsRequest. } it := c.ListDatacenterConnectors(ctx, req) for { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListGroups/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListGroups/main.go index e400166d2288..9fa1a6dace63 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/ListGroups/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListGroups/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" "google.golang.org/api/iterator" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &vmmigrationpb.ListGroupsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#ListGroupsRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#ListGroupsRequest. } it := c.ListGroups(ctx, req) for { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListLocations/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListLocations/main.go new file mode 100644 index 000000000000..10bc3894bbdf --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmmigration_v1_generated_VmMigration_ListLocations_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmmigration_v1_generated_VmMigration_ListLocations_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListMigratingVms/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListMigratingVms/main.go index e0e29bb33153..6bbbc583ef65 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/ListMigratingVms/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListMigratingVms/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" "google.golang.org/api/iterator" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &vmmigrationpb.ListMigratingVmsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#ListMigratingVmsRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#ListMigratingVmsRequest. } it := c.ListMigratingVms(ctx, req) for { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListOperations/main.go new file mode 100644 index 000000000000..87eeedbb344d --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmmigration_v1_generated_VmMigration_ListOperations_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmmigration_v1_generated_VmMigration_ListOperations_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListReplicationCycles/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListReplicationCycles/main.go new file mode 100644 index 000000000000..3e8998c06a55 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListReplicationCycles/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmmigration_v1_generated_VmMigration_ListReplicationCycles_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.ListReplicationCyclesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#ListReplicationCyclesRequest. + } + it := c.ListReplicationCycles(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmmigration_v1_generated_VmMigration_ListReplicationCycles_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListSources/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListSources/main.go index b6a61f84274c..efcc4753ce97 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/ListSources/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListSources/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" "google.golang.org/api/iterator" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &vmmigrationpb.ListSourcesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#ListSourcesRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#ListSourcesRequest. } it := c.ListSources(ctx, req) for { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListTargetProjects/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListTargetProjects/main.go index c5ac32c1a320..2476203795d5 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/ListTargetProjects/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListTargetProjects/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" "google.golang.org/api/iterator" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &vmmigrationpb.ListTargetProjectsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#ListTargetProjectsRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#ListTargetProjectsRequest. } it := c.ListTargetProjects(ctx, req) for { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ListUtilizationReports/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ListUtilizationReports/main.go index 34da2b22305b..cee5d97b0fa0 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/ListUtilizationReports/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ListUtilizationReports/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" "google.golang.org/api/iterator" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &vmmigrationpb.ListUtilizationReportsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#ListUtilizationReportsRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#ListUtilizationReportsRequest. } it := c.ListUtilizationReports(ctx, req) for { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/PauseMigration/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/PauseMigration/main.go index 109e8bc45ac3..2e9d9ea751e8 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/PauseMigration/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/PauseMigration/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.PauseMigrationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#PauseMigrationRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#PauseMigrationRequest. } op, err := c.PauseMigration(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/RemoveGroupMigration/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/RemoveGroupMigration/main.go index abe4de9c8747..8e30e4d947f0 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/RemoveGroupMigration/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/RemoveGroupMigration/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.RemoveGroupMigrationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#RemoveGroupMigrationRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#RemoveGroupMigrationRequest. } op, err := c.RemoveGroupMigration(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/ResumeMigration/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/ResumeMigration/main.go index 6e04390ff0b3..fcdff3eeb5e6 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/ResumeMigration/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/ResumeMigration/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.ResumeMigrationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#ResumeMigrationRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#ResumeMigrationRequest. } op, err := c.ResumeMigration(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/StartMigration/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/StartMigration/main.go index 002f6d491205..67bc41a82f4b 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/StartMigration/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/StartMigration/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.StartMigrationRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#StartMigrationRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#StartMigrationRequest. } op, err := c.StartMigration(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/UpdateGroup/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/UpdateGroup/main.go index 39dea6ab669b..b6c1047dbd7a 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/UpdateGroup/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/UpdateGroup/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.UpdateGroupRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#UpdateGroupRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#UpdateGroupRequest. } op, err := c.UpdateGroup(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/UpdateMigratingVm/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/UpdateMigratingVm/main.go index 13cba42ce3bc..6be54b152ed7 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/UpdateMigratingVm/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/UpdateMigratingVm/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.UpdateMigratingVmRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#UpdateMigratingVmRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#UpdateMigratingVmRequest. } op, err := c.UpdateMigratingVm(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/UpdateSource/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/UpdateSource/main.go index 22ddec3decdb..9622e144917d 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/UpdateSource/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/UpdateSource/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.UpdateSourceRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#UpdateSourceRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#UpdateSourceRequest. } op, err := c.UpdateSource(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/UpdateTargetProject/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/UpdateTargetProject/main.go index 565ff4af8393..fd4776878d37 100644 --- a/internal/generated/snippets/vmmigration/apiv1/Client/UpdateTargetProject/main.go +++ b/internal/generated/snippets/vmmigration/apiv1/Client/UpdateTargetProject/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vmmigration "cloud.google.com/go/vmmigration/apiv1" - vmmigrationpb "google.golang.org/genproto/googleapis/cloud/vmmigration/v1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vmmigration.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vmmigrationpb.UpdateTargetProjectRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vmmigration/v1#UpdateTargetProjectRequest. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#UpdateTargetProjectRequest. } op, err := c.UpdateTargetProject(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vmmigration/apiv1/Client/UpgradeAppliance/main.go b/internal/generated/snippets/vmmigration/apiv1/Client/UpgradeAppliance/main.go new file mode 100644 index 000000000000..7edef61e1fac --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/Client/UpgradeAppliance/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmmigration_v1_generated_VmMigration_UpgradeAppliance_sync] + +package main + +import ( + "context" + + vmmigration "cloud.google.com/go/vmmigration/apiv1" + vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.UpgradeApplianceRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#UpgradeApplianceRequest. + } + op, err := c.UpgradeAppliance(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmmigration_v1_generated_VmMigration_UpgradeAppliance_sync] diff --git a/internal/generated/snippets/vmmigration/apiv1/snippet_metadata.google.cloud.vmmigration.v1.json b/internal/generated/snippets/vmmigration/apiv1/snippet_metadata.google.cloud.vmmigration.v1.json new file mode 100644 index 000000000000..494983e1a3f5 --- /dev/null +++ b/internal/generated/snippets/vmmigration/apiv1/snippet_metadata.google.cloud.vmmigration.v1.json @@ -0,0 +1,2405 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/vmmigration/apiv1", + "version": "1.4.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.vmmigration.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "vmmigration_v1_generated_VmMigration_AddGroupMigration_sync", + "title": "vmmigration AddGroupMigration Sample", + "description": "AddGroupMigration adds a MigratingVm to a Group.", + "file": "Client/AddGroupMigration/main.go", + "language": "GO", + "clientMethod": { + "shortName": "AddGroupMigration", + "fullName": "google.cloud.vmmigration.v1.Client.AddGroupMigration", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.AddGroupMigrationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "AddGroupMigrationOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "AddGroupMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration.AddGroupMigration", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CancelCloneJob_sync", + "title": "vmmigration CancelCloneJob Sample", + "description": "CancelCloneJob initiates the cancellation of a running clone job.", + "file": "Client/CancelCloneJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelCloneJob", + "fullName": "google.cloud.vmmigration.v1.Client.CancelCloneJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.CancelCloneJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CancelCloneJobOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "CancelCloneJob", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CancelCloneJob", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CancelCutoverJob_sync", + "title": "vmmigration CancelCutoverJob Sample", + "description": "CancelCutoverJob initiates the cancellation of a running cutover job.", + "file": "Client/CancelCutoverJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelCutoverJob", + "fullName": "google.cloud.vmmigration.v1.Client.CancelCutoverJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.CancelCutoverJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CancelCutoverJobOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "CancelCutoverJob", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CancelCutoverJob", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CancelOperation_sync", + "title": "vmmigration CancelOperation Sample", + "description": "CancelOperation is a utility method from google.longrunning.Operations.", + "file": "Client/CancelOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.cloud.vmmigration.v1.Client.CancelOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.CancelOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CancelOperation", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CreateCloneJob_sync", + "title": "vmmigration CreateCloneJob Sample", + "description": "CreateCloneJob initiates a Clone of a specific migrating VM.", + "file": "Client/CreateCloneJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateCloneJob", + "fullName": "google.cloud.vmmigration.v1.Client.CreateCloneJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.CreateCloneJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateCloneJobOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "CreateCloneJob", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateCloneJob", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CreateCutoverJob_sync", + "title": "vmmigration CreateCutoverJob Sample", + "description": "CreateCutoverJob initiates a Cutover of a specific migrating VM.\nThe returned LRO is completed when the cutover job resource is created\nand the job is initiated.", + "file": "Client/CreateCutoverJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateCutoverJob", + "fullName": "google.cloud.vmmigration.v1.Client.CreateCutoverJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.CreateCutoverJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateCutoverJobOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "CreateCutoverJob", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateCutoverJob", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CreateDatacenterConnector_sync", + "title": "vmmigration CreateDatacenterConnector Sample", + "description": "CreateDatacenterConnector creates a new DatacenterConnector in a given Source.", + "file": "Client/CreateDatacenterConnector/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateDatacenterConnector", + "fullName": "google.cloud.vmmigration.v1.Client.CreateDatacenterConnector", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.CreateDatacenterConnectorRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateDatacenterConnectorOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "CreateDatacenterConnector", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateDatacenterConnector", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CreateGroup_sync", + "title": "vmmigration CreateGroup Sample", + "description": "CreateGroup creates a new Group in a given project and location.", + "file": "Client/CreateGroup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateGroup", + "fullName": "google.cloud.vmmigration.v1.Client.CreateGroup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.CreateGroupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateGroupOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "CreateGroup", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateGroup", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CreateMigratingVm_sync", + "title": "vmmigration CreateMigratingVm Sample", + "description": "CreateMigratingVm creates a new MigratingVm in a given Source.", + "file": "Client/CreateMigratingVm/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateMigratingVm", + "fullName": "google.cloud.vmmigration.v1.Client.CreateMigratingVm", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.CreateMigratingVmRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateMigratingVmOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "CreateMigratingVm", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateMigratingVm", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CreateSource_sync", + "title": "vmmigration CreateSource Sample", + "description": "CreateSource creates a new Source in a given project and location.", + "file": "Client/CreateSource/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSource", + "fullName": "google.cloud.vmmigration.v1.Client.CreateSource", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.CreateSourceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateSourceOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "CreateSource", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateSource", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CreateTargetProject_sync", + "title": "vmmigration CreateTargetProject Sample", + "description": "CreateTargetProject creates a new TargetProject in a given project.\n\nNOTE: TargetProject is a global resource; hence the only supported value\nfor location is global.", + "file": "Client/CreateTargetProject/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateTargetProject", + "fullName": "google.cloud.vmmigration.v1.Client.CreateTargetProject", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.CreateTargetProjectRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateTargetProjectOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "CreateTargetProject", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateTargetProject", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_CreateUtilizationReport_sync", + "title": "vmmigration CreateUtilizationReport Sample", + "description": "CreateUtilizationReport creates a new UtilizationReport.", + "file": "Client/CreateUtilizationReport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateUtilizationReport", + "fullName": "google.cloud.vmmigration.v1.Client.CreateUtilizationReport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.CreateUtilizationReportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateUtilizationReportOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "CreateUtilizationReport", + "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateUtilizationReport", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_DeleteDatacenterConnector_sync", + "title": "vmmigration DeleteDatacenterConnector Sample", + "description": "DeleteDatacenterConnector deletes a single DatacenterConnector.", + "file": "Client/DeleteDatacenterConnector/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteDatacenterConnector", + "fullName": "google.cloud.vmmigration.v1.Client.DeleteDatacenterConnector", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.DeleteDatacenterConnectorRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteDatacenterConnectorOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "DeleteDatacenterConnector", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteDatacenterConnector", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_DeleteGroup_sync", + "title": "vmmigration DeleteGroup Sample", + "description": "DeleteGroup deletes a single Group.", + "file": "Client/DeleteGroup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteGroup", + "fullName": "google.cloud.vmmigration.v1.Client.DeleteGroup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.DeleteGroupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteGroupOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "DeleteGroup", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteGroup", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_DeleteMigratingVm_sync", + "title": "vmmigration DeleteMigratingVm Sample", + "description": "DeleteMigratingVm deletes a single MigratingVm.", + "file": "Client/DeleteMigratingVm/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteMigratingVm", + "fullName": "google.cloud.vmmigration.v1.Client.DeleteMigratingVm", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.DeleteMigratingVmRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteMigratingVmOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "DeleteMigratingVm", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteMigratingVm", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_DeleteOperation_sync", + "title": "vmmigration DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "Client/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.vmmigration.v1.Client.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteOperation", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_DeleteSource_sync", + "title": "vmmigration DeleteSource Sample", + "description": "DeleteSource deletes a single Source.", + "file": "Client/DeleteSource/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteSource", + "fullName": "google.cloud.vmmigration.v1.Client.DeleteSource", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.DeleteSourceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteSourceOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "DeleteSource", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteSource", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_DeleteTargetProject_sync", + "title": "vmmigration DeleteTargetProject Sample", + "description": "DeleteTargetProject deletes a single TargetProject.\n\nNOTE: TargetProject is a global resource; hence the only supported value\nfor location is global.", + "file": "Client/DeleteTargetProject/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteTargetProject", + "fullName": "google.cloud.vmmigration.v1.Client.DeleteTargetProject", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.DeleteTargetProjectRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteTargetProjectOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "DeleteTargetProject", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteTargetProject", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_DeleteUtilizationReport_sync", + "title": "vmmigration DeleteUtilizationReport Sample", + "description": "DeleteUtilizationReport deletes a single Utilization Report.", + "file": "Client/DeleteUtilizationReport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteUtilizationReport", + "fullName": "google.cloud.vmmigration.v1.Client.DeleteUtilizationReport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.DeleteUtilizationReportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteUtilizationReportOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "DeleteUtilizationReport", + "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteUtilizationReport", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_FetchInventory_sync", + "title": "vmmigration FetchInventory Sample", + "description": "FetchInventory list remote source’s inventory of VMs.\nThe remote source is the onprem vCenter (remote in the sense it’s not in\nCompute Engine). The inventory describes the list of existing VMs in that\nsource. Note that this operation lists the VMs on the remote source, as\nopposed to listing the MigratingVms resources in the vmmigration service.", + "file": "Client/FetchInventory/main.go", + "language": "GO", + "clientMethod": { + "shortName": "FetchInventory", + "fullName": "google.cloud.vmmigration.v1.Client.FetchInventory", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.FetchInventoryRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vmmigrationpb.FetchInventoryResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "FetchInventory", + "fullName": "google.cloud.vmmigration.v1.VmMigration.FetchInventory", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_FinalizeMigration_sync", + "title": "vmmigration FinalizeMigration Sample", + "description": "FinalizeMigration marks a migration as completed, deleting migration resources that are no\nlonger being used. Only applicable after cutover is done.", + "file": "Client/FinalizeMigration/main.go", + "language": "GO", + "clientMethod": { + "shortName": "FinalizeMigration", + "fullName": "google.cloud.vmmigration.v1.Client.FinalizeMigration", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.FinalizeMigrationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "FinalizeMigrationOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "FinalizeMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration.FinalizeMigration", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetCloneJob_sync", + "title": "vmmigration GetCloneJob Sample", + "description": "GetCloneJob gets details of a single CloneJob.", + "file": "Client/GetCloneJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCloneJob", + "fullName": "google.cloud.vmmigration.v1.Client.GetCloneJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.GetCloneJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vmmigrationpb.CloneJob", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "GetCloneJob", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetCloneJob", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetCutoverJob_sync", + "title": "vmmigration GetCutoverJob Sample", + "description": "GetCutoverJob gets details of a single CutoverJob.", + "file": "Client/GetCutoverJob/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCutoverJob", + "fullName": "google.cloud.vmmigration.v1.Client.GetCutoverJob", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.GetCutoverJobRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vmmigrationpb.CutoverJob", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "GetCutoverJob", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetCutoverJob", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetDatacenterConnector_sync", + "title": "vmmigration GetDatacenterConnector Sample", + "description": "GetDatacenterConnector gets details of a single DatacenterConnector.", + "file": "Client/GetDatacenterConnector/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetDatacenterConnector", + "fullName": "google.cloud.vmmigration.v1.Client.GetDatacenterConnector", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.GetDatacenterConnectorRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vmmigrationpb.DatacenterConnector", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "GetDatacenterConnector", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetDatacenterConnector", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetGroup_sync", + "title": "vmmigration GetGroup Sample", + "description": "GetGroup gets details of a single Group.", + "file": "Client/GetGroup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetGroup", + "fullName": "google.cloud.vmmigration.v1.Client.GetGroup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.GetGroupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vmmigrationpb.Group", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "GetGroup", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetGroup", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetLocation_sync", + "title": "vmmigration GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "Client/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.vmmigration.v1.Client.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetLocation", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetMigratingVm_sync", + "title": "vmmigration GetMigratingVm Sample", + "description": "GetMigratingVm gets details of a single MigratingVm.", + "file": "Client/GetMigratingVm/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetMigratingVm", + "fullName": "google.cloud.vmmigration.v1.Client.GetMigratingVm", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.GetMigratingVmRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vmmigrationpb.MigratingVm", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "GetMigratingVm", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetMigratingVm", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetOperation_sync", + "title": "vmmigration GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "Client/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.vmmigration.v1.Client.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetOperation", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetReplicationCycle_sync", + "title": "vmmigration GetReplicationCycle Sample", + "description": "GetReplicationCycle gets details of a single ReplicationCycle.", + "file": "Client/GetReplicationCycle/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetReplicationCycle", + "fullName": "google.cloud.vmmigration.v1.Client.GetReplicationCycle", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.GetReplicationCycleRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vmmigrationpb.ReplicationCycle", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "GetReplicationCycle", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetReplicationCycle", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetSource_sync", + "title": "vmmigration GetSource Sample", + "description": "GetSource gets details of a single Source.", + "file": "Client/GetSource/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetSource", + "fullName": "google.cloud.vmmigration.v1.Client.GetSource", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.GetSourceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vmmigrationpb.Source", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "GetSource", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetSource", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetTargetProject_sync", + "title": "vmmigration GetTargetProject Sample", + "description": "GetTargetProject gets details of a single TargetProject.\n\nNOTE: TargetProject is a global resource; hence the only supported value\nfor location is global.", + "file": "Client/GetTargetProject/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetTargetProject", + "fullName": "google.cloud.vmmigration.v1.Client.GetTargetProject", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.GetTargetProjectRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vmmigrationpb.TargetProject", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "GetTargetProject", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetTargetProject", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_GetUtilizationReport_sync", + "title": "vmmigration GetUtilizationReport Sample", + "description": "GetUtilizationReport gets a single Utilization Report.", + "file": "Client/GetUtilizationReport/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetUtilizationReport", + "fullName": "google.cloud.vmmigration.v1.Client.GetUtilizationReport", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.GetUtilizationReportRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vmmigrationpb.UtilizationReport", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "GetUtilizationReport", + "fullName": "google.cloud.vmmigration.v1.VmMigration.GetUtilizationReport", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListCloneJobs_sync", + "title": "vmmigration ListCloneJobs Sample", + "description": "ListCloneJobs lists CloneJobs of a given migrating VM.", + "file": "Client/ListCloneJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCloneJobs", + "fullName": "google.cloud.vmmigration.v1.Client.ListCloneJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.ListCloneJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CloneJobIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "ListCloneJobs", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListCloneJobs", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListCutoverJobs_sync", + "title": "vmmigration ListCutoverJobs Sample", + "description": "ListCutoverJobs lists CutoverJobs of a given migrating VM.", + "file": "Client/ListCutoverJobs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCutoverJobs", + "fullName": "google.cloud.vmmigration.v1.Client.ListCutoverJobs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.ListCutoverJobsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CutoverJobIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "ListCutoverJobs", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListCutoverJobs", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListDatacenterConnectors_sync", + "title": "vmmigration ListDatacenterConnectors Sample", + "description": "ListDatacenterConnectors lists DatacenterConnectors in a given Source.", + "file": "Client/ListDatacenterConnectors/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListDatacenterConnectors", + "fullName": "google.cloud.vmmigration.v1.Client.ListDatacenterConnectors", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.ListDatacenterConnectorsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DatacenterConnectorIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "ListDatacenterConnectors", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListDatacenterConnectors", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListGroups_sync", + "title": "vmmigration ListGroups Sample", + "description": "ListGroups lists Groups in a given project and location.", + "file": "Client/ListGroups/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListGroups", + "fullName": "google.cloud.vmmigration.v1.Client.ListGroups", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.ListGroupsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "GroupIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "ListGroups", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListGroups", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListLocations_sync", + "title": "vmmigration ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "Client/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.vmmigration.v1.Client.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListLocations", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListMigratingVms_sync", + "title": "vmmigration ListMigratingVms Sample", + "description": "ListMigratingVms lists MigratingVms in a given Source.", + "file": "Client/ListMigratingVms/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListMigratingVms", + "fullName": "google.cloud.vmmigration.v1.Client.ListMigratingVms", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.ListMigratingVmsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "MigratingVmIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "ListMigratingVms", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListMigratingVms", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListOperations_sync", + "title": "vmmigration ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "Client/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.vmmigration.v1.Client.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListOperations", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListReplicationCycles_sync", + "title": "vmmigration ListReplicationCycles Sample", + "description": "ListReplicationCycles lists ReplicationCycles in a given MigratingVM.", + "file": "Client/ListReplicationCycles/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListReplicationCycles", + "fullName": "google.cloud.vmmigration.v1.Client.ListReplicationCycles", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.ListReplicationCyclesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ReplicationCycleIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "ListReplicationCycles", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListReplicationCycles", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListSources_sync", + "title": "vmmigration ListSources Sample", + "description": "ListSources lists Sources in a given project and location.", + "file": "Client/ListSources/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListSources", + "fullName": "google.cloud.vmmigration.v1.Client.ListSources", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.ListSourcesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SourceIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "ListSources", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListSources", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListTargetProjects_sync", + "title": "vmmigration ListTargetProjects Sample", + "description": "ListTargetProjects lists TargetProjects in a given project.\n\nNOTE: TargetProject is a global resource; hence the only supported value\nfor location is global.", + "file": "Client/ListTargetProjects/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListTargetProjects", + "fullName": "google.cloud.vmmigration.v1.Client.ListTargetProjects", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.ListTargetProjectsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "TargetProjectIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "ListTargetProjects", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListTargetProjects", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ListUtilizationReports_sync", + "title": "vmmigration ListUtilizationReports Sample", + "description": "ListUtilizationReports lists Utilization Reports of the given Source.", + "file": "Client/ListUtilizationReports/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListUtilizationReports", + "fullName": "google.cloud.vmmigration.v1.Client.ListUtilizationReports", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.ListUtilizationReportsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UtilizationReportIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "ListUtilizationReports", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ListUtilizationReports", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_PauseMigration_sync", + "title": "vmmigration PauseMigration Sample", + "description": "PauseMigration pauses a migration for a VM. If cycle tasks are running they will be\ncancelled, preserving source task data. Further replication cycles will not\nbe triggered while the VM is paused.", + "file": "Client/PauseMigration/main.go", + "language": "GO", + "clientMethod": { + "shortName": "PauseMigration", + "fullName": "google.cloud.vmmigration.v1.Client.PauseMigration", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.PauseMigrationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PauseMigrationOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "PauseMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration.PauseMigration", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_RemoveGroupMigration_sync", + "title": "vmmigration RemoveGroupMigration Sample", + "description": "RemoveGroupMigration removes a MigratingVm from a Group.", + "file": "Client/RemoveGroupMigration/main.go", + "language": "GO", + "clientMethod": { + "shortName": "RemoveGroupMigration", + "fullName": "google.cloud.vmmigration.v1.Client.RemoveGroupMigration", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.RemoveGroupMigrationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "RemoveGroupMigrationOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "RemoveGroupMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration.RemoveGroupMigration", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_ResumeMigration_sync", + "title": "vmmigration ResumeMigration Sample", + "description": "ResumeMigration resumes a migration for a VM. When called on a paused migration, will start\nthe process of uploading data and creating snapshots; when called on a\ncompleted cut-over migration, will update the migration to active state and\nstart the process of uploading data and creating snapshots.", + "file": "Client/ResumeMigration/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResumeMigration", + "fullName": "google.cloud.vmmigration.v1.Client.ResumeMigration", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.ResumeMigrationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ResumeMigrationOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "ResumeMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration.ResumeMigration", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_StartMigration_sync", + "title": "vmmigration StartMigration Sample", + "description": "StartMigration starts migration for a VM. Starts the process of uploading\ndata and creating snapshots, in replication cycles scheduled by the policy.", + "file": "Client/StartMigration/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StartMigration", + "fullName": "google.cloud.vmmigration.v1.Client.StartMigration", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.StartMigrationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "StartMigrationOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "StartMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration.StartMigration", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_UpdateGroup_sync", + "title": "vmmigration UpdateGroup Sample", + "description": "UpdateGroup updates the parameters of a single Group.", + "file": "Client/UpdateGroup/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateGroup", + "fullName": "google.cloud.vmmigration.v1.Client.UpdateGroup", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.UpdateGroupRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateGroupOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "UpdateGroup", + "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateGroup", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_UpdateMigratingVm_sync", + "title": "vmmigration UpdateMigratingVm Sample", + "description": "UpdateMigratingVm updates the parameters of a single MigratingVm.", + "file": "Client/UpdateMigratingVm/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateMigratingVm", + "fullName": "google.cloud.vmmigration.v1.Client.UpdateMigratingVm", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.UpdateMigratingVmRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateMigratingVmOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "UpdateMigratingVm", + "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateMigratingVm", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_UpdateSource_sync", + "title": "vmmigration UpdateSource Sample", + "description": "UpdateSource updates the parameters of a single Source.", + "file": "Client/UpdateSource/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateSource", + "fullName": "google.cloud.vmmigration.v1.Client.UpdateSource", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.UpdateSourceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateSourceOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "UpdateSource", + "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateSource", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_UpdateTargetProject_sync", + "title": "vmmigration UpdateTargetProject Sample", + "description": "UpdateTargetProject updates the parameters of a single TargetProject.\n\nNOTE: TargetProject is a global resource; hence the only supported value\nfor location is global.", + "file": "Client/UpdateTargetProject/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateTargetProject", + "fullName": "google.cloud.vmmigration.v1.Client.UpdateTargetProject", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.UpdateTargetProjectRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateTargetProjectOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "UpdateTargetProject", + "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateTargetProject", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmmigration_v1_generated_VmMigration_UpgradeAppliance_sync", + "title": "vmmigration UpgradeAppliance Sample", + "description": "UpgradeAppliance upgrades the appliance relate to this DatacenterConnector to the in-place\nupdateable version.", + "file": "Client/UpgradeAppliance/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpgradeAppliance", + "fullName": "google.cloud.vmmigration.v1.Client.UpgradeAppliance", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmmigrationpb.UpgradeApplianceRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpgradeApplianceOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmmigration.v1.Client" + }, + "method": { + "shortName": "UpgradeAppliance", + "fullName": "google.cloud.vmmigration.v1.VmMigration.UpgradeAppliance", + "service": { + "shortName": "VmMigration", + "fullName": "google.cloud.vmmigration.v1.VmMigration" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/CreateCluster/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/CreateCluster/main.go new file mode 100644 index 000000000000..45f0594c9273 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/CreateCluster/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_CreateCluster_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.CreateClusterRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#CreateClusterRequest. + } + op, err := c.CreateCluster(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_CreateCluster_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/CreateHcxActivationKey/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/CreateHcxActivationKey/main.go new file mode 100644 index 000000000000..0073eca1361e --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/CreateHcxActivationKey/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_CreateHcxActivationKey_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.CreateHcxActivationKeyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#CreateHcxActivationKeyRequest. + } + op, err := c.CreateHcxActivationKey(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_CreateHcxActivationKey_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/CreateNetworkPolicy/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/CreateNetworkPolicy/main.go new file mode 100644 index 000000000000..03adbba6dbdf --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/CreateNetworkPolicy/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_CreateNetworkPolicy_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.CreateNetworkPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#CreateNetworkPolicyRequest. + } + op, err := c.CreateNetworkPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_CreateNetworkPolicy_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/CreatePrivateCloud/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/CreatePrivateCloud/main.go new file mode 100644 index 000000000000..abae3bbcb57d --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/CreatePrivateCloud/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_CreatePrivateCloud_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.CreatePrivateCloudRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#CreatePrivateCloudRequest. + } + op, err := c.CreatePrivateCloud(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_CreatePrivateCloud_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/CreateVmwareEngineNetwork/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/CreateVmwareEngineNetwork/main.go new file mode 100644 index 000000000000..105da91aaa96 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/CreateVmwareEngineNetwork/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_CreateVmwareEngineNetwork_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.CreateVmwareEngineNetworkRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#CreateVmwareEngineNetworkRequest. + } + op, err := c.CreateVmwareEngineNetwork(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_CreateVmwareEngineNetwork_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/DeleteCluster/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/DeleteCluster/main.go new file mode 100644 index 000000000000..7730b53f0608 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/DeleteCluster/main.go @@ -0,0 +1,56 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_DeleteCluster_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.DeleteClusterRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#DeleteClusterRequest. + } + op, err := c.DeleteCluster(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END vmwareengine_v1_generated_VmwareEngine_DeleteCluster_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/DeleteNetworkPolicy/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/DeleteNetworkPolicy/main.go new file mode 100644 index 000000000000..89f600e23acd --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/DeleteNetworkPolicy/main.go @@ -0,0 +1,56 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPolicy_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.DeleteNetworkPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#DeleteNetworkPolicyRequest. + } + op, err := c.DeleteNetworkPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPolicy_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/DeleteOperation/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/DeleteOperation/main.go new file mode 100644 index 000000000000..5a5cb840e349 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/DeleteOperation/main.go @@ -0,0 +1,52 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_DeleteOperation_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +// [END vmwareengine_v1_generated_VmwareEngine_DeleteOperation_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/DeletePrivateCloud/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/DeletePrivateCloud/main.go new file mode 100644 index 000000000000..88265122ee59 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/DeletePrivateCloud/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_DeletePrivateCloud_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.DeletePrivateCloudRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#DeletePrivateCloudRequest. + } + op, err := c.DeletePrivateCloud(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_DeletePrivateCloud_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/DeleteVmwareEngineNetwork/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/DeleteVmwareEngineNetwork/main.go new file mode 100644 index 000000000000..2da7849bb6a0 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/DeleteVmwareEngineNetwork/main.go @@ -0,0 +1,56 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_DeleteVmwareEngineNetwork_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.DeleteVmwareEngineNetworkRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#DeleteVmwareEngineNetworkRequest. + } + op, err := c.DeleteVmwareEngineNetwork(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END vmwareengine_v1_generated_VmwareEngine_DeleteVmwareEngineNetwork_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/GetCluster/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/GetCluster/main.go new file mode 100644 index 000000000000..78c66524bf57 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/GetCluster/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_GetCluster_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.GetClusterRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#GetClusterRequest. + } + resp, err := c.GetCluster(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_GetCluster_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/GetHcxActivationKey/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/GetHcxActivationKey/main.go new file mode 100644 index 000000000000..987e187ef273 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/GetHcxActivationKey/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_GetHcxActivationKey_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.GetHcxActivationKeyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#GetHcxActivationKeyRequest. + } + resp, err := c.GetHcxActivationKey(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_GetHcxActivationKey_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/GetIamPolicy/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/GetIamPolicy/main.go new file mode 100644 index 000000000000..d5c2771de411 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/GetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_GetIamPolicy_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.GetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#GetIamPolicyRequest. + } + resp, err := c.GetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_GetIamPolicy_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/GetLocation/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/GetLocation/main.go new file mode 100644 index 000000000000..aa8c269132f6 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/GetLocation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_GetLocation_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_GetLocation_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/GetNetworkPolicy/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/GetNetworkPolicy/main.go new file mode 100644 index 000000000000..02fcd20748ee --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/GetNetworkPolicy/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_GetNetworkPolicy_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.GetNetworkPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#GetNetworkPolicyRequest. + } + resp, err := c.GetNetworkPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_GetNetworkPolicy_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/GetNodeType/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/GetNodeType/main.go new file mode 100644 index 000000000000..3316b526fd98 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/GetNodeType/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_GetNodeType_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.GetNodeTypeRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#GetNodeTypeRequest. + } + resp, err := c.GetNodeType(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_GetNodeType_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/GetOperation/main.go new file mode 100644 index 000000000000..87c36b972033 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_GetOperation_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_GetOperation_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/GetPrivateCloud/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/GetPrivateCloud/main.go new file mode 100644 index 000000000000..ac5d28bba1a9 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/GetPrivateCloud/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_GetPrivateCloud_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.GetPrivateCloudRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#GetPrivateCloudRequest. + } + resp, err := c.GetPrivateCloud(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_GetPrivateCloud_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/GetVmwareEngineNetwork/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/GetVmwareEngineNetwork/main.go new file mode 100644 index 000000000000..c971fc720d65 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/GetVmwareEngineNetwork/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_GetVmwareEngineNetwork_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.GetVmwareEngineNetworkRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#GetVmwareEngineNetworkRequest. + } + resp, err := c.GetVmwareEngineNetwork(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_GetVmwareEngineNetwork_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/ListClusters/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/ListClusters/main.go new file mode 100644 index 000000000000..42c1778aa7c6 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/ListClusters/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_ListClusters_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.ListClustersRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#ListClustersRequest. + } + it := c.ListClusters(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmwareengine_v1_generated_VmwareEngine_ListClusters_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/ListHcxActivationKeys/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/ListHcxActivationKeys/main.go new file mode 100644 index 000000000000..1dd98e5bb1d6 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/ListHcxActivationKeys/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_ListHcxActivationKeys_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.ListHcxActivationKeysRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#ListHcxActivationKeysRequest. + } + it := c.ListHcxActivationKeys(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmwareengine_v1_generated_VmwareEngine_ListHcxActivationKeys_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/ListLocations/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/ListLocations/main.go new file mode 100644 index 000000000000..eb1488d178d2 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_ListLocations_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmwareengine_v1_generated_VmwareEngine_ListLocations_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/ListNetworkPolicies/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/ListNetworkPolicies/main.go new file mode 100644 index 000000000000..d38e41c355c1 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/ListNetworkPolicies/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_ListNetworkPolicies_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.ListNetworkPoliciesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#ListNetworkPoliciesRequest. + } + it := c.ListNetworkPolicies(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmwareengine_v1_generated_VmwareEngine_ListNetworkPolicies_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/ListNodeTypes/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/ListNodeTypes/main.go new file mode 100644 index 000000000000..d4782b18f6a6 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/ListNodeTypes/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_ListNodeTypes_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.ListNodeTypesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#ListNodeTypesRequest. + } + it := c.ListNodeTypes(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmwareengine_v1_generated_VmwareEngine_ListNodeTypes_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/ListOperations/main.go new file mode 100644 index 000000000000..187747237c72 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_ListOperations_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmwareengine_v1_generated_VmwareEngine_ListOperations_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/ListPrivateClouds/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/ListPrivateClouds/main.go new file mode 100644 index 000000000000..d8b28f091187 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/ListPrivateClouds/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_ListPrivateClouds_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.ListPrivateCloudsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#ListPrivateCloudsRequest. + } + it := c.ListPrivateClouds(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmwareengine_v1_generated_VmwareEngine_ListPrivateClouds_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/ListSubnets/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/ListSubnets/main.go new file mode 100644 index 000000000000..8ee5665d8d8d --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/ListSubnets/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_ListSubnets_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.ListSubnetsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#ListSubnetsRequest. + } + it := c.ListSubnets(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmwareengine_v1_generated_VmwareEngine_ListSubnets_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/ListVmwareEngineNetworks/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/ListVmwareEngineNetworks/main.go new file mode 100644 index 000000000000..5b08e86366ba --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/ListVmwareEngineNetworks/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_ListVmwareEngineNetworks_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.ListVmwareEngineNetworksRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#ListVmwareEngineNetworksRequest. + } + it := c.ListVmwareEngineNetworks(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vmwareengine_v1_generated_VmwareEngine_ListVmwareEngineNetworks_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/ResetNsxCredentials/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/ResetNsxCredentials/main.go new file mode 100644 index 000000000000..0af0b3a89d57 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/ResetNsxCredentials/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_ResetNsxCredentials_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.ResetNsxCredentialsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#ResetNsxCredentialsRequest. + } + op, err := c.ResetNsxCredentials(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_ResetNsxCredentials_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/ResetVcenterCredentials/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/ResetVcenterCredentials/main.go new file mode 100644 index 000000000000..020f1645e8d6 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/ResetVcenterCredentials/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_ResetVcenterCredentials_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.ResetVcenterCredentialsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#ResetVcenterCredentialsRequest. + } + op, err := c.ResetVcenterCredentials(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_ResetVcenterCredentials_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/SetIamPolicy/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/SetIamPolicy/main.go new file mode 100644 index 000000000000..75518978d4a2 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/SetIamPolicy/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_SetIamPolicy_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.SetIamPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#SetIamPolicyRequest. + } + resp, err := c.SetIamPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_SetIamPolicy_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/ShowNsxCredentials/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/ShowNsxCredentials/main.go new file mode 100644 index 000000000000..7aa7d1cc3049 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/ShowNsxCredentials/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_ShowNsxCredentials_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.ShowNsxCredentialsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#ShowNsxCredentialsRequest. + } + resp, err := c.ShowNsxCredentials(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_ShowNsxCredentials_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/ShowVcenterCredentials/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/ShowVcenterCredentials/main.go new file mode 100644 index 000000000000..cf8b2f6f9610 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/ShowVcenterCredentials/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_ShowVcenterCredentials_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.ShowVcenterCredentialsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#ShowVcenterCredentialsRequest. + } + resp, err := c.ShowVcenterCredentials(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_ShowVcenterCredentials_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/TestIamPermissions/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/TestIamPermissions/main.go new file mode 100644 index 000000000000..9dc287b337f2 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/TestIamPermissions/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_TestIamPermissions_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + + iampb "google.golang.org/genproto/googleapis/iam/v1" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &iampb.TestIamPermissionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/iam/v1#TestIamPermissionsRequest. + } + resp, err := c.TestIamPermissions(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_TestIamPermissions_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/UndeletePrivateCloud/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/UndeletePrivateCloud/main.go new file mode 100644 index 000000000000..ff51d0e26767 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/UndeletePrivateCloud/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_UndeletePrivateCloud_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.UndeletePrivateCloudRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#UndeletePrivateCloudRequest. + } + op, err := c.UndeletePrivateCloud(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_UndeletePrivateCloud_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/UpdateCluster/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/UpdateCluster/main.go new file mode 100644 index 000000000000..ac9cb6b04109 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/UpdateCluster/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_UpdateCluster_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.UpdateClusterRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#UpdateClusterRequest. + } + op, err := c.UpdateCluster(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_UpdateCluster_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/UpdateNetworkPolicy/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/UpdateNetworkPolicy/main.go new file mode 100644 index 000000000000..62c9c1a6e8d8 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/UpdateNetworkPolicy/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPolicy_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.UpdateNetworkPolicyRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#UpdateNetworkPolicyRequest. + } + op, err := c.UpdateNetworkPolicy(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPolicy_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/UpdatePrivateCloud/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/UpdatePrivateCloud/main.go new file mode 100644 index 000000000000..a8c58db4e5ce --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/UpdatePrivateCloud/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_UpdatePrivateCloud_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.UpdatePrivateCloudRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#UpdatePrivateCloudRequest. + } + op, err := c.UpdatePrivateCloud(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_UpdatePrivateCloud_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/Client/UpdateVmwareEngineNetwork/main.go b/internal/generated/snippets/vmwareengine/apiv1/Client/UpdateVmwareEngineNetwork/main.go new file mode 100644 index 000000000000..23a36d1d43fe --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/Client/UpdateVmwareEngineNetwork/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vmwareengine_v1_generated_VmwareEngine_UpdateVmwareEngineNetwork_sync] + +package main + +import ( + "context" + + vmwareengine "cloud.google.com/go/vmwareengine/apiv1" + vmwareenginepb "cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmwareengine.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmwareenginepb.UpdateVmwareEngineNetworkRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmwareengine/apiv1/vmwareenginepb#UpdateVmwareEngineNetworkRequest. + } + op, err := c.UpdateVmwareEngineNetwork(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vmwareengine_v1_generated_VmwareEngine_UpdateVmwareEngineNetwork_sync] diff --git a/internal/generated/snippets/vmwareengine/apiv1/snippet_metadata.google.cloud.vmwareengine.v1.json b/internal/generated/snippets/vmwareengine/apiv1/snippet_metadata.google.cloud.vmwareengine.v1.json new file mode 100644 index 000000000000..d91520d6c6e3 --- /dev/null +++ b/internal/generated/snippets/vmwareengine/apiv1/snippet_metadata.google.cloud.vmwareengine.v1.json @@ -0,0 +1,1808 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/vmwareengine/apiv1", + "version": "0.2.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.vmwareengine.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateCluster_sync", + "title": "vmwareengine CreateCluster Sample", + "description": "CreateCluster creates a new cluster in a given private cloud.\nCreating a new cluster provides additional nodes for\nuse in the parent private cloud and requires sufficient node\nquota (at https: //cloud.google.com/vmware-engine/quotas).", + "file": "Client/CreateCluster/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateCluster", + "fullName": "google.cloud.vmwareengine.v1.Client.CreateCluster", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.CreateClusterRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateClusterOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "CreateCluster", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateCluster", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateHcxActivationKey_sync", + "title": "vmwareengine CreateHcxActivationKey Sample", + "description": "CreateHcxActivationKey creates a new HCX activation key in a given private cloud.", + "file": "Client/CreateHcxActivationKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateHcxActivationKey", + "fullName": "google.cloud.vmwareengine.v1.Client.CreateHcxActivationKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.CreateHcxActivationKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateHcxActivationKeyOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "CreateHcxActivationKey", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKey", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateNetworkPolicy_sync", + "title": "vmwareengine CreateNetworkPolicy Sample", + "description": "CreateNetworkPolicy creates a new network policy in a given VMware Engine network of a\nproject and location (region). A new network policy cannot be created if\nanother network policy already exists in the same scope.", + "file": "Client/CreateNetworkPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateNetworkPolicy", + "fullName": "google.cloud.vmwareengine.v1.Client.CreateNetworkPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.CreateNetworkPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateNetworkPolicyOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "CreateNetworkPolicy", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPolicy", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreatePrivateCloud_sync", + "title": "vmwareengine CreatePrivateCloud Sample", + "description": "CreatePrivateCloud creates a new PrivateCloud resource in a given project and location.\nPrivate clouds can only be created in zones, regional private clouds are\nnot supported.\n\nCreating a private cloud also creates a management\ncluster (at https: //cloud.google.com/vmware-engine/docs/concepts-vmware-components)\nfor that private cloud.", + "file": "Client/CreatePrivateCloud/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreatePrivateCloud", + "fullName": "google.cloud.vmwareengine.v1.Client.CreatePrivateCloud", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.CreatePrivateCloudRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreatePrivateCloudOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "CreatePrivateCloud", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreatePrivateCloud", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateVmwareEngineNetwork_sync", + "title": "vmwareengine CreateVmwareEngineNetwork Sample", + "description": "CreateVmwareEngineNetwork creates a new VMware Engine network that can be used by a private cloud.", + "file": "Client/CreateVmwareEngineNetwork/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateVmwareEngineNetwork", + "fullName": "google.cloud.vmwareengine.v1.Client.CreateVmwareEngineNetwork", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.CreateVmwareEngineNetworkRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateVmwareEngineNetworkOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "CreateVmwareEngineNetwork", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateVmwareEngineNetwork", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteCluster_sync", + "title": "vmwareengine DeleteCluster Sample", + "description": "DeleteCluster deletes a Cluster resource. To avoid unintended data loss, migrate or\ngracefully shut down any workloads running on the cluster before deletion.\nYou cannot delete the management cluster of a private cloud using this\nmethod.", + "file": "Client/DeleteCluster/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteCluster", + "fullName": "google.cloud.vmwareengine.v1.Client.DeleteCluster", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.DeleteClusterRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteClusterOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "DeleteCluster", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteCluster", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPolicy_sync", + "title": "vmwareengine DeleteNetworkPolicy Sample", + "description": "DeleteNetworkPolicy deletes a NetworkPolicy resource. A network policy cannot be deleted\nwhen NetworkService.state is set to RECONCILING for either its external\nIP or internet access service.", + "file": "Client/DeleteNetworkPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteNetworkPolicy", + "fullName": "google.cloud.vmwareengine.v1.Client.DeleteNetworkPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.DeleteNetworkPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteNetworkPolicyOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "DeleteNetworkPolicy", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPolicy", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteOperation_sync", + "title": "vmwareengine DeleteOperation Sample", + "description": "DeleteOperation is a utility method from google.longrunning.Operations.", + "file": "Client/DeleteOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.vmwareengine.v1.Client.DeleteOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.DeleteOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "DeleteOperation", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteOperation", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 52, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeletePrivateCloud_sync", + "title": "vmwareengine DeletePrivateCloud Sample", + "description": "DeletePrivateCloud schedules a PrivateCloud resource for deletion.\n\nA PrivateCloud resource scheduled for deletion has PrivateCloud.state\nset to DELETED and expireTime set to the time when deletion is final\nand can no longer be reversed. The delete operation is marked as done\nas soon as the PrivateCloud is successfully scheduled for deletion\n(this also applies when delayHours is set to zero), and the operation is\nnot kept in pending state until PrivateCloud is purged.\nPrivateCloud can be restored using UndeletePrivateCloud method before\nthe expireTime elapses. When expireTime is reached, deletion is final\nand all private cloud resources are irreversibly removed and billing stops.\nDuring the final removal process, PrivateCloud.state is set to PURGING.\nPrivateCloud can be polled using standard GET method for the whole\nperiod of deletion and purging. It will not be returned only\nwhen it is completely purged.", + "file": "Client/DeletePrivateCloud/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeletePrivateCloud", + "fullName": "google.cloud.vmwareengine.v1.Client.DeletePrivateCloud", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.DeletePrivateCloudRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeletePrivateCloudOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "DeletePrivateCloud", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeletePrivateCloud", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteVmwareEngineNetwork_sync", + "title": "vmwareengine DeleteVmwareEngineNetwork Sample", + "description": "DeleteVmwareEngineNetwork deletes a VmwareEngineNetwork resource. You can only delete a VMware\nEngine network after all resources that refer to it are deleted. For\nexample, a private cloud, a network peering, and a network policy can all\nrefer to the same VMware Engine network.", + "file": "Client/DeleteVmwareEngineNetwork/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteVmwareEngineNetwork", + "fullName": "google.cloud.vmwareengine.v1.Client.DeleteVmwareEngineNetwork", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.DeleteVmwareEngineNetworkRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteVmwareEngineNetworkOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "DeleteVmwareEngineNetwork", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteVmwareEngineNetwork", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetCluster_sync", + "title": "vmwareengine GetCluster Sample", + "description": "GetCluster retrieves a Cluster resource by its resource name.", + "file": "Client/GetCluster/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetCluster", + "fullName": "google.cloud.vmwareengine.v1.Client.GetCluster", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.GetClusterRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vmwareenginepb.Cluster", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "GetCluster", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetCluster", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetHcxActivationKey_sync", + "title": "vmwareengine GetHcxActivationKey Sample", + "description": "GetHcxActivationKey retrieves a HcxActivationKey resource by its resource name.", + "file": "Client/GetHcxActivationKey/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetHcxActivationKey", + "fullName": "google.cloud.vmwareengine.v1.Client.GetHcxActivationKey", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.GetHcxActivationKeyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vmwareenginepb.HcxActivationKey", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "GetHcxActivationKey", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetHcxActivationKey", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetIamPolicy_sync", + "title": "vmwareengine GetIamPolicy Sample", + "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.", + "file": "Client/GetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.vmwareengine.v1.Client.GetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.GetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetIamPolicy", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetLocation_sync", + "title": "vmwareengine GetLocation Sample", + "description": "GetLocation gets information about a location.", + "file": "Client/GetLocation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetLocation", + "fullName": "google.cloud.vmwareengine.v1.Client.GetLocation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.GetLocationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "locationpb.Location", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "GetLocation", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetLocation", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetNetworkPolicy_sync", + "title": "vmwareengine GetNetworkPolicy Sample", + "description": "GetNetworkPolicy retrieves a NetworkPolicy resource by its resource name.", + "file": "Client/GetNetworkPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetNetworkPolicy", + "fullName": "google.cloud.vmwareengine.v1.Client.GetNetworkPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.GetNetworkPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vmwareenginepb.NetworkPolicy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "GetNetworkPolicy", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPolicy", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetNodeType_sync", + "title": "vmwareengine GetNodeType Sample", + "description": "GetNodeType gets details of a single NodeType.", + "file": "Client/GetNodeType/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetNodeType", + "fullName": "google.cloud.vmwareengine.v1.Client.GetNodeType", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.GetNodeTypeRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vmwareenginepb.NodeType", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "GetNodeType", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNodeType", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetOperation_sync", + "title": "vmwareengine GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "Client/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.vmwareengine.v1.Client.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetOperation", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetPrivateCloud_sync", + "title": "vmwareengine GetPrivateCloud Sample", + "description": "GetPrivateCloud retrieves a PrivateCloud resource by its resource name.", + "file": "Client/GetPrivateCloud/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetPrivateCloud", + "fullName": "google.cloud.vmwareengine.v1.Client.GetPrivateCloud", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.GetPrivateCloudRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vmwareenginepb.PrivateCloud", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "GetPrivateCloud", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetPrivateCloud", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetVmwareEngineNetwork_sync", + "title": "vmwareengine GetVmwareEngineNetwork Sample", + "description": "GetVmwareEngineNetwork retrieves a VmwareEngineNetwork resource by its resource name. The\nresource contains details of the VMware Engine network, such as its VMware\nEngine network type, peered networks in a service project, and state\n(for example, CREATING, ACTIVE, DELETING).", + "file": "Client/GetVmwareEngineNetwork/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetVmwareEngineNetwork", + "fullName": "google.cloud.vmwareengine.v1.Client.GetVmwareEngineNetwork", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.GetVmwareEngineNetworkRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vmwareenginepb.VmwareEngineNetwork", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "GetVmwareEngineNetwork", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetVmwareEngineNetwork", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListClusters_sync", + "title": "vmwareengine ListClusters Sample", + "description": "ListClusters lists Cluster resources in a given private cloud.", + "file": "Client/ListClusters/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListClusters", + "fullName": "google.cloud.vmwareengine.v1.Client.ListClusters", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.ListClustersRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ClusterIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "ListClusters", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListClusters", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListHcxActivationKeys_sync", + "title": "vmwareengine ListHcxActivationKeys Sample", + "description": "ListHcxActivationKeys lists HcxActivationKey resources in a given private cloud.", + "file": "Client/ListHcxActivationKeys/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListHcxActivationKeys", + "fullName": "google.cloud.vmwareengine.v1.Client.ListHcxActivationKeys", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.ListHcxActivationKeysRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "HcxActivationKeyIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "ListHcxActivationKeys", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListLocations_sync", + "title": "vmwareengine ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "Client/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.vmwareengine.v1.Client.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListLocations", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListNetworkPolicies_sync", + "title": "vmwareengine ListNetworkPolicies Sample", + "description": "ListNetworkPolicies lists NetworkPolicy resources in a specified project and location.", + "file": "Client/ListNetworkPolicies/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListNetworkPolicies", + "fullName": "google.cloud.vmwareengine.v1.Client.ListNetworkPolicies", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.ListNetworkPoliciesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "NetworkPolicyIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "ListNetworkPolicies", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPolicies", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListNodeTypes_sync", + "title": "vmwareengine ListNodeTypes Sample", + "description": "ListNodeTypes lists node types", + "file": "Client/ListNodeTypes/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListNodeTypes", + "fullName": "google.cloud.vmwareengine.v1.Client.ListNodeTypes", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.ListNodeTypesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "NodeTypeIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "ListNodeTypes", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListOperations_sync", + "title": "vmwareengine ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "Client/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.vmwareengine.v1.Client.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListOperations", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListPrivateClouds_sync", + "title": "vmwareengine ListPrivateClouds Sample", + "description": "ListPrivateClouds lists PrivateCloud resources in a given project and location.", + "file": "Client/ListPrivateClouds/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListPrivateClouds", + "fullName": "google.cloud.vmwareengine.v1.Client.ListPrivateClouds", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.ListPrivateCloudsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "PrivateCloudIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "ListPrivateClouds", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateClouds", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListSubnets_sync", + "title": "vmwareengine ListSubnets Sample", + "description": "ListSubnets lists subnets in a given private cloud.", + "file": "Client/ListSubnets/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListSubnets", + "fullName": "google.cloud.vmwareengine.v1.Client.ListSubnets", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.ListSubnetsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "SubnetIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "ListSubnets", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListVmwareEngineNetworks_sync", + "title": "vmwareengine ListVmwareEngineNetworks Sample", + "description": "ListVmwareEngineNetworks lists VmwareEngineNetwork resources in a given project and location.", + "file": "Client/ListVmwareEngineNetworks/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListVmwareEngineNetworks", + "fullName": "google.cloud.vmwareengine.v1.Client.ListVmwareEngineNetworks", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.ListVmwareEngineNetworksRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "VmwareEngineNetworkIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "ListVmwareEngineNetworks", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListVmwareEngineNetworks", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ResetNsxCredentials_sync", + "title": "vmwareengine ResetNsxCredentials Sample", + "description": "ResetNsxCredentials resets credentials of the NSX appliance.", + "file": "Client/ResetNsxCredentials/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResetNsxCredentials", + "fullName": "google.cloud.vmwareengine.v1.Client.ResetNsxCredentials", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.ResetNsxCredentialsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ResetNsxCredentialsOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "ResetNsxCredentials", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentials", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ResetVcenterCredentials_sync", + "title": "vmwareengine ResetVcenterCredentials Sample", + "description": "ResetVcenterCredentials resets credentials of the Vcenter appliance.", + "file": "Client/ResetVcenterCredentials/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ResetVcenterCredentials", + "fullName": "google.cloud.vmwareengine.v1.Client.ResetVcenterCredentials", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.ResetVcenterCredentialsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ResetVcenterCredentialsOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "ResetVcenterCredentials", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentials", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_SetIamPolicy_sync", + "title": "vmwareengine SetIamPolicy Sample", + "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED\nerrors.", + "file": "Client/SetIamPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.vmwareengine.v1.Client.SetIamPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.SetIamPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.Policy", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.SetIamPolicy", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ShowNsxCredentials_sync", + "title": "vmwareengine ShowNsxCredentials Sample", + "description": "ShowNsxCredentials gets details of credentials for NSX appliance.", + "file": "Client/ShowNsxCredentials/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ShowNsxCredentials", + "fullName": "google.cloud.vmwareengine.v1.Client.ShowNsxCredentials", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.ShowNsxCredentialsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vmwareenginepb.Credentials", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "ShowNsxCredentials", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentials", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_ShowVcenterCredentials_sync", + "title": "vmwareengine ShowVcenterCredentials Sample", + "description": "ShowVcenterCredentials gets details of credentials for Vcenter appliance.", + "file": "Client/ShowVcenterCredentials/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ShowVcenterCredentials", + "fullName": "google.cloud.vmwareengine.v1.Client.ShowVcenterCredentials", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.ShowVcenterCredentialsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vmwareenginepb.Credentials", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "ShowVcenterCredentials", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentials", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_TestIamPermissions_sync", + "title": "vmwareengine TestIamPermissions Sample", + "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may “fail open” without warning.", + "file": "Client/TestIamPermissions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.vmwareengine.v1.Client.TestIamPermissions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "iampb.TestIamPermissionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "iampb.TestIamPermissionsResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.TestIamPermissions", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_UndeletePrivateCloud_sync", + "title": "vmwareengine UndeletePrivateCloud Sample", + "description": "UndeletePrivateCloud restores a private cloud that was previously scheduled for deletion by\nDeletePrivateCloud. A PrivateCloud resource scheduled for deletion has\nPrivateCloud.state set to DELETED and PrivateCloud.expireTime set to\nthe time when deletion can no longer be reversed.", + "file": "Client/UndeletePrivateCloud/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UndeletePrivateCloud", + "fullName": "google.cloud.vmwareengine.v1.Client.UndeletePrivateCloud", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.UndeletePrivateCloudRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UndeletePrivateCloudOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "UndeletePrivateCloud", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateCluster_sync", + "title": "vmwareengine UpdateCluster Sample", + "description": "UpdateCluster modifies a Cluster resource. Only the following fields can be updated: \nnode_type_configs.*.node_count. Only fields specified in updateMask are\napplied.\n\nDuring operation processing, the resource is temporarily in the ACTIVE\nstate before the operation fully completes. For that period of time, you\ncan’t update the resource. Use the operation status to determine when the\nprocessing fully completes.", + "file": "Client/UpdateCluster/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateCluster", + "fullName": "google.cloud.vmwareengine.v1.Client.UpdateCluster", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.UpdateClusterRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateClusterOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "UpdateCluster", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateCluster", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPolicy_sync", + "title": "vmwareengine UpdateNetworkPolicy Sample", + "description": "UpdateNetworkPolicy modifies a NetworkPolicy resource. Only the following fields can be\nupdated: internet_access, external_ip, edge_services_cidr.\nOnly fields specified in updateMask are applied. When updating a network\npolicy, the external IP network service can only be disabled if there are\nno external IP addresses present in the scope of the policy. Also, a\nNetworkService cannot be updated when NetworkService.state is set\nto RECONCILING.\n\nDuring operation processing, the resource is temporarily in the ACTIVE\nstate before the operation fully completes. For that period of time, you\ncan’t update the resource. Use the operation status to determine when the\nprocessing fully completes.", + "file": "Client/UpdateNetworkPolicy/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateNetworkPolicy", + "fullName": "google.cloud.vmwareengine.v1.Client.UpdateNetworkPolicy", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.UpdateNetworkPolicyRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateNetworkPolicyOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "UpdateNetworkPolicy", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPolicy", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdatePrivateCloud_sync", + "title": "vmwareengine UpdatePrivateCloud Sample", + "description": "UpdatePrivateCloud modifies a PrivateCloud resource. Only the following fields can be\nupdated: description.\nOnly fields specified in updateMask are applied.\n\nDuring operation processing, the resource is temporarily in the ACTIVE\nstate before the operation fully completes. For that period of time, you\ncan’t update the resource. Use the operation status to determine when the\nprocessing fully completes.", + "file": "Client/UpdatePrivateCloud/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdatePrivateCloud", + "fullName": "google.cloud.vmwareengine.v1.Client.UpdatePrivateCloud", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.UpdatePrivateCloudRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdatePrivateCloudOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "UpdatePrivateCloud", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdatePrivateCloud", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateVmwareEngineNetwork_sync", + "title": "vmwareengine UpdateVmwareEngineNetwork Sample", + "description": "UpdateVmwareEngineNetwork modifies a VMware Engine network resource. Only the following fields can be\nupdated: description. Only fields specified in updateMask are\napplied.", + "file": "Client/UpdateVmwareEngineNetwork/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateVmwareEngineNetwork", + "fullName": "google.cloud.vmwareengine.v1.Client.UpdateVmwareEngineNetwork", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vmwareenginepb.UpdateVmwareEngineNetworkRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateVmwareEngineNetworkOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vmwareengine.v1.Client" + }, + "method": { + "shortName": "UpdateVmwareEngineNetwork", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateVmwareEngineNetwork", + "service": { + "shortName": "VmwareEngine", + "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/vpcaccess/apiv1/Client/CreateConnector/main.go b/internal/generated/snippets/vpcaccess/apiv1/Client/CreateConnector/main.go index 3c5548c021f7..3596aa72310b 100644 --- a/internal/generated/snippets/vpcaccess/apiv1/Client/CreateConnector/main.go +++ b/internal/generated/snippets/vpcaccess/apiv1/Client/CreateConnector/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vpcaccess "cloud.google.com/go/vpcaccess/apiv1" - vpcaccesspb "google.golang.org/genproto/googleapis/cloud/vpcaccess/v1" + vpcaccesspb "cloud.google.com/go/vpcaccess/apiv1/vpcaccesspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vpcaccess.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vpcaccesspb.CreateConnectorRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vpcaccess/v1#CreateConnectorRequest. + // See https://pkg.go.dev/cloud.google.com/go/vpcaccess/apiv1/vpcaccesspb#CreateConnectorRequest. } op, err := c.CreateConnector(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vpcaccess/apiv1/Client/DeleteConnector/main.go b/internal/generated/snippets/vpcaccess/apiv1/Client/DeleteConnector/main.go index b9f4986ecf91..50402d101d58 100644 --- a/internal/generated/snippets/vpcaccess/apiv1/Client/DeleteConnector/main.go +++ b/internal/generated/snippets/vpcaccess/apiv1/Client/DeleteConnector/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vpcaccess "cloud.google.com/go/vpcaccess/apiv1" - vpcaccesspb "google.golang.org/genproto/googleapis/cloud/vpcaccess/v1" + vpcaccesspb "cloud.google.com/go/vpcaccess/apiv1/vpcaccesspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vpcaccess.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vpcaccesspb.DeleteConnectorRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vpcaccess/v1#DeleteConnectorRequest. + // See https://pkg.go.dev/cloud.google.com/go/vpcaccess/apiv1/vpcaccesspb#DeleteConnectorRequest. } op, err := c.DeleteConnector(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vpcaccess/apiv1/Client/GetConnector/main.go b/internal/generated/snippets/vpcaccess/apiv1/Client/GetConnector/main.go index 6958169dc86a..ab728cb75360 100644 --- a/internal/generated/snippets/vpcaccess/apiv1/Client/GetConnector/main.go +++ b/internal/generated/snippets/vpcaccess/apiv1/Client/GetConnector/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" vpcaccess "cloud.google.com/go/vpcaccess/apiv1" - vpcaccesspb "google.golang.org/genproto/googleapis/cloud/vpcaccess/v1" + vpcaccesspb "cloud.google.com/go/vpcaccess/apiv1/vpcaccesspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vpcaccess.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &vpcaccesspb.GetConnectorRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vpcaccess/v1#GetConnectorRequest. + // See https://pkg.go.dev/cloud.google.com/go/vpcaccess/apiv1/vpcaccesspb#GetConnectorRequest. } resp, err := c.GetConnector(ctx, req) if err != nil { diff --git a/internal/generated/snippets/vpcaccess/apiv1/Client/GetOperation/main.go b/internal/generated/snippets/vpcaccess/apiv1/Client/GetOperation/main.go new file mode 100644 index 000000000000..7a7b55beca83 --- /dev/null +++ b/internal/generated/snippets/vpcaccess/apiv1/Client/GetOperation/main.go @@ -0,0 +1,54 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vpcaccess_v1_generated_VpcAccessService_GetOperation_sync] + +package main + +import ( + "context" + + vpcaccess "cloud.google.com/go/vpcaccess/apiv1" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vpcaccess.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END vpcaccess_v1_generated_VpcAccessService_GetOperation_sync] diff --git a/internal/generated/snippets/vpcaccess/apiv1/Client/ListConnectors/main.go b/internal/generated/snippets/vpcaccess/apiv1/Client/ListConnectors/main.go index dc91ba2f8b75..3a27a6781b3b 100644 --- a/internal/generated/snippets/vpcaccess/apiv1/Client/ListConnectors/main.go +++ b/internal/generated/snippets/vpcaccess/apiv1/Client/ListConnectors/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" vpcaccess "cloud.google.com/go/vpcaccess/apiv1" + vpcaccesspb "cloud.google.com/go/vpcaccess/apiv1/vpcaccesspb" "google.golang.org/api/iterator" - vpcaccesspb "google.golang.org/genproto/googleapis/cloud/vpcaccess/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := vpcaccess.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &vpcaccesspb.ListConnectorsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/vpcaccess/v1#ListConnectorsRequest. + // See https://pkg.go.dev/cloud.google.com/go/vpcaccess/apiv1/vpcaccesspb#ListConnectorsRequest. } it := c.ListConnectors(ctx, req) for { diff --git a/internal/generated/snippets/vpcaccess/apiv1/Client/ListLocations/main.go b/internal/generated/snippets/vpcaccess/apiv1/Client/ListLocations/main.go new file mode 100644 index 000000000000..9c2a6a63be6d --- /dev/null +++ b/internal/generated/snippets/vpcaccess/apiv1/Client/ListLocations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vpcaccess_v1_generated_VpcAccessService_ListLocations_sync] + +package main + +import ( + "context" + + vpcaccess "cloud.google.com/go/vpcaccess/apiv1" + "google.golang.org/api/iterator" + + locationpb "google.golang.org/genproto/googleapis/cloud/location" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vpcaccess.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vpcaccess_v1_generated_VpcAccessService_ListLocations_sync] diff --git a/internal/generated/snippets/vpcaccess/apiv1/Client/ListOperations/main.go b/internal/generated/snippets/vpcaccess/apiv1/Client/ListOperations/main.go new file mode 100644 index 000000000000..b8219dea108e --- /dev/null +++ b/internal/generated/snippets/vpcaccess/apiv1/Client/ListOperations/main.go @@ -0,0 +1,61 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START vpcaccess_v1_generated_VpcAccessService_ListOperations_sync] + +package main + +import ( + "context" + + vpcaccess "cloud.google.com/go/vpcaccess/apiv1" + "google.golang.org/api/iterator" + + longrunningpb "google.golang.org/genproto/googleapis/longrunning" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vpcaccess.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END vpcaccess_v1_generated_VpcAccessService_ListOperations_sync] diff --git a/internal/generated/snippets/vpcaccess/apiv1/snippet_metadata.google.cloud.vpcaccess.v1.json b/internal/generated/snippets/vpcaccess/apiv1/snippet_metadata.google.cloud.vpcaccess.v1.json new file mode 100644 index 000000000000..ae86434b42c6 --- /dev/null +++ b/internal/generated/snippets/vpcaccess/apiv1/snippet_metadata.google.cloud.vpcaccess.v1.json @@ -0,0 +1,337 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/vpcaccess/apiv1", + "version": "1.6.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.vpcaccess.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "vpcaccess_v1_generated_VpcAccessService_CreateConnector_sync", + "title": "vpcaccess CreateConnector Sample", + "description": "CreateConnector creates a Serverless VPC Access connector, returns an operation.", + "file": "Client/CreateConnector/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateConnector", + "fullName": "google.cloud.vpcaccess.v1.Client.CreateConnector", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vpcaccesspb.CreateConnectorRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateConnectorOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vpcaccess.v1.Client" + }, + "method": { + "shortName": "CreateConnector", + "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.CreateConnector", + "service": { + "shortName": "VpcAccessService", + "fullName": "google.cloud.vpcaccess.v1.VpcAccessService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "vpcaccess_v1_generated_VpcAccessService_DeleteConnector_sync", + "title": "vpcaccess DeleteConnector Sample", + "description": "DeleteConnector deletes a Serverless VPC Access connector. Returns NOT_FOUND if the\nresource does not exist.", + "file": "Client/DeleteConnector/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteConnector", + "fullName": "google.cloud.vpcaccess.v1.Client.DeleteConnector", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vpcaccesspb.DeleteConnectorRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteConnectorOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vpcaccess.v1.Client" + }, + "method": { + "shortName": "DeleteConnector", + "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.DeleteConnector", + "service": { + "shortName": "VpcAccessService", + "fullName": "google.cloud.vpcaccess.v1.VpcAccessService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "vpcaccess_v1_generated_VpcAccessService_GetConnector_sync", + "title": "vpcaccess GetConnector Sample", + "description": "GetConnector gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource\ndoes not exist.", + "file": "Client/GetConnector/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetConnector", + "fullName": "google.cloud.vpcaccess.v1.Client.GetConnector", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vpcaccesspb.GetConnectorRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "vpcaccesspb.Connector", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vpcaccess.v1.Client" + }, + "method": { + "shortName": "GetConnector", + "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.GetConnector", + "service": { + "shortName": "VpcAccessService", + "fullName": "google.cloud.vpcaccess.v1.VpcAccessService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "vpcaccess_v1_generated_VpcAccessService_GetOperation_sync", + "title": "vpcaccess GetOperation Sample", + "description": "GetOperation is a utility method from google.longrunning.Operations.", + "file": "Client/GetOperation/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.cloud.vpcaccess.v1.Client.GetOperation", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.GetOperationRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "longrunningpb.Operation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vpcaccess.v1.Client" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.GetOperation", + "service": { + "shortName": "VpcAccessService", + "fullName": "google.cloud.vpcaccess.v1.VpcAccessService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 54, + "type": "FULL" + } + ] + }, + { + "regionTag": "vpcaccess_v1_generated_VpcAccessService_ListConnectors_sync", + "title": "vpcaccess ListConnectors Sample", + "description": "ListConnectors lists Serverless VPC Access connectors.", + "file": "Client/ListConnectors/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListConnectors", + "fullName": "google.cloud.vpcaccess.v1.Client.ListConnectors", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "vpcaccesspb.ListConnectorsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ConnectorIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vpcaccess.v1.Client" + }, + "method": { + "shortName": "ListConnectors", + "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.ListConnectors", + "service": { + "shortName": "VpcAccessService", + "fullName": "google.cloud.vpcaccess.v1.VpcAccessService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "vpcaccess_v1_generated_VpcAccessService_ListLocations_sync", + "title": "vpcaccess ListLocations Sample", + "description": "ListLocations lists information about the supported locations for this service.", + "file": "Client/ListLocations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListLocations", + "fullName": "google.cloud.vpcaccess.v1.Client.ListLocations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "locationpb.ListLocationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "LocationIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vpcaccess.v1.Client" + }, + "method": { + "shortName": "ListLocations", + "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.ListLocations", + "service": { + "shortName": "VpcAccessService", + "fullName": "google.cloud.vpcaccess.v1.VpcAccessService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + }, + { + "regionTag": "vpcaccess_v1_generated_VpcAccessService_ListOperations_sync", + "title": "vpcaccess ListOperations Sample", + "description": "ListOperations is a utility method from google.longrunning.Operations.", + "file": "Client/ListOperations/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.cloud.vpcaccess.v1.Client.ListOperations", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "longrunningpb.ListOperationsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "OperationIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.vpcaccess.v1.Client" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.ListOperations", + "service": { + "shortName": "VpcAccessService", + "fullName": "google.cloud.vpcaccess.v1.VpcAccessService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 61, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/webrisk/apiv1/Client/ComputeThreatListDiff/main.go b/internal/generated/snippets/webrisk/apiv1/Client/ComputeThreatListDiff/main.go index 6aed092e408d..29e189c1a145 100644 --- a/internal/generated/snippets/webrisk/apiv1/Client/ComputeThreatListDiff/main.go +++ b/internal/generated/snippets/webrisk/apiv1/Client/ComputeThreatListDiff/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" webrisk "cloud.google.com/go/webrisk/apiv1" - webriskpb "google.golang.org/genproto/googleapis/cloud/webrisk/v1" + webriskpb "cloud.google.com/go/webrisk/apiv1/webriskpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := webrisk.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &webriskpb.ComputeThreatListDiffRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/webrisk/v1#ComputeThreatListDiffRequest. + // See https://pkg.go.dev/cloud.google.com/go/webrisk/apiv1/webriskpb#ComputeThreatListDiffRequest. } resp, err := c.ComputeThreatListDiff(ctx, req) if err != nil { diff --git a/internal/generated/snippets/webrisk/apiv1/Client/CreateSubmission/main.go b/internal/generated/snippets/webrisk/apiv1/Client/CreateSubmission/main.go index 4442691a92fc..3ead97194327 100644 --- a/internal/generated/snippets/webrisk/apiv1/Client/CreateSubmission/main.go +++ b/internal/generated/snippets/webrisk/apiv1/Client/CreateSubmission/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" webrisk "cloud.google.com/go/webrisk/apiv1" - webriskpb "google.golang.org/genproto/googleapis/cloud/webrisk/v1" + webriskpb "cloud.google.com/go/webrisk/apiv1/webriskpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := webrisk.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &webriskpb.CreateSubmissionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/webrisk/v1#CreateSubmissionRequest. + // See https://pkg.go.dev/cloud.google.com/go/webrisk/apiv1/webriskpb#CreateSubmissionRequest. } resp, err := c.CreateSubmission(ctx, req) if err != nil { diff --git a/internal/generated/snippets/webrisk/apiv1/Client/SearchHashes/main.go b/internal/generated/snippets/webrisk/apiv1/Client/SearchHashes/main.go index c95279300a92..336d30edd746 100644 --- a/internal/generated/snippets/webrisk/apiv1/Client/SearchHashes/main.go +++ b/internal/generated/snippets/webrisk/apiv1/Client/SearchHashes/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" webrisk "cloud.google.com/go/webrisk/apiv1" - webriskpb "google.golang.org/genproto/googleapis/cloud/webrisk/v1" + webriskpb "cloud.google.com/go/webrisk/apiv1/webriskpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := webrisk.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &webriskpb.SearchHashesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/webrisk/v1#SearchHashesRequest. + // See https://pkg.go.dev/cloud.google.com/go/webrisk/apiv1/webriskpb#SearchHashesRequest. } resp, err := c.SearchHashes(ctx, req) if err != nil { diff --git a/internal/generated/snippets/webrisk/apiv1/Client/SearchUris/main.go b/internal/generated/snippets/webrisk/apiv1/Client/SearchUris/main.go index a7f948f0ae2f..5118f93e7013 100644 --- a/internal/generated/snippets/webrisk/apiv1/Client/SearchUris/main.go +++ b/internal/generated/snippets/webrisk/apiv1/Client/SearchUris/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" webrisk "cloud.google.com/go/webrisk/apiv1" - webriskpb "google.golang.org/genproto/googleapis/cloud/webrisk/v1" + webriskpb "cloud.google.com/go/webrisk/apiv1/webriskpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := webrisk.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &webriskpb.SearchUrisRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/webrisk/v1#SearchUrisRequest. + // See https://pkg.go.dev/cloud.google.com/go/webrisk/apiv1/webriskpb#SearchUrisRequest. } resp, err := c.SearchUris(ctx, req) if err != nil { diff --git a/internal/generated/snippets/webrisk/apiv1/snippet_metadata.google.cloud.webrisk.v1.json b/internal/generated/snippets/webrisk/apiv1/snippet_metadata.google.cloud.webrisk.v1.json new file mode 100644 index 000000000000..dc3e60463c26 --- /dev/null +++ b/internal/generated/snippets/webrisk/apiv1/snippet_metadata.google.cloud.webrisk.v1.json @@ -0,0 +1,199 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/webrisk/apiv1", + "version": "1.8.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.webrisk.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "webrisk_v1_generated_WebRiskService_ComputeThreatListDiff_sync", + "title": "webrisk ComputeThreatListDiff Sample", + "description": "ComputeThreatListDiff gets the most recent threat list diffs. These diffs should be applied to\na local database of hashes to keep it up-to-date. If the local database is\nempty or excessively out-of-date, a complete snapshot of the database will\nbe returned. This Method only updates a single ThreatList at a time. To\nupdate multiple ThreatList databases, this method needs to be called once\nfor each list.", + "file": "Client/ComputeThreatListDiff/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ComputeThreatListDiff", + "fullName": "google.cloud.webrisk.v1.Client.ComputeThreatListDiff", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "webriskpb.ComputeThreatListDiffRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "webriskpb.ComputeThreatListDiffResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.webrisk.v1.Client" + }, + "method": { + "shortName": "ComputeThreatListDiff", + "fullName": "google.cloud.webrisk.v1.WebRiskService.ComputeThreatListDiff", + "service": { + "shortName": "WebRiskService", + "fullName": "google.cloud.webrisk.v1.WebRiskService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "webrisk_v1_generated_WebRiskService_CreateSubmission_sync", + "title": "webrisk CreateSubmission Sample", + "description": "CreateSubmission creates a Submission of a URI suspected of containing phishing content to\nbe reviewed. If the result verifies the existence of malicious phishing\ncontent, the site will be added to the Google’s Social Engineering\nlists (at https: //support.google.com/webmasters/answer/6350487/) in order to\nprotect users that could get exposed to this threat in the future. Only\nallowlisted projects can use this method during Early Access. Please reach\nout to Sales or your customer engineer to obtain access.", + "file": "Client/CreateSubmission/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateSubmission", + "fullName": "google.cloud.webrisk.v1.Client.CreateSubmission", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "webriskpb.CreateSubmissionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "webriskpb.Submission", + "client": { + "shortName": "Client", + "fullName": "google.cloud.webrisk.v1.Client" + }, + "method": { + "shortName": "CreateSubmission", + "fullName": "google.cloud.webrisk.v1.WebRiskService.CreateSubmission", + "service": { + "shortName": "WebRiskService", + "fullName": "google.cloud.webrisk.v1.WebRiskService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "webrisk_v1_generated_WebRiskService_SearchHashes_sync", + "title": "webrisk SearchHashes Sample", + "description": "SearchHashes gets the full hashes that match the requested hash prefix.\nThis is used after a hash prefix is looked up in a threatList\nand there is a match. The client side threatList only holds partial hashes\nso the client must query this method to determine if there is a full\nhash match of a threat.", + "file": "Client/SearchHashes/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SearchHashes", + "fullName": "google.cloud.webrisk.v1.Client.SearchHashes", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "webriskpb.SearchHashesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "webriskpb.SearchHashesResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.webrisk.v1.Client" + }, + "method": { + "shortName": "SearchHashes", + "fullName": "google.cloud.webrisk.v1.WebRiskService.SearchHashes", + "service": { + "shortName": "WebRiskService", + "fullName": "google.cloud.webrisk.v1.WebRiskService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "webrisk_v1_generated_WebRiskService_SearchUris_sync", + "title": "webrisk SearchUris Sample", + "description": "SearchUris this method is used to check whether a URI is on a given threatList.\nMultiple threatLists may be searched in a single query.\nThe response will list all requested threatLists the URI was found to\nmatch. If the URI is not found on any of the requested ThreatList an\nempty response will be returned.", + "file": "Client/SearchUris/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SearchUris", + "fullName": "google.cloud.webrisk.v1.Client.SearchUris", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "webriskpb.SearchUrisRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "webriskpb.SearchUrisResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.webrisk.v1.Client" + }, + "method": { + "shortName": "SearchUris", + "fullName": "google.cloud.webrisk.v1.WebRiskService.SearchUris", + "service": { + "shortName": "WebRiskService", + "fullName": "google.cloud.webrisk.v1.WebRiskService" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/webrisk/apiv1beta1/WebRiskServiceV1Beta1Client/ComputeThreatListDiff/main.go b/internal/generated/snippets/webrisk/apiv1beta1/WebRiskServiceV1Beta1Client/ComputeThreatListDiff/main.go index 954d5b658c6a..7ae986b06f07 100644 --- a/internal/generated/snippets/webrisk/apiv1beta1/WebRiskServiceV1Beta1Client/ComputeThreatListDiff/main.go +++ b/internal/generated/snippets/webrisk/apiv1beta1/WebRiskServiceV1Beta1Client/ComputeThreatListDiff/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" webrisk "cloud.google.com/go/webrisk/apiv1beta1" - webriskpb "google.golang.org/genproto/googleapis/cloud/webrisk/v1beta1" + webriskpb "cloud.google.com/go/webrisk/apiv1beta1/webriskpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := webrisk.NewWebRiskServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &webriskpb.ComputeThreatListDiffRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/webrisk/v1beta1#ComputeThreatListDiffRequest. + // See https://pkg.go.dev/cloud.google.com/go/webrisk/apiv1beta1/webriskpb#ComputeThreatListDiffRequest. } resp, err := c.ComputeThreatListDiff(ctx, req) if err != nil { diff --git a/internal/generated/snippets/webrisk/apiv1beta1/WebRiskServiceV1Beta1Client/SearchHashes/main.go b/internal/generated/snippets/webrisk/apiv1beta1/WebRiskServiceV1Beta1Client/SearchHashes/main.go index fcede6040786..0a65741a9234 100644 --- a/internal/generated/snippets/webrisk/apiv1beta1/WebRiskServiceV1Beta1Client/SearchHashes/main.go +++ b/internal/generated/snippets/webrisk/apiv1beta1/WebRiskServiceV1Beta1Client/SearchHashes/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" webrisk "cloud.google.com/go/webrisk/apiv1beta1" - webriskpb "google.golang.org/genproto/googleapis/cloud/webrisk/v1beta1" + webriskpb "cloud.google.com/go/webrisk/apiv1beta1/webriskpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := webrisk.NewWebRiskServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &webriskpb.SearchHashesRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/webrisk/v1beta1#SearchHashesRequest. + // See https://pkg.go.dev/cloud.google.com/go/webrisk/apiv1beta1/webriskpb#SearchHashesRequest. } resp, err := c.SearchHashes(ctx, req) if err != nil { diff --git a/internal/generated/snippets/webrisk/apiv1beta1/WebRiskServiceV1Beta1Client/SearchUris/main.go b/internal/generated/snippets/webrisk/apiv1beta1/WebRiskServiceV1Beta1Client/SearchUris/main.go index a4feab8f080c..ac3fa45df572 100644 --- a/internal/generated/snippets/webrisk/apiv1beta1/WebRiskServiceV1Beta1Client/SearchUris/main.go +++ b/internal/generated/snippets/webrisk/apiv1beta1/WebRiskServiceV1Beta1Client/SearchUris/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" webrisk "cloud.google.com/go/webrisk/apiv1beta1" - webriskpb "google.golang.org/genproto/googleapis/cloud/webrisk/v1beta1" + webriskpb "cloud.google.com/go/webrisk/apiv1beta1/webriskpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := webrisk.NewWebRiskServiceV1Beta1Client(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &webriskpb.SearchUrisRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/webrisk/v1beta1#SearchUrisRequest. + // See https://pkg.go.dev/cloud.google.com/go/webrisk/apiv1beta1/webriskpb#SearchUrisRequest. } resp, err := c.SearchUris(ctx, req) if err != nil { diff --git a/internal/generated/snippets/webrisk/apiv1beta1/snippet_metadata.google.cloud.webrisk.v1beta1.json b/internal/generated/snippets/webrisk/apiv1beta1/snippet_metadata.google.cloud.webrisk.v1beta1.json new file mode 100644 index 000000000000..ced7831d9b7d --- /dev/null +++ b/internal/generated/snippets/webrisk/apiv1beta1/snippet_metadata.google.cloud.webrisk.v1beta1.json @@ -0,0 +1,153 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/webrisk/apiv1beta1", + "version": "1.8.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.webrisk.v1beta1", + "version": "v1beta1" + } + ] + }, + "snippets": [ + { + "regionTag": "webrisk_v1beta1_generated_WebRiskServiceV1Beta1_ComputeThreatListDiff_sync", + "title": "webrisk ComputeThreatListDiff Sample", + "description": "ComputeThreatListDiff gets the most recent threat list diffs.", + "file": "WebRiskServiceV1Beta1Client/ComputeThreatListDiff/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ComputeThreatListDiff", + "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1Client.ComputeThreatListDiff", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "webriskpb.ComputeThreatListDiffRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "webriskpb.ComputeThreatListDiffResponse", + "client": { + "shortName": "WebRiskServiceV1Beta1Client", + "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1Client" + }, + "method": { + "shortName": "ComputeThreatListDiff", + "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1.ComputeThreatListDiff", + "service": { + "shortName": "WebRiskServiceV1Beta1", + "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "webrisk_v1beta1_generated_WebRiskServiceV1Beta1_SearchHashes_sync", + "title": "webrisk SearchHashes Sample", + "description": "SearchHashes gets the full hashes that match the requested hash prefix.\nThis is used after a hash prefix is looked up in a threatList\nand there is a match. The client side threatList only holds partial hashes\nso the client must query this method to determine if there is a full\nhash match of a threat.", + "file": "WebRiskServiceV1Beta1Client/SearchHashes/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SearchHashes", + "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1Client.SearchHashes", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "webriskpb.SearchHashesRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "webriskpb.SearchHashesResponse", + "client": { + "shortName": "WebRiskServiceV1Beta1Client", + "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1Client" + }, + "method": { + "shortName": "SearchHashes", + "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1.SearchHashes", + "service": { + "shortName": "WebRiskServiceV1Beta1", + "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "webrisk_v1beta1_generated_WebRiskServiceV1Beta1_SearchUris_sync", + "title": "webrisk SearchUris Sample", + "description": "SearchUris this method is used to check whether a URI is on a given threatList.", + "file": "WebRiskServiceV1Beta1Client/SearchUris/main.go", + "language": "GO", + "clientMethod": { + "shortName": "SearchUris", + "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1Client.SearchUris", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "webriskpb.SearchUrisRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "webriskpb.SearchUrisResponse", + "client": { + "shortName": "WebRiskServiceV1Beta1Client", + "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1Client" + }, + "method": { + "shortName": "SearchUris", + "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1.SearchUris", + "service": { + "shortName": "WebRiskServiceV1Beta1", + "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/websecurityscanner/apiv1/Client/CreateScanConfig/main.go b/internal/generated/snippets/websecurityscanner/apiv1/Client/CreateScanConfig/main.go index b7a80354525e..38fef986437a 100644 --- a/internal/generated/snippets/websecurityscanner/apiv1/Client/CreateScanConfig/main.go +++ b/internal/generated/snippets/websecurityscanner/apiv1/Client/CreateScanConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" websecurityscanner "cloud.google.com/go/websecurityscanner/apiv1" - websecurityscannerpb "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1" + websecurityscannerpb "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &websecurityscannerpb.CreateScanConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1#CreateScanConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb#CreateScanConfigRequest. } resp, err := c.CreateScanConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/websecurityscanner/apiv1/Client/DeleteScanConfig/main.go b/internal/generated/snippets/websecurityscanner/apiv1/Client/DeleteScanConfig/main.go index 16d43fb1b689..58f938f2545f 100644 --- a/internal/generated/snippets/websecurityscanner/apiv1/Client/DeleteScanConfig/main.go +++ b/internal/generated/snippets/websecurityscanner/apiv1/Client/DeleteScanConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" websecurityscanner "cloud.google.com/go/websecurityscanner/apiv1" - websecurityscannerpb "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1" + websecurityscannerpb "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &websecurityscannerpb.DeleteScanConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1#DeleteScanConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb#DeleteScanConfigRequest. } err = c.DeleteScanConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/websecurityscanner/apiv1/Client/GetFinding/main.go b/internal/generated/snippets/websecurityscanner/apiv1/Client/GetFinding/main.go index 71b38fb67e4e..01aa8fd60e5c 100644 --- a/internal/generated/snippets/websecurityscanner/apiv1/Client/GetFinding/main.go +++ b/internal/generated/snippets/websecurityscanner/apiv1/Client/GetFinding/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" websecurityscanner "cloud.google.com/go/websecurityscanner/apiv1" - websecurityscannerpb "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1" + websecurityscannerpb "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &websecurityscannerpb.GetFindingRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1#GetFindingRequest. + // See https://pkg.go.dev/cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb#GetFindingRequest. } resp, err := c.GetFinding(ctx, req) if err != nil { diff --git a/internal/generated/snippets/websecurityscanner/apiv1/Client/GetScanConfig/main.go b/internal/generated/snippets/websecurityscanner/apiv1/Client/GetScanConfig/main.go index f7d0b99e141f..2b4846f3ebb0 100644 --- a/internal/generated/snippets/websecurityscanner/apiv1/Client/GetScanConfig/main.go +++ b/internal/generated/snippets/websecurityscanner/apiv1/Client/GetScanConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" websecurityscanner "cloud.google.com/go/websecurityscanner/apiv1" - websecurityscannerpb "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1" + websecurityscannerpb "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &websecurityscannerpb.GetScanConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1#GetScanConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb#GetScanConfigRequest. } resp, err := c.GetScanConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/websecurityscanner/apiv1/Client/GetScanRun/main.go b/internal/generated/snippets/websecurityscanner/apiv1/Client/GetScanRun/main.go index 3770865edb69..a421887114aa 100644 --- a/internal/generated/snippets/websecurityscanner/apiv1/Client/GetScanRun/main.go +++ b/internal/generated/snippets/websecurityscanner/apiv1/Client/GetScanRun/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" websecurityscanner "cloud.google.com/go/websecurityscanner/apiv1" - websecurityscannerpb "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1" + websecurityscannerpb "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &websecurityscannerpb.GetScanRunRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1#GetScanRunRequest. + // See https://pkg.go.dev/cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb#GetScanRunRequest. } resp, err := c.GetScanRun(ctx, req) if err != nil { diff --git a/internal/generated/snippets/websecurityscanner/apiv1/Client/ListCrawledUrls/main.go b/internal/generated/snippets/websecurityscanner/apiv1/Client/ListCrawledUrls/main.go index 950d95c64ce2..744539c12bbd 100644 --- a/internal/generated/snippets/websecurityscanner/apiv1/Client/ListCrawledUrls/main.go +++ b/internal/generated/snippets/websecurityscanner/apiv1/Client/ListCrawledUrls/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" websecurityscanner "cloud.google.com/go/websecurityscanner/apiv1" + websecurityscannerpb "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb" "google.golang.org/api/iterator" - websecurityscannerpb "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &websecurityscannerpb.ListCrawledUrlsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1#ListCrawledUrlsRequest. + // See https://pkg.go.dev/cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb#ListCrawledUrlsRequest. } it := c.ListCrawledUrls(ctx, req) for { diff --git a/internal/generated/snippets/websecurityscanner/apiv1/Client/ListFindingTypeStats/main.go b/internal/generated/snippets/websecurityscanner/apiv1/Client/ListFindingTypeStats/main.go index a941c1752667..4613c7eeefff 100644 --- a/internal/generated/snippets/websecurityscanner/apiv1/Client/ListFindingTypeStats/main.go +++ b/internal/generated/snippets/websecurityscanner/apiv1/Client/ListFindingTypeStats/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" websecurityscanner "cloud.google.com/go/websecurityscanner/apiv1" - websecurityscannerpb "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1" + websecurityscannerpb "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &websecurityscannerpb.ListFindingTypeStatsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1#ListFindingTypeStatsRequest. + // See https://pkg.go.dev/cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb#ListFindingTypeStatsRequest. } resp, err := c.ListFindingTypeStats(ctx, req) if err != nil { diff --git a/internal/generated/snippets/websecurityscanner/apiv1/Client/ListFindings/main.go b/internal/generated/snippets/websecurityscanner/apiv1/Client/ListFindings/main.go index 8c52760d6ae2..dab5bc28f80a 100644 --- a/internal/generated/snippets/websecurityscanner/apiv1/Client/ListFindings/main.go +++ b/internal/generated/snippets/websecurityscanner/apiv1/Client/ListFindings/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" websecurityscanner "cloud.google.com/go/websecurityscanner/apiv1" + websecurityscannerpb "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb" "google.golang.org/api/iterator" - websecurityscannerpb "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &websecurityscannerpb.ListFindingsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1#ListFindingsRequest. + // See https://pkg.go.dev/cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb#ListFindingsRequest. } it := c.ListFindings(ctx, req) for { diff --git a/internal/generated/snippets/websecurityscanner/apiv1/Client/ListScanConfigs/main.go b/internal/generated/snippets/websecurityscanner/apiv1/Client/ListScanConfigs/main.go index ed43a46567fa..8af511111a30 100644 --- a/internal/generated/snippets/websecurityscanner/apiv1/Client/ListScanConfigs/main.go +++ b/internal/generated/snippets/websecurityscanner/apiv1/Client/ListScanConfigs/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" websecurityscanner "cloud.google.com/go/websecurityscanner/apiv1" + websecurityscannerpb "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb" "google.golang.org/api/iterator" - websecurityscannerpb "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &websecurityscannerpb.ListScanConfigsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1#ListScanConfigsRequest. + // See https://pkg.go.dev/cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb#ListScanConfigsRequest. } it := c.ListScanConfigs(ctx, req) for { diff --git a/internal/generated/snippets/websecurityscanner/apiv1/Client/ListScanRuns/main.go b/internal/generated/snippets/websecurityscanner/apiv1/Client/ListScanRuns/main.go index bdd245dc8df7..be8af8c7a3cf 100644 --- a/internal/generated/snippets/websecurityscanner/apiv1/Client/ListScanRuns/main.go +++ b/internal/generated/snippets/websecurityscanner/apiv1/Client/ListScanRuns/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" websecurityscanner "cloud.google.com/go/websecurityscanner/apiv1" + websecurityscannerpb "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb" "google.golang.org/api/iterator" - websecurityscannerpb "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &websecurityscannerpb.ListScanRunsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1#ListScanRunsRequest. + // See https://pkg.go.dev/cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb#ListScanRunsRequest. } it := c.ListScanRuns(ctx, req) for { diff --git a/internal/generated/snippets/websecurityscanner/apiv1/Client/StartScanRun/main.go b/internal/generated/snippets/websecurityscanner/apiv1/Client/StartScanRun/main.go index a177a673881b..f68e2bb799dd 100644 --- a/internal/generated/snippets/websecurityscanner/apiv1/Client/StartScanRun/main.go +++ b/internal/generated/snippets/websecurityscanner/apiv1/Client/StartScanRun/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" websecurityscanner "cloud.google.com/go/websecurityscanner/apiv1" - websecurityscannerpb "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1" + websecurityscannerpb "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &websecurityscannerpb.StartScanRunRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1#StartScanRunRequest. + // See https://pkg.go.dev/cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb#StartScanRunRequest. } resp, err := c.StartScanRun(ctx, req) if err != nil { diff --git a/internal/generated/snippets/websecurityscanner/apiv1/Client/StopScanRun/main.go b/internal/generated/snippets/websecurityscanner/apiv1/Client/StopScanRun/main.go index 76b53af56d30..1b17b63eb11a 100644 --- a/internal/generated/snippets/websecurityscanner/apiv1/Client/StopScanRun/main.go +++ b/internal/generated/snippets/websecurityscanner/apiv1/Client/StopScanRun/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" websecurityscanner "cloud.google.com/go/websecurityscanner/apiv1" - websecurityscannerpb "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1" + websecurityscannerpb "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &websecurityscannerpb.StopScanRunRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1#StopScanRunRequest. + // See https://pkg.go.dev/cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb#StopScanRunRequest. } resp, err := c.StopScanRun(ctx, req) if err != nil { diff --git a/internal/generated/snippets/websecurityscanner/apiv1/Client/UpdateScanConfig/main.go b/internal/generated/snippets/websecurityscanner/apiv1/Client/UpdateScanConfig/main.go index bcf38d86697c..b5121f086f40 100644 --- a/internal/generated/snippets/websecurityscanner/apiv1/Client/UpdateScanConfig/main.go +++ b/internal/generated/snippets/websecurityscanner/apiv1/Client/UpdateScanConfig/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" websecurityscanner "cloud.google.com/go/websecurityscanner/apiv1" - websecurityscannerpb "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1" + websecurityscannerpb "cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := websecurityscanner.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &websecurityscannerpb.UpdateScanConfigRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1#UpdateScanConfigRequest. + // See https://pkg.go.dev/cloud.google.com/go/websecurityscanner/apiv1/websecurityscannerpb#UpdateScanConfigRequest. } resp, err := c.UpdateScanConfig(ctx, req) if err != nil { diff --git a/internal/generated/snippets/websecurityscanner/apiv1/snippet_metadata.google.cloud.websecurityscanner.v1.json b/internal/generated/snippets/websecurityscanner/apiv1/snippet_metadata.google.cloud.websecurityscanner.v1.json new file mode 100644 index 000000000000..a9df17130e70 --- /dev/null +++ b/internal/generated/snippets/websecurityscanner/apiv1/snippet_metadata.google.cloud.websecurityscanner.v1.json @@ -0,0 +1,612 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/websecurityscanner/apiv1", + "version": "1.5.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.websecurityscanner.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_CreateScanConfig_sync", + "title": "websecurityscanner CreateScanConfig Sample", + "description": "CreateScanConfig creates a new ScanConfig.", + "file": "Client/CreateScanConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateScanConfig", + "fullName": "google.cloud.websecurityscanner.v1.Client.CreateScanConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "websecurityscannerpb.CreateScanConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "websecurityscannerpb.ScanConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.websecurityscanner.v1.Client" + }, + "method": { + "shortName": "CreateScanConfig", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.CreateScanConfig", + "service": { + "shortName": "WebSecurityScanner", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_DeleteScanConfig_sync", + "title": "websecurityscanner DeleteScanConfig Sample", + "description": "DeleteScanConfig deletes an existing ScanConfig and its child resources.", + "file": "Client/DeleteScanConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteScanConfig", + "fullName": "google.cloud.websecurityscanner.v1.Client.DeleteScanConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "websecurityscannerpb.DeleteScanConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "client": { + "shortName": "Client", + "fullName": "google.cloud.websecurityscanner.v1.Client" + }, + "method": { + "shortName": "DeleteScanConfig", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.DeleteScanConfig", + "service": { + "shortName": "WebSecurityScanner", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 51, + "type": "FULL" + } + ] + }, + { + "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_GetFinding_sync", + "title": "websecurityscanner GetFinding Sample", + "description": "GetFinding gets a Finding.", + "file": "Client/GetFinding/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetFinding", + "fullName": "google.cloud.websecurityscanner.v1.Client.GetFinding", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "websecurityscannerpb.GetFindingRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "websecurityscannerpb.Finding", + "client": { + "shortName": "Client", + "fullName": "google.cloud.websecurityscanner.v1.Client" + }, + "method": { + "shortName": "GetFinding", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.GetFinding", + "service": { + "shortName": "WebSecurityScanner", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_GetScanConfig_sync", + "title": "websecurityscanner GetScanConfig Sample", + "description": "GetScanConfig gets a ScanConfig.", + "file": "Client/GetScanConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetScanConfig", + "fullName": "google.cloud.websecurityscanner.v1.Client.GetScanConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "websecurityscannerpb.GetScanConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "websecurityscannerpb.ScanConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.websecurityscanner.v1.Client" + }, + "method": { + "shortName": "GetScanConfig", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.GetScanConfig", + "service": { + "shortName": "WebSecurityScanner", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_GetScanRun_sync", + "title": "websecurityscanner GetScanRun Sample", + "description": "GetScanRun gets a ScanRun.", + "file": "Client/GetScanRun/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetScanRun", + "fullName": "google.cloud.websecurityscanner.v1.Client.GetScanRun", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "websecurityscannerpb.GetScanRunRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "websecurityscannerpb.ScanRun", + "client": { + "shortName": "Client", + "fullName": "google.cloud.websecurityscanner.v1.Client" + }, + "method": { + "shortName": "GetScanRun", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.GetScanRun", + "service": { + "shortName": "WebSecurityScanner", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_ListCrawledUrls_sync", + "title": "websecurityscanner ListCrawledUrls Sample", + "description": "ListCrawledUrls list CrawledUrls under a given ScanRun.", + "file": "Client/ListCrawledUrls/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListCrawledUrls", + "fullName": "google.cloud.websecurityscanner.v1.Client.ListCrawledUrls", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "websecurityscannerpb.ListCrawledUrlsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CrawledUrlIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.websecurityscanner.v1.Client" + }, + "method": { + "shortName": "ListCrawledUrls", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.ListCrawledUrls", + "service": { + "shortName": "WebSecurityScanner", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_ListFindingTypeStats_sync", + "title": "websecurityscanner ListFindingTypeStats Sample", + "description": "ListFindingTypeStats list all FindingTypeStats under a given ScanRun.", + "file": "Client/ListFindingTypeStats/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListFindingTypeStats", + "fullName": "google.cloud.websecurityscanner.v1.Client.ListFindingTypeStats", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "websecurityscannerpb.ListFindingTypeStatsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "websecurityscannerpb.ListFindingTypeStatsResponse", + "client": { + "shortName": "Client", + "fullName": "google.cloud.websecurityscanner.v1.Client" + }, + "method": { + "shortName": "ListFindingTypeStats", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.ListFindingTypeStats", + "service": { + "shortName": "WebSecurityScanner", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_ListFindings_sync", + "title": "websecurityscanner ListFindings Sample", + "description": "ListFindings list Findings under a given ScanRun.", + "file": "Client/ListFindings/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListFindings", + "fullName": "google.cloud.websecurityscanner.v1.Client.ListFindings", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "websecurityscannerpb.ListFindingsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "FindingIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.websecurityscanner.v1.Client" + }, + "method": { + "shortName": "ListFindings", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.ListFindings", + "service": { + "shortName": "WebSecurityScanner", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_ListScanConfigs_sync", + "title": "websecurityscanner ListScanConfigs Sample", + "description": "ListScanConfigs lists ScanConfigs under a given project.", + "file": "Client/ListScanConfigs/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListScanConfigs", + "fullName": "google.cloud.websecurityscanner.v1.Client.ListScanConfigs", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "websecurityscannerpb.ListScanConfigsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ScanConfigIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.websecurityscanner.v1.Client" + }, + "method": { + "shortName": "ListScanConfigs", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.ListScanConfigs", + "service": { + "shortName": "WebSecurityScanner", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_ListScanRuns_sync", + "title": "websecurityscanner ListScanRuns Sample", + "description": "ListScanRuns lists ScanRuns under a given ScanConfig, in descending order of ScanRun\nstop time.", + "file": "Client/ListScanRuns/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListScanRuns", + "fullName": "google.cloud.websecurityscanner.v1.Client.ListScanRuns", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "websecurityscannerpb.ListScanRunsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ScanRunIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.websecurityscanner.v1.Client" + }, + "method": { + "shortName": "ListScanRuns", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.ListScanRuns", + "service": { + "shortName": "WebSecurityScanner", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_StartScanRun_sync", + "title": "websecurityscanner StartScanRun Sample", + "description": "StartScanRun start a ScanRun according to the given ScanConfig.", + "file": "Client/StartScanRun/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StartScanRun", + "fullName": "google.cloud.websecurityscanner.v1.Client.StartScanRun", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "websecurityscannerpb.StartScanRunRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "websecurityscannerpb.ScanRun", + "client": { + "shortName": "Client", + "fullName": "google.cloud.websecurityscanner.v1.Client" + }, + "method": { + "shortName": "StartScanRun", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.StartScanRun", + "service": { + "shortName": "WebSecurityScanner", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_StopScanRun_sync", + "title": "websecurityscanner StopScanRun Sample", + "description": "StopScanRun stops a ScanRun. The stopped ScanRun is returned.", + "file": "Client/StopScanRun/main.go", + "language": "GO", + "clientMethod": { + "shortName": "StopScanRun", + "fullName": "google.cloud.websecurityscanner.v1.Client.StopScanRun", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "websecurityscannerpb.StopScanRunRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "websecurityscannerpb.ScanRun", + "client": { + "shortName": "Client", + "fullName": "google.cloud.websecurityscanner.v1.Client" + }, + "method": { + "shortName": "StopScanRun", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.StopScanRun", + "service": { + "shortName": "WebSecurityScanner", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_UpdateScanConfig_sync", + "title": "websecurityscanner UpdateScanConfig Sample", + "description": "UpdateScanConfig updates a ScanConfig. This method support partial update of a ScanConfig.", + "file": "Client/UpdateScanConfig/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateScanConfig", + "fullName": "google.cloud.websecurityscanner.v1.Client.UpdateScanConfig", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "websecurityscannerpb.UpdateScanConfigRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "websecurityscannerpb.ScanConfig", + "client": { + "shortName": "Client", + "fullName": "google.cloud.websecurityscanner.v1.Client" + }, + "method": { + "shortName": "UpdateScanConfig", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.UpdateScanConfig", + "service": { + "shortName": "WebSecurityScanner", + "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/workflows/apiv1/Client/CreateWorkflow/main.go b/internal/generated/snippets/workflows/apiv1/Client/CreateWorkflow/main.go new file mode 100644 index 000000000000..3f82ac82b7cf --- /dev/null +++ b/internal/generated/snippets/workflows/apiv1/Client/CreateWorkflow/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START workflows_v1_generated_Workflows_CreateWorkflow_sync] + +package main + +import ( + "context" + + workflows "cloud.google.com/go/workflows/apiv1" + workflowspb "cloud.google.com/go/workflows/apiv1/workflowspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := workflows.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &workflowspb.CreateWorkflowRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/workflows/apiv1/workflowspb#CreateWorkflowRequest. + } + op, err := c.CreateWorkflow(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END workflows_v1_generated_Workflows_CreateWorkflow_sync] diff --git a/internal/generated/snippets/workflows/apiv1/Client/DeleteWorkflow/main.go b/internal/generated/snippets/workflows/apiv1/Client/DeleteWorkflow/main.go new file mode 100644 index 000000000000..8f91d39673f4 --- /dev/null +++ b/internal/generated/snippets/workflows/apiv1/Client/DeleteWorkflow/main.go @@ -0,0 +1,56 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START workflows_v1_generated_Workflows_DeleteWorkflow_sync] + +package main + +import ( + "context" + + workflows "cloud.google.com/go/workflows/apiv1" + workflowspb "cloud.google.com/go/workflows/apiv1/workflowspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := workflows.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &workflowspb.DeleteWorkflowRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/workflows/apiv1/workflowspb#DeleteWorkflowRequest. + } + op, err := c.DeleteWorkflow(ctx, req) + if err != nil { + // TODO: Handle error. + } + + err = op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } +} + +// [END workflows_v1_generated_Workflows_DeleteWorkflow_sync] diff --git a/internal/generated/snippets/workflows/apiv1/Client/GetWorkflow/main.go b/internal/generated/snippets/workflows/apiv1/Client/GetWorkflow/main.go new file mode 100644 index 000000000000..66b8e42717d1 --- /dev/null +++ b/internal/generated/snippets/workflows/apiv1/Client/GetWorkflow/main.go @@ -0,0 +1,53 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START workflows_v1_generated_Workflows_GetWorkflow_sync] + +package main + +import ( + "context" + + workflows "cloud.google.com/go/workflows/apiv1" + workflowspb "cloud.google.com/go/workflows/apiv1/workflowspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := workflows.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &workflowspb.GetWorkflowRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/workflows/apiv1/workflowspb#GetWorkflowRequest. + } + resp, err := c.GetWorkflow(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END workflows_v1_generated_Workflows_GetWorkflow_sync] diff --git a/internal/generated/snippets/workflows/apiv1/Client/ListWorkflows/main.go b/internal/generated/snippets/workflows/apiv1/Client/ListWorkflows/main.go new file mode 100644 index 000000000000..9a9c37cf6378 --- /dev/null +++ b/internal/generated/snippets/workflows/apiv1/Client/ListWorkflows/main.go @@ -0,0 +1,60 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START workflows_v1_generated_Workflows_ListWorkflows_sync] + +package main + +import ( + "context" + + workflows "cloud.google.com/go/workflows/apiv1" + workflowspb "cloud.google.com/go/workflows/apiv1/workflowspb" + "google.golang.org/api/iterator" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := workflows.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &workflowspb.ListWorkflowsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/workflows/apiv1/workflowspb#ListWorkflowsRequest. + } + it := c.ListWorkflows(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +// [END workflows_v1_generated_Workflows_ListWorkflows_sync] diff --git a/internal/generated/snippets/workflows/apiv1/Client/UpdateWorkflow/main.go b/internal/generated/snippets/workflows/apiv1/Client/UpdateWorkflow/main.go new file mode 100644 index 000000000000..f324155d0f3c --- /dev/null +++ b/internal/generated/snippets/workflows/apiv1/Client/UpdateWorkflow/main.go @@ -0,0 +1,58 @@ +// Copyright 2023 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 cloud.google.com/go/internal/gapicgen/gensnippets. DO NOT EDIT. + +// [START workflows_v1_generated_Workflows_UpdateWorkflow_sync] + +package main + +import ( + "context" + + workflows "cloud.google.com/go/workflows/apiv1" + workflowspb "cloud.google.com/go/workflows/apiv1/workflowspb" +) + +func main() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := workflows.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &workflowspb.UpdateWorkflowRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/workflows/apiv1/workflowspb#UpdateWorkflowRequest. + } + op, err := c.UpdateWorkflow(ctx, req) + if err != nil { + // TODO: Handle error. + } + + resp, err := op.Wait(ctx) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +// [END workflows_v1_generated_Workflows_UpdateWorkflow_sync] diff --git a/internal/generated/snippets/workflows/apiv1/snippet_metadata.google.cloud.workflows.v1.json b/internal/generated/snippets/workflows/apiv1/snippet_metadata.google.cloud.workflows.v1.json new file mode 100644 index 000000000000..0a7a254d1ce0 --- /dev/null +++ b/internal/generated/snippets/workflows/apiv1/snippet_metadata.google.cloud.workflows.v1.json @@ -0,0 +1,245 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/workflows/apiv1", + "version": "1.10.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.workflows.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "workflows_v1_generated_Workflows_CreateWorkflow_sync", + "title": "workflows CreateWorkflow Sample", + "description": "CreateWorkflow creates a new workflow. If a workflow with the specified name already\nexists in the specified project and location, the long running operation\nwill return ALREADY_EXISTS error.", + "file": "Client/CreateWorkflow/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateWorkflow", + "fullName": "google.cloud.workflows.v1.Client.CreateWorkflow", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "workflowspb.CreateWorkflowRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateWorkflowOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.workflows.v1.Client" + }, + "method": { + "shortName": "CreateWorkflow", + "fullName": "google.cloud.workflows.v1.Workflows.CreateWorkflow", + "service": { + "shortName": "Workflows", + "fullName": "google.cloud.workflows.v1.Workflows" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "workflows_v1_generated_Workflows_DeleteWorkflow_sync", + "title": "workflows DeleteWorkflow Sample", + "description": "DeleteWorkflow deletes a workflow with the specified name.\nThis method also cancels and deletes all running executions of the\nworkflow.", + "file": "Client/DeleteWorkflow/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteWorkflow", + "fullName": "google.cloud.workflows.v1.Client.DeleteWorkflow", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "workflowspb.DeleteWorkflowRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteWorkflowOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.workflows.v1.Client" + }, + "method": { + "shortName": "DeleteWorkflow", + "fullName": "google.cloud.workflows.v1.Workflows.DeleteWorkflow", + "service": { + "shortName": "Workflows", + "fullName": "google.cloud.workflows.v1.Workflows" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "workflows_v1_generated_Workflows_GetWorkflow_sync", + "title": "workflows GetWorkflow Sample", + "description": "GetWorkflow gets details of a single Workflow.", + "file": "Client/GetWorkflow/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetWorkflow", + "fullName": "google.cloud.workflows.v1.Client.GetWorkflow", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "workflowspb.GetWorkflowRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "workflowspb.Workflow", + "client": { + "shortName": "Client", + "fullName": "google.cloud.workflows.v1.Client" + }, + "method": { + "shortName": "GetWorkflow", + "fullName": "google.cloud.workflows.v1.Workflows.GetWorkflow", + "service": { + "shortName": "Workflows", + "fullName": "google.cloud.workflows.v1.Workflows" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "workflows_v1_generated_Workflows_ListWorkflows_sync", + "title": "workflows ListWorkflows Sample", + "description": "ListWorkflows lists Workflows in a given project and location.\nThe default order is not specified.", + "file": "Client/ListWorkflows/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListWorkflows", + "fullName": "google.cloud.workflows.v1.Client.ListWorkflows", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "workflowspb.ListWorkflowsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "WorkflowIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.workflows.v1.Client" + }, + "method": { + "shortName": "ListWorkflows", + "fullName": "google.cloud.workflows.v1.Workflows.ListWorkflows", + "service": { + "shortName": "Workflows", + "fullName": "google.cloud.workflows.v1.Workflows" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "workflows_v1_generated_Workflows_UpdateWorkflow_sync", + "title": "workflows UpdateWorkflow Sample", + "description": "UpdateWorkflow updates an existing workflow.\nRunning this method has no impact on already running executions of the\nworkflow. A new revision of the workflow may be created as a result of a\nsuccessful update operation. In that case, such revision will be used\nin new workflow executions.", + "file": "Client/UpdateWorkflow/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateWorkflow", + "fullName": "google.cloud.workflows.v1.Client.UpdateWorkflow", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "workflowspb.UpdateWorkflowRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateWorkflowOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.workflows.v1.Client" + }, + "method": { + "shortName": "UpdateWorkflow", + "fullName": "google.cloud.workflows.v1.Workflows.UpdateWorkflow", + "service": { + "shortName": "Workflows", + "fullName": "google.cloud.workflows.v1.Workflows" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/workflows/apiv1beta/Client/CreateWorkflow/main.go b/internal/generated/snippets/workflows/apiv1beta/Client/CreateWorkflow/main.go index 678f10016646..50e22ea4af28 100644 --- a/internal/generated/snippets/workflows/apiv1beta/Client/CreateWorkflow/main.go +++ b/internal/generated/snippets/workflows/apiv1beta/Client/CreateWorkflow/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" workflows "cloud.google.com/go/workflows/apiv1beta" - workflowspb "google.golang.org/genproto/googleapis/cloud/workflows/v1beta" + workflowspb "cloud.google.com/go/workflows/apiv1beta/workflowspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := workflows.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &workflowspb.CreateWorkflowRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/workflows/v1beta#CreateWorkflowRequest. + // See https://pkg.go.dev/cloud.google.com/go/workflows/apiv1beta/workflowspb#CreateWorkflowRequest. } op, err := c.CreateWorkflow(ctx, req) if err != nil { diff --git a/internal/generated/snippets/workflows/apiv1beta/Client/DeleteWorkflow/main.go b/internal/generated/snippets/workflows/apiv1beta/Client/DeleteWorkflow/main.go index 68ecbe9347fc..401ac144e37d 100644 --- a/internal/generated/snippets/workflows/apiv1beta/Client/DeleteWorkflow/main.go +++ b/internal/generated/snippets/workflows/apiv1beta/Client/DeleteWorkflow/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" workflows "cloud.google.com/go/workflows/apiv1beta" - workflowspb "google.golang.org/genproto/googleapis/cloud/workflows/v1beta" + workflowspb "cloud.google.com/go/workflows/apiv1beta/workflowspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := workflows.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &workflowspb.DeleteWorkflowRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/workflows/v1beta#DeleteWorkflowRequest. + // See https://pkg.go.dev/cloud.google.com/go/workflows/apiv1beta/workflowspb#DeleteWorkflowRequest. } op, err := c.DeleteWorkflow(ctx, req) if err != nil { diff --git a/internal/generated/snippets/workflows/apiv1beta/Client/GetWorkflow/main.go b/internal/generated/snippets/workflows/apiv1beta/Client/GetWorkflow/main.go index 5c4af83ce55a..8fe5d8c37864 100644 --- a/internal/generated/snippets/workflows/apiv1beta/Client/GetWorkflow/main.go +++ b/internal/generated/snippets/workflows/apiv1beta/Client/GetWorkflow/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" workflows "cloud.google.com/go/workflows/apiv1beta" - workflowspb "google.golang.org/genproto/googleapis/cloud/workflows/v1beta" + workflowspb "cloud.google.com/go/workflows/apiv1beta/workflowspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := workflows.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &workflowspb.GetWorkflowRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/workflows/v1beta#GetWorkflowRequest. + // See https://pkg.go.dev/cloud.google.com/go/workflows/apiv1beta/workflowspb#GetWorkflowRequest. } resp, err := c.GetWorkflow(ctx, req) if err != nil { diff --git a/internal/generated/snippets/workflows/apiv1beta/Client/ListWorkflows/main.go b/internal/generated/snippets/workflows/apiv1beta/Client/ListWorkflows/main.go index 77168aea2e5a..3a44df4d334c 100644 --- a/internal/generated/snippets/workflows/apiv1beta/Client/ListWorkflows/main.go +++ b/internal/generated/snippets/workflows/apiv1beta/Client/ListWorkflows/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" workflows "cloud.google.com/go/workflows/apiv1beta" + workflowspb "cloud.google.com/go/workflows/apiv1beta/workflowspb" "google.golang.org/api/iterator" - workflowspb "google.golang.org/genproto/googleapis/cloud/workflows/v1beta" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := workflows.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &workflowspb.ListWorkflowsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/workflows/v1beta#ListWorkflowsRequest. + // See https://pkg.go.dev/cloud.google.com/go/workflows/apiv1beta/workflowspb#ListWorkflowsRequest. } it := c.ListWorkflows(ctx, req) for { diff --git a/internal/generated/snippets/workflows/apiv1beta/Client/UpdateWorkflow/main.go b/internal/generated/snippets/workflows/apiv1beta/Client/UpdateWorkflow/main.go index 77c16a79df9f..50203bbbb844 100644 --- a/internal/generated/snippets/workflows/apiv1beta/Client/UpdateWorkflow/main.go +++ b/internal/generated/snippets/workflows/apiv1beta/Client/UpdateWorkflow/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" workflows "cloud.google.com/go/workflows/apiv1beta" - workflowspb "google.golang.org/genproto/googleapis/cloud/workflows/v1beta" + workflowspb "cloud.google.com/go/workflows/apiv1beta/workflowspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := workflows.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &workflowspb.UpdateWorkflowRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/workflows/v1beta#UpdateWorkflowRequest. + // See https://pkg.go.dev/cloud.google.com/go/workflows/apiv1beta/workflowspb#UpdateWorkflowRequest. } op, err := c.UpdateWorkflow(ctx, req) if err != nil { diff --git a/internal/generated/snippets/workflows/apiv1beta/snippet_metadata.google.cloud.workflows.v1beta.json b/internal/generated/snippets/workflows/apiv1beta/snippet_metadata.google.cloud.workflows.v1beta.json new file mode 100644 index 000000000000..ddfcf28ea99c --- /dev/null +++ b/internal/generated/snippets/workflows/apiv1beta/snippet_metadata.google.cloud.workflows.v1beta.json @@ -0,0 +1,245 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/workflows/apiv1beta", + "version": "1.10.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.workflows.v1beta", + "version": "v1beta" + } + ] + }, + "snippets": [ + { + "regionTag": "workflows_v1beta_generated_Workflows_CreateWorkflow_sync", + "title": "workflows CreateWorkflow Sample", + "description": "CreateWorkflow creates a new workflow. If a workflow with the specified name already\nexists in the specified project and location, the long running operation\nwill return ALREADY_EXISTS error.", + "file": "Client/CreateWorkflow/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateWorkflow", + "fullName": "google.cloud.workflows.v1beta.Client.CreateWorkflow", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "workflowspb.CreateWorkflowRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "CreateWorkflowOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.workflows.v1beta.Client" + }, + "method": { + "shortName": "CreateWorkflow", + "fullName": "google.cloud.workflows.v1beta.Workflows.CreateWorkflow", + "service": { + "shortName": "Workflows", + "fullName": "google.cloud.workflows.v1beta.Workflows" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + }, + { + "regionTag": "workflows_v1beta_generated_Workflows_DeleteWorkflow_sync", + "title": "workflows DeleteWorkflow Sample", + "description": "DeleteWorkflow deletes a workflow with the specified name.\nThis method also cancels and deletes all running executions of the\nworkflow.", + "file": "Client/DeleteWorkflow/main.go", + "language": "GO", + "clientMethod": { + "shortName": "DeleteWorkflow", + "fullName": "google.cloud.workflows.v1beta.Client.DeleteWorkflow", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "workflowspb.DeleteWorkflowRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "DeleteWorkflowOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.workflows.v1beta.Client" + }, + "method": { + "shortName": "DeleteWorkflow", + "fullName": "google.cloud.workflows.v1beta.Workflows.DeleteWorkflow", + "service": { + "shortName": "Workflows", + "fullName": "google.cloud.workflows.v1beta.Workflows" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 56, + "type": "FULL" + } + ] + }, + { + "regionTag": "workflows_v1beta_generated_Workflows_GetWorkflow_sync", + "title": "workflows GetWorkflow Sample", + "description": "GetWorkflow gets details of a single Workflow.", + "file": "Client/GetWorkflow/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetWorkflow", + "fullName": "google.cloud.workflows.v1beta.Client.GetWorkflow", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "workflowspb.GetWorkflowRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "workflowspb.Workflow", + "client": { + "shortName": "Client", + "fullName": "google.cloud.workflows.v1beta.Client" + }, + "method": { + "shortName": "GetWorkflow", + "fullName": "google.cloud.workflows.v1beta.Workflows.GetWorkflow", + "service": { + "shortName": "Workflows", + "fullName": "google.cloud.workflows.v1beta.Workflows" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "workflows_v1beta_generated_Workflows_ListWorkflows_sync", + "title": "workflows ListWorkflows Sample", + "description": "ListWorkflows lists Workflows in a given project and location.\nThe default order is not specified.", + "file": "Client/ListWorkflows/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListWorkflows", + "fullName": "google.cloud.workflows.v1beta.Client.ListWorkflows", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "workflowspb.ListWorkflowsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "WorkflowIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.workflows.v1beta.Client" + }, + "method": { + "shortName": "ListWorkflows", + "fullName": "google.cloud.workflows.v1beta.Workflows.ListWorkflows", + "service": { + "shortName": "Workflows", + "fullName": "google.cloud.workflows.v1beta.Workflows" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + }, + { + "regionTag": "workflows_v1beta_generated_Workflows_UpdateWorkflow_sync", + "title": "workflows UpdateWorkflow Sample", + "description": "UpdateWorkflow updates an existing workflow.\nRunning this method has no impact on already running executions of the\nworkflow. A new revision of the workflow may be created as a result of a\nsuccessful update operation. In that case, such revision will be used\nin new workflow executions.", + "file": "Client/UpdateWorkflow/main.go", + "language": "GO", + "clientMethod": { + "shortName": "UpdateWorkflow", + "fullName": "google.cloud.workflows.v1beta.Client.UpdateWorkflow", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "workflowspb.UpdateWorkflowRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "UpdateWorkflowOperation", + "client": { + "shortName": "Client", + "fullName": "google.cloud.workflows.v1beta.Client" + }, + "method": { + "shortName": "UpdateWorkflow", + "fullName": "google.cloud.workflows.v1beta.Workflows.UpdateWorkflow", + "service": { + "shortName": "Workflows", + "fullName": "google.cloud.workflows.v1beta.Workflows" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 58, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/workflows/executions/apiv1/Client/CancelExecution/main.go b/internal/generated/snippets/workflows/executions/apiv1/Client/CancelExecution/main.go index 30f32937f045..82d3cd7a756c 100644 --- a/internal/generated/snippets/workflows/executions/apiv1/Client/CancelExecution/main.go +++ b/internal/generated/snippets/workflows/executions/apiv1/Client/CancelExecution/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" executions "cloud.google.com/go/workflows/executions/apiv1" - executionspb "google.golang.org/genproto/googleapis/cloud/workflows/executions/v1" + executionspb "cloud.google.com/go/workflows/executions/apiv1/executionspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &executionspb.CancelExecutionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/workflows/executions/v1#CancelExecutionRequest. + // See https://pkg.go.dev/cloud.google.com/go/workflows/executions/apiv1/executionspb#CancelExecutionRequest. } resp, err := c.CancelExecution(ctx, req) if err != nil { diff --git a/internal/generated/snippets/workflows/executions/apiv1/Client/CreateExecution/main.go b/internal/generated/snippets/workflows/executions/apiv1/Client/CreateExecution/main.go index 0145b326211b..d5933cb7bef2 100644 --- a/internal/generated/snippets/workflows/executions/apiv1/Client/CreateExecution/main.go +++ b/internal/generated/snippets/workflows/executions/apiv1/Client/CreateExecution/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" executions "cloud.google.com/go/workflows/executions/apiv1" - executionspb "google.golang.org/genproto/googleapis/cloud/workflows/executions/v1" + executionspb "cloud.google.com/go/workflows/executions/apiv1/executionspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &executionspb.CreateExecutionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/workflows/executions/v1#CreateExecutionRequest. + // See https://pkg.go.dev/cloud.google.com/go/workflows/executions/apiv1/executionspb#CreateExecutionRequest. } resp, err := c.CreateExecution(ctx, req) if err != nil { diff --git a/internal/generated/snippets/workflows/executions/apiv1/Client/GetExecution/main.go b/internal/generated/snippets/workflows/executions/apiv1/Client/GetExecution/main.go index 8e49cf8a4a67..6e0944916f78 100644 --- a/internal/generated/snippets/workflows/executions/apiv1/Client/GetExecution/main.go +++ b/internal/generated/snippets/workflows/executions/apiv1/Client/GetExecution/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" executions "cloud.google.com/go/workflows/executions/apiv1" - executionspb "google.golang.org/genproto/googleapis/cloud/workflows/executions/v1" + executionspb "cloud.google.com/go/workflows/executions/apiv1/executionspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &executionspb.GetExecutionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/workflows/executions/v1#GetExecutionRequest. + // See https://pkg.go.dev/cloud.google.com/go/workflows/executions/apiv1/executionspb#GetExecutionRequest. } resp, err := c.GetExecution(ctx, req) if err != nil { diff --git a/internal/generated/snippets/workflows/executions/apiv1/Client/ListExecutions/main.go b/internal/generated/snippets/workflows/executions/apiv1/Client/ListExecutions/main.go index acf03cc95e93..6b38eb33d547 100644 --- a/internal/generated/snippets/workflows/executions/apiv1/Client/ListExecutions/main.go +++ b/internal/generated/snippets/workflows/executions/apiv1/Client/ListExecutions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" executions "cloud.google.com/go/workflows/executions/apiv1" + executionspb "cloud.google.com/go/workflows/executions/apiv1/executionspb" "google.golang.org/api/iterator" - executionspb "google.golang.org/genproto/googleapis/cloud/workflows/executions/v1" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &executionspb.ListExecutionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/workflows/executions/v1#ListExecutionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/workflows/executions/apiv1/executionspb#ListExecutionsRequest. } it := c.ListExecutions(ctx, req) for { diff --git a/internal/generated/snippets/workflows/executions/apiv1/snippet_metadata.google.cloud.workflows.executions.v1.json b/internal/generated/snippets/workflows/executions/apiv1/snippet_metadata.google.cloud.workflows.executions.v1.json new file mode 100644 index 000000000000..cf2ebb446dff --- /dev/null +++ b/internal/generated/snippets/workflows/executions/apiv1/snippet_metadata.google.cloud.workflows.executions.v1.json @@ -0,0 +1,199 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/workflows/executions/apiv1", + "version": "1.10.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.workflows.executions.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "workflowexecutions_v1_generated_Executions_CancelExecution_sync", + "title": "workflowexecutions CancelExecution Sample", + "description": "CancelExecution cancels an execution of the given name.", + "file": "Client/CancelExecution/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelExecution", + "fullName": "google.cloud.workflows.executions.v1.Client.CancelExecution", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "executionspb.CancelExecutionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "executionspb.Execution", + "client": { + "shortName": "Client", + "fullName": "google.cloud.workflows.executions.v1.Client" + }, + "method": { + "shortName": "CancelExecution", + "fullName": "google.cloud.workflows.executions.v1.Executions.CancelExecution", + "service": { + "shortName": "Executions", + "fullName": "google.cloud.workflows.executions.v1.Executions" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "workflowexecutions_v1_generated_Executions_CreateExecution_sync", + "title": "workflowexecutions CreateExecution Sample", + "description": "CreateExecution creates a new execution using the latest revision of the given workflow.", + "file": "Client/CreateExecution/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateExecution", + "fullName": "google.cloud.workflows.executions.v1.Client.CreateExecution", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "executionspb.CreateExecutionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "executionspb.Execution", + "client": { + "shortName": "Client", + "fullName": "google.cloud.workflows.executions.v1.Client" + }, + "method": { + "shortName": "CreateExecution", + "fullName": "google.cloud.workflows.executions.v1.Executions.CreateExecution", + "service": { + "shortName": "Executions", + "fullName": "google.cloud.workflows.executions.v1.Executions" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "workflowexecutions_v1_generated_Executions_GetExecution_sync", + "title": "workflowexecutions GetExecution Sample", + "description": "GetExecution returns an execution of the given name.", + "file": "Client/GetExecution/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetExecution", + "fullName": "google.cloud.workflows.executions.v1.Client.GetExecution", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "executionspb.GetExecutionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "executionspb.Execution", + "client": { + "shortName": "Client", + "fullName": "google.cloud.workflows.executions.v1.Client" + }, + "method": { + "shortName": "GetExecution", + "fullName": "google.cloud.workflows.executions.v1.Executions.GetExecution", + "service": { + "shortName": "Executions", + "fullName": "google.cloud.workflows.executions.v1.Executions" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "workflowexecutions_v1_generated_Executions_ListExecutions_sync", + "title": "workflowexecutions ListExecutions Sample", + "description": "ListExecutions returns a list of executions which belong to the workflow with\nthe given name. The method returns executions of all workflow\nrevisions. Returned executions are ordered by their start time (newest\nfirst).", + "file": "Client/ListExecutions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListExecutions", + "fullName": "google.cloud.workflows.executions.v1.Client.ListExecutions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "executionspb.ListExecutionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ExecutionIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.workflows.executions.v1.Client" + }, + "method": { + "shortName": "ListExecutions", + "fullName": "google.cloud.workflows.executions.v1.Executions.ListExecutions", + "service": { + "shortName": "Executions", + "fullName": "google.cloud.workflows.executions.v1.Executions" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/generated/snippets/workflows/executions/apiv1beta/Client/CancelExecution/main.go b/internal/generated/snippets/workflows/executions/apiv1beta/Client/CancelExecution/main.go index aa37cdb518cf..9017a6d77092 100644 --- a/internal/generated/snippets/workflows/executions/apiv1beta/Client/CancelExecution/main.go +++ b/internal/generated/snippets/workflows/executions/apiv1beta/Client/CancelExecution/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" executions "cloud.google.com/go/workflows/executions/apiv1beta" - executionspb "google.golang.org/genproto/googleapis/cloud/workflows/executions/v1beta" + executionspb "cloud.google.com/go/workflows/executions/apiv1beta/executionspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &executionspb.CancelExecutionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/workflows/executions/v1beta#CancelExecutionRequest. + // See https://pkg.go.dev/cloud.google.com/go/workflows/executions/apiv1beta/executionspb#CancelExecutionRequest. } resp, err := c.CancelExecution(ctx, req) if err != nil { diff --git a/internal/generated/snippets/workflows/executions/apiv1beta/Client/CreateExecution/main.go b/internal/generated/snippets/workflows/executions/apiv1beta/Client/CreateExecution/main.go index 7229e11cd46b..5f44d6a852ac 100644 --- a/internal/generated/snippets/workflows/executions/apiv1beta/Client/CreateExecution/main.go +++ b/internal/generated/snippets/workflows/executions/apiv1beta/Client/CreateExecution/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" executions "cloud.google.com/go/workflows/executions/apiv1beta" - executionspb "google.golang.org/genproto/googleapis/cloud/workflows/executions/v1beta" + executionspb "cloud.google.com/go/workflows/executions/apiv1beta/executionspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &executionspb.CreateExecutionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/workflows/executions/v1beta#CreateExecutionRequest. + // See https://pkg.go.dev/cloud.google.com/go/workflows/executions/apiv1beta/executionspb#CreateExecutionRequest. } resp, err := c.CreateExecution(ctx, req) if err != nil { diff --git a/internal/generated/snippets/workflows/executions/apiv1beta/Client/GetExecution/main.go b/internal/generated/snippets/workflows/executions/apiv1beta/Client/GetExecution/main.go index 3941573e2f6e..f16887fad3f4 100644 --- a/internal/generated/snippets/workflows/executions/apiv1beta/Client/GetExecution/main.go +++ b/internal/generated/snippets/workflows/executions/apiv1beta/Client/GetExecution/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,11 +22,16 @@ import ( "context" executions "cloud.google.com/go/workflows/executions/apiv1beta" - executionspb "google.golang.org/genproto/googleapis/cloud/workflows/executions/v1beta" + executionspb "cloud.google.com/go/workflows/executions/apiv1beta/executionspb" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -35,7 +40,7 @@ func main() { req := &executionspb.GetExecutionRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/workflows/executions/v1beta#GetExecutionRequest. + // See https://pkg.go.dev/cloud.google.com/go/workflows/executions/apiv1beta/executionspb#GetExecutionRequest. } resp, err := c.GetExecution(ctx, req) if err != nil { diff --git a/internal/generated/snippets/workflows/executions/apiv1beta/Client/ListExecutions/main.go b/internal/generated/snippets/workflows/executions/apiv1beta/Client/ListExecutions/main.go index 9f156626d82c..b353cfb9647f 100644 --- a/internal/generated/snippets/workflows/executions/apiv1beta/Client/ListExecutions/main.go +++ b/internal/generated/snippets/workflows/executions/apiv1beta/Client/ListExecutions/main.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,12 +22,17 @@ import ( "context" executions "cloud.google.com/go/workflows/executions/apiv1beta" + executionspb "cloud.google.com/go/workflows/executions/apiv1beta/executionspb" "google.golang.org/api/iterator" - executionspb "google.golang.org/genproto/googleapis/cloud/workflows/executions/v1beta" ) func main() { ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := executions.NewClient(ctx) if err != nil { // TODO: Handle error. @@ -36,7 +41,7 @@ func main() { req := &executionspb.ListExecutionsRequest{ // TODO: Fill request struct fields. - // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/workflows/executions/v1beta#ListExecutionsRequest. + // See https://pkg.go.dev/cloud.google.com/go/workflows/executions/apiv1beta/executionspb#ListExecutionsRequest. } it := c.ListExecutions(ctx, req) for { diff --git a/internal/generated/snippets/workflows/executions/apiv1beta/snippet_metadata.google.cloud.workflows.executions.v1beta.json b/internal/generated/snippets/workflows/executions/apiv1beta/snippet_metadata.google.cloud.workflows.executions.v1beta.json new file mode 100644 index 000000000000..6cea33842c7d --- /dev/null +++ b/internal/generated/snippets/workflows/executions/apiv1beta/snippet_metadata.google.cloud.workflows.executions.v1beta.json @@ -0,0 +1,199 @@ +{ + "clientLibrary": { + "name": "cloud.google.com/go/workflows/executions/apiv1beta", + "version": "1.10.0", + "language": "GO", + "apis": [ + { + "id": "google.cloud.workflows.executions.v1beta", + "version": "v1beta" + } + ] + }, + "snippets": [ + { + "regionTag": "workflowexecutions_v1beta_generated_Executions_CancelExecution_sync", + "title": "workflowexecutions CancelExecution Sample", + "description": "CancelExecution cancels an execution of the given name.", + "file": "Client/CancelExecution/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CancelExecution", + "fullName": "google.cloud.workflows.executions.v1beta.Client.CancelExecution", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "executionspb.CancelExecutionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "executionspb.Execution", + "client": { + "shortName": "Client", + "fullName": "google.cloud.workflows.executions.v1beta.Client" + }, + "method": { + "shortName": "CancelExecution", + "fullName": "google.cloud.workflows.executions.v1beta.Executions.CancelExecution", + "service": { + "shortName": "Executions", + "fullName": "google.cloud.workflows.executions.v1beta.Executions" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "workflowexecutions_v1beta_generated_Executions_CreateExecution_sync", + "title": "workflowexecutions CreateExecution Sample", + "description": "CreateExecution creates a new execution using the latest revision of the given workflow.", + "file": "Client/CreateExecution/main.go", + "language": "GO", + "clientMethod": { + "shortName": "CreateExecution", + "fullName": "google.cloud.workflows.executions.v1beta.Client.CreateExecution", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "executionspb.CreateExecutionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "executionspb.Execution", + "client": { + "shortName": "Client", + "fullName": "google.cloud.workflows.executions.v1beta.Client" + }, + "method": { + "shortName": "CreateExecution", + "fullName": "google.cloud.workflows.executions.v1beta.Executions.CreateExecution", + "service": { + "shortName": "Executions", + "fullName": "google.cloud.workflows.executions.v1beta.Executions" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "workflowexecutions_v1beta_generated_Executions_GetExecution_sync", + "title": "workflowexecutions GetExecution Sample", + "description": "GetExecution returns an execution of the given name.", + "file": "Client/GetExecution/main.go", + "language": "GO", + "clientMethod": { + "shortName": "GetExecution", + "fullName": "google.cloud.workflows.executions.v1beta.Client.GetExecution", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "executionspb.GetExecutionRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "executionspb.Execution", + "client": { + "shortName": "Client", + "fullName": "google.cloud.workflows.executions.v1beta.Client" + }, + "method": { + "shortName": "GetExecution", + "fullName": "google.cloud.workflows.executions.v1beta.Executions.GetExecution", + "service": { + "shortName": "Executions", + "fullName": "google.cloud.workflows.executions.v1beta.Executions" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 53, + "type": "FULL" + } + ] + }, + { + "regionTag": "workflowexecutions_v1beta_generated_Executions_ListExecutions_sync", + "title": "workflowexecutions ListExecutions Sample", + "description": "ListExecutions returns a list of executions which belong to the workflow with\nthe given name. The method returns executions of all workflow\nrevisions. Returned executions are ordered by their start time (newest\nfirst).", + "file": "Client/ListExecutions/main.go", + "language": "GO", + "clientMethod": { + "shortName": "ListExecutions", + "fullName": "google.cloud.workflows.executions.v1beta.Client.ListExecutions", + "parameters": [ + { + "type": "context.Context", + "name": "ctx" + }, + { + "type": "executionspb.ListExecutionsRequest", + "name": "req" + }, + { + "type": "...gax.CallOption", + "name": "opts" + } + ], + "resultType": "ExecutionIterator", + "client": { + "shortName": "Client", + "fullName": "google.cloud.workflows.executions.v1beta.Client" + }, + "method": { + "shortName": "ListExecutions", + "fullName": "google.cloud.workflows.executions.v1beta.Executions.ListExecutions", + "service": { + "shortName": "Executions", + "fullName": "google.cloud.workflows.executions.v1beta.Executions" + } + } + }, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 18, + "end": 60, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/internal/godocfx/go.mod b/internal/godocfx/go.mod index 655196a95312..ff04f8f6a4bc 100644 --- a/internal/godocfx/go.mod +++ b/internal/godocfx/go.mod @@ -32,7 +32,7 @@ require ( golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect google.golang.org/api v0.106.0 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6 // indirect + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect google.golang.org/grpc v1.51.0 // indirect google.golang.org/protobuf v1.28.1 // indirect ) diff --git a/internal/godocfx/go.sum b/internal/godocfx/go.sum index 85a7af8d20ee..ead475ac9b9f 100644 --- a/internal/godocfx/go.sum +++ b/internal/godocfx/go.sum @@ -660,8 +660,8 @@ google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6/go.mod h1:rZS5c/ZV google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE= google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= -google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6 h1:uUn6GsgKK2eCI0bWeRMgRCcqDaQXYDuB+5tXA5Xeg/8= -google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/iot/apiv1/doc.go b/iot/apiv1/doc.go index 55ee8e4b2a0c..5d78604b952a 100644 --- a/iot/apiv1/doc.go +++ b/iot/apiv1/doc.go @@ -20,6 +20,11 @@ // Registers and manages IoT (Internet of Things) devices that connect to the // Google Cloud Platform. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package iot // import "cloud.google.com/go/iot/apiv1" import ( diff --git a/iot/go.mod b/iot/go.mod index bfce97d584f8..bbee39585873 100644 --- a/iot/go.mod +++ b/iot/go.mod @@ -5,23 +5,24 @@ go 1.19 require ( cloud.google.com/go v0.107.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/iot/go.sum b/iot/go.sum index b9c603c36f7d..5bb37591c325 100644 --- a/iot/go.sum +++ b/iot/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/kms/apiv1/doc.go b/kms/apiv1/doc.go index 8c0d7430d4db..0fb3ebff169c 100644 --- a/kms/apiv1/doc.go +++ b/kms/apiv1/doc.go @@ -20,6 +20,11 @@ // Manages keys and performs cryptographic operations in a central cloud // service, for direct use by other cloud resources and applications. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package kms // import "cloud.google.com/go/kms/apiv1" import ( diff --git a/kms/go.mod b/kms/go.mod index 598ecd955d44..75fb747853c3 100644 --- a/kms/go.mod +++ b/kms/go.mod @@ -6,23 +6,23 @@ require ( cloud.google.com/go v0.107.0 cloud.google.com/go/iam v0.8.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/kms/go.sum b/kms/go.sum index 06f8c7991f43..5bb37591c325 100644 --- a/kms/go.sum +++ b/kms/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= @@ -46,8 +46,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -90,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -107,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/language/apiv1/doc.go b/language/apiv1/doc.go index 4608c7fd66ce..87d7f0491b08 100644 --- a/language/apiv1/doc.go +++ b/language/apiv1/doc.go @@ -21,6 +21,11 @@ // analysis, entity recognition, entity sentiment analysis, and other text // annotations, to developers. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package language // import "cloud.google.com/go/language/apiv1" import ( diff --git a/language/apiv1beta2/doc.go b/language/apiv1beta2/doc.go index 23a3cb0e9750..0ce1742dcd4a 100644 --- a/language/apiv1beta2/doc.go +++ b/language/apiv1beta2/doc.go @@ -23,6 +23,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -77,9 +82,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package language // import "cloud.google.com/go/language/apiv1beta2" import ( diff --git a/language/go.mod b/language/go.mod index d7391b5a6045..b6ea98f4d49e 100644 --- a/language/go.mod +++ b/language/go.mod @@ -5,23 +5,23 @@ go 1.19 require ( cloud.google.com/go v0.107.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/language/go.sum b/language/go.sum index b9c603c36f7d..fccaca102b68 100644 --- a/language/go.sum +++ b/language/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/lifesciences/apiv2beta/doc.go b/lifesciences/apiv2beta/doc.go index 20fd980cd3c8..85d1f61b0ca0 100644 --- a/lifesciences/apiv2beta/doc.go +++ b/lifesciences/apiv2beta/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -81,9 +86,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package lifesciences // import "cloud.google.com/go/lifesciences/apiv2beta" import ( diff --git a/lifesciences/go.mod b/lifesciences/go.mod index 4c0b339555e9..1ebf216c8ca5 100644 --- a/lifesciences/go.mod +++ b/lifesciences/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/lifesciences/go.sum b/lifesciences/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/lifesciences/go.sum +++ b/lifesciences/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/logging/apiv2/doc.go b/logging/apiv2/doc.go index 834bd421ee9c..033fe01b0023 100644 --- a/logging/apiv2/doc.go +++ b/logging/apiv2/doc.go @@ -19,6 +19,11 @@ // // Writes log entries and manages your Cloud Logging configuration. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -71,9 +76,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package logging // import "cloud.google.com/go/logging/apiv2" import ( diff --git a/logging/go.mod b/logging/go.mod index d89d0d550962..abb604f20a08 100644 --- a/logging/go.mod +++ b/logging/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.107.0 - cloud.google.com/go/compute/metadata v0.2.2 + cloud.google.com/go/compute/metadata v0.2.3 cloud.google.com/go/iam v0.8.0 cloud.google.com/go/longrunning v0.3.0 cloud.google.com/go/storage v1.28.1 @@ -13,21 +13,21 @@ require ( github.com/googleapis/gax-go/v2 v2.7.0 go.opencensus.io v0.24.0 golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.13.0 // indirect + cloud.google.com/go/compute v1.14.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/google/uuid v1.3.0 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/sync v0.1.0 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/logging/go.sum b/logging/go.sum index 50e620b12571..e3c218c7e2f2 100644 --- a/logging/go.sum +++ b/logging/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute v1.13.0 h1:AYrLkB8NPdDRslNp4Jxmzrhdr03fUAIDbiGFjLWowoU= -cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE= -cloud.google.com/go/compute/metadata v0.2.2 h1:aWKAjYaBaOSrpKl57+jnS/3fJRQnxL7TvR/u1VVbt6k= -cloud.google.com/go/compute/metadata v0.2.2/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= @@ -51,8 +51,8 @@ github.com/google/martian/v3 v3.2.1 h1:d8MncMlErDFTwQGBK1xhv026j9kqhvw1Qv9IbWT1V github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -97,8 +97,8 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= @@ -107,8 +107,8 @@ golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBn golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -116,8 +116,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd h1:OjndDrsik+Gt+e6fs45z9AxiewiKyLKYpA45W5Kpkks= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/longrunning/autogen/doc.go b/longrunning/autogen/doc.go index b4a87e235785..58b74d96057f 100644 --- a/longrunning/autogen/doc.go +++ b/longrunning/autogen/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in alpha. It is not stable, and is likely to change. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package longrunning // import "cloud.google.com/go/longrunning/autogen" import ( diff --git a/longrunning/go.mod b/longrunning/go.mod index e7e35b6e4584..b51ec40fbc23 100644 --- a/longrunning/go.mod +++ b/longrunning/go.mod @@ -6,22 +6,22 @@ require ( cloud.google.com/go v0.107.0 github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/longrunning/go.sum b/longrunning/go.sum index 7d7698fce5f2..a7f3f9616793 100644 --- a/longrunning/go.sum +++ b/longrunning/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/managedidentities/apiv1/doc.go b/managedidentities/apiv1/doc.go index 953a8353fc83..eb22739314fe 100644 --- a/managedidentities/apiv1/doc.go +++ b/managedidentities/apiv1/doc.go @@ -21,6 +21,11 @@ // managing a highly available, hardened service running Microsoft Active // Directory (AD). // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package managedidentities // import "cloud.google.com/go/managedidentities/apiv1" import ( diff --git a/managedidentities/go.mod b/managedidentities/go.mod index 2eea2ba58ec9..533a5ca64b08 100644 --- a/managedidentities/go.mod +++ b/managedidentities/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/managedidentities/go.sum b/managedidentities/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/managedidentities/go.sum +++ b/managedidentities/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/maps/addressvalidation/apiv1/doc.go b/maps/addressvalidation/apiv1/doc.go index a12e5a815efe..ea53cb8125c4 100644 --- a/maps/addressvalidation/apiv1/doc.go +++ b/maps/addressvalidation/apiv1/doc.go @@ -24,6 +24,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -78,9 +83,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package addressvalidation // import "cloud.google.com/go/maps/addressvalidation/apiv1" import ( diff --git a/maps/go.mod b/maps/go.mod index 4ebb1e56721c..28201f049890 100644 --- a/maps/go.mod +++ b/maps/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/maps/go.sum b/maps/go.sum index b197d3308493..067d9e20ab06 100644 --- a/maps/go.sum +++ b/maps/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/maps/routing/apiv2/doc.go b/maps/routing/apiv2/doc.go index a6c46a1d3de6..d2b4f9da7d40 100644 --- a/maps/routing/apiv2/doc.go +++ b/maps/routing/apiv2/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package routing // import "cloud.google.com/go/maps/routing/apiv2" import ( diff --git a/maps/routing/apiv2/routes_client.go b/maps/routing/apiv2/routes_client.go index f2c4773689f9..10f407f99a08 100644 --- a/maps/routing/apiv2/routes_client.go +++ b/maps/routing/apiv2/routes_client.go @@ -363,6 +363,7 @@ func (c *routesGRPCClient) ComputeRoutes(ctx context.Context, req *routingpb.Com func (c *routesGRPCClient) ComputeRouteMatrix(ctx context.Context, req *routingpb.ComputeRouteMatrixRequest, opts ...gax.CallOption) (routingpb.Routes_ComputeRouteMatrixClient, error) { ctx = insertMetadata(ctx, c.xGoogMetadata) + opts = append((*c.CallOptions).ComputeRouteMatrix[0:len((*c.CallOptions).ComputeRouteMatrix):len((*c.CallOptions).ComputeRouteMatrix)], opts...) var resp routingpb.Routes_ComputeRouteMatrixClient err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { var err error diff --git a/mediatranslation/apiv1beta1/doc.go b/mediatranslation/apiv1beta1/doc.go index 8f5498fc4ece..b0829eae7f50 100644 --- a/mediatranslation/apiv1beta1/doc.go +++ b/mediatranslation/apiv1beta1/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -88,9 +93,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package mediatranslation // import "cloud.google.com/go/mediatranslation/apiv1beta1" import ( diff --git a/mediatranslation/go.mod b/mediatranslation/go.mod index 77f341ac6897..6ddc2204c9d3 100644 --- a/mediatranslation/go.mod +++ b/mediatranslation/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/mediatranslation/go.sum b/mediatranslation/go.sum index b197d3308493..067d9e20ab06 100644 --- a/mediatranslation/go.sum +++ b/mediatranslation/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/memcache/apiv1/doc.go b/memcache/apiv1/doc.go index dc9f61a3e693..f2e92681427e 100644 --- a/memcache/apiv1/doc.go +++ b/memcache/apiv1/doc.go @@ -20,6 +20,11 @@ // Google Cloud Memorystore for Memcached API is used for creating and // managing Memcached instances in GCP. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package memcache // import "cloud.google.com/go/memcache/apiv1" import ( diff --git a/memcache/apiv1beta2/doc.go b/memcache/apiv1beta2/doc.go index 9e1e52909bae..a2b03a031717 100644 --- a/memcache/apiv1beta2/doc.go +++ b/memcache/apiv1beta2/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -82,9 +87,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package memcache // import "cloud.google.com/go/memcache/apiv1beta2" import ( diff --git a/memcache/go.mod b/memcache/go.mod index f8aa2930234d..ecf3a6cd7e46 100644 --- a/memcache/go.mod +++ b/memcache/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/memcache/go.sum b/memcache/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/memcache/go.sum +++ b/memcache/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/metastore/apiv1/doc.go b/metastore/apiv1/doc.go index 0fdfdb9ec94e..43b0237be2b1 100644 --- a/metastore/apiv1/doc.go +++ b/metastore/apiv1/doc.go @@ -20,6 +20,11 @@ // The Dataproc Metastore API is used to manage the lifecycle and // configuration of metastore services. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package metastore // import "cloud.google.com/go/metastore/apiv1" import ( diff --git a/metastore/apiv1alpha/doc.go b/metastore/apiv1alpha/doc.go index ba950fd84b6e..ce26936dc227 100644 --- a/metastore/apiv1alpha/doc.go +++ b/metastore/apiv1alpha/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in alpha. It is not stable, and is likely to change. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -82,9 +87,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package metastore // import "cloud.google.com/go/metastore/apiv1alpha" import ( diff --git a/metastore/apiv1beta/doc.go b/metastore/apiv1beta/doc.go index 63110c3e83f2..63c9dc21f4b0 100644 --- a/metastore/apiv1beta/doc.go +++ b/metastore/apiv1beta/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -82,9 +87,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package metastore // import "cloud.google.com/go/metastore/apiv1beta" import ( diff --git a/metastore/go.mod b/metastore/go.mod index 32188bbbf3b4..6a73e6e6ce12 100644 --- a/metastore/go.mod +++ b/metastore/go.mod @@ -5,24 +5,25 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201204527-e3fa12d562f3 + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/metastore/go.sum b/metastore/go.sum index b6c630acda3b..299518b5132c 100644 --- a/metastore/go.sum +++ b/metastore/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201204527-e3fa12d562f3 h1:BCcW+lhENGqZ2R2MsM9oty220E8vY9E4QC1Tq05hN1E= -google.golang.org/genproto v0.0.0-20221201204527-e3fa12d562f3/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/monitoring/apiv3/v2/doc.go b/monitoring/apiv3/v2/doc.go index c0ca83dfea47..4633f5dabd26 100644 --- a/monitoring/apiv3/v2/doc.go +++ b/monitoring/apiv3/v2/doc.go @@ -19,6 +19,11 @@ // // Manages your Cloud Monitoring data and configurations. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package monitoring // import "cloud.google.com/go/monitoring/apiv3/v2" import ( diff --git a/monitoring/dashboard/apiv1/doc.go b/monitoring/dashboard/apiv1/doc.go index 41dd082afeed..eec499221e89 100644 --- a/monitoring/dashboard/apiv1/doc.go +++ b/monitoring/dashboard/apiv1/doc.go @@ -19,6 +19,11 @@ // // Manages your Cloud Monitoring data and configurations. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package dashboard // import "cloud.google.com/go/monitoring/dashboard/apiv1" import ( diff --git a/monitoring/go.mod b/monitoring/go.mod index 596b5e2b61f8..fe30ddddeda2 100644 --- a/monitoring/go.mod +++ b/monitoring/go.mod @@ -8,7 +8,7 @@ require ( github.com/golang/protobuf v1.5.2 github.com/googleapis/gax-go/v2 v2.7.0 google.golang.org/api v0.106.0 - google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) diff --git a/monitoring/go.sum b/monitoring/go.sum index c2cb5cf5c3e8..271a0755e3ee 100644 --- a/monitoring/go.sum +++ b/monitoring/go.sum @@ -106,8 +106,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6 h1:uUn6GsgKK2eCI0bWeRMgRCcqDaQXYDuB+5tXA5Xeg/8= -google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/monitoring/metricsscope/apiv1/doc.go b/monitoring/metricsscope/apiv1/doc.go index 78ca68016c67..82d60e103047 100644 --- a/monitoring/metricsscope/apiv1/doc.go +++ b/monitoring/metricsscope/apiv1/doc.go @@ -24,6 +24,11 @@ // concepts found in the table entries, read the Cloud Monitoring // documentation (at https://cloud.google.com/monitoring/docs). // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -78,9 +83,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package metricsscope // import "cloud.google.com/go/monitoring/metricsscope/apiv1" import ( diff --git a/networkconnectivity/apiv1/doc.go b/networkconnectivity/apiv1/doc.go index f9433022a317..caa9e3e03d12 100644 --- a/networkconnectivity/apiv1/doc.go +++ b/networkconnectivity/apiv1/doc.go @@ -19,6 +19,11 @@ // // This API enables connectivity with and between Google Cloud resources. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package networkconnectivity // import "cloud.google.com/go/networkconnectivity/apiv1" import ( diff --git a/networkconnectivity/apiv1alpha1/doc.go b/networkconnectivity/apiv1alpha1/doc.go index ebcd929f7dad..53733c60e782 100644 --- a/networkconnectivity/apiv1alpha1/doc.go +++ b/networkconnectivity/apiv1alpha1/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in alpha. It is not stable, and is likely to change. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -82,9 +87,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package networkconnectivity // import "cloud.google.com/go/networkconnectivity/apiv1alpha1" import ( diff --git a/networkconnectivity/go.mod b/networkconnectivity/go.mod index 1f9bb8fdef0b..32e198457f64 100644 --- a/networkconnectivity/go.mod +++ b/networkconnectivity/go.mod @@ -5,24 +5,25 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/networkconnectivity/go.sum b/networkconnectivity/go.sum index 1957b0c5def1..299518b5132c 100644 --- a/networkconnectivity/go.sum +++ b/networkconnectivity/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/networkmanagement/apiv1/doc.go b/networkmanagement/apiv1/doc.go index 71d536806190..cb34d424dd60 100644 --- a/networkmanagement/apiv1/doc.go +++ b/networkmanagement/apiv1/doc.go @@ -20,6 +20,11 @@ // The Network Management API provides a collection of network performance // monitoring and diagnostic capabilities. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package networkmanagement // import "cloud.google.com/go/networkmanagement/apiv1" import ( diff --git a/networkmanagement/go.mod b/networkmanagement/go.mod index 4f2a96dc8d5e..b5ffddd467a2 100644 --- a/networkmanagement/go.mod +++ b/networkmanagement/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/networkmanagement/go.sum b/networkmanagement/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/networkmanagement/go.sum +++ b/networkmanagement/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/networksecurity/apiv1beta1/doc.go b/networksecurity/apiv1beta1/doc.go index 2b3a0ac8da06..f30417234989 100644 --- a/networksecurity/apiv1beta1/doc.go +++ b/networksecurity/apiv1beta1/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package networksecurity // import "cloud.google.com/go/networksecurity/apiv1beta1" import ( diff --git a/networksecurity/go.mod b/networksecurity/go.mod index e3355ac5724d..7404c08838cf 100644 --- a/networksecurity/go.mod +++ b/networksecurity/go.mod @@ -5,24 +5,25 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/networksecurity/go.sum b/networksecurity/go.sum index 1957b0c5def1..299518b5132c 100644 --- a/networksecurity/go.sum +++ b/networksecurity/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/notebooks/apiv1/doc.go b/notebooks/apiv1/doc.go index cedf5dad48fc..bcec703e346f 100644 --- a/notebooks/apiv1/doc.go +++ b/notebooks/apiv1/doc.go @@ -19,6 +19,11 @@ // // Notebooks API is used to manage notebook resources in Google Cloud. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package notebooks // import "cloud.google.com/go/notebooks/apiv1" import ( diff --git a/notebooks/apiv1beta1/doc.go b/notebooks/apiv1beta1/doc.go index 0792446bc4bc..52e3564dde22 100644 --- a/notebooks/apiv1beta1/doc.go +++ b/notebooks/apiv1beta1/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -81,9 +86,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package notebooks // import "cloud.google.com/go/notebooks/apiv1beta1" import ( diff --git a/notebooks/go.mod b/notebooks/go.mod index 0e98b8567506..83cc544b0343 100644 --- a/notebooks/go.mod +++ b/notebooks/go.mod @@ -5,24 +5,25 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/notebooks/go.sum b/notebooks/go.sum index 1957b0c5def1..299518b5132c 100644 --- a/notebooks/go.sum +++ b/notebooks/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/optimization/apiv1/doc.go b/optimization/apiv1/doc.go index bd2e06c9822e..7676fe38446e 100644 --- a/optimization/apiv1/doc.go +++ b/optimization/apiv1/doc.go @@ -21,6 +21,11 @@ // optimization use cases starting with optimal route planning for vehicle // fleets. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package optimization // import "cloud.google.com/go/optimization/apiv1" import ( diff --git a/optimization/go.mod b/optimization/go.mod index e383fc579f73..4adc51387176 100644 --- a/optimization/go.mod +++ b/optimization/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/optimization/go.sum b/optimization/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/optimization/go.sum +++ b/optimization/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/orchestration/airflow/service/apiv1/doc.go b/orchestration/airflow/service/apiv1/doc.go index c5ef9f8a33f5..4f3381cf4016 100644 --- a/orchestration/airflow/service/apiv1/doc.go +++ b/orchestration/airflow/service/apiv1/doc.go @@ -19,6 +19,11 @@ // // Manages Apache Airflow environments on Google Cloud Platform. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -78,9 +83,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package service // import "cloud.google.com/go/orchestration/airflow/service/apiv1" import ( diff --git a/orchestration/go.mod b/orchestration/go.mod index 80589d56958b..a84581ac2ded 100644 --- a/orchestration/go.mod +++ b/orchestration/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201204527-e3fa12d562f3 + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/orchestration/go.sum b/orchestration/go.sum index b6c630acda3b..b629d3d5cb73 100644 --- a/orchestration/go.sum +++ b/orchestration/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201204527-e3fa12d562f3 h1:BCcW+lhENGqZ2R2MsM9oty220E8vY9E4QC1Tq05hN1E= -google.golang.org/genproto v0.0.0-20221201204527-e3fa12d562f3/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/orgpolicy/apiv2/doc.go b/orgpolicy/apiv2/doc.go index a96d7c96ff28..1359b00dfcb6 100644 --- a/orgpolicy/apiv2/doc.go +++ b/orgpolicy/apiv2/doc.go @@ -20,6 +20,11 @@ // The Org Policy API allows users to configure governance rules on their GCP // resources across the Cloud Resource Hierarchy. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package orgpolicy // import "cloud.google.com/go/orgpolicy/apiv2" import ( diff --git a/orgpolicy/go.mod b/orgpolicy/go.mod index 07c685f9ca70..9e2335cf71e1 100644 --- a/orgpolicy/go.mod +++ b/orgpolicy/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/orgpolicy/go.sum b/orgpolicy/go.sum index b197d3308493..067d9e20ab06 100644 --- a/orgpolicy/go.sum +++ b/orgpolicy/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/osconfig/agentendpoint/apiv1/agent_endpoint_client.go b/osconfig/agentendpoint/apiv1/agent_endpoint_client.go index 0a4725071eb6..7404627a096a 100644 --- a/osconfig/agentendpoint/apiv1/agent_endpoint_client.go +++ b/osconfig/agentendpoint/apiv1/agent_endpoint_client.go @@ -292,6 +292,7 @@ func (c *gRPCClient) Close() error { func (c *gRPCClient) ReceiveTaskNotification(ctx context.Context, req *agentendpointpb.ReceiveTaskNotificationRequest, opts ...gax.CallOption) (agentendpointpb.AgentEndpointService_ReceiveTaskNotificationClient, error) { ctx = insertMetadata(ctx, c.xGoogMetadata) + opts = append((*c.CallOptions).ReceiveTaskNotification[0:len((*c.CallOptions).ReceiveTaskNotification):len((*c.CallOptions).ReceiveTaskNotification)], opts...) var resp agentendpointpb.AgentEndpointService_ReceiveTaskNotificationClient err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { var err error diff --git a/osconfig/agentendpoint/apiv1/doc.go b/osconfig/agentendpoint/apiv1/doc.go index 30801461d9bd..133f3f5831dc 100644 --- a/osconfig/agentendpoint/apiv1/doc.go +++ b/osconfig/agentendpoint/apiv1/doc.go @@ -20,6 +20,11 @@ // OS management tools that can be used for patch management, patch // compliance, and configuration management on VM instances. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -51,9 +56,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package agentendpoint // import "cloud.google.com/go/osconfig/agentendpoint/apiv1" import ( diff --git a/osconfig/agentendpoint/apiv1beta/agent_endpoint_client.go b/osconfig/agentendpoint/apiv1beta/agent_endpoint_client.go index 770fad404d87..553afde3867a 100644 --- a/osconfig/agentendpoint/apiv1beta/agent_endpoint_client.go +++ b/osconfig/agentendpoint/apiv1beta/agent_endpoint_client.go @@ -293,6 +293,7 @@ func (c *gRPCClient) Close() error { func (c *gRPCClient) ReceiveTaskNotification(ctx context.Context, req *agentendpointpb.ReceiveTaskNotificationRequest, opts ...gax.CallOption) (agentendpointpb.AgentEndpointService_ReceiveTaskNotificationClient, error) { ctx = insertMetadata(ctx, c.xGoogMetadata) + opts = append((*c.CallOptions).ReceiveTaskNotification[0:len((*c.CallOptions).ReceiveTaskNotification):len((*c.CallOptions).ReceiveTaskNotification)], opts...) var resp agentendpointpb.AgentEndpointService_ReceiveTaskNotificationClient err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { var err error diff --git a/osconfig/agentendpoint/apiv1beta/doc.go b/osconfig/agentendpoint/apiv1beta/doc.go index 035858da8615..c87032ba2772 100644 --- a/osconfig/agentendpoint/apiv1beta/doc.go +++ b/osconfig/agentendpoint/apiv1beta/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -53,9 +58,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package agentendpoint // import "cloud.google.com/go/osconfig/agentendpoint/apiv1beta" import ( diff --git a/osconfig/apiv1/doc.go b/osconfig/apiv1/doc.go index 316b6cc41387..653409690dd3 100644 --- a/osconfig/apiv1/doc.go +++ b/osconfig/apiv1/doc.go @@ -20,6 +20,11 @@ // OS management tools that can be used for patch management, patch // compliance, and configuration management on VM instances. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package osconfig // import "cloud.google.com/go/osconfig/apiv1" import ( diff --git a/osconfig/apiv1alpha/doc.go b/osconfig/apiv1alpha/doc.go index 0b423ee39c09..7e06ca828ccd 100644 --- a/osconfig/apiv1alpha/doc.go +++ b/osconfig/apiv1alpha/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in alpha. It is not stable, and is likely to change. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -81,9 +86,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package osconfig // import "cloud.google.com/go/osconfig/apiv1alpha" import ( diff --git a/osconfig/apiv1beta/doc.go b/osconfig/apiv1beta/doc.go index c014297b9613..13b5fcbd8b74 100644 --- a/osconfig/apiv1beta/doc.go +++ b/osconfig/apiv1beta/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package osconfig // import "cloud.google.com/go/osconfig/apiv1beta" import ( diff --git a/osconfig/go.mod b/osconfig/go.mod index a1d48f5b2995..be24d5466743 100644 --- a/osconfig/go.mod +++ b/osconfig/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/osconfig/go.sum b/osconfig/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/osconfig/go.sum +++ b/osconfig/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/oslogin/apiv1/doc.go b/oslogin/apiv1/doc.go index 5fbd505e3500..8b3a27039f18 100644 --- a/oslogin/apiv1/doc.go +++ b/oslogin/apiv1/doc.go @@ -20,6 +20,11 @@ // You can use OS Login to manage access to your VM instances using IAM // roles. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package oslogin // import "cloud.google.com/go/oslogin/apiv1" import ( diff --git a/oslogin/apiv1beta/doc.go b/oslogin/apiv1beta/doc.go index 1e823bdddd67..0a0ac666bc79 100644 --- a/oslogin/apiv1beta/doc.go +++ b/oslogin/apiv1beta/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package oslogin // import "cloud.google.com/go/oslogin/apiv1beta" import ( diff --git a/oslogin/go.mod b/oslogin/go.mod index ae5a26cce453..8c78dc10762b 100644 --- a/oslogin/go.mod +++ b/oslogin/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/oslogin/go.sum b/oslogin/go.sum index b197d3308493..067d9e20ab06 100644 --- a/oslogin/go.sum +++ b/oslogin/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/phishingprotection/apiv1beta1/doc.go b/phishingprotection/apiv1beta1/doc.go index d6cb4e0001e8..bbe07ef30cd0 100644 --- a/phishingprotection/apiv1beta1/doc.go +++ b/phishingprotection/apiv1beta1/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package phishingprotection // import "cloud.google.com/go/phishingprotection/apiv1beta1" import ( diff --git a/phishingprotection/go.mod b/phishingprotection/go.mod index ccfd1bbb7324..c9602bcd4277 100644 --- a/phishingprotection/go.mod +++ b/phishingprotection/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/phishingprotection/go.sum b/phishingprotection/go.sum index b197d3308493..067d9e20ab06 100644 --- a/phishingprotection/go.sum +++ b/phishingprotection/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/policytroubleshooter/apiv1/doc.go b/policytroubleshooter/apiv1/doc.go index 2e6e816d5fbe..8521b7219129 100644 --- a/policytroubleshooter/apiv1/doc.go +++ b/policytroubleshooter/apiv1/doc.go @@ -17,6 +17,11 @@ // Package policytroubleshooter is an auto-generated package for the // Policy Troubleshooter API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -71,9 +76,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package policytroubleshooter // import "cloud.google.com/go/policytroubleshooter/apiv1" import ( diff --git a/policytroubleshooter/go.mod b/policytroubleshooter/go.mod index cd8b555b9b45..27ea63b57c45 100644 --- a/policytroubleshooter/go.mod +++ b/policytroubleshooter/go.mod @@ -4,23 +4,24 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/policytroubleshooter/go.sum b/policytroubleshooter/go.sum index b197d3308493..475f34dc59b9 100644 --- a/policytroubleshooter/go.sum +++ b/policytroubleshooter/go.sum @@ -1,9 +1,11 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/privatecatalog/apiv1beta1/doc.go b/privatecatalog/apiv1beta1/doc.go index 0a0e4b18f511..b285530508eb 100644 --- a/privatecatalog/apiv1beta1/doc.go +++ b/privatecatalog/apiv1beta1/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -82,9 +87,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package privatecatalog // import "cloud.google.com/go/privatecatalog/apiv1beta1" import ( diff --git a/privatecatalog/go.mod b/privatecatalog/go.mod index 500ee83b0b87..eb3ab38dbe3c 100644 --- a/privatecatalog/go.mod +++ b/privatecatalog/go.mod @@ -4,24 +4,24 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect cloud.google.com/go/longrunning v0.3.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/privatecatalog/go.sum b/privatecatalog/go.sum index 6e7734f34dbd..6d56ad8e9dd2 100644 --- a/privatecatalog/go.sum +++ b/privatecatalog/go.sum @@ -1,8 +1,8 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/pubsub/apiv1/doc.go b/pubsub/apiv1/doc.go index 582a255118f2..d50cae466ecc 100644 --- a/pubsub/apiv1/doc.go +++ b/pubsub/apiv1/doc.go @@ -20,6 +20,11 @@ // Provides reliable, many-to-many, asynchronous messaging between // applications. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package pubsub // import "cloud.google.com/go/pubsub/apiv1" import ( diff --git a/pubsub/apiv1/gapic_metadata.json b/pubsub/apiv1/gapic_metadata.json index 2446ebbab3c7..4ef77c12650f 100644 --- a/pubsub/apiv1/gapic_metadata.json +++ b/pubsub/apiv1/gapic_metadata.json @@ -144,6 +144,11 @@ "grpc": { "libraryClient": "SchemaClient", "rpcs": { + "CommitSchema": { + "methods": [ + "CommitSchema" + ] + }, "CreateSchema": { "methods": [ "CreateSchema" @@ -154,6 +159,11 @@ "DeleteSchema" ] }, + "DeleteSchemaRevision": { + "methods": [ + "DeleteSchemaRevision" + ] + }, "GetIamPolicy": { "methods": [ "GetIamPolicy" @@ -164,11 +174,21 @@ "GetSchema" ] }, + "ListSchemaRevisions": { + "methods": [ + "ListSchemaRevisions" + ] + }, "ListSchemas": { "methods": [ "ListSchemas" ] }, + "RollbackSchema": { + "methods": [ + "RollbackSchema" + ] + }, "SetIamPolicy": { "methods": [ "SetIamPolicy" @@ -194,6 +214,11 @@ "rest": { "libraryClient": "SchemaClient", "rpcs": { + "CommitSchema": { + "methods": [ + "CommitSchema" + ] + }, "CreateSchema": { "methods": [ "CreateSchema" @@ -204,6 +229,11 @@ "DeleteSchema" ] }, + "DeleteSchemaRevision": { + "methods": [ + "DeleteSchemaRevision" + ] + }, "GetIamPolicy": { "methods": [ "GetIamPolicy" @@ -214,11 +244,21 @@ "GetSchema" ] }, + "ListSchemaRevisions": { + "methods": [ + "ListSchemaRevisions" + ] + }, "ListSchemas": { "methods": [ "ListSchemas" ] }, + "RollbackSchema": { + "methods": [ + "RollbackSchema" + ] + }, "SetIamPolicy": { "methods": [ "SetIamPolicy" diff --git a/pubsub/apiv1/pubsubpb/pubsub.pb.go b/pubsub/apiv1/pubsubpb/pubsub.pb.go index c513f2b3b151..0572f8683f55 100644 --- a/pubsub/apiv1/pubsubpb/pubsub.pb.go +++ b/pubsub/apiv1/pubsubpb/pubsub.pb.go @@ -226,6 +226,14 @@ type SchemaSettings struct { Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` // The encoding of messages validated against `schema`. Encoding Encoding `protobuf:"varint,2,opt,name=encoding,proto3,enum=google.pubsub.v1.Encoding" json:"encoding,omitempty"` + // The minimum (inclusive) revision allowed for validating messages. If empty + // or not present, allow any revision to be validated against last_revision or + // any revision created before. + FirstRevisionId string `protobuf:"bytes,3,opt,name=first_revision_id,json=firstRevisionId,proto3" json:"first_revision_id,omitempty"` + // The maximum (inclusive) revision allowed for validating messages. If empty + // or not present, allow any revision to be validated against first_revision + // or any revision created after. + LastRevisionId string `protobuf:"bytes,4,opt,name=last_revision_id,json=lastRevisionId,proto3" json:"last_revision_id,omitempty"` } func (x *SchemaSettings) Reset() { @@ -274,6 +282,20 @@ func (x *SchemaSettings) GetEncoding() Encoding { return Encoding_ENCODING_UNSPECIFIED } +func (x *SchemaSettings) GetFirstRevisionId() string { + if x != nil { + return x.FirstRevisionId + } + return "" +} + +func (x *SchemaSettings) GetLastRevisionId() string { + if x != nil { + return x.LastRevisionId + } + return "" +} + // A topic resource. type Topic struct { state protoimpl.MessageState @@ -3780,7 +3802,7 @@ var file_google_pubsub_v1_pubsub_proto_rawDesc = []byte{ 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x19, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, - 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x86, 0x01, 0x0a, 0x0e, + 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xdc, 0x01, 0x0a, 0x0e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x3c, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x24, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1e, 0x0a, 0x1c, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, @@ -3789,851 +3811,857 @@ var file_google_pubsub_v1_pubsub_proto_rawDesc = []byte{ 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x65, 0x6e, 0x63, 0x6f, - 0x64, 0x69, 0x6e, 0x67, 0x22, 0xb7, 0x04, 0x0a, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x17, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, - 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, - 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x12, 0x5c, 0x0a, 0x16, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, - 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, - 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x14, 0x6d, 0x65, + 0x64, 0x69, 0x6e, 0x67, 0x12, 0x2a, 0x0a, 0x11, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x72, 0x65, + 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0f, 0x66, 0x69, 0x72, 0x73, 0x74, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, + 0x12, 0x28, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6c, 0x61, 0x73, 0x74, + 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xb7, 0x04, 0x0a, 0x05, 0x54, + 0x6f, 0x70, 0x69, 0x63, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, + 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, + 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x5c, 0x0a, 0x16, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x12, 0x20, 0x0a, 0x0c, 0x6b, 0x6d, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6b, 0x6d, 0x73, 0x4b, 0x65, 0x79, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x49, 0x0a, 0x0f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x73, - 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, + 0x63, 0x79, 0x52, 0x14, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x0a, 0x0c, 0x6b, 0x6d, 0x73, 0x5f, + 0x6b, 0x65, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x6b, 0x6d, 0x73, 0x4b, 0x65, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x49, 0x0a, 0x0f, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, + 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x61, 0x74, 0x69, 0x73, 0x66, 0x69, + 0x65, 0x73, 0x5f, 0x70, 0x7a, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x73, 0x61, + 0x74, 0x69, 0x73, 0x66, 0x69, 0x65, 0x73, 0x50, 0x7a, 0x73, 0x12, 0x57, 0x0a, 0x1a, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 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, 0x18, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x54, + 0xea, 0x41, 0x51, 0x0a, 0x1b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x12, 0x21, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x7d, 0x12, 0x0f, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x2d, 0x74, 0x6f, + 0x70, 0x69, 0x63, 0x5f, 0x22, 0xb4, 0x02, 0x0a, 0x0d, 0x50, 0x75, 0x62, 0x73, 0x75, 0x62, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x4f, 0x0a, 0x0a, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x75, 0x62, 0x73, 0x75, 0x62, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x0c, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x72, 0x64, + 0x65, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x1a, 0x3d, 0x0a, 0x0f, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4c, 0x0a, 0x0f, 0x47, + 0x65, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, + 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x23, 0xe0, + 0x41, 0x02, 0xfa, 0x41, 0x1d, 0x0a, 0x1b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x22, 0x8a, 0x01, 0x0a, 0x12, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x32, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, + 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, + 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x8d, 0x01, 0x0a, 0x0e, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x05, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x23, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1d, + 0x0a, 0x1b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x05, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x12, 0x40, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x73, 0x75, 0x62, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, 0x32, 0x0a, 0x0f, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, + 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x64, 0x73, 0x22, 0x9e, 0x01, 0x0a, 0x11, 0x4c, + 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x4d, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x33, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, + 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6d, 0x0a, 0x12, 0x4c, + 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, + 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x06, 0x74, 0x6f, 0x70, 0x69, + 0x63, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, + 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x96, 0x01, 0x0a, 0x1d, 0x4c, + 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x05, + 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x23, 0xe0, 0x41, 0x02, + 0xfa, 0x41, 0x1d, 0x0a, 0x1b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, + 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x22, 0x97, 0x01, 0x0a, 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0d, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x27, 0xfa, + 0x41, 0x24, 0x0a, 0x22, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x92, 0x01, + 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x6e, 0x61, 0x70, 0x73, + 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x05, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x23, 0xe0, 0x41, 0x02, 0xfa, + 0x41, 0x1d, 0x0a, 0x1b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, + 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, + 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, + 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x22, 0x62, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, + 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x12, 0x26, + 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, + 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x4f, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x05, + 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x23, 0xe0, 0x41, 0x02, + 0xfa, 0x41, 0x1d, 0x0a, 0x1b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x22, 0x6b, 0x0a, 0x19, 0x44, 0x65, 0x74, 0x61, 0x63, + 0x68, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, + 0x41, 0x24, 0x0a, 0x22, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x1c, 0x0a, 0x1a, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x53, 0x75, + 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x80, 0x0a, 0x0a, 0x0c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x05, + 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x23, 0xe0, 0x41, 0x02, + 0xfa, 0x41, 0x1d, 0x0a, 0x1b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x3d, 0x0a, 0x0b, 0x70, 0x75, 0x73, 0x68, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x75, 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0a, 0x70, 0x75, 0x73, 0x68, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x49, 0x0a, 0x0f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, + 0x76, 0x31, 0x2e, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x52, 0x0e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x30, 0x0a, 0x14, 0x61, 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, + 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x12, 0x61, 0x63, 0x6b, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x65, 0x63, 0x6f, + 0x6e, 0x64, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6e, 0x5f, 0x61, 0x63, + 0x6b, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x13, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6e, 0x41, 0x63, 0x6b, 0x65, 0x64, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x1a, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x5f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 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, 0x18, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, + 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x42, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x4f, 0x0a, 0x11, + 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x69, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x10, 0x65, 0x78, 0x70, + 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a, + 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x50, 0x0a, 0x12, 0x64, 0x65, 0x61, 0x64, 0x5f, 0x6c, 0x65, + 0x74, 0x74, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, + 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x61, 0x64, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x10, 0x64, 0x65, 0x61, 0x64, 0x4c, 0x65, 0x74, 0x74, 0x65, + 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x40, 0x0a, 0x0c, 0x72, 0x65, 0x74, 0x72, 0x79, + 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, - 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, - 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, - 0x23, 0x0a, 0x0d, 0x73, 0x61, 0x74, 0x69, 0x73, 0x66, 0x69, 0x65, 0x73, 0x5f, 0x70, 0x7a, 0x73, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x73, 0x61, 0x74, 0x69, 0x73, 0x66, 0x69, 0x65, - 0x73, 0x50, 0x7a, 0x73, 0x12, 0x57, 0x0a, 0x1a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, - 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x08, 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, 0x18, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x74, 0x65, - 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x39, 0x0a, - 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x54, 0xea, 0x41, 0x51, 0x0a, 0x1b, 0x70, - 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x21, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x74, - 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x7d, 0x12, 0x0f, 0x5f, - 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x2d, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x22, 0xb4, - 0x02, 0x0a, 0x0d, 0x50, 0x75, 0x62, 0x73, 0x75, 0x62, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x12, 0x4f, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x73, - 0x75, 0x62, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x0c, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x54, - 0x69, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x5f, - 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x72, 0x64, 0x65, 0x72, - 0x69, 0x6e, 0x67, 0x4b, 0x65, 0x79, 0x1a, 0x3d, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4c, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x69, - 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x23, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1d, 0x0a, - 0x1b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x22, 0x8a, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, - 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x05, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x70, - 0x69, 0x63, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x40, - 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, - 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, - 0x22, 0x8d, 0x01, 0x0a, 0x0e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x23, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1d, 0x0a, 0x1b, 0x70, 0x75, 0x62, 0x73, - 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x40, - 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x73, 0x75, 0x62, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, - 0x22, 0x32, 0x0a, 0x0f, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x69, - 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x49, 0x64, 0x73, 0x22, 0x9e, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, - 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x07, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x33, 0xe0, 0x41, 0x02, - 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, - 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, - 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6d, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, - 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x74, - 0x6f, 0x70, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x6f, 0x70, 0x69, 0x63, 0x52, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x12, 0x26, 0x0a, 0x0f, - 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x96, 0x01, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, - 0x69, 0x63, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x23, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1d, 0x0a, 0x1b, 0x70, - 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, - 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x97, 0x01, - 0x0a, 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x75, 0x62, 0x73, 0x63, + 0x2e, 0x52, 0x65, 0x74, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0b, 0x72, 0x65, + 0x74, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x74, + 0x61, 0x63, 0x68, 0x65, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x64, 0x65, 0x74, + 0x61, 0x63, 0x68, 0x65, 0x64, 0x12, 0x3f, 0x0a, 0x1c, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, + 0x65, 0x78, 0x61, 0x63, 0x74, 0x6c, 0x79, 0x5f, 0x6f, 0x6e, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x6c, + 0x69, 0x76, 0x65, 0x72, 0x79, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x19, 0x65, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x45, 0x78, 0x61, 0x63, 0x74, 0x6c, 0x79, 0x4f, 0x6e, 0x63, 0x65, 0x44, 0x65, + 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x12, 0x67, 0x0a, 0x20, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x11, 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, 0x42, 0x03, 0xe0, 0x41, 0x03, + 0x52, 0x1d, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x3f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3e, 0x0a, 0x05, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, + 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x41, + 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x52, 0x45, 0x53, 0x4f, 0x55, + 0x52, 0x43, 0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x3a, 0x58, 0xea, 0x41, 0x55, + 0x0a, 0x22, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x22, 0x95, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x74, 0x72, 0x79, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x42, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, + 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 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, 0x0e, 0x6d, 0x69, 0x6e, 0x69, 0x6d, + 0x75, 0x6d, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x12, 0x42, 0x0a, 0x0f, 0x6d, 0x61, 0x78, + 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x6d, + 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x22, 0x72, 0x0a, + 0x10, 0x44, 0x65, 0x61, 0x64, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x12, 0x2a, 0x0a, 0x11, 0x64, 0x65, 0x61, 0x64, 0x5f, 0x6c, 0x65, 0x74, 0x74, 0x65, 0x72, + 0x5f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, + 0x61, 0x64, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x32, 0x0a, + 0x15, 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x61, 0x74, + 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x6d, 0x61, + 0x78, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, + 0x73, 0x22, 0x3f, 0x0a, 0x10, 0x45, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2b, 0x0a, 0x03, 0x74, 0x74, 0x6c, 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, 0x03, 0x74, + 0x74, 0x6c, 0x22, 0xfd, 0x02, 0x0a, 0x0a, 0x50, 0x75, 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, + 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x75, 0x73, 0x68, 0x45, 0x6e, + 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x4c, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, + 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x6f, 0x69, 0x64, 0x63, 0x5f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4f, 0x69, 0x64, 0x63, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x48, 0x00, 0x52, 0x09, 0x6f, 0x69, 0x64, 0x63, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x5b, 0x0a, + 0x09, 0x4f, 0x69, 0x64, 0x63, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x65, 0x6d, + 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1a, + 0x0a, 0x08, 0x61, 0x75, 0x64, 0x69, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x61, 0x75, 0x64, 0x69, 0x65, 0x6e, 0x63, 0x65, 0x1a, 0x3d, 0x0a, 0x0f, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x17, 0x0a, 0x15, 0x61, 0x75, 0x74, + 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x22, 0xd1, 0x02, 0x0a, 0x0e, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x75, + 0x73, 0x65, 0x5f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x75, 0x73, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x77, + 0x72, 0x69, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2e, 0x0a, 0x13, + 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f, 0x66, 0x69, 0x65, + 0x6c, 0x64, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x64, 0x72, 0x6f, 0x70, 0x55, + 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x41, 0x0a, 0x05, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x42, + 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, + 0x65, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, + 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x50, + 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, + 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, + 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x4d, 0x49, 0x53, 0x4d, + 0x41, 0x54, 0x43, 0x48, 0x10, 0x04, 0x22, 0x8e, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x63, 0x65, 0x69, + 0x76, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x63, + 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x63, 0x6b, 0x49, + 0x64, 0x12, 0x39, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, + 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x73, 0x75, 0x62, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x29, 0x0a, 0x10, + 0x64, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x64, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, + 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x22, 0x68, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x53, 0x75, + 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x4e, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, + 0x22, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0xa6, 0x01, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x47, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xa5, 0x01, 0x0a, 0x18, 0x4c, + 0x69, 0x73, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x33, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2d, + 0x0a, 0x2b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, + 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, + 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x22, 0x89, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x4d, 0x0a, 0x0d, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x27, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x70, 0x75, - 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x0d, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, - 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x92, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, - 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x23, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1d, 0x0a, 0x1b, 0x70, 0x75, - 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x62, 0x0a, 0x1a, - 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x73, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, - 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x22, 0x4f, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x23, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1d, 0x0a, 0x1b, 0x70, - 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x22, 0x6b, 0x0a, 0x19, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x53, 0x75, 0x62, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, - 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x70, 0x75, - 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x1c, - 0x0a, 0x1a, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x80, 0x0a, 0x0a, - 0x0c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x23, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1d, 0x0a, 0x1b, 0x70, - 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x12, 0x3d, 0x0a, 0x0b, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0a, 0x70, 0x75, 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x12, 0x49, 0x0a, 0x0f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x67, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x62, 0x69, 0x67, - 0x71, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x30, 0x0a, 0x14, 0x61, - 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, - 0x6e, 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x61, 0x63, 0x6b, 0x44, 0x65, - 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x32, 0x0a, - 0x15, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6e, 0x5f, 0x61, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x72, 0x65, - 0x74, 0x61, 0x69, 0x6e, 0x41, 0x63, 0x6b, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x73, 0x12, 0x57, 0x0a, 0x1a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x74, - 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x08, 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, 0x18, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, - 0x6f, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x06, 0x6c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, - 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x36, - 0x0a, 0x17, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x15, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x72, - 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x4f, 0x0a, 0x11, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, - 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x10, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, - 0x50, 0x0a, 0x12, 0x64, 0x65, 0x61, 0x64, 0x5f, 0x6c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x5f, 0x70, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x65, 0x61, 0x64, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, - 0x10, 0x64, 0x65, 0x61, 0x64, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x12, 0x40, 0x0a, 0x0c, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x79, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0b, 0x72, 0x65, 0x74, 0x72, 0x79, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x18, - 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x64, 0x65, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x12, - 0x3f, 0x0a, 0x1c, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x78, 0x61, 0x63, 0x74, 0x6c, - 0x79, 0x5f, 0x6f, 0x6e, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x18, - 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x19, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x61, - 0x63, 0x74, 0x6c, 0x79, 0x4f, 0x6e, 0x63, 0x65, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, - 0x12, 0x67, 0x0a, 0x20, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x5f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x11, 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, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x1d, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, - 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3f, 0x0a, 0x05, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, - 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3e, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, - 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, - 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, - 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, 0x52, - 0x52, 0x4f, 0x52, 0x10, 0x02, 0x3a, 0x58, 0xea, 0x41, 0x55, 0x0a, 0x22, 0x70, 0x75, 0x62, 0x73, - 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x7d, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x22, - 0x95, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x74, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, - 0x42, 0x0a, 0x0f, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x6f, - 0x66, 0x66, 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, 0x0e, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x42, 0x61, 0x63, 0x6b, - 0x6f, 0x66, 0x66, 0x12, 0x42, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x62, - 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, - 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x22, 0x72, 0x0a, 0x10, 0x44, 0x65, 0x61, 0x64, 0x4c, - 0x65, 0x74, 0x74, 0x65, 0x72, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2a, 0x0a, 0x11, 0x64, - 0x65, 0x61, 0x64, 0x5f, 0x6c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x61, 0x64, 0x4c, 0x65, 0x74, 0x74, - 0x65, 0x72, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x32, 0x0a, 0x15, 0x6d, 0x61, 0x78, 0x5f, 0x64, - 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x6d, 0x61, 0x78, 0x44, 0x65, 0x6c, 0x69, 0x76, - 0x65, 0x72, 0x79, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x22, 0x3f, 0x0a, 0x10, 0x45, - 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, - 0x2b, 0x0a, 0x03, 0x74, 0x74, 0x6c, 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, 0x03, 0x74, 0x74, 0x6c, 0x22, 0xfd, 0x02, 0x0a, - 0x0a, 0x50, 0x75, 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x70, - 0x75, 0x73, 0x68, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0c, 0x70, 0x75, 0x73, 0x68, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, - 0x12, 0x4c, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, - 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x47, - 0x0a, 0x0a, 0x6f, 0x69, 0x64, 0x63, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, - 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2e, 0x4f, 0x69, 0x64, 0x63, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x69, - 0x64, 0x63, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x5b, 0x0a, 0x09, 0x4f, 0x69, 0x64, 0x63, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x75, 0x64, 0x69, - 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x75, 0x64, 0x69, - 0x65, 0x6e, 0x63, 0x65, 0x1a, 0x3d, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x42, 0x17, 0x0a, 0x15, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x22, 0xd1, 0x02, 0x0a, - 0x0e, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x5f, 0x74, 0x6f, 0x70, - 0x69, 0x63, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0e, 0x75, 0x73, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, - 0x25, 0x0a, 0x0e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x77, 0x72, 0x69, 0x74, 0x65, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2e, 0x0a, 0x13, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x75, - 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x11, 0x64, 0x72, 0x6f, 0x70, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x41, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x69, 0x67, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, - 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x65, 0x0a, 0x05, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, - 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, - 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, - 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x53, - 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x4d, 0x49, 0x53, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x10, 0x04, - 0x22, 0x8e, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x07, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x75, 0x62, 0x73, 0x75, 0x62, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x6c, 0x69, 0x76, 0x65, - 0x72, 0x79, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x0f, 0x64, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, - 0x74, 0x22, 0x68, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x12, 0x44, 0x0a, 0x0d, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6b, + 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, - 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa6, 0x01, 0x0a, 0x19, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x0c, 0x73, 0x75, 0x62, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, - 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, - 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, - 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, - 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xa5, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x62, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x4d, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x33, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x89, 0x01, 0x0a, - 0x19, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x73, 0x75, - 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, - 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, - 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6b, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, - 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xad, 0x01, 0x0a, 0x17, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, - 0x50, 0x75, 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x4e, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, - 0x22, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x42, 0x0a, 0x0b, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x70, 0x75, 0x73, 0x68, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xbb, 0x01, 0x0a, 0x0b, 0x50, 0x75, 0x6c, 0x6c, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, - 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x12, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x5f, - 0x69, 0x6d, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x6c, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x08, 0x42, 0x05, 0x18, 0x01, 0xe0, 0x41, 0x01, 0x52, 0x11, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x49, 0x6d, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x6c, 0x79, 0x12, 0x26, 0x0a, 0x0c, 0x6d, - 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x05, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x73, 0x22, 0x5e, 0x0a, 0x0c, 0x50, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, - 0x31, 0x2e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x52, 0x10, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x73, 0x22, 0xbf, 0x01, 0x0a, 0x18, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x41, 0x63, - 0x6b, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x4e, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, - 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x1c, 0x0a, 0x07, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x61, 0x63, 0x6b, 0x49, 0x64, 0x73, 0x12, 0x35, - 0x0a, 0x14, 0x61, 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, - 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, - 0x02, 0x52, 0x12, 0x61, 0x63, 0x6b, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x65, - 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x82, 0x01, 0x0a, 0x12, 0x41, 0x63, 0x6b, 0x6e, 0x6f, 0x77, - 0x6c, 0x65, 0x64, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x0c, - 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x70, 0x75, 0x62, 0x73, - 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, - 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x07, - 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, - 0x41, 0x02, 0x52, 0x06, 0x61, 0x63, 0x6b, 0x49, 0x64, 0x73, 0x22, 0xbd, 0x03, 0x0a, 0x14, 0x53, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x50, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, - 0x24, 0x0a, 0x22, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x61, 0x63, 0x6b, 0x49, 0x64, 0x73, 0x12, 0x36, 0x0a, 0x17, - 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x5f, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x5f, - 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x15, 0x6d, - 0x6f, 0x64, 0x69, 0x66, 0x79, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x65, 0x63, - 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x35, 0x0a, 0x17, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x5f, 0x64, - 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x14, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x44, 0x65, 0x61, - 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x41, 0x63, 0x6b, 0x49, 0x64, 0x73, 0x12, 0x42, 0x0a, 0x1b, 0x73, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x61, 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, - 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, - 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x18, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x41, 0x63, 0x6b, - 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, - 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x18, - 0x6d, 0x61, 0x78, 0x5f, 0x6f, 0x75, 0x74, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, - 0x6d, 0x61, 0x78, 0x4f, 0x75, 0x74, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x6d, 0x61, 0x78, 0x5f, 0x6f, 0x75, - 0x74, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x6d, 0x61, 0x78, 0x4f, 0x75, 0x74, 0x73, 0x74, 0x61, - 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0xf6, 0x06, 0x0a, 0x15, 0x53, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x50, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, - 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, - 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x52, 0x10, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x73, 0x12, 0x7a, 0x0a, 0x18, 0x61, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, - 0x64, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x50, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, - 0x41, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x17, 0x61, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, - 0x65, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x8e, 0x01, 0x0a, 0x20, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x5f, 0x61, 0x63, 0x6b, 0x5f, - 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x50, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x41, 0x63, 0x6b, 0x44, 0x65, - 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x1d, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x41, 0x63, 0x6b, 0x44, 0x65, 0x61, - 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x77, 0x0a, 0x17, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, - 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x50, - 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x75, 0x62, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, - 0x65, 0x73, 0x52, 0x16, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x86, 0x01, 0x0a, 0x17, 0x41, - 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, - 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x61, 0x63, 0x6b, 0x49, 0x64, 0x73, 0x12, - 0x26, 0x0a, 0x0f, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x61, 0x63, 0x6b, 0x5f, 0x69, - 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x41, 0x63, 0x6b, 0x49, 0x64, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x75, 0x6e, 0x6f, 0x72, 0x64, - 0x65, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x0f, 0x75, 0x6e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x65, 0x64, 0x41, 0x63, 0x6b, - 0x49, 0x64, 0x73, 0x1a, 0x60, 0x0a, 0x1d, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x41, 0x63, 0x6b, - 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x61, 0x63, 0x6b, 0x49, 0x64, 0x73, 0x12, 0x26, 0x0a, - 0x0f, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x41, - 0x63, 0x6b, 0x49, 0x64, 0x73, 0x1a, 0x95, 0x01, 0x0a, 0x16, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, - 0x12, 0x41, 0x0a, 0x1d, 0x65, 0x78, 0x61, 0x63, 0x74, 0x6c, 0x79, 0x5f, 0x6f, 0x6e, 0x63, 0x65, - 0x5f, 0x64, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x65, 0x78, 0x61, 0x63, 0x74, 0x6c, 0x79, - 0x4f, 0x6e, 0x63, 0x65, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x18, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6f, - 0x72, 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x72, - 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4a, 0x04, 0x08, - 0x02, 0x10, 0x03, 0x22, 0xab, 0x02, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x26, 0xe0, 0x41, 0x02, - 0xfa, 0x41, 0x20, 0x0a, 0x1e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6e, 0x61, 0x70, 0x73, - 0x68, 0x6f, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4e, 0x0a, 0x0c, 0x73, 0x75, 0x62, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xad, 0x01, 0x0a, 0x17, + 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x50, 0x75, 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, + 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x0b, 0x70, 0x75, 0x73, 0x68, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x75, 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, + 0x0a, 0x70, 0x75, 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xbb, 0x01, 0x0a, 0x0b, + 0x50, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x0c, 0x73, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x70, 0x75, 0x62, 0x73, 0x75, + 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x12, 0x72, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x5f, 0x69, 0x6d, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x6c, + 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x42, 0x05, 0x18, 0x01, 0xe0, 0x41, 0x01, 0x52, 0x11, + 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x49, 0x6d, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x6c, + 0x79, 0x12, 0x26, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x6d, 0x61, + 0x78, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, 0x5e, 0x0a, 0x0c, 0x50, 0x75, 0x6c, + 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x11, 0x72, 0x65, 0x63, + 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, + 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x10, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, 0xbf, 0x01, 0x0a, 0x18, 0x4d, 0x6f, + 0x64, 0x69, 0x66, 0x79, 0x41, 0x63, 0x6b, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, + 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x07, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, + 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x61, 0x63, + 0x6b, 0x49, 0x64, 0x73, 0x12, 0x35, 0x0a, 0x14, 0x61, 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x61, 0x64, + 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x12, 0x61, 0x63, 0x6b, 0x44, 0x65, 0x61, 0x64, + 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x82, 0x01, 0x0a, 0x12, + 0x41, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, + 0x0a, 0x22, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x07, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x61, 0x63, 0x6b, 0x49, 0x64, 0x73, + 0x22, 0xbd, 0x03, 0x0a, 0x14, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x50, 0x75, + 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x0c, 0x73, 0x75, 0x62, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x75, 0x62, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x06, 0x6c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, - 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x22, 0x96, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x08, 0x73, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, - 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, - 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xdc, 0x02, 0x0a, 0x08, 0x53, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x05, 0x74, - 0x6f, 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x20, 0xfa, 0x41, 0x1d, 0x0a, - 0x1b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x12, 0x3b, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x74, 0x69, - 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x54, 0x69, 0x6d, 0x65, - 0x12, 0x3e, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, - 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x4c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x4c, 0xea, 0x41, 0x49, - 0x0a, 0x1e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x12, 0x27, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x2f, 0x7b, - 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x7d, 0x22, 0x58, 0x0a, 0x12, 0x47, 0x65, 0x74, - 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x42, 0x0a, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x63, 0x6b, + 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x61, 0x63, 0x6b, 0x49, + 0x64, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x5f, 0x64, 0x65, 0x61, + 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x05, 0x52, 0x15, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x44, 0x65, 0x61, 0x64, 0x6c, + 0x69, 0x6e, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x35, 0x0a, 0x17, 0x6d, 0x6f, + 0x64, 0x69, 0x66, 0x79, 0x5f, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x61, 0x63, + 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x14, 0x6d, 0x6f, 0x64, + 0x69, 0x66, 0x79, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x41, 0x63, 0x6b, 0x49, 0x64, + 0x73, 0x12, 0x42, 0x0a, 0x1b, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x61, 0x63, 0x6b, 0x5f, + 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x18, 0x73, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x41, 0x63, 0x6b, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x65, + 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, + 0x49, 0x64, 0x12, 0x38, 0x0a, 0x18, 0x6d, 0x61, 0x78, 0x5f, 0x6f, 0x75, 0x74, 0x73, 0x74, 0x61, + 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, 0x6d, 0x61, 0x78, 0x4f, 0x75, 0x74, 0x73, 0x74, 0x61, 0x6e, + 0x64, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x15, + 0x6d, 0x61, 0x78, 0x5f, 0x6f, 0x75, 0x74, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, + 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x6d, 0x61, 0x78, + 0x4f, 0x75, 0x74, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x79, 0x74, 0x65, 0x73, + 0x22, 0xf6, 0x06, 0x0a, 0x15, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x50, 0x75, + 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x11, 0x72, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x10, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x7a, 0x0a, 0x18, 0x61, 0x63, + 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, + 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x50, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, + 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x17, 0x61, + 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, + 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x8e, 0x01, 0x0a, 0x20, 0x6d, 0x6f, 0x64, 0x69, 0x66, + 0x79, 0x5f, 0x61, 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, + 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x50, 0x75, + 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x69, 0x66, + 0x79, 0x41, 0x63, 0x6b, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1d, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, + 0x41, 0x63, 0x6b, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x77, 0x0a, 0x17, 0x73, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, + 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x50, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x52, 0x16, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, + 0x1a, 0x86, 0x01, 0x0a, 0x17, 0x41, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, + 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x61, + 0x63, 0x6b, 0x49, 0x64, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x5f, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, + 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x41, 0x63, 0x6b, 0x49, 0x64, 0x73, 0x12, 0x2a, 0x0a, + 0x11, 0x75, 0x6e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x6b, 0x5f, 0x69, + 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x6e, 0x6f, 0x72, 0x64, 0x65, + 0x72, 0x65, 0x64, 0x41, 0x63, 0x6b, 0x49, 0x64, 0x73, 0x1a, 0x60, 0x0a, 0x1d, 0x4d, 0x6f, 0x64, + 0x69, 0x66, 0x79, 0x41, 0x63, 0x6b, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x63, + 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x61, 0x63, 0x6b, + 0x49, 0x64, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x61, + 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x41, 0x63, 0x6b, 0x49, 0x64, 0x73, 0x1a, 0x95, 0x01, 0x0a, 0x16, + 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x70, + 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x41, 0x0a, 0x1d, 0x65, 0x78, 0x61, 0x63, 0x74, 0x6c, + 0x79, 0x5f, 0x6f, 0x6e, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x5f, + 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x65, + 0x78, 0x61, 0x63, 0x74, 0x6c, 0x79, 0x4f, 0x6e, 0x63, 0x65, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, + 0x72, 0x79, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x18, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x6e, + 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0xab, 0x02, 0x0a, 0x15, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x26, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x20, 0x0a, 0x1e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, - 0x68, 0x6f, 0x74, 0x22, 0xa1, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x07, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x33, 0xe0, - 0x41, 0x02, 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, - 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, - 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, - 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, - 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x79, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x53, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x38, 0x0a, 0x09, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, - 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, - 0x09, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, - 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x22, 0x5b, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x08, 0x73, - 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x26, 0xe0, - 0x41, 0x02, 0xfa, 0x41, 0x20, 0x0a, 0x1e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6e, 0x61, - 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x22, - 0xdc, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x65, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x2f, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4e, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x70, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x30, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x04, 0x74, 0x69, 0x6d, - 0x65, 0x12, 0x41, 0x0a, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x23, 0xfa, 0x41, 0x20, 0x0a, 0x1e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x48, 0x00, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0x0e, - 0x0a, 0x0c, 0x53, 0x65, 0x65, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xa3, - 0x0b, 0x0a, 0x09, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x12, 0x71, 0x0a, 0x0b, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x17, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x6f, 0x70, 0x69, 0x63, 0x1a, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, - 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x22, 0x30, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x1a, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, - 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x7d, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x24, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, - 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, - 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x22, 0x2f, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x32, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, - 0x2a, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x93, - 0x01, 0x0a, 0x07, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, 0x20, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, - 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, + 0x4b, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x96, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x3b, 0x0a, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, + 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x40, + 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, + 0x22, 0xdc, 0x02, 0x0a, 0x08, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x36, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x20, 0xfa, 0x41, 0x1d, 0x0a, 0x1b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x3b, 0x0a, 0x0b, 0x65, 0x78, 0x70, + 0x69, 0x72, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, + 0x72, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, + 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x3a, 0x4c, 0xea, 0x41, 0x49, 0x0a, 0x1e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6e, + 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x27, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x73, 0x6e, 0x61, 0x70, 0x73, + 0x68, 0x6f, 0x74, 0x73, 0x2f, 0x7b, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x7d, 0x22, + 0x58, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x26, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x20, 0x0a, + 0x1e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, + 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x22, 0xa1, 0x01, 0x0a, 0x14, 0x4c, 0x69, + 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x33, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x72, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, + 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x79, 0x0a, + 0x15, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6e, 0x61, + 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x09, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, + 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, + 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x5b, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x42, 0x0a, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x26, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x20, 0x0a, 0x1e, 0x70, 0x75, 0x62, + 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x08, 0x73, 0x6e, 0x61, + 0x70, 0x73, 0x68, 0x6f, 0x74, 0x22, 0xdc, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x65, 0x6b, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, + 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, + 0x00, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x41, 0x0a, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, + 0x68, 0x6f, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x23, 0xfa, 0x41, 0x20, 0x0a, 0x1e, + 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x48, 0x00, + 0x52, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x22, 0x0e, 0x0a, 0x0c, 0x53, 0x65, 0x65, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xa3, 0x0b, 0x0a, 0x09, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, + 0x65, 0x72, 0x12, 0x71, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x12, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, + 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x1a, 0x17, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, + 0x70, 0x69, 0x63, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x1a, 0x1e, 0x2f, 0x76, 0x31, + 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x2a, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x01, 0x2a, 0xda, 0x41, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x7d, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, + 0x6f, 0x70, 0x69, 0x63, 0x12, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, + 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, + 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, + 0x70, 0x69, 0x63, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x32, 0x24, 0x2f, 0x76, 0x31, + 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, 0x2a, + 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x93, 0x01, 0x0a, 0x07, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, + 0x12, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, + 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x22, 0x27, 0x2f, + 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x70, + 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x0e, 0x74, 0x6f, 0x70, 0x69, + 0x63, 0x2c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x77, 0x0a, 0x08, 0x47, 0x65, + 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x76, 0x31, 0x2f, + 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x2a, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x05, 0x74, 0x6f, + 0x70, 0x69, 0x63, 0x12, 0x8a, 0x01, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x73, 0x12, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, + 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, + 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, + 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0xda, 0x41, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x12, 0xba, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x75, + 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2f, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x22, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x6f, + 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x6f, + 0x70, 0x69, 0x63, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0xda, 0x41, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0xaa, 0x01, + 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x6e, 0x61, 0x70, 0x73, + 0x68, 0x6f, 0x74, 0x73, 0x12, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, + 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, + 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x6e, + 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x74, - 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, - 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x0e, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x2c, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x73, 0x12, 0x77, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, - 0x12, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, - 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x22, 0x2f, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x8a, 0x01, - 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x12, 0x23, 0x2e, 0x67, + 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x73, 0xda, 0x41, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x7c, 0x0a, 0x0b, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x2a, + 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x3d, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, 0x2a, 0x7d, + 0xda, 0x41, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0xad, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x74, + 0x61, 0x63, 0x68, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, - 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, - 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, - 0xda, 0x41, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0xba, 0x01, 0x0a, 0x16, 0x4c, - 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, - 0x69, 0x63, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, - 0x70, 0x69, 0x63, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, - 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x3d, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, 0x2a, - 0x7d, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0xda, - 0x41, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0xaa, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, - 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x12, 0x2b, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, - 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x6e, 0x61, 0x70, 0x73, - 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x3d, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, - 0x2a, 0x7d, 0x2f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0xda, 0x41, 0x05, 0x74, - 0x6f, 0x70, 0x69, 0x63, 0x12, 0x7c, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x6f, - 0x70, 0x69, 0x63, 0x12, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, - 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x6f, 0x70, - 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x2a, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, - 0x74, 0x6f, 0x70, 0x69, 0x63, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, - 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x05, 0x74, 0x6f, 0x70, - 0x69, 0x63, 0x12, 0xad, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x53, 0x75, 0x62, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x74, - 0x61, 0x63, 0x68, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, - 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x22, 0x34, 0x2f, 0x76, - 0x31, 0x2f, 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3d, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x65, 0x74, 0x61, - 0x63, 0x68, 0x1a, 0x70, 0xca, 0x41, 0x15, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x55, 0x68, - 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, - 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x70, 0x75, - 0x62, 0x73, 0x75, 0x62, 0x32, 0xa0, 0x15, 0x0a, 0x0a, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x62, 0x65, 0x72, 0x12, 0xb4, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x75, - 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, - 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, - 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x2a, 0x1a, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x2b, 0x6e, - 0x61, 0x6d, 0x65, 0x2c, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x2c, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2c, 0x61, 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, - 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0xa1, 0x01, 0x0a, 0x0f, 0x47, - 0x65, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, + 0x44, 0x65, 0x74, 0x61, 0x63, 0x68, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x36, 0x22, 0x34, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, + 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, + 0x7d, 0x3a, 0x64, 0x65, 0x74, 0x61, 0x63, 0x68, 0x1a, 0x70, 0xca, 0x41, 0x15, 0x70, 0x75, 0x62, + 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, + 0x6f, 0x6d, 0xd2, 0x41, 0x55, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, + 0x75, 0x74, 0x68, 0x2f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x32, 0xa0, 0x15, 0x0a, 0x0a, 0x53, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x72, 0x12, 0xb4, 0x01, 0x0a, 0x12, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x1a, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x5e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x1a, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, + 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, + 0x01, 0x2a, 0xda, 0x41, 0x2b, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x2c, + 0x70, 0x75, 0x73, 0x68, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2c, 0x61, 0x63, 0x6b, 0x5f, + 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, + 0x12, 0xa1, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, + 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x44, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x75, 0x62, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0xa0, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x44, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, - 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, - 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0xda, - 0x41, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0xa0, - 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, - 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, - 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x32, 0x32, 0x2f, 0x76, 0x31, 0x2f, - 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x6e, 0x61, - 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x75, - 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x01, - 0x2a, 0x12, 0xa6, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, - 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, - 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, - 0x2a, 0x7d, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0xda, 0x41, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x9f, 0x01, 0x0a, 0x12, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, - 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x44, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x2a, 0x2d, - 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x75, 0x62, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x0c, - 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0xcf, 0x01, 0x0a, - 0x11, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x41, 0x63, 0x6b, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, - 0x6e, 0x65, 0x12, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, - 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x41, 0x63, 0x6b, 0x44, - 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x76, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x22, 0x3f, - 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x75, 0x62, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x6d, 0x6f, - 0x64, 0x69, 0x66, 0x79, 0x41, 0x63, 0x6b, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x3a, - 0x01, 0x2a, 0xda, 0x41, 0x29, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x2c, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x2c, 0x61, 0x63, 0x6b, 0x5f, 0x64, 0x65, - 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0xa8, - 0x01, 0x0a, 0x0b, 0x41, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x12, 0x24, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, - 0x31, 0x2e, 0x41, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x52, 0x65, 0x71, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, + 0x32, 0x32, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0xa6, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, + 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, + 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0xda, 0x41, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x12, 0x9f, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x5b, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x3e, 0x22, 0x39, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x44, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x2f, 0x2a, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x3a, - 0x01, 0x2a, 0xda, 0x41, 0x14, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x2c, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x12, 0xd0, 0x01, 0x0a, 0x04, 0x50, 0x75, - 0x6c, 0x6c, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, - 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, - 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x88, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x22, 0x32, 0x2f, 0x76, 0x31, 0x2f, - 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3d, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x70, 0x75, 0x6c, 0x6c, 0x3a, 0x01, - 0x2a, 0xda, 0x41, 0x2c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x2c, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x5f, 0x69, 0x6d, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, - 0x65, 0x6c, 0x79, 0x2c, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, - 0xda, 0x41, 0x19, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2c, - 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x66, 0x0a, 0x0d, - 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x50, 0x75, 0x6c, 0x6c, 0x12, 0x26, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, - 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x50, 0x75, 0x6c, 0x6c, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, - 0x6e, 0x67, 0x50, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x28, 0x01, 0x30, 0x01, 0x12, 0xbb, 0x01, 0x0a, 0x10, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x50, - 0x75, 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, - 0x69, 0x66, 0x79, 0x50, 0x75, 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, + 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0xcf, 0x01, 0x0a, 0x11, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x41, 0x63, 0x6b, + 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x69, + 0x66, 0x79, 0x41, 0x63, 0x6b, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x64, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x43, 0x22, 0x3e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x76, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x44, 0x22, 0x3f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x2a, 0x7d, 0x3a, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x50, 0x75, 0x73, 0x68, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x18, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2c, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x89, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, - 0x6f, 0x74, 0x12, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, - 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x76, - 0x31, 0x2f, 0x7b, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, - 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x96, - 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, - 0x12, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, - 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, - 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0xda, 0x41, 0x07, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x97, 0x01, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, + 0x2f, 0x2a, 0x7d, 0x3a, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x41, 0x63, 0x6b, 0x44, 0x65, 0x61, + 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x29, 0x73, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2c, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x2c, + 0x61, 0x63, 0x6b, 0x5f, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x63, + 0x6f, 0x6e, 0x64, 0x73, 0x12, 0xa8, 0x01, 0x0a, 0x0b, 0x41, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, + 0x65, 0x64, 0x67, 0x65, 0x12, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, + 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, + 0x64, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x22, 0x5b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x22, 0x39, 0x2f, 0x76, 0x31, 0x2f, + 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3d, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x63, 0x6b, 0x6e, 0x6f, 0x77, + 0x6c, 0x65, 0x64, 0x67, 0x65, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x14, 0x73, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2c, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x12, + 0xd0, 0x01, 0x0a, 0x04, 0x50, 0x75, 0x6c, 0x6c, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x6c, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x6c, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, + 0x22, 0x32, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, + 0x70, 0x75, 0x6c, 0x6c, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x2c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2c, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x5f, 0x69, 0x6d, + 0x6d, 0x65, 0x64, 0x69, 0x61, 0x74, 0x65, 0x6c, 0x79, 0x2c, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0xda, 0x41, 0x19, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2c, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x73, 0x12, 0x66, 0x0a, 0x0d, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x50, + 0x75, 0x6c, 0x6c, 0x12, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, + 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, + 0x50, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x50, 0x75, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0xbb, 0x01, 0x0a, 0x10, 0x4d, + 0x6f, 0x64, 0x69, 0x66, 0x79, 0x50, 0x75, 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, + 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, + 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x50, 0x75, 0x73, 0x68, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x22, 0x64, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x22, 0x3e, 0x2f, 0x76, 0x31, 0x2f, + 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3d, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, + 0x50, 0x75, 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x18, + 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2c, 0x70, 0x75, 0x73, + 0x68, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x89, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, + 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, + 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x27, 0x12, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6e, 0x61, + 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x08, 0x73, 0x6e, 0x61, 0x70, + 0x73, 0x68, 0x6f, 0x74, 0x12, 0x96, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, + 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x12, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, + 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, + 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x3d, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x73, 0xda, 0x41, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x97, 0x01, + 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, + 0x12, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6e, 0x61, + 0x70, 0x73, 0x68, 0x6f, 0x74, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x1a, 0x21, 0x2f, + 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x2f, 0x2a, 0x7d, + 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x11, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x73, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x8c, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x27, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x22, - 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x1a, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, - 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x11, - 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x8c, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, - 0x73, 0x68, 0x6f, 0x74, 0x12, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, - 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x6e, - 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, - 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x2f, 0x32, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, - 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, - 0x2f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x01, 0x2a, - 0x12, 0x8b, 0x01, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, - 0x68, 0x6f, 0x74, 0x12, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, - 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x6e, 0x61, - 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x2a, 0x25, 0x2f, 0x76, - 0x31, 0x2f, 0x7b, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, + 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x32, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x6e, + 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, - 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x08, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x84, - 0x01, 0x0a, 0x04, 0x53, 0x65, 0x65, 0x6b, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x65, 0x6b, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x65, 0x6b, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x22, 0x32, - 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x75, 0x62, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x65, - 0x65, 0x6b, 0x3a, 0x01, 0x2a, 0x1a, 0x70, 0xca, 0x41, 0x15, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, - 0x41, 0x55, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, - 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, - 0x2f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x42, 0xae, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, + 0x2f, 0x2a, 0x7d, 0x3a, 0x01, 0x2a, 0x12, 0x8b, 0x01, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x27, 0x2a, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, + 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6e, 0x61, + 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x08, 0x73, 0x6e, 0x61, 0x70, + 0x73, 0x68, 0x6f, 0x74, 0x12, 0x84, 0x01, 0x0a, 0x04, 0x53, 0x65, 0x65, 0x6b, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, - 0x42, 0x0b, 0x50, 0x75, 0x62, 0x73, 0x75, 0x62, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x36, 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, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2f, 0x76, 0x31, - 0x3b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0xf8, 0x01, 0x01, 0xaa, 0x02, 0x16, 0x47, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, - 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, - 0x75, 0x64, 0x5c, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x19, 0x47, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x50, 0x75, - 0x62, 0x53, 0x75, 0x62, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x53, 0x65, 0x65, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x65, 0x65, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x37, 0x22, 0x32, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x75, 0x62, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x2f, 0x2a, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x65, 0x65, 0x6b, 0x3a, 0x01, 0x2a, 0x1a, 0x70, 0xca, 0x41, 0x15, + 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x55, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, + 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, + 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x42, 0xae, 0x01, + 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, + 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x50, 0x75, 0x62, 0x73, 0x75, 0x62, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 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, 0x70, 0x75, 0x62, + 0x73, 0x75, 0x62, 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0xf8, 0x01, 0x01, + 0xaa, 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x5c, + 0x56, 0x31, 0xea, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, + 0x75, 0x64, 0x3a, 0x3a, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/pubsub/apiv1/pubsubpb/schema.pb.go b/pubsub/apiv1/pubsubpb/schema.pb.go index 814159324a5a..70b26d87954d 100644 --- a/pubsub/apiv1/pubsubpb/schema.pb.go +++ b/pubsub/apiv1/pubsubpb/schema.pb.go @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -32,6 +32,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -217,6 +218,10 @@ type Schema struct { // the full definition of the schema that is a valid schema definition of // the type specified in `type`. Definition string `protobuf:"bytes,3,opt,name=definition,proto3" json:"definition,omitempty"` + // Output only. Immutable. The revision ID of the schema. + RevisionId string `protobuf:"bytes,4,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"` + // Output only. The timestamp that the revision was created. + RevisionCreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=revision_create_time,json=revisionCreateTime,proto3" json:"revision_create_time,omitempty"` } func (x *Schema) Reset() { @@ -272,6 +277,20 @@ func (x *Schema) GetDefinition() string { return "" } +func (x *Schema) GetRevisionId() string { + if x != nil { + return x.RevisionId + } + return "" +} + +func (x *Schema) GetRevisionCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.RevisionCreateTime + } + return nil +} + // Request for the CreateSchema method. type CreateSchemaRequest struct { state protoimpl.MessageState @@ -358,8 +377,7 @@ type GetSchemaRequest struct { // Format is `projects/{project}/schemas/{schema}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The set of fields to return in the response. If not set, returns a Schema - // with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all - // fields. + // with all fields filled out. Set to `BASIC` to omit the `definition`. View SchemaView `protobuf:"varint,2,opt,name=view,proto3,enum=google.pubsub.v1.SchemaView" json:"view,omitempty"` } @@ -549,6 +567,328 @@ func (x *ListSchemasResponse) GetNextPageToken() string { return "" } +// Request for the `ListSchemaRevisions` method. +type ListSchemaRevisionsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The name of the schema to list revisions for. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The set of Schema fields to return in the response. If not set, returns + // Schemas with `name` and `type`, but not `definition`. Set to `FULL` to + // retrieve all fields. + View SchemaView `protobuf:"varint,2,opt,name=view,proto3,enum=google.pubsub.v1.SchemaView" json:"view,omitempty"` + // The maximum number of revisions to return per page. + PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // The page token, received from a previous ListSchemaRevisions call. + // Provide this to retrieve the subsequent page. + PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` +} + +func (x *ListSchemaRevisionsRequest) Reset() { + *x = ListSchemaRevisionsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_pubsub_v1_schema_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSchemaRevisionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSchemaRevisionsRequest) ProtoMessage() {} + +func (x *ListSchemaRevisionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_pubsub_v1_schema_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListSchemaRevisionsRequest.ProtoReflect.Descriptor instead. +func (*ListSchemaRevisionsRequest) Descriptor() ([]byte, []int) { + return file_google_pubsub_v1_schema_proto_rawDescGZIP(), []int{5} +} + +func (x *ListSchemaRevisionsRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ListSchemaRevisionsRequest) GetView() SchemaView { + if x != nil { + return x.View + } + return SchemaView_SCHEMA_VIEW_UNSPECIFIED +} + +func (x *ListSchemaRevisionsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListSchemaRevisionsRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +// Response for the `ListSchemaRevisions` method. +type ListSchemaRevisionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The revisions of the schema. + Schemas []*Schema `protobuf:"bytes,1,rep,name=schemas,proto3" json:"schemas,omitempty"` + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is empty, there are no subsequent pages. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (x *ListSchemaRevisionsResponse) Reset() { + *x = ListSchemaRevisionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_google_pubsub_v1_schema_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListSchemaRevisionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListSchemaRevisionsResponse) ProtoMessage() {} + +func (x *ListSchemaRevisionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_pubsub_v1_schema_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 ListSchemaRevisionsResponse.ProtoReflect.Descriptor instead. +func (*ListSchemaRevisionsResponse) Descriptor() ([]byte, []int) { + return file_google_pubsub_v1_schema_proto_rawDescGZIP(), []int{6} +} + +func (x *ListSchemaRevisionsResponse) GetSchemas() []*Schema { + if x != nil { + return x.Schemas + } + return nil +} + +func (x *ListSchemaRevisionsResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +// Request for CommitSchema method. +type CommitSchemaRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The name of the schema we are revising. + // Format is `projects/{project}/schemas/{schema}`. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Required. The schema revision to commit. + Schema *Schema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"` +} + +func (x *CommitSchemaRequest) Reset() { + *x = CommitSchemaRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_pubsub_v1_schema_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CommitSchemaRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CommitSchemaRequest) ProtoMessage() {} + +func (x *CommitSchemaRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_pubsub_v1_schema_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CommitSchemaRequest.ProtoReflect.Descriptor instead. +func (*CommitSchemaRequest) Descriptor() ([]byte, []int) { + return file_google_pubsub_v1_schema_proto_rawDescGZIP(), []int{7} +} + +func (x *CommitSchemaRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CommitSchemaRequest) GetSchema() *Schema { + if x != nil { + return x.Schema + } + return nil +} + +// Request for the `RollbackSchema` method. +type RollbackSchemaRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The schema being rolled back with revision id. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Required. The revision ID to roll back to. + // It must be a revision of the same schema. + // + // Example: c7cfa2a8 + RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"` +} + +func (x *RollbackSchemaRequest) Reset() { + *x = RollbackSchemaRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_pubsub_v1_schema_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RollbackSchemaRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RollbackSchemaRequest) ProtoMessage() {} + +func (x *RollbackSchemaRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_pubsub_v1_schema_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 RollbackSchemaRequest.ProtoReflect.Descriptor instead. +func (*RollbackSchemaRequest) Descriptor() ([]byte, []int) { + return file_google_pubsub_v1_schema_proto_rawDescGZIP(), []int{8} +} + +func (x *RollbackSchemaRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *RollbackSchemaRequest) GetRevisionId() string { + if x != nil { + return x.RevisionId + } + return "" +} + +// Request for the `DeleteSchemaRevision` method. +type DeleteSchemaRevisionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The name of the schema revision to be deleted, with a revision ID + // explicitly included. + // + // Example: projects/123/schemas/my-schema@c7cfa2a8 + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Required. The revision ID to roll back to. + // It must be a revision of the same schema. + // + // Example: c7cfa2a8 + RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"` +} + +func (x *DeleteSchemaRevisionRequest) Reset() { + *x = DeleteSchemaRevisionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_pubsub_v1_schema_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteSchemaRevisionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteSchemaRevisionRequest) ProtoMessage() {} + +func (x *DeleteSchemaRevisionRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_pubsub_v1_schema_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 DeleteSchemaRevisionRequest.ProtoReflect.Descriptor instead. +func (*DeleteSchemaRevisionRequest) Descriptor() ([]byte, []int) { + return file_google_pubsub_v1_schema_proto_rawDescGZIP(), []int{9} +} + +func (x *DeleteSchemaRevisionRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *DeleteSchemaRevisionRequest) GetRevisionId() string { + if x != nil { + return x.RevisionId + } + return "" +} + // Request for the `DeleteSchema` method. type DeleteSchemaRequest struct { state protoimpl.MessageState @@ -563,7 +903,7 @@ type DeleteSchemaRequest struct { func (x *DeleteSchemaRequest) Reset() { *x = DeleteSchemaRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_pubsub_v1_schema_proto_msgTypes[5] + mi := &file_google_pubsub_v1_schema_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -576,7 +916,7 @@ func (x *DeleteSchemaRequest) String() string { func (*DeleteSchemaRequest) ProtoMessage() {} func (x *DeleteSchemaRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_pubsub_v1_schema_proto_msgTypes[5] + mi := &file_google_pubsub_v1_schema_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -589,7 +929,7 @@ func (x *DeleteSchemaRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteSchemaRequest.ProtoReflect.Descriptor instead. func (*DeleteSchemaRequest) Descriptor() ([]byte, []int) { - return file_google_pubsub_v1_schema_proto_rawDescGZIP(), []int{5} + return file_google_pubsub_v1_schema_proto_rawDescGZIP(), []int{10} } func (x *DeleteSchemaRequest) GetName() string { @@ -615,7 +955,7 @@ type ValidateSchemaRequest struct { func (x *ValidateSchemaRequest) Reset() { *x = ValidateSchemaRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_pubsub_v1_schema_proto_msgTypes[6] + mi := &file_google_pubsub_v1_schema_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -628,7 +968,7 @@ func (x *ValidateSchemaRequest) String() string { func (*ValidateSchemaRequest) ProtoMessage() {} func (x *ValidateSchemaRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_pubsub_v1_schema_proto_msgTypes[6] + mi := &file_google_pubsub_v1_schema_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -641,7 +981,7 @@ func (x *ValidateSchemaRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateSchemaRequest.ProtoReflect.Descriptor instead. func (*ValidateSchemaRequest) Descriptor() ([]byte, []int) { - return file_google_pubsub_v1_schema_proto_rawDescGZIP(), []int{6} + return file_google_pubsub_v1_schema_proto_rawDescGZIP(), []int{11} } func (x *ValidateSchemaRequest) GetParent() string { @@ -669,7 +1009,7 @@ type ValidateSchemaResponse struct { func (x *ValidateSchemaResponse) Reset() { *x = ValidateSchemaResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_pubsub_v1_schema_proto_msgTypes[7] + mi := &file_google_pubsub_v1_schema_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -682,7 +1022,7 @@ func (x *ValidateSchemaResponse) String() string { func (*ValidateSchemaResponse) ProtoMessage() {} func (x *ValidateSchemaResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_pubsub_v1_schema_proto_msgTypes[7] + mi := &file_google_pubsub_v1_schema_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -695,7 +1035,7 @@ func (x *ValidateSchemaResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateSchemaResponse.ProtoReflect.Descriptor instead. func (*ValidateSchemaResponse) Descriptor() ([]byte, []int) { - return file_google_pubsub_v1_schema_proto_rawDescGZIP(), []int{7} + return file_google_pubsub_v1_schema_proto_rawDescGZIP(), []int{12} } // Request for the `ValidateMessage` method. @@ -721,7 +1061,7 @@ type ValidateMessageRequest struct { func (x *ValidateMessageRequest) Reset() { *x = ValidateMessageRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_pubsub_v1_schema_proto_msgTypes[8] + mi := &file_google_pubsub_v1_schema_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -734,7 +1074,7 @@ func (x *ValidateMessageRequest) String() string { func (*ValidateMessageRequest) ProtoMessage() {} func (x *ValidateMessageRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_pubsub_v1_schema_proto_msgTypes[8] + mi := &file_google_pubsub_v1_schema_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -747,7 +1087,7 @@ func (x *ValidateMessageRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateMessageRequest.ProtoReflect.Descriptor instead. func (*ValidateMessageRequest) Descriptor() ([]byte, []int) { - return file_google_pubsub_v1_schema_proto_rawDescGZIP(), []int{8} + return file_google_pubsub_v1_schema_proto_rawDescGZIP(), []int{13} } func (x *ValidateMessageRequest) GetParent() string { @@ -823,7 +1163,7 @@ type ValidateMessageResponse struct { func (x *ValidateMessageResponse) Reset() { *x = ValidateMessageResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_pubsub_v1_schema_proto_msgTypes[9] + mi := &file_google_pubsub_v1_schema_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -836,7 +1176,7 @@ func (x *ValidateMessageResponse) String() string { func (*ValidateMessageResponse) ProtoMessage() {} func (x *ValidateMessageResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_pubsub_v1_schema_proto_msgTypes[9] + mi := &file_google_pubsub_v1_schema_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -849,7 +1189,7 @@ func (x *ValidateMessageResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateMessageResponse.ProtoReflect.Descriptor instead. func (*ValidateMessageResponse) Descriptor() ([]byte, []int) { - return file_google_pubsub_v1_schema_proto_rawDescGZIP(), []int{9} + return file_google_pubsub_v1_schema_proto_rawDescGZIP(), []int{14} } var File_google_pubsub_v1_schema_proto protoreflect.FileDescriptor @@ -867,61 +1207,115 @@ var file_google_pubsub_v1_schema_proto_rawDesc = []byte{ 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 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, 0x22, 0xf9, 0x01, 0x0a, 0x06, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x17, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, - 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, - 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3b, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, - 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, - 0x4f, 0x4c, 0x5f, 0x42, 0x55, 0x46, 0x46, 0x45, 0x52, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x41, - 0x56, 0x52, 0x4f, 0x10, 0x02, 0x3a, 0x46, 0xea, 0x41, 0x43, 0x0a, 0x1c, 0x70, 0x75, 0x62, 0x73, + 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, 0x22, 0xf5, 0x02, 0x0a, 0x06, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x17, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, + 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, + 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x0b, 0x72, 0x65, 0x76, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, + 0xe0, 0x41, 0x05, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x51, 0x0a, 0x14, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, + 0x03, 0x52, 0x12, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x3b, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, + 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, + 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, + 0x42, 0x55, 0x46, 0x46, 0x45, 0x52, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x56, 0x52, 0x4f, + 0x10, 0x02, 0x3a, 0x46, 0xea, 0x41, 0x43, 0x0a, 0x1c, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x23, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x73, 0x2f, 0x7b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x7d, 0x22, 0xa7, 0x01, 0x0a, 0x13, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x24, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1e, 0x12, 0x1c, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x23, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x73, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x7b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x7d, 0x22, 0xa7, 0x01, - 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x24, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1e, 0x12, 0x1c, 0x70, - 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x06, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, - 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x03, 0xe0, - 0x41, 0x02, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x49, 0x64, 0x22, 0x7e, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x24, 0xe0, 0x41, 0x02, 0xfa, 0x41, - 0x1e, 0x0a, 0x1c, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, - 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x69, 0x65, - 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x22, 0xcf, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, - 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x33, - 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x04, 0x76, - 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x12, 0x1b, 0x0a, - 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, - 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x71, 0x0a, 0x13, 0x4c, 0x69, 0x73, - 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x32, 0x0a, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, - 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x07, 0x73, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, - 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, - 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x4f, 0x0a, 0x13, + 0x6d, 0x2f, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, + 0x12, 0x35, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, + 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x49, 0x64, 0x22, 0x7e, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x24, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1e, 0x0a, 0x1c, + 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, + 0x76, 0x69, 0x65, 0x77, 0x22, 0xcf, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x06, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x33, 0xe0, 0x41, 0x02, + 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, + 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, + 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x71, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, + 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, + 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xc4, 0x01, 0x0a, 0x1a, 0x4c, 0x69, + 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x24, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1e, 0x0a, 0x1c, + 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, + 0x76, 0x69, 0x65, 0x77, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, + 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x22, 0x79, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, + 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x32, 0x0a, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x07, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, + 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x86, 0x01, 0x0a, 0x13, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x24, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1e, 0x0a, 0x1c, 0x70, 0x75, 0x62, 0x73, 0x75, + 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, + 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x22, 0x77, 0x0a, 0x15, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x24, 0xe0, 0x41, 0x02, + 0xfa, 0x41, 0x1e, 0x0a, 0x1c, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0b, 0x72, 0x65, 0x76, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, + 0x02, 0x52, 0x0a, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x7d, 0x0a, + 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x76, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x24, 0xe0, 0x41, 0x02, 0xfa, + 0x41, 0x1e, 0x0a, 0x1c, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0b, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, + 0x52, 0x0a, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x4f, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x24, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1e, 0x0a, 0x1c, 0x70, 0x75, 0x62, 0x73, 0x75, @@ -967,7 +1361,7 @@ var file_google_pubsub_v1_schema_proto_rawDesc = []byte{ 0x6e, 0x67, 0x12, 0x18, 0x0a, 0x14, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, - 0x10, 0x02, 0x32, 0xf7, 0x07, 0x0a, 0x0d, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x72, + 0x10, 0x02, 0x32, 0x88, 0x0d, 0x0a, 0x0d, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x9a, 0x01, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, @@ -994,55 +1388,96 @@ var file_google_pubsub_v1_schema_proto_rawDesc = []byte{ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x7d, 0x0a, 0x0c, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x25, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x21, 0x2a, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, - 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xa8, 0x01, 0x0a, 0x0e, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x27, 0x2e, + 0x61, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xb0, 0x01, 0x0a, 0x13, + 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, + 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, + 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, + 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, + 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, + 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x90, + 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, + 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x22, 0x3f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x22, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, + 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, + 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x12, 0x9b, 0x01, 0x0a, 0x0e, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x12, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, + 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, - 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, - 0x7d, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x3a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x73, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0xa2, 0x01, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, - 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x22, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, - 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x3a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, - 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x01, 0x2a, 0x1a, 0x70, 0xca, 0x41, 0x15, 0x70, - 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x55, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, + 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x46, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x22, + 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x2a, 0x7d, + 0x3a, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x10, 0x6e, + 0x61, 0x6d, 0x65, 0x2c, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x12, + 0xaa, 0x01, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x22, 0x49, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x2a, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, + 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, + 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x52, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0xda, 0x41, 0x10, 0x6e, 0x61, 0x6d, 0x65, + 0x2c, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x12, 0x7d, 0x0a, 0x0c, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x25, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2e, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x21, 0x2a, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xa8, 0x01, 0x0a, 0x0e, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x27, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, + 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x22, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x7b, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x2a, 0x7d, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x3a, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, + 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0xa2, 0x01, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x28, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, + 0x62, 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x22, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, + 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x3a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x01, 0x2a, 0x1a, 0x70, 0xca, 0x41, 0x15, + 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x55, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, + 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, - 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x42, 0xae, 0x01, 0x0a, - 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, 0x73, - 0x75, 0x62, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 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, 0x70, 0x75, 0x62, 0x73, - 0x75, 0x62, 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0xf8, 0x01, 0x01, 0xaa, - 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x50, - 0x75, 0x62, 0x53, 0x75, 0x62, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x5c, 0x56, - 0x31, 0xea, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, - 0x64, 0x3a, 0x3a, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x42, 0xae, 0x01, + 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x75, 0x62, + 0x73, 0x75, 0x62, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 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, 0x70, 0x75, 0x62, + 0x73, 0x75, 0x62, 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0xf8, 0x01, 0x01, + 0xaa, 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, 0x47, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x5c, + 0x56, 0x31, 0xea, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, + 0x75, 0x64, 0x3a, 0x3a, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1058,49 +1493,67 @@ func file_google_pubsub_v1_schema_proto_rawDescGZIP() []byte { } var file_google_pubsub_v1_schema_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_google_pubsub_v1_schema_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_google_pubsub_v1_schema_proto_msgTypes = make([]protoimpl.MessageInfo, 15) var file_google_pubsub_v1_schema_proto_goTypes = []interface{}{ - (SchemaView)(0), // 0: google.pubsub.v1.SchemaView - (Encoding)(0), // 1: google.pubsub.v1.Encoding - (Schema_Type)(0), // 2: google.pubsub.v1.Schema.Type - (*Schema)(nil), // 3: google.pubsub.v1.Schema - (*CreateSchemaRequest)(nil), // 4: google.pubsub.v1.CreateSchemaRequest - (*GetSchemaRequest)(nil), // 5: google.pubsub.v1.GetSchemaRequest - (*ListSchemasRequest)(nil), // 6: google.pubsub.v1.ListSchemasRequest - (*ListSchemasResponse)(nil), // 7: google.pubsub.v1.ListSchemasResponse - (*DeleteSchemaRequest)(nil), // 8: google.pubsub.v1.DeleteSchemaRequest - (*ValidateSchemaRequest)(nil), // 9: google.pubsub.v1.ValidateSchemaRequest - (*ValidateSchemaResponse)(nil), // 10: google.pubsub.v1.ValidateSchemaResponse - (*ValidateMessageRequest)(nil), // 11: google.pubsub.v1.ValidateMessageRequest - (*ValidateMessageResponse)(nil), // 12: google.pubsub.v1.ValidateMessageResponse - (*emptypb.Empty)(nil), // 13: google.protobuf.Empty + (SchemaView)(0), // 0: google.pubsub.v1.SchemaView + (Encoding)(0), // 1: google.pubsub.v1.Encoding + (Schema_Type)(0), // 2: google.pubsub.v1.Schema.Type + (*Schema)(nil), // 3: google.pubsub.v1.Schema + (*CreateSchemaRequest)(nil), // 4: google.pubsub.v1.CreateSchemaRequest + (*GetSchemaRequest)(nil), // 5: google.pubsub.v1.GetSchemaRequest + (*ListSchemasRequest)(nil), // 6: google.pubsub.v1.ListSchemasRequest + (*ListSchemasResponse)(nil), // 7: google.pubsub.v1.ListSchemasResponse + (*ListSchemaRevisionsRequest)(nil), // 8: google.pubsub.v1.ListSchemaRevisionsRequest + (*ListSchemaRevisionsResponse)(nil), // 9: google.pubsub.v1.ListSchemaRevisionsResponse + (*CommitSchemaRequest)(nil), // 10: google.pubsub.v1.CommitSchemaRequest + (*RollbackSchemaRequest)(nil), // 11: google.pubsub.v1.RollbackSchemaRequest + (*DeleteSchemaRevisionRequest)(nil), // 12: google.pubsub.v1.DeleteSchemaRevisionRequest + (*DeleteSchemaRequest)(nil), // 13: google.pubsub.v1.DeleteSchemaRequest + (*ValidateSchemaRequest)(nil), // 14: google.pubsub.v1.ValidateSchemaRequest + (*ValidateSchemaResponse)(nil), // 15: google.pubsub.v1.ValidateSchemaResponse + (*ValidateMessageRequest)(nil), // 16: google.pubsub.v1.ValidateMessageRequest + (*ValidateMessageResponse)(nil), // 17: google.pubsub.v1.ValidateMessageResponse + (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp + (*emptypb.Empty)(nil), // 19: google.protobuf.Empty } var file_google_pubsub_v1_schema_proto_depIdxs = []int32{ 2, // 0: google.pubsub.v1.Schema.type:type_name -> google.pubsub.v1.Schema.Type - 3, // 1: google.pubsub.v1.CreateSchemaRequest.schema:type_name -> google.pubsub.v1.Schema - 0, // 2: google.pubsub.v1.GetSchemaRequest.view:type_name -> google.pubsub.v1.SchemaView - 0, // 3: google.pubsub.v1.ListSchemasRequest.view:type_name -> google.pubsub.v1.SchemaView - 3, // 4: google.pubsub.v1.ListSchemasResponse.schemas:type_name -> google.pubsub.v1.Schema - 3, // 5: google.pubsub.v1.ValidateSchemaRequest.schema:type_name -> google.pubsub.v1.Schema - 3, // 6: google.pubsub.v1.ValidateMessageRequest.schema:type_name -> google.pubsub.v1.Schema - 1, // 7: google.pubsub.v1.ValidateMessageRequest.encoding:type_name -> google.pubsub.v1.Encoding - 4, // 8: google.pubsub.v1.SchemaService.CreateSchema:input_type -> google.pubsub.v1.CreateSchemaRequest - 5, // 9: google.pubsub.v1.SchemaService.GetSchema:input_type -> google.pubsub.v1.GetSchemaRequest - 6, // 10: google.pubsub.v1.SchemaService.ListSchemas:input_type -> google.pubsub.v1.ListSchemasRequest - 8, // 11: google.pubsub.v1.SchemaService.DeleteSchema:input_type -> google.pubsub.v1.DeleteSchemaRequest - 9, // 12: google.pubsub.v1.SchemaService.ValidateSchema:input_type -> google.pubsub.v1.ValidateSchemaRequest - 11, // 13: google.pubsub.v1.SchemaService.ValidateMessage:input_type -> google.pubsub.v1.ValidateMessageRequest - 3, // 14: google.pubsub.v1.SchemaService.CreateSchema:output_type -> google.pubsub.v1.Schema - 3, // 15: google.pubsub.v1.SchemaService.GetSchema:output_type -> google.pubsub.v1.Schema - 7, // 16: google.pubsub.v1.SchemaService.ListSchemas:output_type -> google.pubsub.v1.ListSchemasResponse - 13, // 17: google.pubsub.v1.SchemaService.DeleteSchema:output_type -> google.protobuf.Empty - 10, // 18: google.pubsub.v1.SchemaService.ValidateSchema:output_type -> google.pubsub.v1.ValidateSchemaResponse - 12, // 19: google.pubsub.v1.SchemaService.ValidateMessage:output_type -> google.pubsub.v1.ValidateMessageResponse - 14, // [14:20] is the sub-list for method output_type - 8, // [8:14] is the sub-list for method input_type - 8, // [8:8] is the sub-list for extension type_name - 8, // [8:8] is the sub-list for extension extendee - 0, // [0:8] is the sub-list for field type_name + 18, // 1: google.pubsub.v1.Schema.revision_create_time:type_name -> google.protobuf.Timestamp + 3, // 2: google.pubsub.v1.CreateSchemaRequest.schema:type_name -> google.pubsub.v1.Schema + 0, // 3: google.pubsub.v1.GetSchemaRequest.view:type_name -> google.pubsub.v1.SchemaView + 0, // 4: google.pubsub.v1.ListSchemasRequest.view:type_name -> google.pubsub.v1.SchemaView + 3, // 5: google.pubsub.v1.ListSchemasResponse.schemas:type_name -> google.pubsub.v1.Schema + 0, // 6: google.pubsub.v1.ListSchemaRevisionsRequest.view:type_name -> google.pubsub.v1.SchemaView + 3, // 7: google.pubsub.v1.ListSchemaRevisionsResponse.schemas:type_name -> google.pubsub.v1.Schema + 3, // 8: google.pubsub.v1.CommitSchemaRequest.schema:type_name -> google.pubsub.v1.Schema + 3, // 9: google.pubsub.v1.ValidateSchemaRequest.schema:type_name -> google.pubsub.v1.Schema + 3, // 10: google.pubsub.v1.ValidateMessageRequest.schema:type_name -> google.pubsub.v1.Schema + 1, // 11: google.pubsub.v1.ValidateMessageRequest.encoding:type_name -> google.pubsub.v1.Encoding + 4, // 12: google.pubsub.v1.SchemaService.CreateSchema:input_type -> google.pubsub.v1.CreateSchemaRequest + 5, // 13: google.pubsub.v1.SchemaService.GetSchema:input_type -> google.pubsub.v1.GetSchemaRequest + 6, // 14: google.pubsub.v1.SchemaService.ListSchemas:input_type -> google.pubsub.v1.ListSchemasRequest + 8, // 15: google.pubsub.v1.SchemaService.ListSchemaRevisions:input_type -> google.pubsub.v1.ListSchemaRevisionsRequest + 10, // 16: google.pubsub.v1.SchemaService.CommitSchema:input_type -> google.pubsub.v1.CommitSchemaRequest + 11, // 17: google.pubsub.v1.SchemaService.RollbackSchema:input_type -> google.pubsub.v1.RollbackSchemaRequest + 12, // 18: google.pubsub.v1.SchemaService.DeleteSchemaRevision:input_type -> google.pubsub.v1.DeleteSchemaRevisionRequest + 13, // 19: google.pubsub.v1.SchemaService.DeleteSchema:input_type -> google.pubsub.v1.DeleteSchemaRequest + 14, // 20: google.pubsub.v1.SchemaService.ValidateSchema:input_type -> google.pubsub.v1.ValidateSchemaRequest + 16, // 21: google.pubsub.v1.SchemaService.ValidateMessage:input_type -> google.pubsub.v1.ValidateMessageRequest + 3, // 22: google.pubsub.v1.SchemaService.CreateSchema:output_type -> google.pubsub.v1.Schema + 3, // 23: google.pubsub.v1.SchemaService.GetSchema:output_type -> google.pubsub.v1.Schema + 7, // 24: google.pubsub.v1.SchemaService.ListSchemas:output_type -> google.pubsub.v1.ListSchemasResponse + 9, // 25: google.pubsub.v1.SchemaService.ListSchemaRevisions:output_type -> google.pubsub.v1.ListSchemaRevisionsResponse + 3, // 26: google.pubsub.v1.SchemaService.CommitSchema:output_type -> google.pubsub.v1.Schema + 3, // 27: google.pubsub.v1.SchemaService.RollbackSchema:output_type -> google.pubsub.v1.Schema + 3, // 28: google.pubsub.v1.SchemaService.DeleteSchemaRevision:output_type -> google.pubsub.v1.Schema + 19, // 29: google.pubsub.v1.SchemaService.DeleteSchema:output_type -> google.protobuf.Empty + 15, // 30: google.pubsub.v1.SchemaService.ValidateSchema:output_type -> google.pubsub.v1.ValidateSchemaResponse + 17, // 31: google.pubsub.v1.SchemaService.ValidateMessage:output_type -> google.pubsub.v1.ValidateMessageResponse + 22, // [22:32] is the sub-list for method output_type + 12, // [12:22] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name } func init() { file_google_pubsub_v1_schema_proto_init() } @@ -1170,7 +1623,7 @@ func file_google_pubsub_v1_schema_proto_init() { } } file_google_pubsub_v1_schema_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteSchemaRequest); i { + switch v := v.(*ListSchemaRevisionsRequest); i { case 0: return &v.state case 1: @@ -1182,7 +1635,7 @@ func file_google_pubsub_v1_schema_proto_init() { } } file_google_pubsub_v1_schema_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateSchemaRequest); i { + switch v := v.(*ListSchemaRevisionsResponse); i { case 0: return &v.state case 1: @@ -1194,7 +1647,7 @@ func file_google_pubsub_v1_schema_proto_init() { } } file_google_pubsub_v1_schema_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateSchemaResponse); i { + switch v := v.(*CommitSchemaRequest); i { case 0: return &v.state case 1: @@ -1206,7 +1659,7 @@ func file_google_pubsub_v1_schema_proto_init() { } } file_google_pubsub_v1_schema_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateMessageRequest); i { + switch v := v.(*RollbackSchemaRequest); i { case 0: return &v.state case 1: @@ -1218,6 +1671,66 @@ func file_google_pubsub_v1_schema_proto_init() { } } file_google_pubsub_v1_schema_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteSchemaRevisionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_pubsub_v1_schema_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteSchemaRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_pubsub_v1_schema_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidateSchemaRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_pubsub_v1_schema_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidateSchemaResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_pubsub_v1_schema_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidateMessageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_pubsub_v1_schema_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ValidateMessageResponse); i { case 0: return &v.state @@ -1230,7 +1743,7 @@ func file_google_pubsub_v1_schema_proto_init() { } } } - file_google_pubsub_v1_schema_proto_msgTypes[8].OneofWrappers = []interface{}{ + file_google_pubsub_v1_schema_proto_msgTypes[13].OneofWrappers = []interface{}{ (*ValidateMessageRequest_Name)(nil), (*ValidateMessageRequest_Schema)(nil), } @@ -1240,7 +1753,7 @@ func file_google_pubsub_v1_schema_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_google_pubsub_v1_schema_proto_rawDesc, NumEnums: 3, - NumMessages: 10, + NumMessages: 15, NumExtensions: 0, NumServices: 1, }, @@ -1273,6 +1786,14 @@ type SchemaServiceClient interface { GetSchema(ctx context.Context, in *GetSchemaRequest, opts ...grpc.CallOption) (*Schema, error) // Lists schemas in a project. ListSchemas(ctx context.Context, in *ListSchemasRequest, opts ...grpc.CallOption) (*ListSchemasResponse, error) + // Lists all schema revisions for the named schema. + ListSchemaRevisions(ctx context.Context, in *ListSchemaRevisionsRequest, opts ...grpc.CallOption) (*ListSchemaRevisionsResponse, error) + // Commits a new schema revision to an existing schema. + CommitSchema(ctx context.Context, in *CommitSchemaRequest, opts ...grpc.CallOption) (*Schema, error) + // Creates a new schema revision that is a copy of the provided revision_id. + RollbackSchema(ctx context.Context, in *RollbackSchemaRequest, opts ...grpc.CallOption) (*Schema, error) + // Deletes a specific schema revision. + DeleteSchemaRevision(ctx context.Context, in *DeleteSchemaRevisionRequest, opts ...grpc.CallOption) (*Schema, error) // Deletes a schema. DeleteSchema(ctx context.Context, in *DeleteSchemaRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Validates a schema. @@ -1316,6 +1837,42 @@ func (c *schemaServiceClient) ListSchemas(ctx context.Context, in *ListSchemasRe return out, nil } +func (c *schemaServiceClient) ListSchemaRevisions(ctx context.Context, in *ListSchemaRevisionsRequest, opts ...grpc.CallOption) (*ListSchemaRevisionsResponse, error) { + out := new(ListSchemaRevisionsResponse) + err := c.cc.Invoke(ctx, "/google.pubsub.v1.SchemaService/ListSchemaRevisions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *schemaServiceClient) CommitSchema(ctx context.Context, in *CommitSchemaRequest, opts ...grpc.CallOption) (*Schema, error) { + out := new(Schema) + err := c.cc.Invoke(ctx, "/google.pubsub.v1.SchemaService/CommitSchema", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *schemaServiceClient) RollbackSchema(ctx context.Context, in *RollbackSchemaRequest, opts ...grpc.CallOption) (*Schema, error) { + out := new(Schema) + err := c.cc.Invoke(ctx, "/google.pubsub.v1.SchemaService/RollbackSchema", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *schemaServiceClient) DeleteSchemaRevision(ctx context.Context, in *DeleteSchemaRevisionRequest, opts ...grpc.CallOption) (*Schema, error) { + out := new(Schema) + err := c.cc.Invoke(ctx, "/google.pubsub.v1.SchemaService/DeleteSchemaRevision", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *schemaServiceClient) DeleteSchema(ctx context.Context, in *DeleteSchemaRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/google.pubsub.v1.SchemaService/DeleteSchema", in, out, opts...) @@ -1351,6 +1908,14 @@ type SchemaServiceServer interface { GetSchema(context.Context, *GetSchemaRequest) (*Schema, error) // Lists schemas in a project. ListSchemas(context.Context, *ListSchemasRequest) (*ListSchemasResponse, error) + // Lists all schema revisions for the named schema. + ListSchemaRevisions(context.Context, *ListSchemaRevisionsRequest) (*ListSchemaRevisionsResponse, error) + // Commits a new schema revision to an existing schema. + CommitSchema(context.Context, *CommitSchemaRequest) (*Schema, error) + // Creates a new schema revision that is a copy of the provided revision_id. + RollbackSchema(context.Context, *RollbackSchemaRequest) (*Schema, error) + // Deletes a specific schema revision. + DeleteSchemaRevision(context.Context, *DeleteSchemaRevisionRequest) (*Schema, error) // Deletes a schema. DeleteSchema(context.Context, *DeleteSchemaRequest) (*emptypb.Empty, error) // Validates a schema. @@ -1372,6 +1937,18 @@ func (*UnimplementedSchemaServiceServer) GetSchema(context.Context, *GetSchemaRe func (*UnimplementedSchemaServiceServer) ListSchemas(context.Context, *ListSchemasRequest) (*ListSchemasResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListSchemas not implemented") } +func (*UnimplementedSchemaServiceServer) ListSchemaRevisions(context.Context, *ListSchemaRevisionsRequest) (*ListSchemaRevisionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListSchemaRevisions not implemented") +} +func (*UnimplementedSchemaServiceServer) CommitSchema(context.Context, *CommitSchemaRequest) (*Schema, error) { + return nil, status.Errorf(codes.Unimplemented, "method CommitSchema not implemented") +} +func (*UnimplementedSchemaServiceServer) RollbackSchema(context.Context, *RollbackSchemaRequest) (*Schema, error) { + return nil, status.Errorf(codes.Unimplemented, "method RollbackSchema not implemented") +} +func (*UnimplementedSchemaServiceServer) DeleteSchemaRevision(context.Context, *DeleteSchemaRevisionRequest) (*Schema, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteSchemaRevision not implemented") +} func (*UnimplementedSchemaServiceServer) DeleteSchema(context.Context, *DeleteSchemaRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteSchema not implemented") } @@ -1440,6 +2017,78 @@ func _SchemaService_ListSchemas_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } +func _SchemaService_ListSchemaRevisions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListSchemaRevisionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchemaServiceServer).ListSchemaRevisions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.pubsub.v1.SchemaService/ListSchemaRevisions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchemaServiceServer).ListSchemaRevisions(ctx, req.(*ListSchemaRevisionsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SchemaService_CommitSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CommitSchemaRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchemaServiceServer).CommitSchema(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.pubsub.v1.SchemaService/CommitSchema", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchemaServiceServer).CommitSchema(ctx, req.(*CommitSchemaRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SchemaService_RollbackSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RollbackSchemaRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchemaServiceServer).RollbackSchema(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.pubsub.v1.SchemaService/RollbackSchema", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchemaServiceServer).RollbackSchema(ctx, req.(*RollbackSchemaRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SchemaService_DeleteSchemaRevision_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteSchemaRevisionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SchemaServiceServer).DeleteSchemaRevision(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.pubsub.v1.SchemaService/DeleteSchemaRevision", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SchemaServiceServer).DeleteSchemaRevision(ctx, req.(*DeleteSchemaRevisionRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _SchemaService_DeleteSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteSchemaRequest) if err := dec(in); err != nil { @@ -1510,6 +2159,22 @@ var _SchemaService_serviceDesc = grpc.ServiceDesc{ MethodName: "ListSchemas", Handler: _SchemaService_ListSchemas_Handler, }, + { + MethodName: "ListSchemaRevisions", + Handler: _SchemaService_ListSchemaRevisions_Handler, + }, + { + MethodName: "CommitSchema", + Handler: _SchemaService_CommitSchema_Handler, + }, + { + MethodName: "RollbackSchema", + Handler: _SchemaService_RollbackSchema_Handler, + }, + { + MethodName: "DeleteSchemaRevision", + Handler: _SchemaService_DeleteSchemaRevision_Handler, + }, { MethodName: "DeleteSchema", Handler: _SchemaService_DeleteSchema_Handler, diff --git a/pubsub/apiv1/schema_client.go b/pubsub/apiv1/schema_client.go index fc7cd6b9a8fa..c384021df908 100644 --- a/pubsub/apiv1/schema_client.go +++ b/pubsub/apiv1/schema_client.go @@ -44,15 +44,19 @@ var newSchemaClientHook clientHook // SchemaCallOptions contains the retry settings for each method of SchemaClient. type SchemaCallOptions struct { - CreateSchema []gax.CallOption - GetSchema []gax.CallOption - ListSchemas []gax.CallOption - DeleteSchema []gax.CallOption - ValidateSchema []gax.CallOption - ValidateMessage []gax.CallOption - GetIamPolicy []gax.CallOption - SetIamPolicy []gax.CallOption - TestIamPermissions []gax.CallOption + CreateSchema []gax.CallOption + GetSchema []gax.CallOption + ListSchemas []gax.CallOption + ListSchemaRevisions []gax.CallOption + CommitSchema []gax.CallOption + RollbackSchema []gax.CallOption + DeleteSchemaRevision []gax.CallOption + DeleteSchema []gax.CallOption + ValidateSchema []gax.CallOption + ValidateMessage []gax.CallOption + GetIamPolicy []gax.CallOption + SetIamPolicy []gax.CallOption + TestIamPermissions []gax.CallOption } func defaultSchemaGRPCClientOptions() []option.ClientOption { @@ -69,29 +73,37 @@ func defaultSchemaGRPCClientOptions() []option.ClientOption { func defaultSchemaCallOptions() *SchemaCallOptions { return &SchemaCallOptions{ - CreateSchema: []gax.CallOption{}, - GetSchema: []gax.CallOption{}, - ListSchemas: []gax.CallOption{}, - DeleteSchema: []gax.CallOption{}, - ValidateSchema: []gax.CallOption{}, - ValidateMessage: []gax.CallOption{}, - GetIamPolicy: []gax.CallOption{}, - SetIamPolicy: []gax.CallOption{}, - TestIamPermissions: []gax.CallOption{}, + CreateSchema: []gax.CallOption{}, + GetSchema: []gax.CallOption{}, + ListSchemas: []gax.CallOption{}, + ListSchemaRevisions: []gax.CallOption{}, + CommitSchema: []gax.CallOption{}, + RollbackSchema: []gax.CallOption{}, + DeleteSchemaRevision: []gax.CallOption{}, + DeleteSchema: []gax.CallOption{}, + ValidateSchema: []gax.CallOption{}, + ValidateMessage: []gax.CallOption{}, + GetIamPolicy: []gax.CallOption{}, + SetIamPolicy: []gax.CallOption{}, + TestIamPermissions: []gax.CallOption{}, } } func defaultSchemaRESTCallOptions() *SchemaCallOptions { return &SchemaCallOptions{ - CreateSchema: []gax.CallOption{}, - GetSchema: []gax.CallOption{}, - ListSchemas: []gax.CallOption{}, - DeleteSchema: []gax.CallOption{}, - ValidateSchema: []gax.CallOption{}, - ValidateMessage: []gax.CallOption{}, - GetIamPolicy: []gax.CallOption{}, - SetIamPolicy: []gax.CallOption{}, - TestIamPermissions: []gax.CallOption{}, + CreateSchema: []gax.CallOption{}, + GetSchema: []gax.CallOption{}, + ListSchemas: []gax.CallOption{}, + ListSchemaRevisions: []gax.CallOption{}, + CommitSchema: []gax.CallOption{}, + RollbackSchema: []gax.CallOption{}, + DeleteSchemaRevision: []gax.CallOption{}, + DeleteSchema: []gax.CallOption{}, + ValidateSchema: []gax.CallOption{}, + ValidateMessage: []gax.CallOption{}, + GetIamPolicy: []gax.CallOption{}, + SetIamPolicy: []gax.CallOption{}, + TestIamPermissions: []gax.CallOption{}, } } @@ -103,6 +115,10 @@ type internalSchemaClient interface { CreateSchema(context.Context, *pubsubpb.CreateSchemaRequest, ...gax.CallOption) (*pubsubpb.Schema, error) GetSchema(context.Context, *pubsubpb.GetSchemaRequest, ...gax.CallOption) (*pubsubpb.Schema, error) ListSchemas(context.Context, *pubsubpb.ListSchemasRequest, ...gax.CallOption) *SchemaIterator + ListSchemaRevisions(context.Context, *pubsubpb.ListSchemaRevisionsRequest, ...gax.CallOption) *SchemaIterator + CommitSchema(context.Context, *pubsubpb.CommitSchemaRequest, ...gax.CallOption) (*pubsubpb.Schema, error) + RollbackSchema(context.Context, *pubsubpb.RollbackSchemaRequest, ...gax.CallOption) (*pubsubpb.Schema, error) + DeleteSchemaRevision(context.Context, *pubsubpb.DeleteSchemaRevisionRequest, ...gax.CallOption) (*pubsubpb.Schema, error) DeleteSchema(context.Context, *pubsubpb.DeleteSchemaRequest, ...gax.CallOption) error ValidateSchema(context.Context, *pubsubpb.ValidateSchemaRequest, ...gax.CallOption) (*pubsubpb.ValidateSchemaResponse, error) ValidateMessage(context.Context, *pubsubpb.ValidateMessageRequest, ...gax.CallOption) (*pubsubpb.ValidateMessageResponse, error) @@ -161,6 +177,26 @@ func (c *SchemaClient) ListSchemas(ctx context.Context, req *pubsubpb.ListSchema return c.internalClient.ListSchemas(ctx, req, opts...) } +// ListSchemaRevisions lists all schema revisions for the named schema. +func (c *SchemaClient) ListSchemaRevisions(ctx context.Context, req *pubsubpb.ListSchemaRevisionsRequest, opts ...gax.CallOption) *SchemaIterator { + return c.internalClient.ListSchemaRevisions(ctx, req, opts...) +} + +// CommitSchema commits a new schema revision to an existing schema. +func (c *SchemaClient) CommitSchema(ctx context.Context, req *pubsubpb.CommitSchemaRequest, opts ...gax.CallOption) (*pubsubpb.Schema, error) { + return c.internalClient.CommitSchema(ctx, req, opts...) +} + +// RollbackSchema creates a new schema revision that is a copy of the provided revision_id. +func (c *SchemaClient) RollbackSchema(ctx context.Context, req *pubsubpb.RollbackSchemaRequest, opts ...gax.CallOption) (*pubsubpb.Schema, error) { + return c.internalClient.RollbackSchema(ctx, req, opts...) +} + +// DeleteSchemaRevision deletes a specific schema revision. +func (c *SchemaClient) DeleteSchemaRevision(ctx context.Context, req *pubsubpb.DeleteSchemaRevisionRequest, opts ...gax.CallOption) (*pubsubpb.Schema, error) { + return c.internalClient.DeleteSchemaRevision(ctx, req, opts...) +} + // DeleteSchema deletes a schema. func (c *SchemaClient) DeleteSchema(ctx context.Context, req *pubsubpb.DeleteSchemaRequest, opts ...gax.CallOption) error { return c.internalClient.DeleteSchema(ctx, req, opts...) @@ -433,6 +469,102 @@ func (c *schemaGRPCClient) ListSchemas(ctx context.Context, req *pubsubpb.ListSc return it } +func (c *schemaGRPCClient) ListSchemaRevisions(ctx context.Context, req *pubsubpb.ListSchemaRevisionsRequest, opts ...gax.CallOption) *SchemaIterator { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).ListSchemaRevisions[0:len((*c.CallOptions).ListSchemaRevisions):len((*c.CallOptions).ListSchemaRevisions)], opts...) + it := &SchemaIterator{} + req = proto.Clone(req).(*pubsubpb.ListSchemaRevisionsRequest) + it.InternalFetch = func(pageSize int, pageToken string) ([]*pubsubpb.Schema, string, error) { + resp := &pubsubpb.ListSchemaRevisionsResponse{} + if pageToken != "" { + req.PageToken = pageToken + } + if pageSize > math.MaxInt32 { + req.PageSize = math.MaxInt32 + } else if pageSize != 0 { + req.PageSize = int32(pageSize) + } + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.schemaClient.ListSchemaRevisions(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, "", err + } + + it.Response = resp + return resp.GetSchemas(), resp.GetNextPageToken(), nil + } + fetch := func(pageSize int, pageToken string) (string, error) { + items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) + if err != nil { + return "", err + } + it.items = append(it.items, items...) + return nextPageToken, nil + } + + it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) + it.pageInfo.MaxSize = int(req.GetPageSize()) + it.pageInfo.Token = req.GetPageToken() + + return it +} + +func (c *schemaGRPCClient) CommitSchema(ctx context.Context, req *pubsubpb.CommitSchemaRequest, opts ...gax.CallOption) (*pubsubpb.Schema, error) { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).CommitSchema[0:len((*c.CallOptions).CommitSchema):len((*c.CallOptions).CommitSchema)], opts...) + var resp *pubsubpb.Schema + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.schemaClient.CommitSchema(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return resp, nil +} + +func (c *schemaGRPCClient) RollbackSchema(ctx context.Context, req *pubsubpb.RollbackSchemaRequest, opts ...gax.CallOption) (*pubsubpb.Schema, error) { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).RollbackSchema[0:len((*c.CallOptions).RollbackSchema):len((*c.CallOptions).RollbackSchema)], opts...) + var resp *pubsubpb.Schema + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.schemaClient.RollbackSchema(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return resp, nil +} + +func (c *schemaGRPCClient) DeleteSchemaRevision(ctx context.Context, req *pubsubpb.DeleteSchemaRevisionRequest, opts ...gax.CallOption) (*pubsubpb.Schema, error) { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).DeleteSchemaRevision[0:len((*c.CallOptions).DeleteSchemaRevision):len((*c.CallOptions).DeleteSchemaRevision)], opts...) + var resp *pubsubpb.Schema + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.schemaClient.DeleteSchemaRevision(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return resp, nil +} + func (c *schemaGRPCClient) DeleteSchema(ctx context.Context, req *pubsubpb.DeleteSchemaRequest, opts ...gax.CallOption) error { md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) @@ -751,6 +883,284 @@ func (c *schemaRESTClient) ListSchemas(ctx context.Context, req *pubsubpb.ListSc return it } +// ListSchemaRevisions lists all schema revisions for the named schema. +func (c *schemaRESTClient) ListSchemaRevisions(ctx context.Context, req *pubsubpb.ListSchemaRevisionsRequest, opts ...gax.CallOption) *SchemaIterator { + it := &SchemaIterator{} + req = proto.Clone(req).(*pubsubpb.ListSchemaRevisionsRequest) + unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} + it.InternalFetch = func(pageSize int, pageToken string) ([]*pubsubpb.Schema, string, error) { + resp := &pubsubpb.ListSchemaRevisionsResponse{} + if pageToken != "" { + req.PageToken = pageToken + } + if pageSize > math.MaxInt32 { + req.PageSize = math.MaxInt32 + } else if pageSize != 0 { + req.PageSize = int32(pageSize) + } + baseUrl, err := url.Parse(c.endpoint) + if err != nil { + return nil, "", err + } + baseUrl.Path += fmt.Sprintf("/v1/%v:listRevisions", req.GetName()) + + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + if req.GetPageSize() != 0 { + params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) + } + if req.GetPageToken() != "" { + params.Add("pageToken", fmt.Sprintf("%v", req.GetPageToken())) + } + if req.GetView() != 0 { + params.Add("view", fmt.Sprintf("%v", req.GetView())) + } + + baseUrl.RawQuery = params.Encode() + + // Build HTTP headers from client and context metadata. + headers := buildHeaders(ctx, c.xGoogMetadata, metadata.Pairs("Content-Type", "application/json")) + e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + if settings.Path != "" { + baseUrl.Path = settings.Path + } + httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) + if err != nil { + return err + } + httpReq.Header = headers + + httpRsp, err := c.httpClient.Do(httpReq) + if err != nil { + return err + } + defer httpRsp.Body.Close() + + if err = googleapi.CheckResponse(httpRsp); err != nil { + return err + } + + buf, err := ioutil.ReadAll(httpRsp.Body) + if err != nil { + return err + } + + if err := unm.Unmarshal(buf, resp); err != nil { + return maybeUnknownEnum(err) + } + + return nil + }, opts...) + if e != nil { + return nil, "", e + } + it.Response = resp + return resp.GetSchemas(), resp.GetNextPageToken(), nil + } + + fetch := func(pageSize int, pageToken string) (string, error) { + items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) + if err != nil { + return "", err + } + it.items = append(it.items, items...) + return nextPageToken, nil + } + + it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) + it.pageInfo.MaxSize = int(req.GetPageSize()) + it.pageInfo.Token = req.GetPageToken() + + return it +} + +// CommitSchema commits a new schema revision to an existing schema. +func (c *schemaRESTClient) CommitSchema(ctx context.Context, req *pubsubpb.CommitSchemaRequest, opts ...gax.CallOption) (*pubsubpb.Schema, error) { + m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} + jsonReq, err := m.Marshal(req) + if err != nil { + return nil, err + } + + baseUrl, err := url.Parse(c.endpoint) + if err != nil { + return nil, err + } + baseUrl.Path += fmt.Sprintf("/v1/%v:commit", req.GetName()) + + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + + // Build HTTP headers from client and context metadata. + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) + opts = append((*c.CallOptions).CommitSchema[0:len((*c.CallOptions).CommitSchema):len((*c.CallOptions).CommitSchema)], opts...) + unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} + resp := &pubsubpb.Schema{} + e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + if settings.Path != "" { + baseUrl.Path = settings.Path + } + httpReq, err := http.NewRequest("POST", baseUrl.String(), bytes.NewReader(jsonReq)) + if err != nil { + return err + } + httpReq = httpReq.WithContext(ctx) + httpReq.Header = headers + + httpRsp, err := c.httpClient.Do(httpReq) + if err != nil { + return err + } + defer httpRsp.Body.Close() + + if err = googleapi.CheckResponse(httpRsp); err != nil { + return err + } + + buf, err := ioutil.ReadAll(httpRsp.Body) + if err != nil { + return err + } + + if err := unm.Unmarshal(buf, resp); err != nil { + return maybeUnknownEnum(err) + } + + return nil + }, opts...) + if e != nil { + return nil, e + } + return resp, nil +} + +// RollbackSchema creates a new schema revision that is a copy of the provided revision_id. +func (c *schemaRESTClient) RollbackSchema(ctx context.Context, req *pubsubpb.RollbackSchemaRequest, opts ...gax.CallOption) (*pubsubpb.Schema, error) { + m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} + jsonReq, err := m.Marshal(req) + if err != nil { + return nil, err + } + + baseUrl, err := url.Parse(c.endpoint) + if err != nil { + return nil, err + } + baseUrl.Path += fmt.Sprintf("/v1/%v:rollback", req.GetName()) + + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + + // Build HTTP headers from client and context metadata. + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) + opts = append((*c.CallOptions).RollbackSchema[0:len((*c.CallOptions).RollbackSchema):len((*c.CallOptions).RollbackSchema)], opts...) + unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} + resp := &pubsubpb.Schema{} + e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + if settings.Path != "" { + baseUrl.Path = settings.Path + } + httpReq, err := http.NewRequest("POST", baseUrl.String(), bytes.NewReader(jsonReq)) + if err != nil { + return err + } + httpReq = httpReq.WithContext(ctx) + httpReq.Header = headers + + httpRsp, err := c.httpClient.Do(httpReq) + if err != nil { + return err + } + defer httpRsp.Body.Close() + + if err = googleapi.CheckResponse(httpRsp); err != nil { + return err + } + + buf, err := ioutil.ReadAll(httpRsp.Body) + if err != nil { + return err + } + + if err := unm.Unmarshal(buf, resp); err != nil { + return maybeUnknownEnum(err) + } + + return nil + }, opts...) + if e != nil { + return nil, e + } + return resp, nil +} + +// DeleteSchemaRevision deletes a specific schema revision. +func (c *schemaRESTClient) DeleteSchemaRevision(ctx context.Context, req *pubsubpb.DeleteSchemaRevisionRequest, opts ...gax.CallOption) (*pubsubpb.Schema, error) { + baseUrl, err := url.Parse(c.endpoint) + if err != nil { + return nil, err + } + baseUrl.Path += fmt.Sprintf("/v1/%v:deleteRevision", req.GetName()) + + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + params.Add("revisionId", fmt.Sprintf("%v", req.GetRevisionId())) + + baseUrl.RawQuery = params.Encode() + + // Build HTTP headers from client and context metadata. + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) + opts = append((*c.CallOptions).DeleteSchemaRevision[0:len((*c.CallOptions).DeleteSchemaRevision):len((*c.CallOptions).DeleteSchemaRevision)], opts...) + unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} + resp := &pubsubpb.Schema{} + e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + if settings.Path != "" { + baseUrl.Path = settings.Path + } + httpReq, err := http.NewRequest("DELETE", baseUrl.String(), nil) + if err != nil { + return err + } + httpReq = httpReq.WithContext(ctx) + httpReq.Header = headers + + httpRsp, err := c.httpClient.Do(httpReq) + if err != nil { + return err + } + defer httpRsp.Body.Close() + + if err = googleapi.CheckResponse(httpRsp); err != nil { + return err + } + + buf, err := ioutil.ReadAll(httpRsp.Body) + if err != nil { + return err + } + + if err := unm.Unmarshal(buf, resp); err != nil { + return maybeUnknownEnum(err) + } + + return nil + }, opts...) + if e != nil { + return nil, e + } + return resp, nil +} + // DeleteSchema deletes a schema. func (c *schemaRESTClient) DeleteSchema(ctx context.Context, req *pubsubpb.DeleteSchemaRequest, opts ...gax.CallOption) error { baseUrl, err := url.Parse(c.endpoint) diff --git a/pubsub/apiv1/schema_client_example_test.go b/pubsub/apiv1/schema_client_example_test.go index 9f3e77f6dfc1..4670685a8b6c 100644 --- a/pubsub/apiv1/schema_client_example_test.go +++ b/pubsub/apiv1/schema_client_example_test.go @@ -140,6 +140,112 @@ func ExampleSchemaClient_ListSchemas() { } } +func ExampleSchemaClient_ListSchemaRevisions() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsub.NewSchemaClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &pubsubpb.ListSchemaRevisionsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#ListSchemaRevisionsRequest. + } + it := c.ListSchemaRevisions(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +func ExampleSchemaClient_CommitSchema() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsub.NewSchemaClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &pubsubpb.CommitSchemaRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#CommitSchemaRequest. + } + resp, err := c.CommitSchema(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +func ExampleSchemaClient_RollbackSchema() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsub.NewSchemaClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &pubsubpb.RollbackSchemaRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#RollbackSchemaRequest. + } + resp, err := c.RollbackSchema(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +func ExampleSchemaClient_DeleteSchemaRevision() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := pubsub.NewSchemaClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &pubsubpb.DeleteSchemaRevisionRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/pubsub/apiv1/pubsubpb#DeleteSchemaRevisionRequest. + } + resp, err := c.DeleteSchemaRevision(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + func ExampleSchemaClient_DeleteSchema() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. diff --git a/pubsub/go.mod b/pubsub/go.mod index 3418d3c9adbc..3b7d3b460860 100644 --- a/pubsub/go.mod +++ b/pubsub/go.mod @@ -13,19 +13,19 @@ require ( golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 golang.org/x/sync v0.1.0 golang.org/x/time v0.3.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.13.0 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/pubsub/go.sum b/pubsub/go.sum index 3d2163aa51f9..b40f820262c7 100644 --- a/pubsub/go.sum +++ b/pubsub/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute v1.13.0 h1:AYrLkB8NPdDRslNp4Jxmzrhdr03fUAIDbiGFjLWowoU= -cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/kms v1.7.0 h1:8FCf8C7qfOuSr6YzOQ4RGjJvswSRFeOpur3nHOlJbio= @@ -48,8 +48,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -94,8 +94,8 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4= golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -104,8 +104,8 @@ golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -113,8 +113,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd h1:OjndDrsik+Gt+e6fs45z9AxiewiKyLKYpA45W5Kpkks= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/pubsub/pstest/fake.go b/pubsub/pstest/fake.go index bf4e12c52ec7..c767eb4db20b 100644 --- a/pubsub/pstest/fake.go +++ b/pubsub/pstest/fake.go @@ -92,6 +92,7 @@ type Server struct { type GServer struct { pb.PublisherServer pb.SubscriberServer + pb.SchemaServiceServer mu sync.Mutex topics map[string]*topic diff --git a/pubsublite/apiv1/doc.go b/pubsublite/apiv1/doc.go index 0def227ed54f..527d92f3481a 100644 --- a/pubsublite/apiv1/doc.go +++ b/pubsublite/apiv1/doc.go @@ -17,6 +17,11 @@ // Package pubsublite is an auto-generated package for the // Pub/Sub Lite API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -71,9 +76,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package pubsublite // import "cloud.google.com/go/pubsublite/apiv1" import ( diff --git a/pubsublite/go.mod b/pubsublite/go.mod index 24a4f0c2309c..64dbc28dd68f 100644 --- a/pubsublite/go.mod +++ b/pubsublite/go.mod @@ -11,22 +11,22 @@ require ( github.com/google/uuid v1.3.0 github.com/googleapis/gax-go/v2 v2.7.0 golang.org/x/sync v0.1.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.13.0 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect - cloud.google.com/go/iam v0.7.0 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/pubsublite/go.sum b/pubsublite/go.sum index c22b9d5df39c..1bd391093ccc 100644 --- a/pubsublite/go.sum +++ b/pubsublite/go.sum @@ -1,12 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute v1.13.0 h1:AYrLkB8NPdDRslNp4Jxmzrhdr03fUAIDbiGFjLWowoU= -cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= -cloud.google.com/go/iam v0.7.0 h1:k4MuwOsS7zGJJ+QfZ5vBK8SgHBAvYN/23BWsiihJ1vs= -cloud.google.com/go/iam v0.7.0/go.mod h1:H5Br8wRaDGNc8XP3keLc4unfUUZeyH3Sfl9XpQEYOeg= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/kms v1.6.0 h1:OWRZzrPmOZUzurjI2FBGtgY2mB1WaJkqhw6oIwSj0Yg= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= @@ -51,8 +51,8 @@ github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -97,17 +97,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -115,8 +114,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd h1:OjndDrsik+Gt+e6fs45z9AxiewiKyLKYpA45W5Kpkks= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/recaptchaenterprise/v2/apiv1/doc.go b/recaptchaenterprise/v2/apiv1/doc.go index b527aeae7c9f..e86374a2b3cc 100644 --- a/recaptchaenterprise/v2/apiv1/doc.go +++ b/recaptchaenterprise/v2/apiv1/doc.go @@ -20,6 +20,11 @@ // Help protect your website from fraudulent activity, spam, and abuse // without creating friction. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package recaptchaenterprise // import "cloud.google.com/go/recaptchaenterprise/v2/apiv1" import ( diff --git a/recaptchaenterprise/v2/apiv1beta1/doc.go b/recaptchaenterprise/v2/apiv1beta1/doc.go index 85d29ed6165e..375c77703323 100644 --- a/recaptchaenterprise/v2/apiv1beta1/doc.go +++ b/recaptchaenterprise/v2/apiv1beta1/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package recaptchaenterprise // import "cloud.google.com/go/recaptchaenterprise/v2/apiv1beta1" import ( diff --git a/recaptchaenterprise/v2/go.mod b/recaptchaenterprise/v2/go.mod index 2eb5490b6e4b..aef7951bbbbc 100644 --- a/recaptchaenterprise/v2/go.mod +++ b/recaptchaenterprise/v2/go.mod @@ -5,23 +5,23 @@ go 1.19 require ( cloud.google.com/go/recaptchaenterprise v1.3.1 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/recaptchaenterprise/v2/go.sum b/recaptchaenterprise/v2/go.sum index 8aeb4bcacaee..82a8f12a16ea 100644 --- a/recaptchaenterprise/v2/go.sum +++ b/recaptchaenterprise/v2/go.sum @@ -38,10 +38,10 @@ cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTB cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= @@ -163,8 +163,8 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= @@ -394,8 +394,8 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -491,8 +491,8 @@ google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/S google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= google.golang.org/api v0.77.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -572,8 +572,8 @@ google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/recommendationengine/apiv1beta1/doc.go b/recommendationengine/apiv1beta1/doc.go index e7b8d45d2d47..f681b9ff6c6a 100644 --- a/recommendationengine/apiv1beta1/doc.go +++ b/recommendationengine/apiv1beta1/doc.go @@ -23,6 +23,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -77,9 +82,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package recommendationengine // import "cloud.google.com/go/recommendationengine/apiv1beta1" import ( diff --git a/recommendationengine/go.mod b/recommendationengine/go.mod index a6643eae59c0..274ad0733090 100644 --- a/recommendationengine/go.mod +++ b/recommendationengine/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/recommendationengine/go.sum b/recommendationengine/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/recommendationengine/go.sum +++ b/recommendationengine/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/recommender/apiv1/doc.go b/recommender/apiv1/doc.go index 084337de049c..21c7b755c6b5 100644 --- a/recommender/apiv1/doc.go +++ b/recommender/apiv1/doc.go @@ -17,6 +17,11 @@ // Package recommender is an auto-generated package for the // Recommender API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -77,9 +82,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package recommender // import "cloud.google.com/go/recommender/apiv1" import ( diff --git a/recommender/apiv1beta1/doc.go b/recommender/apiv1beta1/doc.go index 3ec433d96b89..e73e1ab9b1c5 100644 --- a/recommender/apiv1beta1/doc.go +++ b/recommender/apiv1beta1/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package recommender // import "cloud.google.com/go/recommender/apiv1beta1" import ( diff --git a/recommender/go.mod b/recommender/go.mod index b7f85386bf74..65889eaecd99 100644 --- a/recommender/go.mod +++ b/recommender/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/recommender/go.sum b/recommender/go.sum index b197d3308493..067d9e20ab06 100644 --- a/recommender/go.sum +++ b/recommender/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/redis/apiv1/doc.go b/redis/apiv1/doc.go index 35f5a4f49282..2e210caa480b 100644 --- a/redis/apiv1/doc.go +++ b/redis/apiv1/doc.go @@ -19,6 +19,11 @@ // // Creates and manages Redis instances on the Google Cloud Platform. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package redis // import "cloud.google.com/go/redis/apiv1" import ( diff --git a/redis/apiv1beta1/doc.go b/redis/apiv1beta1/doc.go index 06c8b90062c6..644302316824 100644 --- a/redis/apiv1beta1/doc.go +++ b/redis/apiv1beta1/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -81,9 +86,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package redis // import "cloud.google.com/go/redis/apiv1beta1" import ( diff --git a/redis/go.mod b/redis/go.mod index b11b8a9be93e..63ad3f8cfe78 100644 --- a/redis/go.mod +++ b/redis/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/redis/go.sum b/redis/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/redis/go.sum +++ b/redis/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/resourcemanager/apiv2/doc.go b/resourcemanager/apiv2/doc.go index 6098c7a5e215..78ca4f3ff2bc 100644 --- a/resourcemanager/apiv2/doc.go +++ b/resourcemanager/apiv2/doc.go @@ -20,6 +20,11 @@ // Creates, reads, and updates metadata for Google Cloud Platform resource // containers. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package resourcemanager // import "cloud.google.com/go/resourcemanager/apiv2" import ( diff --git a/resourcemanager/apiv3/doc.go b/resourcemanager/apiv3/doc.go index 7f99550ad218..d00cba4ef761 100644 --- a/resourcemanager/apiv3/doc.go +++ b/resourcemanager/apiv3/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package resourcemanager // import "cloud.google.com/go/resourcemanager/apiv3" import ( diff --git a/resourcemanager/go.mod b/resourcemanager/go.mod index f1078db71cbc..5fda9acf01c8 100644 --- a/resourcemanager/go.mod +++ b/resourcemanager/go.mod @@ -5,24 +5,25 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/resourcemanager/go.sum b/resourcemanager/go.sum index 1957b0c5def1..299518b5132c 100644 --- a/resourcemanager/go.sum +++ b/resourcemanager/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/resourcesettings/apiv1/doc.go b/resourcesettings/apiv1/doc.go index 81bcdb25dc43..ca73171dd72f 100644 --- a/resourcesettings/apiv1/doc.go +++ b/resourcesettings/apiv1/doc.go @@ -21,6 +21,11 @@ // of their GCP resources (e.g., VM, firewall, Project, etc.) across the // Cloud Resource Hierarchy. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -81,9 +86,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package resourcesettings // import "cloud.google.com/go/resourcesettings/apiv1" import ( diff --git a/resourcesettings/go.mod b/resourcesettings/go.mod index 4ef9a40fc32f..5436c7b825a8 100644 --- a/resourcesettings/go.mod +++ b/resourcesettings/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/resourcesettings/go.sum b/resourcesettings/go.sum index b197d3308493..067d9e20ab06 100644 --- a/resourcesettings/go.sum +++ b/resourcesettings/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/retail/apiv2/doc.go b/retail/apiv2/doc.go index e6749ed58e40..6dc366714f49 100644 --- a/retail/apiv2/doc.go +++ b/retail/apiv2/doc.go @@ -21,6 +21,11 @@ // recommendation systems without requiring a high level of expertise in // machine learning, recommendation system, or Google Cloud. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -81,9 +86,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package retail // import "cloud.google.com/go/retail/apiv2" import ( diff --git a/retail/apiv2alpha/doc.go b/retail/apiv2alpha/doc.go index 03f13de4201e..7646d8e1b31f 100644 --- a/retail/apiv2alpha/doc.go +++ b/retail/apiv2alpha/doc.go @@ -23,6 +23,11 @@ // // NOTE: This package is in alpha. It is not stable, and is likely to change. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -83,9 +88,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package retail // import "cloud.google.com/go/retail/apiv2alpha" import ( diff --git a/retail/apiv2beta/doc.go b/retail/apiv2beta/doc.go index 82a64521bb14..791899101868 100644 --- a/retail/apiv2beta/doc.go +++ b/retail/apiv2beta/doc.go @@ -23,6 +23,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -83,9 +88,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package retail // import "cloud.google.com/go/retail/apiv2beta" import ( diff --git a/retail/go.mod b/retail/go.mod index be51bc3debdc..7d5dc6efa5a8 100644 --- a/retail/go.mod +++ b/retail/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/retail/go.sum b/retail/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/retail/go.sum +++ b/retail/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/run/apiv2/doc.go b/run/apiv2/doc.go index 4fbe9c79a5e5..4427a8c43765 100644 --- a/run/apiv2/doc.go +++ b/run/apiv2/doc.go @@ -25,6 +25,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package run // import "cloud.google.com/go/run/apiv2" import ( diff --git a/run/go.mod b/run/go.mod index 68e49fa6852a..17f1b8240c4e 100644 --- a/run/go.mod +++ b/run/go.mod @@ -5,24 +5,25 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/run/go.sum b/run/go.sum index 1957b0c5def1..299518b5132c 100644 --- a/run/go.sum +++ b/run/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/scheduler/apiv1/doc.go b/scheduler/apiv1/doc.go index 7c33a9c4dc63..4ba80c5a7b85 100644 --- a/scheduler/apiv1/doc.go +++ b/scheduler/apiv1/doc.go @@ -19,6 +19,11 @@ // // Creates and manages jobs run on a regular recurring schedule. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package scheduler // import "cloud.google.com/go/scheduler/apiv1" import ( diff --git a/scheduler/apiv1beta1/doc.go b/scheduler/apiv1beta1/doc.go index bee33734f23b..41260b3216a9 100644 --- a/scheduler/apiv1beta1/doc.go +++ b/scheduler/apiv1beta1/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -81,9 +86,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package scheduler // import "cloud.google.com/go/scheduler/apiv1beta1" import ( diff --git a/scheduler/go.mod b/scheduler/go.mod index c7b0fba1ef93..6c97e44465ca 100644 --- a/scheduler/go.mod +++ b/scheduler/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/scheduler/go.sum b/scheduler/go.sum index b197d3308493..067d9e20ab06 100644 --- a/scheduler/go.sum +++ b/scheduler/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/secretmanager/apiv1/doc.go b/secretmanager/apiv1/doc.go index d20688e6ed36..f3231c91e8b4 100644 --- a/secretmanager/apiv1/doc.go +++ b/secretmanager/apiv1/doc.go @@ -20,6 +20,11 @@ // Stores sensitive data such as API keys, passwords, and certificates. // Provides convenience while improving security. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package secretmanager // import "cloud.google.com/go/secretmanager/apiv1" import ( diff --git a/secretmanager/go.mod b/secretmanager/go.mod index de24b71c0fa1..13daf478e734 100644 --- a/secretmanager/go.mod +++ b/secretmanager/go.mod @@ -5,23 +5,23 @@ go 1.19 require ( cloud.google.com/go/iam v0.8.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/secretmanager/go.sum b/secretmanager/go.sum index c2eb6ebd850b..475f34dc59b9 100644 --- a/secretmanager/go.sum +++ b/secretmanager/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/security/go.mod b/security/go.mod index 1f533eb82aee..702200e524ea 100644 --- a/security/go.mod +++ b/security/go.mod @@ -5,24 +5,25 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/security/go.sum b/security/go.sum index 1957b0c5def1..299518b5132c 100644 --- a/security/go.sum +++ b/security/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/security/privateca/apiv1/doc.go b/security/privateca/apiv1/doc.go index d342e97ac8bb..8aee328db916 100644 --- a/security/privateca/apiv1/doc.go +++ b/security/privateca/apiv1/doc.go @@ -22,6 +22,11 @@ // private certificate authorities (CAs) while staying in control of your // private keys. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package privateca // import "cloud.google.com/go/security/privateca/apiv1" import ( diff --git a/security/privateca/apiv1beta1/doc.go b/security/privateca/apiv1beta1/doc.go index 902419c699db..eba068a3e1b3 100644 --- a/security/privateca/apiv1beta1/doc.go +++ b/security/privateca/apiv1beta1/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package privateca // import "cloud.google.com/go/security/privateca/apiv1beta1" import ( diff --git a/security/publicca/apiv1beta1/doc.go b/security/publicca/apiv1beta1/doc.go index 51b412901e70..176e35ec2205 100644 --- a/security/publicca/apiv1beta1/doc.go +++ b/security/publicca/apiv1beta1/doc.go @@ -23,6 +23,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -77,9 +82,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package publicca // import "cloud.google.com/go/security/publicca/apiv1beta1" import ( diff --git a/securitycenter/apiv1/doc.go b/securitycenter/apiv1/doc.go index bb62472b48d2..50692344a376 100644 --- a/securitycenter/apiv1/doc.go +++ b/securitycenter/apiv1/doc.go @@ -20,6 +20,11 @@ // Security Command Center API provides access to temporal views of assets // and findings within an organization. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package securitycenter // import "cloud.google.com/go/securitycenter/apiv1" import ( diff --git a/securitycenter/apiv1beta1/doc.go b/securitycenter/apiv1beta1/doc.go index 93d9aa87ac7c..9639942a0c31 100644 --- a/securitycenter/apiv1beta1/doc.go +++ b/securitycenter/apiv1beta1/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package securitycenter // import "cloud.google.com/go/securitycenter/apiv1beta1" import ( diff --git a/securitycenter/apiv1p1beta1/doc.go b/securitycenter/apiv1p1beta1/doc.go index b02d8a8662b9..4ab6de666f7a 100644 --- a/securitycenter/apiv1p1beta1/doc.go +++ b/securitycenter/apiv1p1beta1/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package securitycenter // import "cloud.google.com/go/securitycenter/apiv1p1beta1" import ( diff --git a/securitycenter/go.mod b/securitycenter/go.mod index 946ef5a95984..f1d63bf8a0aa 100644 --- a/securitycenter/go.mod +++ b/securitycenter/go.mod @@ -5,24 +5,25 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/securitycenter/go.sum b/securitycenter/go.sum index 1957b0c5def1..299518b5132c 100644 --- a/securitycenter/go.sum +++ b/securitycenter/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/securitycenter/settings/apiv1beta1/doc.go b/securitycenter/settings/apiv1beta1/doc.go index f548bf8ca700..cf58ddd21315 100644 --- a/securitycenter/settings/apiv1beta1/doc.go +++ b/securitycenter/settings/apiv1beta1/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package settings // import "cloud.google.com/go/securitycenter/settings/apiv1beta1" import ( diff --git a/servicecontrol/apiv1/doc.go b/servicecontrol/apiv1/doc.go index 973ca7733072..fdeff4a0daf3 100644 --- a/servicecontrol/apiv1/doc.go +++ b/servicecontrol/apiv1/doc.go @@ -20,6 +20,11 @@ // Provides admission control and telemetry reporting for services integrated // with Service Infrastructure. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package servicecontrol // import "cloud.google.com/go/servicecontrol/apiv1" import ( diff --git a/servicecontrol/go.mod b/servicecontrol/go.mod index 897c76f1fedb..725e7851496f 100644 --- a/servicecontrol/go.mod +++ b/servicecontrol/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/servicecontrol/go.sum b/servicecontrol/go.sum index b197d3308493..067d9e20ab06 100644 --- a/servicecontrol/go.sum +++ b/servicecontrol/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/servicedirectory/apiv1/doc.go b/servicedirectory/apiv1/doc.go index 9a06d81dba66..4747ed6e5097 100644 --- a/servicedirectory/apiv1/doc.go +++ b/servicedirectory/apiv1/doc.go @@ -20,6 +20,11 @@ // Service Directory is a platform for discovering, publishing, and // connecting services. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package servicedirectory // import "cloud.google.com/go/servicedirectory/apiv1" import ( diff --git a/servicedirectory/apiv1beta1/doc.go b/servicedirectory/apiv1beta1/doc.go index c56da8576433..8c2405beb857 100644 --- a/servicedirectory/apiv1beta1/doc.go +++ b/servicedirectory/apiv1beta1/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package servicedirectory // import "cloud.google.com/go/servicedirectory/apiv1beta1" import ( diff --git a/servicedirectory/go.mod b/servicedirectory/go.mod index 9770c362d0ae..d0c45536393d 100644 --- a/servicedirectory/go.mod +++ b/servicedirectory/go.mod @@ -4,23 +4,24 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/servicedirectory/go.sum b/servicedirectory/go.sum index b197d3308493..475f34dc59b9 100644 --- a/servicedirectory/go.sum +++ b/servicedirectory/go.sum @@ -1,9 +1,11 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/servicemanagement/apiv1/doc.go b/servicemanagement/apiv1/doc.go index dee10340070c..29f2ccc41c04 100644 --- a/servicemanagement/apiv1/doc.go +++ b/servicemanagement/apiv1/doc.go @@ -21,6 +21,11 @@ // services on Google Cloud Platform so that they can be discovered and used // by service consumers. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -81,9 +86,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package servicemanagement // import "cloud.google.com/go/servicemanagement/apiv1" import ( diff --git a/servicemanagement/go.mod b/servicemanagement/go.mod index 7cb0181514a4..c6ac719d1739 100644 --- a/servicemanagement/go.mod +++ b/servicemanagement/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/servicemanagement/go.sum b/servicemanagement/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/servicemanagement/go.sum +++ b/servicemanagement/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/serviceusage/apiv1/doc.go b/serviceusage/apiv1/doc.go index 9b4c1dc30c8f..1a540e85c8b1 100644 --- a/serviceusage/apiv1/doc.go +++ b/serviceusage/apiv1/doc.go @@ -21,6 +21,11 @@ // Platform, lists the available or enabled services, or disables services // that service consumers no longer use. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package serviceusage // import "cloud.google.com/go/serviceusage/apiv1" import ( diff --git a/serviceusage/go.mod b/serviceusage/go.mod index 40bc30cf09bd..8c860142879c 100644 --- a/serviceusage/go.mod +++ b/serviceusage/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/serviceusage/go.sum b/serviceusage/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/serviceusage/go.sum +++ b/serviceusage/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/shell/apiv1/doc.go b/shell/apiv1/doc.go index 5324840645e8..e7db4e4950f5 100644 --- a/shell/apiv1/doc.go +++ b/shell/apiv1/doc.go @@ -20,6 +20,11 @@ // Allows users to start, configure, and connect to interactive shell // sessions running in the cloud. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package shell // import "cloud.google.com/go/shell/apiv1" import ( diff --git a/shell/go.mod b/shell/go.mod index 50251fd72927..26d267f1c938 100644 --- a/shell/go.mod +++ b/shell/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/shell/go.sum b/shell/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/shell/go.sum +++ b/shell/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/spanner/admin/database/apiv1/doc.go b/spanner/admin/database/apiv1/doc.go index e822df075eff..b616c1e486eb 100644 --- a/spanner/admin/database/apiv1/doc.go +++ b/spanner/admin/database/apiv1/doc.go @@ -20,6 +20,11 @@ // Cloud Spanner is a managed, mission-critical, globally consistent and // scalable relational database service. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package database // import "cloud.google.com/go/spanner/admin/database/apiv1" import ( diff --git a/spanner/admin/instance/apiv1/doc.go b/spanner/admin/instance/apiv1/doc.go index 1443be700434..434043debdaf 100644 --- a/spanner/admin/instance/apiv1/doc.go +++ b/spanner/admin/instance/apiv1/doc.go @@ -17,6 +17,11 @@ // Package instance is an auto-generated package for the // Cloud Spanner Instance Admin API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -77,9 +82,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package instance // import "cloud.google.com/go/spanner/admin/instance/apiv1" import ( diff --git a/spanner/apiv1/doc.go b/spanner/apiv1/doc.go index 4a2be2cd68bc..5f81f0dc764e 100644 --- a/spanner/apiv1/doc.go +++ b/spanner/apiv1/doc.go @@ -20,6 +20,11 @@ // Cloud Spanner is a managed, mission-critical, globally consistent and // scalable relational database service. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package spanner // import "cloud.google.com/go/spanner/apiv1" import ( diff --git a/spanner/apiv1/spanner_client.go b/spanner/apiv1/spanner_client.go index 58adc3423391..6de640382e11 100644 --- a/spanner/apiv1/spanner_client.go +++ b/spanner/apiv1/spanner_client.go @@ -916,6 +916,7 @@ func (c *gRPCClient) ExecuteStreamingSql(ctx context.Context, req *spannerpb.Exe md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "session", url.QueryEscape(req.GetSession()))) ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).ExecuteStreamingSql[0:len((*c.CallOptions).ExecuteStreamingSql):len((*c.CallOptions).ExecuteStreamingSql)], opts...) var resp spannerpb.Spanner_ExecuteStreamingSqlClient err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { var err error @@ -976,6 +977,7 @@ func (c *gRPCClient) StreamingRead(ctx context.Context, req *spannerpb.ReadReque md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "session", url.QueryEscape(req.GetSession()))) ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).StreamingRead[0:len((*c.CallOptions).StreamingRead):len((*c.CallOptions).StreamingRead)], opts...) var resp spannerpb.Spanner_StreamingReadClient err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { var err error diff --git a/spanner/go.mod b/spanner/go.mod index 1c600a7272a3..abfb548a9c75 100644 --- a/spanner/go.mod +++ b/spanner/go.mod @@ -10,15 +10,16 @@ require ( github.com/googleapis/gax-go/v2 v2.7.0 go.opencensus.io v0.24.0 golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.13.0 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/census-instrumentation/opencensus-proto v0.3.0 // indirect github.com/cespare/xxhash/v2 v2.1.1 // indirect github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4 // indirect @@ -26,10 +27,10 @@ require ( github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1 // indirect github.com/envoyproxy/protoc-gen-validate v0.1.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/spanner/go.sum b/spanner/go.sum index 119dbde50d52..89c93db3f66a 100644 --- a/spanner/go.sum +++ b/spanner/go.sum @@ -2,10 +2,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMT cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute v1.13.0 h1:AYrLkB8NPdDRslNp4Jxmzrhdr03fUAIDbiGFjLWowoU= -cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -66,8 +68,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= @@ -122,8 +124,8 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= @@ -133,8 +135,8 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -143,8 +145,8 @@ google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoA google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd h1:OjndDrsik+Gt+e6fs45z9AxiewiKyLKYpA45W5Kpkks= -google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/speech/apiv1/doc.go b/speech/apiv1/doc.go index e169e5d3d642..c92c088681ca 100644 --- a/speech/apiv1/doc.go +++ b/speech/apiv1/doc.go @@ -19,6 +19,11 @@ // // Converts audio to text by applying powerful neural network models. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package speech // import "cloud.google.com/go/speech/apiv1" import ( diff --git a/speech/apiv1p1beta1/doc.go b/speech/apiv1p1beta1/doc.go index 9ed82f9294f4..369f041e7a20 100644 --- a/speech/apiv1p1beta1/doc.go +++ b/speech/apiv1p1beta1/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package speech // import "cloud.google.com/go/speech/apiv1p1beta1" import ( diff --git a/speech/apiv2/doc.go b/speech/apiv2/doc.go index f2d82254f3c0..935f05235981 100644 --- a/speech/apiv2/doc.go +++ b/speech/apiv2/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package speech // import "cloud.google.com/go/speech/apiv2" import ( diff --git a/speech/go.mod b/speech/go.mod index 4ce970a10a10..4aaafacabb2f 100644 --- a/speech/go.mod +++ b/speech/go.mod @@ -7,7 +7,7 @@ require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 google.golang.org/api v0.106.0 - google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) diff --git a/speech/go.sum b/speech/go.sum index c2cb5cf5c3e8..271a0755e3ee 100644 --- a/speech/go.sum +++ b/speech/go.sum @@ -106,8 +106,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6 h1:uUn6GsgKK2eCI0bWeRMgRCcqDaQXYDuB+5tXA5Xeg/8= -google.golang.org/genproto v0.0.0-20230109162033-3c3c17ce83e6/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/storage/go.mod b/storage/go.mod index 4b717fad6910..f62e1517fe5b 100644 --- a/storage/go.mod +++ b/storage/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( cloud.google.com/go v0.107.0 - cloud.google.com/go/compute/metadata v0.2.2 + cloud.google.com/go/compute/metadata v0.2.3 cloud.google.com/go/iam v0.8.0 github.com/golang/protobuf v1.5.2 github.com/google/go-cmp v0.5.9 @@ -12,20 +12,20 @@ require ( github.com/googleapis/gax-go/v2 v2.7.0 golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201204527-e3fa12d562f3 + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/google/martian/v3 v3.2.1 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/storage/go.sum b/storage/go.sum index cd53a350147d..deaeda7a3eb5 100644 --- a/storage/go.sum +++ b/storage/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.2 h1:aWKAjYaBaOSrpKl57+jnS/3fJRQnxL7TvR/u1VVbt6k= -cloud.google.com/go/compute/metadata v0.2.2/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= @@ -54,8 +54,8 @@ github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3 github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -100,8 +100,8 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= @@ -110,8 +110,8 @@ golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBn golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -119,8 +119,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201204527-e3fa12d562f3 h1:BCcW+lhENGqZ2R2MsM9oty220E8vY9E4QC1Tq05hN1E= -google.golang.org/genproto v0.0.0-20221201204527-e3fa12d562f3/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/storage/internal/apiv2/doc.go b/storage/internal/apiv2/doc.go index e756a5905f5f..e33b5222ab38 100644 --- a/storage/internal/apiv2/doc.go +++ b/storage/internal/apiv2/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in alpha. It is not stable, and is likely to change. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package storage // import "cloud.google.com/go/storage/internal/apiv2" import ( diff --git a/storage/internal/apiv2/storage_client.go b/storage/internal/apiv2/storage_client.go index a4105b0cd4a0..aa2c1aff5727 100644 --- a/storage/internal/apiv2/storage_client.go +++ b/storage/internal/apiv2/storage_client.go @@ -1057,6 +1057,7 @@ func (c *gRPCClient) ReadObject(ctx context.Context, req *storagepb.ReadObjectRe md := metadata.Pairs("x-goog-request-params", routingHeaders) ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).ReadObject[0:len((*c.CallOptions).ReadObject):len((*c.CallOptions).ReadObject)], opts...) var resp storagepb.Storage_ReadObjectClient err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { var err error diff --git a/storagetransfer/apiv1/doc.go b/storagetransfer/apiv1/doc.go index 905e775f3ffa..724ba0634bca 100644 --- a/storagetransfer/apiv1/doc.go +++ b/storagetransfer/apiv1/doc.go @@ -20,6 +20,11 @@ // Transfers data from external data sources to a Google Cloud Storage bucket // or between Google Cloud Storage buckets. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package storagetransfer // import "cloud.google.com/go/storagetransfer/apiv1" import ( diff --git a/storagetransfer/go.mod b/storagetransfer/go.mod index 880dc16f90b6..19564544a5bd 100644 --- a/storagetransfer/go.mod +++ b/storagetransfer/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/storagetransfer/go.sum b/storagetransfer/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/storagetransfer/go.sum +++ b/storagetransfer/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/talent/apiv4/doc.go b/talent/apiv4/doc.go index 563c062df84d..9fcc90f79e64 100644 --- a/talent/apiv4/doc.go +++ b/talent/apiv4/doc.go @@ -20,6 +20,11 @@ // Cloud Talent Solution provides the capability to create, read, update, and // delete job postings, as well as search jobs based on keywords and filters. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package talent // import "cloud.google.com/go/talent/apiv4" import ( diff --git a/talent/apiv4beta1/doc.go b/talent/apiv4beta1/doc.go index 5568c445744b..05360ee6de5c 100644 --- a/talent/apiv4beta1/doc.go +++ b/talent/apiv4beta1/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package talent // import "cloud.google.com/go/talent/apiv4beta1" import ( diff --git a/talent/go.mod b/talent/go.mod index 02275ae3cc8b..12d762bad09f 100644 --- a/talent/go.mod +++ b/talent/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/talent/go.sum b/talent/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/talent/go.sum +++ b/talent/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/texttospeech/apiv1/doc.go b/texttospeech/apiv1/doc.go index 70645a974201..b5f385743e68 100644 --- a/texttospeech/apiv1/doc.go +++ b/texttospeech/apiv1/doc.go @@ -20,6 +20,11 @@ // Synthesizes natural-sounding speech by applying powerful neural network // models. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -74,9 +79,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package texttospeech // import "cloud.google.com/go/texttospeech/apiv1" import ( diff --git a/texttospeech/go.mod b/texttospeech/go.mod index a0490b1f5824..8096865301a3 100644 --- a/texttospeech/go.mod +++ b/texttospeech/go.mod @@ -6,23 +6,23 @@ require ( cloud.google.com/go v0.107.0 cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/texttospeech/go.sum b/texttospeech/go.sum index 0386b42fb65e..271a0755e3ee 100644 --- a/texttospeech/go.sum +++ b/texttospeech/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -45,8 +45,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -89,16 +89,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -106,8 +106,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/tpu/apiv1/doc.go b/tpu/apiv1/doc.go index 0589a3dd1261..d08b0e4d1aaa 100644 --- a/tpu/apiv1/doc.go +++ b/tpu/apiv1/doc.go @@ -19,6 +19,11 @@ // // TPU API provides customers with access to Google TPU technology. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package tpu // import "cloud.google.com/go/tpu/apiv1" import ( diff --git a/tpu/go.mod b/tpu/go.mod index c2ba1c1d302d..b1c51fd54830 100644 --- a/tpu/go.mod +++ b/tpu/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/tpu/go.sum b/tpu/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/tpu/go.sum +++ b/tpu/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/trace/apiv1/doc.go b/trace/apiv1/doc.go index 8179f109ec74..6a1e2e37139c 100644 --- a/trace/apiv1/doc.go +++ b/trace/apiv1/doc.go @@ -23,6 +23,11 @@ // interact with the Trace API directly. If you are looking to instrument // your application for Stackdriver Trace, we recommend using OpenCensus. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -83,9 +88,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package trace // import "cloud.google.com/go/trace/apiv1" import ( diff --git a/trace/apiv2/doc.go b/trace/apiv2/doc.go index 2fba8631f2e2..9641f7396f5a 100644 --- a/trace/apiv2/doc.go +++ b/trace/apiv2/doc.go @@ -23,6 +23,11 @@ // interact with the Trace API directly. If you are looking to instrument // your application for Stackdriver Trace, we recommend using OpenCensus. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package trace // import "cloud.google.com/go/trace/apiv2" import ( diff --git a/trace/go.mod b/trace/go.mod index f21f670d96fc..15c9746bcd44 100644 --- a/trace/go.mod +++ b/trace/go.mod @@ -5,23 +5,23 @@ go 1.19 require ( cloud.google.com/go v0.107.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/trace/go.sum b/trace/go.sum index b9c603c36f7d..fccaca102b68 100644 --- a/trace/go.sum +++ b/trace/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/translate/apiv3/doc.go b/translate/apiv3/doc.go index 1f4299f1a5ea..6ab0b9b4050c 100644 --- a/translate/apiv3/doc.go +++ b/translate/apiv3/doc.go @@ -19,6 +19,11 @@ // // Integrates text translation into your website or application. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package translate // import "cloud.google.com/go/translate/apiv3" import ( diff --git a/translate/go.mod b/translate/go.mod index 42b0cbd6f85c..fda267040955 100644 --- a/translate/go.mod +++ b/translate/go.mod @@ -7,20 +7,20 @@ require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 golang.org/x/text v0.5.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/google/uuid v1.3.0 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect diff --git a/translate/go.sum b/translate/go.sum index bc076db383e7..50199f72e73d 100644 --- a/translate/go.sum +++ b/translate/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -46,8 +46,8 @@ github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -98,9 +98,8 @@ golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -108,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/video/go.mod b/video/go.mod index 6caec7a8bca7..3a8ca6bb99ca 100644 --- a/video/go.mod +++ b/video/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/video/go.sum b/video/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/video/go.sum +++ b/video/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/video/livestream/apiv1/doc.go b/video/livestream/apiv1/doc.go index 8c59be7f9d77..1756663c25d3 100644 --- a/video/livestream/apiv1/doc.go +++ b/video/livestream/apiv1/doc.go @@ -17,6 +17,11 @@ // Package livestream is an auto-generated package for the // Live Stream API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -76,9 +81,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package livestream // import "cloud.google.com/go/video/livestream/apiv1" import ( diff --git a/video/stitcher/apiv1/doc.go b/video/stitcher/apiv1/doc.go index e7d085c9f967..86317f163a59 100644 --- a/video/stitcher/apiv1/doc.go +++ b/video/stitcher/apiv1/doc.go @@ -17,6 +17,11 @@ // Package stitcher is an auto-generated package for the // Video Stitcher API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -71,9 +76,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package stitcher // import "cloud.google.com/go/video/stitcher/apiv1" import ( diff --git a/video/transcoder/apiv1/doc.go b/video/transcoder/apiv1/doc.go index 50df004761fc..c97296045047 100644 --- a/video/transcoder/apiv1/doc.go +++ b/video/transcoder/apiv1/doc.go @@ -21,6 +21,11 @@ // distribution. For more information, see the TranscoderAPI overview (at // https://cloud.google.com/transcoder/docs/concepts/overview). // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package transcoder // import "cloud.google.com/go/video/transcoder/apiv1" import ( diff --git a/videointelligence/apiv1/doc.go b/videointelligence/apiv1/doc.go index 19df710dd665..c85d3441a71c 100644 --- a/videointelligence/apiv1/doc.go +++ b/videointelligence/apiv1/doc.go @@ -21,6 +21,11 @@ // specifies the region for annotation and transcribes speech to text. // Supports both asynchronous API and streaming API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package videointelligence // import "cloud.google.com/go/videointelligence/apiv1" import ( diff --git a/videointelligence/apiv1beta2/doc.go b/videointelligence/apiv1beta2/doc.go index c5d3c1a78583..d81642d04706 100644 --- a/videointelligence/apiv1beta2/doc.go +++ b/videointelligence/apiv1beta2/doc.go @@ -23,6 +23,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -82,9 +87,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package videointelligence // import "cloud.google.com/go/videointelligence/apiv1beta2" import ( diff --git a/videointelligence/apiv1p3beta1/doc.go b/videointelligence/apiv1p3beta1/doc.go index b1763e2ae0c9..29a45386aa14 100644 --- a/videointelligence/apiv1p3beta1/doc.go +++ b/videointelligence/apiv1p3beta1/doc.go @@ -23,6 +23,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -82,9 +87,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package videointelligence // import "cloud.google.com/go/videointelligence/apiv1p3beta1" import ( diff --git a/videointelligence/go.mod b/videointelligence/go.mod index c1eaae9b3c12..79452e67d26a 100644 --- a/videointelligence/go.mod +++ b/videointelligence/go.mod @@ -6,23 +6,23 @@ require ( cloud.google.com/go v0.107.0 cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/videointelligence/go.sum b/videointelligence/go.sum index 0386b42fb65e..271a0755e3ee 100644 --- a/videointelligence/go.sum +++ b/videointelligence/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.107.0 h1:qkj22L7bgkl6vIeZDlOY2po43Mx/TIa2Wsa7VR+PEww= cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -45,8 +45,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -89,16 +89,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -106,8 +106,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/vision/v2/apiv1/doc.go b/vision/v2/apiv1/doc.go index a8504b04c71e..747b2349b802 100644 --- a/vision/v2/apiv1/doc.go +++ b/vision/v2/apiv1/doc.go @@ -21,6 +21,11 @@ // and landmark detection, optical character recognition (OCR), and detection // of explicit content, into applications. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -75,9 +80,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package vision // import "cloud.google.com/go/vision/v2/apiv1" import ( diff --git a/vision/v2/apiv1p1beta1/doc.go b/vision/v2/apiv1p1beta1/doc.go index 478bbc427c20..41ce28649229 100644 --- a/vision/v2/apiv1p1beta1/doc.go +++ b/vision/v2/apiv1p1beta1/doc.go @@ -23,6 +23,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -77,9 +82,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package vision // import "cloud.google.com/go/vision/v2/apiv1p1beta1" import ( diff --git a/vision/v2/go.mod b/vision/v2/go.mod index e09c38ec9bb4..8467ea44f89e 100644 --- a/vision/v2/go.mod +++ b/vision/v2/go.mod @@ -6,24 +6,24 @@ require ( cloud.google.com/go/longrunning v0.3.0 cloud.google.com/go/vision v1.2.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/vision/v2/go.sum b/vision/v2/go.sum index a9503e598082..8af18032b072 100644 --- a/vision/v2/go.sum +++ b/vision/v2/go.sum @@ -37,10 +37,10 @@ cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4g cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= @@ -161,8 +161,8 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= @@ -381,8 +381,8 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -474,8 +474,8 @@ google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3h google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -548,8 +548,8 @@ google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ6 google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= diff --git a/vmmigration/apiv1/doc.go b/vmmigration/apiv1/doc.go index 55126a2728ba..a0b4337e23a5 100644 --- a/vmmigration/apiv1/doc.go +++ b/vmmigration/apiv1/doc.go @@ -20,6 +20,11 @@ // Use the Migrate to Virtual Machines API to programmatically migrate // workloads. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package vmmigration // import "cloud.google.com/go/vmmigration/apiv1" import ( diff --git a/vmmigration/apiv1/gapic_metadata.json b/vmmigration/apiv1/gapic_metadata.json index c5809526e179..25b2dae714a7 100644 --- a/vmmigration/apiv1/gapic_metadata.json +++ b/vmmigration/apiv1/gapic_metadata.json @@ -25,6 +25,11 @@ "CancelCutoverJob" ] }, + "CancelOperation": { + "methods": [ + "CancelOperation" + ] + }, "CreateCloneJob": { "methods": [ "CreateCloneJob" @@ -80,6 +85,11 @@ "DeleteMigratingVm" ] }, + "DeleteOperation": { + "methods": [ + "DeleteOperation" + ] + }, "DeleteSource": { "methods": [ "DeleteSource" @@ -125,11 +135,26 @@ "GetGroup" ] }, + "GetLocation": { + "methods": [ + "GetLocation" + ] + }, "GetMigratingVm": { "methods": [ "GetMigratingVm" ] }, + "GetOperation": { + "methods": [ + "GetOperation" + ] + }, + "GetReplicationCycle": { + "methods": [ + "GetReplicationCycle" + ] + }, "GetSource": { "methods": [ "GetSource" @@ -165,11 +190,26 @@ "ListGroups" ] }, + "ListLocations": { + "methods": [ + "ListLocations" + ] + }, "ListMigratingVms": { "methods": [ "ListMigratingVms" ] }, + "ListOperations": { + "methods": [ + "ListOperations" + ] + }, + "ListReplicationCycles": { + "methods": [ + "ListReplicationCycles" + ] + }, "ListSources": { "methods": [ "ListSources" @@ -250,6 +290,11 @@ "CancelCutoverJob" ] }, + "CancelOperation": { + "methods": [ + "CancelOperation" + ] + }, "CreateCloneJob": { "methods": [ "CreateCloneJob" @@ -305,6 +350,11 @@ "DeleteMigratingVm" ] }, + "DeleteOperation": { + "methods": [ + "DeleteOperation" + ] + }, "DeleteSource": { "methods": [ "DeleteSource" @@ -350,11 +400,26 @@ "GetGroup" ] }, + "GetLocation": { + "methods": [ + "GetLocation" + ] + }, "GetMigratingVm": { "methods": [ "GetMigratingVm" ] }, + "GetOperation": { + "methods": [ + "GetOperation" + ] + }, + "GetReplicationCycle": { + "methods": [ + "GetReplicationCycle" + ] + }, "GetSource": { "methods": [ "GetSource" @@ -390,11 +455,26 @@ "ListGroups" ] }, + "ListLocations": { + "methods": [ + "ListLocations" + ] + }, "ListMigratingVms": { "methods": [ "ListMigratingVms" ] }, + "ListOperations": { + "methods": [ + "ListOperations" + ] + }, + "ListReplicationCycles": { + "methods": [ + "ListReplicationCycles" + ] + }, "ListSources": { "methods": [ "ListSources" diff --git a/vmmigration/apiv1/vm_migration_client.go b/vmmigration/apiv1/vm_migration_client.go index e362489e2c8b..da5f45986535 100644 --- a/vmmigration/apiv1/vm_migration_client.go +++ b/vmmigration/apiv1/vm_migration_client.go @@ -36,6 +36,7 @@ import ( "google.golang.org/api/option/internaloption" gtransport "google.golang.org/api/transport/grpc" httptransport "google.golang.org/api/transport/http" + locationpb "google.golang.org/genproto/googleapis/cloud/location" longrunningpb "google.golang.org/genproto/googleapis/longrunning" "google.golang.org/grpc" "google.golang.org/grpc/metadata" @@ -91,6 +92,14 @@ type CallOptions struct { CreateTargetProject []gax.CallOption UpdateTargetProject []gax.CallOption DeleteTargetProject []gax.CallOption + ListReplicationCycles []gax.CallOption + GetReplicationCycle []gax.CallOption + GetLocation []gax.CallOption + ListLocations []gax.CallOption + CancelOperation []gax.CallOption + DeleteOperation []gax.CallOption + GetOperation []gax.CallOption + ListOperations []gax.CallOption } func defaultGRPCClientOptions() []option.ClientOption { @@ -151,6 +160,14 @@ func defaultCallOptions() *CallOptions { CreateTargetProject: []gax.CallOption{}, UpdateTargetProject: []gax.CallOption{}, DeleteTargetProject: []gax.CallOption{}, + ListReplicationCycles: []gax.CallOption{}, + GetReplicationCycle: []gax.CallOption{}, + GetLocation: []gax.CallOption{}, + ListLocations: []gax.CallOption{}, + CancelOperation: []gax.CallOption{}, + DeleteOperation: []gax.CallOption{}, + GetOperation: []gax.CallOption{}, + ListOperations: []gax.CallOption{}, } } @@ -200,6 +217,14 @@ func defaultRESTCallOptions() *CallOptions { CreateTargetProject: []gax.CallOption{}, UpdateTargetProject: []gax.CallOption{}, DeleteTargetProject: []gax.CallOption{}, + ListReplicationCycles: []gax.CallOption{}, + GetReplicationCycle: []gax.CallOption{}, + GetLocation: []gax.CallOption{}, + ListLocations: []gax.CallOption{}, + CancelOperation: []gax.CallOption{}, + DeleteOperation: []gax.CallOption{}, + GetOperation: []gax.CallOption{}, + ListOperations: []gax.CallOption{}, } } @@ -279,6 +304,14 @@ type internalClient interface { UpdateTargetProjectOperation(name string) *UpdateTargetProjectOperation DeleteTargetProject(context.Context, *vmmigrationpb.DeleteTargetProjectRequest, ...gax.CallOption) (*DeleteTargetProjectOperation, error) DeleteTargetProjectOperation(name string) *DeleteTargetProjectOperation + ListReplicationCycles(context.Context, *vmmigrationpb.ListReplicationCyclesRequest, ...gax.CallOption) *ReplicationCycleIterator + GetReplicationCycle(context.Context, *vmmigrationpb.GetReplicationCycleRequest, ...gax.CallOption) (*vmmigrationpb.ReplicationCycle, error) + GetLocation(context.Context, *locationpb.GetLocationRequest, ...gax.CallOption) (*locationpb.Location, error) + ListLocations(context.Context, *locationpb.ListLocationsRequest, ...gax.CallOption) *LocationIterator + CancelOperation(context.Context, *longrunningpb.CancelOperationRequest, ...gax.CallOption) error + DeleteOperation(context.Context, *longrunningpb.DeleteOperationRequest, ...gax.CallOption) error + GetOperation(context.Context, *longrunningpb.GetOperationRequest, ...gax.CallOption) (*longrunningpb.Operation, error) + ListOperations(context.Context, *longrunningpb.ListOperationsRequest, ...gax.CallOption) *OperationIterator } // Client is a client for interacting with VM Migration API. @@ -732,6 +765,46 @@ func (c *Client) DeleteTargetProjectOperation(name string) *DeleteTargetProjectO return c.internalClient.DeleteTargetProjectOperation(name) } +// ListReplicationCycles lists ReplicationCycles in a given MigratingVM. +func (c *Client) ListReplicationCycles(ctx context.Context, req *vmmigrationpb.ListReplicationCyclesRequest, opts ...gax.CallOption) *ReplicationCycleIterator { + return c.internalClient.ListReplicationCycles(ctx, req, opts...) +} + +// GetReplicationCycle gets details of a single ReplicationCycle. +func (c *Client) GetReplicationCycle(ctx context.Context, req *vmmigrationpb.GetReplicationCycleRequest, opts ...gax.CallOption) (*vmmigrationpb.ReplicationCycle, error) { + return c.internalClient.GetReplicationCycle(ctx, req, opts...) +} + +// GetLocation gets information about a location. +func (c *Client) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error) { + return c.internalClient.GetLocation(ctx, req, opts...) +} + +// ListLocations lists information about the supported locations for this service. +func (c *Client) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator { + return c.internalClient.ListLocations(ctx, req, opts...) +} + +// CancelOperation is a utility method from google.longrunning.Operations. +func (c *Client) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error { + return c.internalClient.CancelOperation(ctx, req, opts...) +} + +// DeleteOperation is a utility method from google.longrunning.Operations. +func (c *Client) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error { + return c.internalClient.DeleteOperation(ctx, req, opts...) +} + +// GetOperation is a utility method from google.longrunning.Operations. +func (c *Client) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error) { + return c.internalClient.GetOperation(ctx, req, opts...) +} + +// ListOperations is a utility method from google.longrunning.Operations. +func (c *Client) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator { + return c.internalClient.ListOperations(ctx, req, opts...) +} + // gRPCClient is a client for interacting with VM Migration API over gRPC transport. // // Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. @@ -753,6 +826,10 @@ type gRPCClient struct { // Users should not Close this client. LROClient **lroauto.OperationsClient + operationsClient longrunningpb.OperationsClient + + locationsClient locationpb.LocationsClient + // The x-goog-* metadata to be sent with each request. xGoogMetadata metadata.MD } @@ -787,6 +864,8 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error disableDeadlines: disableDeadlines, client: vmmigrationpb.NewVmMigrationClient(connPool), CallOptions: &client.CallOptions, + operationsClient: longrunningpb.NewOperationsClient(connPool), + locationsClient: locationpb.NewLocationsClient(connPool), } c.setGoogleClientInfo() @@ -2118,6 +2197,223 @@ func (c *gRPCClient) DeleteTargetProject(ctx context.Context, req *vmmigrationpb }, nil } +func (c *gRPCClient) ListReplicationCycles(ctx context.Context, req *vmmigrationpb.ListReplicationCyclesRequest, opts ...gax.CallOption) *ReplicationCycleIterator { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).ListReplicationCycles[0:len((*c.CallOptions).ListReplicationCycles):len((*c.CallOptions).ListReplicationCycles)], opts...) + it := &ReplicationCycleIterator{} + req = proto.Clone(req).(*vmmigrationpb.ListReplicationCyclesRequest) + it.InternalFetch = func(pageSize int, pageToken string) ([]*vmmigrationpb.ReplicationCycle, string, error) { + resp := &vmmigrationpb.ListReplicationCyclesResponse{} + if pageToken != "" { + req.PageToken = pageToken + } + if pageSize > math.MaxInt32 { + req.PageSize = math.MaxInt32 + } else if pageSize != 0 { + req.PageSize = int32(pageSize) + } + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.client.ListReplicationCycles(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, "", err + } + + it.Response = resp + return resp.GetReplicationCycles(), resp.GetNextPageToken(), nil + } + fetch := func(pageSize int, pageToken string) (string, error) { + items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) + if err != nil { + return "", err + } + it.items = append(it.items, items...) + return nextPageToken, nil + } + + it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) + it.pageInfo.MaxSize = int(req.GetPageSize()) + it.pageInfo.Token = req.GetPageToken() + + return it +} + +func (c *gRPCClient) GetReplicationCycle(ctx context.Context, req *vmmigrationpb.GetReplicationCycleRequest, opts ...gax.CallOption) (*vmmigrationpb.ReplicationCycle, error) { + if _, ok := ctx.Deadline(); !ok && !c.disableDeadlines { + cctx, cancel := context.WithTimeout(ctx, 60000*time.Millisecond) + defer cancel() + ctx = cctx + } + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).GetReplicationCycle[0:len((*c.CallOptions).GetReplicationCycle):len((*c.CallOptions).GetReplicationCycle)], opts...) + var resp *vmmigrationpb.ReplicationCycle + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.client.GetReplicationCycle(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return resp, nil +} + +func (c *gRPCClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error) { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).GetLocation[0:len((*c.CallOptions).GetLocation):len((*c.CallOptions).GetLocation)], opts...) + var resp *locationpb.Location + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.locationsClient.GetLocation(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return resp, nil +} + +func (c *gRPCClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).ListLocations[0:len((*c.CallOptions).ListLocations):len((*c.CallOptions).ListLocations)], opts...) + it := &LocationIterator{} + req = proto.Clone(req).(*locationpb.ListLocationsRequest) + it.InternalFetch = func(pageSize int, pageToken string) ([]*locationpb.Location, string, error) { + resp := &locationpb.ListLocationsResponse{} + if pageToken != "" { + req.PageToken = pageToken + } + if pageSize > math.MaxInt32 { + req.PageSize = math.MaxInt32 + } else if pageSize != 0 { + req.PageSize = int32(pageSize) + } + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.locationsClient.ListLocations(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, "", err + } + + it.Response = resp + return resp.GetLocations(), resp.GetNextPageToken(), nil + } + fetch := func(pageSize int, pageToken string) (string, error) { + items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) + if err != nil { + return "", err + } + it.items = append(it.items, items...) + return nextPageToken, nil + } + + it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) + it.pageInfo.MaxSize = int(req.GetPageSize()) + it.pageInfo.Token = req.GetPageToken() + + return it +} + +func (c *gRPCClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).CancelOperation[0:len((*c.CallOptions).CancelOperation):len((*c.CallOptions).CancelOperation)], opts...) + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + _, err = c.operationsClient.CancelOperation(ctx, req, settings.GRPC...) + return err + }, opts...) + return err +} + +func (c *gRPCClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).DeleteOperation[0:len((*c.CallOptions).DeleteOperation):len((*c.CallOptions).DeleteOperation)], opts...) + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + _, err = c.operationsClient.DeleteOperation(ctx, req, settings.GRPC...) + return err + }, opts...) + return err +} + +func (c *gRPCClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error) { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).GetOperation[0:len((*c.CallOptions).GetOperation):len((*c.CallOptions).GetOperation)], opts...) + var resp *longrunningpb.Operation + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.operationsClient.GetOperation(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, err + } + return resp, nil +} + +func (c *gRPCClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator { + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + ctx = insertMetadata(ctx, c.xGoogMetadata, md) + opts = append((*c.CallOptions).ListOperations[0:len((*c.CallOptions).ListOperations):len((*c.CallOptions).ListOperations)], opts...) + it := &OperationIterator{} + req = proto.Clone(req).(*longrunningpb.ListOperationsRequest) + it.InternalFetch = func(pageSize int, pageToken string) ([]*longrunningpb.Operation, string, error) { + resp := &longrunningpb.ListOperationsResponse{} + if pageToken != "" { + req.PageToken = pageToken + } + if pageSize > math.MaxInt32 { + req.PageSize = math.MaxInt32 + } else if pageSize != 0 { + req.PageSize = int32(pageSize) + } + err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + var err error + resp, err = c.operationsClient.ListOperations(ctx, req, settings.GRPC...) + return err + }, opts...) + if err != nil { + return nil, "", err + } + + it.Response = resp + return resp.GetOperations(), resp.GetNextPageToken(), nil + } + fetch := func(pageSize int, pageToken string) (string, error) { + items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) + if err != nil { + return "", err + } + it.items = append(it.items, items...) + return nextPageToken, nil + } + + it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) + it.pageInfo.MaxSize = int(req.GetPageSize()) + it.pageInfo.Token = req.GetPageToken() + + return it +} + // ListSources lists Sources in a given project and location. func (c *restClient) ListSources(ctx context.Context, req *vmmigrationpb.ListSourcesRequest, opts ...gax.CallOption) *SourceIterator { it := &SourceIterator{} @@ -5319,47 +5615,581 @@ func (c *restClient) DeleteTargetProject(ctx context.Context, req *vmmigrationpb }, nil } -// AddGroupMigrationOperation manages a long-running operation from AddGroupMigration. -type AddGroupMigrationOperation struct { - lro *longrunning.Operation - pollPath string -} - -// AddGroupMigrationOperation returns a new AddGroupMigrationOperation from a given name. -// The name must be that of a previously created AddGroupMigrationOperation, possibly from a different process. -func (c *gRPCClient) AddGroupMigrationOperation(name string) *AddGroupMigrationOperation { - return &AddGroupMigrationOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} +// ListReplicationCycles lists ReplicationCycles in a given MigratingVM. +func (c *restClient) ListReplicationCycles(ctx context.Context, req *vmmigrationpb.ListReplicationCyclesRequest, opts ...gax.CallOption) *ReplicationCycleIterator { + it := &ReplicationCycleIterator{} + req = proto.Clone(req).(*vmmigrationpb.ListReplicationCyclesRequest) + unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} + it.InternalFetch = func(pageSize int, pageToken string) ([]*vmmigrationpb.ReplicationCycle, string, error) { + resp := &vmmigrationpb.ListReplicationCyclesResponse{} + if pageToken != "" { + req.PageToken = pageToken + } + if pageSize > math.MaxInt32 { + req.PageSize = math.MaxInt32 + } else if pageSize != 0 { + req.PageSize = int32(pageSize) + } + baseUrl, err := url.Parse(c.endpoint) + if err != nil { + return nil, "", err + } + baseUrl.Path += fmt.Sprintf("/v1/%v/replicationCycles", req.GetParent()) -// AddGroupMigrationOperation returns a new AddGroupMigrationOperation from a given name. -// The name must be that of a previously created AddGroupMigrationOperation, possibly from a different process. -func (c *restClient) AddGroupMigrationOperation(name string) *AddGroupMigrationOperation { - override := fmt.Sprintf("/v1/%s", name) - return &AddGroupMigrationOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + if req.GetFilter() != "" { + params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) + } + if req.GetOrderBy() != "" { + params.Add("orderBy", fmt.Sprintf("%v", req.GetOrderBy())) + } + if req.GetPageSize() != 0 { + params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) + } + params.Add("pageToken", fmt.Sprintf("%v", req.GetPageToken())) -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *AddGroupMigrationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*vmmigrationpb.AddGroupMigrationResponse, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp vmmigrationpb.AddGroupMigrationResponse - if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { - return nil, err - } - return &resp, nil -} + baseUrl.RawQuery = params.Encode() -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and + // Build HTTP headers from client and context metadata. + headers := buildHeaders(ctx, c.xGoogMetadata, metadata.Pairs("Content-Type", "application/json")) + e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + if settings.Path != "" { + baseUrl.Path = settings.Path + } + httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) + if err != nil { + return err + } + httpReq.Header = headers + + httpRsp, err := c.httpClient.Do(httpReq) + if err != nil { + return err + } + defer httpRsp.Body.Close() + + if err = googleapi.CheckResponse(httpRsp); err != nil { + return err + } + + buf, err := ioutil.ReadAll(httpRsp.Body) + if err != nil { + return err + } + + if err := unm.Unmarshal(buf, resp); err != nil { + return maybeUnknownEnum(err) + } + + return nil + }, opts...) + if e != nil { + return nil, "", e + } + it.Response = resp + return resp.GetReplicationCycles(), resp.GetNextPageToken(), nil + } + + fetch := func(pageSize int, pageToken string) (string, error) { + items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) + if err != nil { + return "", err + } + it.items = append(it.items, items...) + return nextPageToken, nil + } + + it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) + it.pageInfo.MaxSize = int(req.GetPageSize()) + it.pageInfo.Token = req.GetPageToken() + + return it +} + +// GetReplicationCycle gets details of a single ReplicationCycle. +func (c *restClient) GetReplicationCycle(ctx context.Context, req *vmmigrationpb.GetReplicationCycleRequest, opts ...gax.CallOption) (*vmmigrationpb.ReplicationCycle, error) { + baseUrl, err := url.Parse(c.endpoint) + if err != nil { + return nil, err + } + baseUrl.Path += fmt.Sprintf("/v1/%v", req.GetName()) + + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + + // Build HTTP headers from client and context metadata. + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) + opts = append((*c.CallOptions).GetReplicationCycle[0:len((*c.CallOptions).GetReplicationCycle):len((*c.CallOptions).GetReplicationCycle)], opts...) + unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} + resp := &vmmigrationpb.ReplicationCycle{} + e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + if settings.Path != "" { + baseUrl.Path = settings.Path + } + httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) + if err != nil { + return err + } + httpReq = httpReq.WithContext(ctx) + httpReq.Header = headers + + httpRsp, err := c.httpClient.Do(httpReq) + if err != nil { + return err + } + defer httpRsp.Body.Close() + + if err = googleapi.CheckResponse(httpRsp); err != nil { + return err + } + + buf, err := ioutil.ReadAll(httpRsp.Body) + if err != nil { + return err + } + + if err := unm.Unmarshal(buf, resp); err != nil { + return maybeUnknownEnum(err) + } + + return nil + }, opts...) + if e != nil { + return nil, e + } + return resp, nil +} + +// GetLocation gets information about a location. +func (c *restClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error) { + baseUrl, err := url.Parse(c.endpoint) + if err != nil { + return nil, err + } + baseUrl.Path += fmt.Sprintf("/v1/%v", req.GetName()) + + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + + // Build HTTP headers from client and context metadata. + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) + opts = append((*c.CallOptions).GetLocation[0:len((*c.CallOptions).GetLocation):len((*c.CallOptions).GetLocation)], opts...) + unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} + resp := &locationpb.Location{} + e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + if settings.Path != "" { + baseUrl.Path = settings.Path + } + httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) + if err != nil { + return err + } + httpReq = httpReq.WithContext(ctx) + httpReq.Header = headers + + httpRsp, err := c.httpClient.Do(httpReq) + if err != nil { + return err + } + defer httpRsp.Body.Close() + + if err = googleapi.CheckResponse(httpRsp); err != nil { + return err + } + + buf, err := ioutil.ReadAll(httpRsp.Body) + if err != nil { + return err + } + + if err := unm.Unmarshal(buf, resp); err != nil { + return maybeUnknownEnum(err) + } + + return nil + }, opts...) + if e != nil { + return nil, e + } + return resp, nil +} + +// ListLocations lists information about the supported locations for this service. +func (c *restClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator { + it := &LocationIterator{} + req = proto.Clone(req).(*locationpb.ListLocationsRequest) + unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} + it.InternalFetch = func(pageSize int, pageToken string) ([]*locationpb.Location, string, error) { + resp := &locationpb.ListLocationsResponse{} + if pageToken != "" { + req.PageToken = pageToken + } + if pageSize > math.MaxInt32 { + req.PageSize = math.MaxInt32 + } else if pageSize != 0 { + req.PageSize = int32(pageSize) + } + baseUrl, err := url.Parse(c.endpoint) + if err != nil { + return nil, "", err + } + baseUrl.Path += fmt.Sprintf("/v1/%v/locations", req.GetName()) + + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + if req.GetFilter() != "" { + params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) + } + if req.GetPageSize() != 0 { + params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) + } + if req.GetPageToken() != "" { + params.Add("pageToken", fmt.Sprintf("%v", req.GetPageToken())) + } + + baseUrl.RawQuery = params.Encode() + + // Build HTTP headers from client and context metadata. + headers := buildHeaders(ctx, c.xGoogMetadata, metadata.Pairs("Content-Type", "application/json")) + e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + if settings.Path != "" { + baseUrl.Path = settings.Path + } + httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) + if err != nil { + return err + } + httpReq.Header = headers + + httpRsp, err := c.httpClient.Do(httpReq) + if err != nil { + return err + } + defer httpRsp.Body.Close() + + if err = googleapi.CheckResponse(httpRsp); err != nil { + return err + } + + buf, err := ioutil.ReadAll(httpRsp.Body) + if err != nil { + return err + } + + if err := unm.Unmarshal(buf, resp); err != nil { + return maybeUnknownEnum(err) + } + + return nil + }, opts...) + if e != nil { + return nil, "", e + } + it.Response = resp + return resp.GetLocations(), resp.GetNextPageToken(), nil + } + + fetch := func(pageSize int, pageToken string) (string, error) { + items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) + if err != nil { + return "", err + } + it.items = append(it.items, items...) + return nextPageToken, nil + } + + it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) + it.pageInfo.MaxSize = int(req.GetPageSize()) + it.pageInfo.Token = req.GetPageToken() + + return it +} + +// CancelOperation is a utility method from google.longrunning.Operations. +func (c *restClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error { + m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} + jsonReq, err := m.Marshal(req) + if err != nil { + return err + } + + baseUrl, err := url.Parse(c.endpoint) + if err != nil { + return err + } + baseUrl.Path += fmt.Sprintf("/v1/%v:cancel", req.GetName()) + + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + + // Build HTTP headers from client and context metadata. + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) + return gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + if settings.Path != "" { + baseUrl.Path = settings.Path + } + httpReq, err := http.NewRequest("POST", baseUrl.String(), bytes.NewReader(jsonReq)) + if err != nil { + return err + } + httpReq = httpReq.WithContext(ctx) + httpReq.Header = headers + + httpRsp, err := c.httpClient.Do(httpReq) + if err != nil { + return err + } + defer httpRsp.Body.Close() + + // Returns nil if there is no error, otherwise wraps + // the response code and body into a non-nil error + return googleapi.CheckResponse(httpRsp) + }, opts...) +} + +// DeleteOperation is a utility method from google.longrunning.Operations. +func (c *restClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error { + baseUrl, err := url.Parse(c.endpoint) + if err != nil { + return err + } + baseUrl.Path += fmt.Sprintf("/v1/%v", req.GetName()) + + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + + // Build HTTP headers from client and context metadata. + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) + return gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + if settings.Path != "" { + baseUrl.Path = settings.Path + } + httpReq, err := http.NewRequest("DELETE", baseUrl.String(), nil) + if err != nil { + return err + } + httpReq = httpReq.WithContext(ctx) + httpReq.Header = headers + + httpRsp, err := c.httpClient.Do(httpReq) + if err != nil { + return err + } + defer httpRsp.Body.Close() + + // Returns nil if there is no error, otherwise wraps + // the response code and body into a non-nil error + return googleapi.CheckResponse(httpRsp) + }, opts...) +} + +// GetOperation is a utility method from google.longrunning.Operations. +func (c *restClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error) { + baseUrl, err := url.Parse(c.endpoint) + if err != nil { + return nil, err + } + baseUrl.Path += fmt.Sprintf("/v1/%v", req.GetName()) + + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + + baseUrl.RawQuery = params.Encode() + + // Build HTTP headers from client and context metadata. + md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) + + headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) + opts = append((*c.CallOptions).GetOperation[0:len((*c.CallOptions).GetOperation):len((*c.CallOptions).GetOperation)], opts...) + unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} + resp := &longrunningpb.Operation{} + e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + if settings.Path != "" { + baseUrl.Path = settings.Path + } + httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) + if err != nil { + return err + } + httpReq = httpReq.WithContext(ctx) + httpReq.Header = headers + + httpRsp, err := c.httpClient.Do(httpReq) + if err != nil { + return err + } + defer httpRsp.Body.Close() + + if err = googleapi.CheckResponse(httpRsp); err != nil { + return err + } + + buf, err := ioutil.ReadAll(httpRsp.Body) + if err != nil { + return err + } + + if err := unm.Unmarshal(buf, resp); err != nil { + return maybeUnknownEnum(err) + } + + return nil + }, opts...) + if e != nil { + return nil, e + } + return resp, nil +} + +// ListOperations is a utility method from google.longrunning.Operations. +func (c *restClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator { + it := &OperationIterator{} + req = proto.Clone(req).(*longrunningpb.ListOperationsRequest) + unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} + it.InternalFetch = func(pageSize int, pageToken string) ([]*longrunningpb.Operation, string, error) { + resp := &longrunningpb.ListOperationsResponse{} + if pageToken != "" { + req.PageToken = pageToken + } + if pageSize > math.MaxInt32 { + req.PageSize = math.MaxInt32 + } else if pageSize != 0 { + req.PageSize = int32(pageSize) + } + baseUrl, err := url.Parse(c.endpoint) + if err != nil { + return nil, "", err + } + baseUrl.Path += fmt.Sprintf("/v1/%v/operations", req.GetName()) + + params := url.Values{} + params.Add("$alt", "json;enum-encoding=int") + if req.GetFilter() != "" { + params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) + } + if req.GetPageSize() != 0 { + params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) + } + if req.GetPageToken() != "" { + params.Add("pageToken", fmt.Sprintf("%v", req.GetPageToken())) + } + + baseUrl.RawQuery = params.Encode() + + // Build HTTP headers from client and context metadata. + headers := buildHeaders(ctx, c.xGoogMetadata, metadata.Pairs("Content-Type", "application/json")) + e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { + if settings.Path != "" { + baseUrl.Path = settings.Path + } + httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) + if err != nil { + return err + } + httpReq.Header = headers + + httpRsp, err := c.httpClient.Do(httpReq) + if err != nil { + return err + } + defer httpRsp.Body.Close() + + if err = googleapi.CheckResponse(httpRsp); err != nil { + return err + } + + buf, err := ioutil.ReadAll(httpRsp.Body) + if err != nil { + return err + } + + if err := unm.Unmarshal(buf, resp); err != nil { + return maybeUnknownEnum(err) + } + + return nil + }, opts...) + if e != nil { + return nil, "", e + } + it.Response = resp + return resp.GetOperations(), resp.GetNextPageToken(), nil + } + + fetch := func(pageSize int, pageToken string) (string, error) { + items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) + if err != nil { + return "", err + } + it.items = append(it.items, items...) + return nextPageToken, nil + } + + it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) + it.pageInfo.MaxSize = int(req.GetPageSize()) + it.pageInfo.Token = req.GetPageToken() + + return it +} + +// AddGroupMigrationOperation manages a long-running operation from AddGroupMigration. +type AddGroupMigrationOperation struct { + lro *longrunning.Operation + pollPath string +} + +// AddGroupMigrationOperation returns a new AddGroupMigrationOperation from a given name. +// The name must be that of a previously created AddGroupMigrationOperation, possibly from a different process. +func (c *gRPCClient) AddGroupMigrationOperation(name string) *AddGroupMigrationOperation { + return &AddGroupMigrationOperation{ + lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), + } +} + +// AddGroupMigrationOperation returns a new AddGroupMigrationOperation from a given name. +// The name must be that of a previously created AddGroupMigrationOperation, possibly from a different process. +func (c *restClient) AddGroupMigrationOperation(name string) *AddGroupMigrationOperation { + override := fmt.Sprintf("/v1/%s", name) + return &AddGroupMigrationOperation{ + lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), + pollPath: override, + } +} + +// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. +// +// See documentation of Poll for error-handling information. +func (op *AddGroupMigrationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*vmmigrationpb.AddGroupMigrationResponse, error) { + opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) + var resp vmmigrationpb.AddGroupMigrationResponse + if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { + return nil, err + } + return &resp, nil +} + +// Poll fetches the latest state of the long-running operation. +// +// Poll also fetches the latest metadata, which can be retrieved by Metadata. +// +// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and // the operation has completed with failure, the error is returned and op.Done will return true. // If Poll succeeds and the operation has completed successfully, // op.Done will return true, and the response of the operation is returned. @@ -7655,6 +8485,53 @@ func (it *GroupIterator) takeBuf() interface{} { return b } +// LocationIterator manages a stream of *locationpb.Location. +type LocationIterator struct { + items []*locationpb.Location + pageInfo *iterator.PageInfo + nextFunc func() error + + // Response is the raw response for the current page. + // It must be cast to the RPC response type. + // Calling Next() or InternalFetch() updates this value. + Response interface{} + + // InternalFetch is for use by the Google Cloud Libraries only. + // It is not part of the stable interface of this package. + // + // InternalFetch returns results from a single call to the underlying RPC. + // The number of results is no greater than pageSize. + // If there are no more results, nextPageToken is empty and err is nil. + InternalFetch func(pageSize int, pageToken string) (results []*locationpb.Location, nextPageToken string, err error) +} + +// PageInfo supports pagination. See the google.golang.org/api/iterator package for details. +func (it *LocationIterator) PageInfo() *iterator.PageInfo { + return it.pageInfo +} + +// Next returns the next result. Its second return value is iterator.Done if there are no more +// results. Once Next returns Done, all subsequent calls will return Done. +func (it *LocationIterator) Next() (*locationpb.Location, error) { + var item *locationpb.Location + if err := it.nextFunc(); err != nil { + return item, err + } + item = it.items[0] + it.items = it.items[1:] + return item, nil +} + +func (it *LocationIterator) bufLen() int { + return len(it.items) +} + +func (it *LocationIterator) takeBuf() interface{} { + b := it.items + it.items = nil + return b +} + // MigratingVmIterator manages a stream of *vmmigrationpb.MigratingVm. type MigratingVmIterator struct { items []*vmmigrationpb.MigratingVm @@ -7702,6 +8579,100 @@ func (it *MigratingVmIterator) takeBuf() interface{} { return b } +// OperationIterator manages a stream of *longrunningpb.Operation. +type OperationIterator struct { + items []*longrunningpb.Operation + pageInfo *iterator.PageInfo + nextFunc func() error + + // Response is the raw response for the current page. + // It must be cast to the RPC response type. + // Calling Next() or InternalFetch() updates this value. + Response interface{} + + // InternalFetch is for use by the Google Cloud Libraries only. + // It is not part of the stable interface of this package. + // + // InternalFetch returns results from a single call to the underlying RPC. + // The number of results is no greater than pageSize. + // If there are no more results, nextPageToken is empty and err is nil. + InternalFetch func(pageSize int, pageToken string) (results []*longrunningpb.Operation, nextPageToken string, err error) +} + +// PageInfo supports pagination. See the google.golang.org/api/iterator package for details. +func (it *OperationIterator) PageInfo() *iterator.PageInfo { + return it.pageInfo +} + +// Next returns the next result. Its second return value is iterator.Done if there are no more +// results. Once Next returns Done, all subsequent calls will return Done. +func (it *OperationIterator) Next() (*longrunningpb.Operation, error) { + var item *longrunningpb.Operation + if err := it.nextFunc(); err != nil { + return item, err + } + item = it.items[0] + it.items = it.items[1:] + return item, nil +} + +func (it *OperationIterator) bufLen() int { + return len(it.items) +} + +func (it *OperationIterator) takeBuf() interface{} { + b := it.items + it.items = nil + return b +} + +// ReplicationCycleIterator manages a stream of *vmmigrationpb.ReplicationCycle. +type ReplicationCycleIterator struct { + items []*vmmigrationpb.ReplicationCycle + pageInfo *iterator.PageInfo + nextFunc func() error + + // Response is the raw response for the current page. + // It must be cast to the RPC response type. + // Calling Next() or InternalFetch() updates this value. + Response interface{} + + // InternalFetch is for use by the Google Cloud Libraries only. + // It is not part of the stable interface of this package. + // + // InternalFetch returns results from a single call to the underlying RPC. + // The number of results is no greater than pageSize. + // If there are no more results, nextPageToken is empty and err is nil. + InternalFetch func(pageSize int, pageToken string) (results []*vmmigrationpb.ReplicationCycle, nextPageToken string, err error) +} + +// PageInfo supports pagination. See the google.golang.org/api/iterator package for details. +func (it *ReplicationCycleIterator) PageInfo() *iterator.PageInfo { + return it.pageInfo +} + +// Next returns the next result. Its second return value is iterator.Done if there are no more +// results. Once Next returns Done, all subsequent calls will return Done. +func (it *ReplicationCycleIterator) Next() (*vmmigrationpb.ReplicationCycle, error) { + var item *vmmigrationpb.ReplicationCycle + if err := it.nextFunc(); err != nil { + return item, err + } + item = it.items[0] + it.items = it.items[1:] + return item, nil +} + +func (it *ReplicationCycleIterator) bufLen() int { + return len(it.items) +} + +func (it *ReplicationCycleIterator) takeBuf() interface{} { + b := it.items + it.items = nil + return b +} + // SourceIterator manages a stream of *vmmigrationpb.Source. type SourceIterator struct { items []*vmmigrationpb.Source diff --git a/vmmigration/apiv1/vm_migration_client_example_test.go b/vmmigration/apiv1/vm_migration_client_example_test.go index 2b6f6c0bc7df..46eaa0decc28 100644 --- a/vmmigration/apiv1/vm_migration_client_example_test.go +++ b/vmmigration/apiv1/vm_migration_client_example_test.go @@ -22,6 +22,8 @@ import ( vmmigration "cloud.google.com/go/vmmigration/apiv1" vmmigrationpb "cloud.google.com/go/vmmigration/apiv1/vmmigrationpb" "google.golang.org/api/iterator" + locationpb "google.golang.org/genproto/googleapis/cloud/location" + longrunningpb "google.golang.org/genproto/googleapis/longrunning" ) func ExampleNewClient() { @@ -1328,3 +1330,217 @@ func ExampleClient_DeleteTargetProject() { // TODO: Handle error. } } + +func ExampleClient_ListReplicationCycles() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.ListReplicationCyclesRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#ListReplicationCyclesRequest. + } + it := c.ListReplicationCycles(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +func ExampleClient_GetReplicationCycle() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &vmmigrationpb.GetReplicationCycleRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/cloud.google.com/go/vmmigration/apiv1/vmmigrationpb#GetReplicationCycleRequest. + } + resp, err := c.GetReplicationCycle(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +func ExampleClient_GetLocation() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.GetLocationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest. + } + resp, err := c.GetLocation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +func ExampleClient_ListLocations() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &locationpb.ListLocationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest. + } + it := c.ListLocations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} + +func ExampleClient_CancelOperation() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.CancelOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#CancelOperationRequest. + } + err = c.CancelOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +func ExampleClient_DeleteOperation() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.DeleteOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#DeleteOperationRequest. + } + err = c.DeleteOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } +} + +func ExampleClient_GetOperation() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.GetOperationRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#GetOperationRequest. + } + resp, err := c.GetOperation(ctx, req) + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp +} + +func ExampleClient_ListOperations() { + ctx := context.Background() + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in: + // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options + c, err := vmmigration.NewClient(ctx) + if err != nil { + // TODO: Handle error. + } + defer c.Close() + + req := &longrunningpb.ListOperationsRequest{ + // TODO: Fill request struct fields. + // See https://pkg.go.dev/google.golang.org/genproto/googleapis/longrunning#ListOperationsRequest. + } + it := c.ListOperations(ctx, req) + for { + resp, err := it.Next() + if err == iterator.Done { + break + } + if err != nil { + // TODO: Handle error. + } + // TODO: Use resp. + _ = resp + } +} diff --git a/vmmigration/apiv1/vmmigrationpb/vmmigration.pb.go b/vmmigration/apiv1/vmmigrationpb/vmmigration.pb.go index dff72d674174..d5cf918e0d97 100644 --- a/vmmigration/apiv1/vmmigrationpb/vmmigration.pb.go +++ b/vmmigration/apiv1/vmmigrationpb/vmmigration.pb.go @@ -321,6 +321,68 @@ func (ComputeEngineBootOption) EnumDescriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{4} } +// Possible states of a replication cycle. +type ReplicationCycle_State int32 + +const ( + // The state is unknown. This is used for API compatibility only and is not + // used by the system. + ReplicationCycle_STATE_UNSPECIFIED ReplicationCycle_State = 0 + // The replication cycle is running. + ReplicationCycle_RUNNING ReplicationCycle_State = 1 + // The replication cycle is paused. + ReplicationCycle_PAUSED ReplicationCycle_State = 2 + // The replication cycle finished with errors. + ReplicationCycle_FAILED ReplicationCycle_State = 3 + // The replication cycle finished successfully. + ReplicationCycle_SUCCEEDED ReplicationCycle_State = 4 +) + +// Enum value maps for ReplicationCycle_State. +var ( + ReplicationCycle_State_name = map[int32]string{ + 0: "STATE_UNSPECIFIED", + 1: "RUNNING", + 2: "PAUSED", + 3: "FAILED", + 4: "SUCCEEDED", + } + ReplicationCycle_State_value = map[string]int32{ + "STATE_UNSPECIFIED": 0, + "RUNNING": 1, + "PAUSED": 2, + "FAILED": 3, + "SUCCEEDED": 4, + } +) + +func (x ReplicationCycle_State) Enum() *ReplicationCycle_State { + p := new(ReplicationCycle_State) + *p = x + return p +} + +func (x ReplicationCycle_State) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ReplicationCycle_State) Descriptor() protoreflect.EnumDescriptor { + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[5].Descriptor() +} + +func (ReplicationCycle_State) Type() protoreflect.EnumType { + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[5] +} + +func (x ReplicationCycle_State) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ReplicationCycle_State.Descriptor instead. +func (ReplicationCycle_State) EnumDescriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{0, 0} +} + // The possible values of the state/health of source VM. type MigratingVm_State int32 @@ -400,11 +462,11 @@ func (x MigratingVm_State) String() string { } func (MigratingVm_State) Descriptor() protoreflect.EnumDescriptor { - return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[5].Descriptor() + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[6].Descriptor() } func (MigratingVm_State) Type() protoreflect.EnumType { - return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[5] + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[6] } func (x MigratingVm_State) Number() protoreflect.EnumNumber { @@ -413,7 +475,7 @@ func (x MigratingVm_State) Number() protoreflect.EnumNumber { // Deprecated: Use MigratingVm_State.Descriptor instead. func (MigratingVm_State) EnumDescriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{2, 0} + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{6, 0} } // Possible states of the clone job. @@ -474,11 +536,11 @@ func (x CloneJob_State) String() string { } func (CloneJob_State) Descriptor() protoreflect.EnumDescriptor { - return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[6].Descriptor() + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[7].Descriptor() } func (CloneJob_State) Type() protoreflect.EnumType { - return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[6] + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[7] } func (x CloneJob_State) Number() protoreflect.EnumNumber { @@ -487,7 +549,7 @@ func (x CloneJob_State) Number() protoreflect.EnumNumber { // Deprecated: Use CloneJob_State.Descriptor instead. func (CloneJob_State) EnumDescriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{3, 0} + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{7, 0} } // Possible states of the cutover job. @@ -548,11 +610,11 @@ func (x CutoverJob_State) String() string { } func (CutoverJob_State) Descriptor() protoreflect.EnumDescriptor { - return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[7].Descriptor() + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[8].Descriptor() } func (CutoverJob_State) Type() protoreflect.EnumType { - return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[7] + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[8] } func (x CutoverJob_State) Number() protoreflect.EnumNumber { @@ -561,7 +623,67 @@ func (x CutoverJob_State) Number() protoreflect.EnumNumber { // Deprecated: Use CutoverJob_State.Descriptor instead. func (CutoverJob_State) EnumDescriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{4, 0} + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{12, 0} +} + +// The possible values of the state. +type AwsSourceDetails_State int32 + +const ( + // The state is unknown. This is used for API compatibility only and is not + // used by the system. + AwsSourceDetails_STATE_UNSPECIFIED AwsSourceDetails_State = 0 + // The state was not sampled by the health checks yet. + AwsSourceDetails_PENDING AwsSourceDetails_State = 1 + // The source is available but might not be usable yet due to invalid + // credentials or another reason. + // The error message will contain further details. + AwsSourceDetails_FAILED AwsSourceDetails_State = 2 + // The source exists and its credentials were verified. + AwsSourceDetails_ACTIVE AwsSourceDetails_State = 3 +) + +// Enum value maps for AwsSourceDetails_State. +var ( + AwsSourceDetails_State_name = map[int32]string{ + 0: "STATE_UNSPECIFIED", + 1: "PENDING", + 2: "FAILED", + 3: "ACTIVE", + } + AwsSourceDetails_State_value = map[string]int32{ + "STATE_UNSPECIFIED": 0, + "PENDING": 1, + "FAILED": 2, + "ACTIVE": 3, + } +) + +func (x AwsSourceDetails_State) Enum() *AwsSourceDetails_State { + p := new(AwsSourceDetails_State) + *p = x + return p +} + +func (x AwsSourceDetails_State) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AwsSourceDetails_State) Descriptor() protoreflect.EnumDescriptor { + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[9].Descriptor() +} + +func (AwsSourceDetails_State) Type() protoreflect.EnumType { + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[9] +} + +func (x AwsSourceDetails_State) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AwsSourceDetails_State.Descriptor instead. +func (AwsSourceDetails_State) EnumDescriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{23, 0} } // The possible values of the state. @@ -612,11 +734,11 @@ func (x DatacenterConnector_State) String() string { } func (DatacenterConnector_State) Descriptor() protoreflect.EnumDescriptor { - return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[8].Descriptor() + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[10].Descriptor() } func (DatacenterConnector_State) Type() protoreflect.EnumType { - return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[8] + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[10] } func (x DatacenterConnector_State) Number() protoreflect.EnumNumber { @@ -625,7 +747,7 @@ func (x DatacenterConnector_State) Number() protoreflect.EnumNumber { // Deprecated: Use DatacenterConnector_State.Descriptor instead. func (DatacenterConnector_State) EnumDescriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{13, 0} + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{24, 0} } // The possible values of the state. @@ -669,11 +791,11 @@ func (x UpgradeStatus_State) String() string { } func (UpgradeStatus_State) Descriptor() protoreflect.EnumDescriptor { - return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[9].Descriptor() + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[11].Descriptor() } func (UpgradeStatus_State) Type() protoreflect.EnumType { - return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[9] + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[11] } func (x UpgradeStatus_State) Number() protoreflect.EnumNumber { @@ -682,7 +804,7 @@ func (x UpgradeStatus_State) Number() protoreflect.EnumNumber { // Deprecated: Use UpgradeStatus_State.Descriptor instead. func (UpgradeStatus_State) EnumDescriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{14, 0} + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{25, 0} } // Possible values for the power state of the VM. @@ -726,11 +848,11 @@ func (x VmwareVmDetails_PowerState) String() string { } func (VmwareVmDetails_PowerState) Descriptor() protoreflect.EnumDescriptor { - return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[10].Descriptor() + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[12].Descriptor() } func (VmwareVmDetails_PowerState) Type() protoreflect.EnumType { - return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[10] + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[12] } func (x VmwareVmDetails_PowerState) Number() protoreflect.EnumNumber { @@ -739,7 +861,7 @@ func (x VmwareVmDetails_PowerState) Number() protoreflect.EnumNumber { // Deprecated: Use VmwareVmDetails_PowerState.Descriptor instead. func (VmwareVmDetails_PowerState) EnumDescriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{24, 0} + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{35, 0} } // Possible values for vm boot option. @@ -779,11 +901,11 @@ func (x VmwareVmDetails_BootOption) String() string { } func (VmwareVmDetails_BootOption) Descriptor() protoreflect.EnumDescriptor { - return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[11].Descriptor() + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[13].Descriptor() } func (VmwareVmDetails_BootOption) Type() protoreflect.EnumType { - return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[11] + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[13] } func (x VmwareVmDetails_BootOption) Number() protoreflect.EnumNumber { @@ -792,7 +914,236 @@ func (x VmwareVmDetails_BootOption) Number() protoreflect.EnumNumber { // Deprecated: Use VmwareVmDetails_BootOption.Descriptor instead. func (VmwareVmDetails_BootOption) EnumDescriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{24, 1} + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{35, 1} +} + +// Possible values for the power state of the VM. +type AwsVmDetails_PowerState int32 + +const ( + // Power state is not specified. + AwsVmDetails_POWER_STATE_UNSPECIFIED AwsVmDetails_PowerState = 0 + // The VM is turned on. + AwsVmDetails_ON AwsVmDetails_PowerState = 1 + // The VM is turned off. + AwsVmDetails_OFF AwsVmDetails_PowerState = 2 + // The VM is suspended. This is similar to hibernation or sleep + // mode. + AwsVmDetails_SUSPENDED AwsVmDetails_PowerState = 3 + // The VM is starting. + AwsVmDetails_PENDING AwsVmDetails_PowerState = 4 +) + +// Enum value maps for AwsVmDetails_PowerState. +var ( + AwsVmDetails_PowerState_name = map[int32]string{ + 0: "POWER_STATE_UNSPECIFIED", + 1: "ON", + 2: "OFF", + 3: "SUSPENDED", + 4: "PENDING", + } + AwsVmDetails_PowerState_value = map[string]int32{ + "POWER_STATE_UNSPECIFIED": 0, + "ON": 1, + "OFF": 2, + "SUSPENDED": 3, + "PENDING": 4, + } +) + +func (x AwsVmDetails_PowerState) Enum() *AwsVmDetails_PowerState { + p := new(AwsVmDetails_PowerState) + *p = x + return p +} + +func (x AwsVmDetails_PowerState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AwsVmDetails_PowerState) Descriptor() protoreflect.EnumDescriptor { + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[14].Descriptor() +} + +func (AwsVmDetails_PowerState) Type() protoreflect.EnumType { + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[14] +} + +func (x AwsVmDetails_PowerState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AwsVmDetails_PowerState.Descriptor instead. +func (AwsVmDetails_PowerState) EnumDescriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{36, 0} +} + +// The possible values for the vm boot option. +type AwsVmDetails_BootOption int32 + +const ( + // The boot option is unknown. + AwsVmDetails_BOOT_OPTION_UNSPECIFIED AwsVmDetails_BootOption = 0 + // The boot option is UEFI. + AwsVmDetails_EFI AwsVmDetails_BootOption = 1 + // The boot option is LEGACY-BIOS. + AwsVmDetails_BIOS AwsVmDetails_BootOption = 2 +) + +// Enum value maps for AwsVmDetails_BootOption. +var ( + AwsVmDetails_BootOption_name = map[int32]string{ + 0: "BOOT_OPTION_UNSPECIFIED", + 1: "EFI", + 2: "BIOS", + } + AwsVmDetails_BootOption_value = map[string]int32{ + "BOOT_OPTION_UNSPECIFIED": 0, + "EFI": 1, + "BIOS": 2, + } +) + +func (x AwsVmDetails_BootOption) Enum() *AwsVmDetails_BootOption { + p := new(AwsVmDetails_BootOption) + *p = x + return p +} + +func (x AwsVmDetails_BootOption) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AwsVmDetails_BootOption) Descriptor() protoreflect.EnumDescriptor { + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[15].Descriptor() +} + +func (AwsVmDetails_BootOption) Type() protoreflect.EnumType { + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[15] +} + +func (x AwsVmDetails_BootOption) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AwsVmDetails_BootOption.Descriptor instead. +func (AwsVmDetails_BootOption) EnumDescriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{36, 1} +} + +// Possible values for the virtualization types of the VM. +type AwsVmDetails_VmVirtualizationType int32 + +const ( + // The virtualization type is unknown. + AwsVmDetails_VM_VIRTUALIZATION_TYPE_UNSPECIFIED AwsVmDetails_VmVirtualizationType = 0 + // The virtualziation type is HVM. + AwsVmDetails_HVM AwsVmDetails_VmVirtualizationType = 1 + // The virtualziation type is PARAVIRTUAL. + AwsVmDetails_PARAVIRTUAL AwsVmDetails_VmVirtualizationType = 2 +) + +// Enum value maps for AwsVmDetails_VmVirtualizationType. +var ( + AwsVmDetails_VmVirtualizationType_name = map[int32]string{ + 0: "VM_VIRTUALIZATION_TYPE_UNSPECIFIED", + 1: "HVM", + 2: "PARAVIRTUAL", + } + AwsVmDetails_VmVirtualizationType_value = map[string]int32{ + "VM_VIRTUALIZATION_TYPE_UNSPECIFIED": 0, + "HVM": 1, + "PARAVIRTUAL": 2, + } +) + +func (x AwsVmDetails_VmVirtualizationType) Enum() *AwsVmDetails_VmVirtualizationType { + p := new(AwsVmDetails_VmVirtualizationType) + *p = x + return p +} + +func (x AwsVmDetails_VmVirtualizationType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AwsVmDetails_VmVirtualizationType) Descriptor() protoreflect.EnumDescriptor { + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[16].Descriptor() +} + +func (AwsVmDetails_VmVirtualizationType) Type() protoreflect.EnumType { + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[16] +} + +func (x AwsVmDetails_VmVirtualizationType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AwsVmDetails_VmVirtualizationType.Descriptor instead. +func (AwsVmDetails_VmVirtualizationType) EnumDescriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{36, 2} +} + +// Possible values for the architectures of the VM. +type AwsVmDetails_VmArchitecture int32 + +const ( + // The architecture is unknown. + AwsVmDetails_VM_ARCHITECTURE_UNSPECIFIED AwsVmDetails_VmArchitecture = 0 + // The architecture is I386. + AwsVmDetails_I386 AwsVmDetails_VmArchitecture = 1 + // The architecture is X86_64. + AwsVmDetails_X86_64 AwsVmDetails_VmArchitecture = 2 + // The architecture is ARM64. + AwsVmDetails_ARM64 AwsVmDetails_VmArchitecture = 3 + // The architecture is X86_64_MAC. + AwsVmDetails_X86_64_MAC AwsVmDetails_VmArchitecture = 4 +) + +// Enum value maps for AwsVmDetails_VmArchitecture. +var ( + AwsVmDetails_VmArchitecture_name = map[int32]string{ + 0: "VM_ARCHITECTURE_UNSPECIFIED", + 1: "I386", + 2: "X86_64", + 3: "ARM64", + 4: "X86_64_MAC", + } + AwsVmDetails_VmArchitecture_value = map[string]int32{ + "VM_ARCHITECTURE_UNSPECIFIED": 0, + "I386": 1, + "X86_64": 2, + "ARM64": 3, + "X86_64_MAC": 4, + } +) + +func (x AwsVmDetails_VmArchitecture) Enum() *AwsVmDetails_VmArchitecture { + p := new(AwsVmDetails_VmArchitecture) + *p = x + return p +} + +func (x AwsVmDetails_VmArchitecture) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AwsVmDetails_VmArchitecture) Descriptor() protoreflect.EnumDescriptor { + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[17].Descriptor() +} + +func (AwsVmDetails_VmArchitecture) Type() protoreflect.EnumType { + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[17] +} + +func (x AwsVmDetails_VmArchitecture) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AwsVmDetails_VmArchitecture.Descriptor instead. +func (AwsVmDetails_VmArchitecture) EnumDescriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{36, 3} } // Utilization report state. @@ -836,11 +1187,11 @@ func (x UtilizationReport_State) String() string { } func (UtilizationReport_State) Descriptor() protoreflect.EnumDescriptor { - return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[12].Descriptor() + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[18].Descriptor() } func (UtilizationReport_State) Type() protoreflect.EnumType { - return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[12] + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[18] } func (x UtilizationReport_State) Number() protoreflect.EnumNumber { @@ -849,7 +1200,7 @@ func (x UtilizationReport_State) Number() protoreflect.EnumNumber { // Deprecated: Use UtilizationReport_State.Descriptor instead. func (UtilizationReport_State) EnumDescriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{27, 0} + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{41, 0} } // Report time frame options. @@ -893,11 +1244,11 @@ func (x UtilizationReport_TimeFrame) String() string { } func (UtilizationReport_TimeFrame) Descriptor() protoreflect.EnumDescriptor { - return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[13].Descriptor() + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[19].Descriptor() } func (UtilizationReport_TimeFrame) Type() protoreflect.EnumType { - return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[13] + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[19] } func (x UtilizationReport_TimeFrame) Number() protoreflect.EnumNumber { @@ -906,7 +1257,7 @@ func (x UtilizationReport_TimeFrame) Number() protoreflect.EnumNumber { // Deprecated: Use UtilizationReport_TimeFrame.Descriptor instead. func (UtilizationReport_TimeFrame) EnumDescriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{27, 1} + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{41, 1} } // License types used in OS adaptation. @@ -919,7 +1270,7 @@ const ( AppliedLicense_NONE AppliedLicense_Type = 1 // The license type is Pay As You Go license type. AppliedLicense_PAYG AppliedLicense_Type = 2 - // The license type is is Bring Your Own License type. + // The license type is Bring Your Own License type. AppliedLicense_BYOL AppliedLicense_Type = 3 ) @@ -950,11 +1301,11 @@ func (x AppliedLicense_Type) String() string { } func (AppliedLicense_Type) Descriptor() protoreflect.EnumDescriptor { - return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[14].Descriptor() + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[20].Descriptor() } func (AppliedLicense_Type) Type() protoreflect.EnumType { - return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[14] + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[20] } func (x AppliedLicense_Type) Number() protoreflect.EnumNumber { @@ -963,7 +1314,7 @@ func (x AppliedLicense_Type) Number() protoreflect.EnumNumber { // Deprecated: Use AppliedLicense_Type.Descriptor instead. func (AppliedLicense_Type) EnumDescriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{45, 0} + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{59, 0} } // Possible types of node selection operators. Valid operators are IN for @@ -1004,11 +1355,11 @@ func (x SchedulingNodeAffinity_Operator) String() string { } func (SchedulingNodeAffinity_Operator) Descriptor() protoreflect.EnumDescriptor { - return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[15].Descriptor() + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[21].Descriptor() } func (SchedulingNodeAffinity_Operator) Type() protoreflect.EnumType { - return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[15] + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[21] } func (x SchedulingNodeAffinity_Operator) Number() protoreflect.EnumNumber { @@ -1017,7 +1368,7 @@ func (x SchedulingNodeAffinity_Operator) Number() protoreflect.EnumNumber { // Deprecated: Use SchedulingNodeAffinity_Operator.Descriptor instead. func (SchedulingNodeAffinity_Operator) EnumDescriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{46, 0} + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{60, 0} } type ComputeScheduling_OnHostMaintenance int32 @@ -1056,11 +1407,11 @@ func (x ComputeScheduling_OnHostMaintenance) String() string { } func (ComputeScheduling_OnHostMaintenance) Descriptor() protoreflect.EnumDescriptor { - return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[16].Descriptor() + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[22].Descriptor() } func (ComputeScheduling_OnHostMaintenance) Type() protoreflect.EnumType { - return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[16] + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[22] } func (x ComputeScheduling_OnHostMaintenance) Number() protoreflect.EnumNumber { @@ -1069,7 +1420,7 @@ func (x ComputeScheduling_OnHostMaintenance) Number() protoreflect.EnumNumber { // Deprecated: Use ComputeScheduling_OnHostMaintenance.Descriptor instead. func (ComputeScheduling_OnHostMaintenance) EnumDescriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{47, 0} + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{61, 0} } // Defines whether the Instance should be automatically restarted whenever @@ -1112,11 +1463,11 @@ func (x ComputeScheduling_RestartType) String() string { } func (ComputeScheduling_RestartType) Descriptor() protoreflect.EnumDescriptor { - return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[17].Descriptor() + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[23].Descriptor() } func (ComputeScheduling_RestartType) Type() protoreflect.EnumType { - return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[17] + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[23] } func (x ComputeScheduling_RestartType) Number() protoreflect.EnumNumber { @@ -1125,7 +1476,7 @@ func (x ComputeScheduling_RestartType) Number() protoreflect.EnumNumber { // Deprecated: Use ComputeScheduling_RestartType.Descriptor instead. func (ComputeScheduling_RestartType) EnumDescriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{47, 1} + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{61, 1} } // Represents resource error codes. @@ -1195,11 +1546,11 @@ func (x MigrationError_ErrorCode) String() string { } func (MigrationError_ErrorCode) Descriptor() protoreflect.EnumDescriptor { - return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[18].Descriptor() + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[24].Descriptor() } func (MigrationError_ErrorCode) Type() protoreflect.EnumType { - return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[18] + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[24] } func (x MigrationError_ErrorCode) Number() protoreflect.EnumNumber { @@ -1208,20 +1559,91 @@ func (x MigrationError_ErrorCode) Number() protoreflect.EnumNumber { // Deprecated: Use MigrationError_ErrorCode.Descriptor instead. func (MigrationError_ErrorCode) EnumDescriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{88, 0} + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{102, 0} } -// ReplicationCycle contains information about the current replication cycle -// status. -type ReplicationCycle struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +// Possible values for AWS VM firmware. +type AwsSourceVmDetails_Firmware int32 - // The time the replication cycle has started. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - // The current progress in percentage of this cycle. - ProgressPercent int32 `protobuf:"varint,5,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"` +const ( + // The firmware is unknown. + AwsSourceVmDetails_FIRMWARE_UNSPECIFIED AwsSourceVmDetails_Firmware = 0 + // The firmware is EFI. + AwsSourceVmDetails_EFI AwsSourceVmDetails_Firmware = 1 + // The firmware is BIOS. + AwsSourceVmDetails_BIOS AwsSourceVmDetails_Firmware = 2 +) + +// Enum value maps for AwsSourceVmDetails_Firmware. +var ( + AwsSourceVmDetails_Firmware_name = map[int32]string{ + 0: "FIRMWARE_UNSPECIFIED", + 1: "EFI", + 2: "BIOS", + } + AwsSourceVmDetails_Firmware_value = map[string]int32{ + "FIRMWARE_UNSPECIFIED": 0, + "EFI": 1, + "BIOS": 2, + } +) + +func (x AwsSourceVmDetails_Firmware) Enum() *AwsSourceVmDetails_Firmware { + p := new(AwsSourceVmDetails_Firmware) + *p = x + return p +} + +func (x AwsSourceVmDetails_Firmware) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AwsSourceVmDetails_Firmware) Descriptor() protoreflect.EnumDescriptor { + return file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[25].Descriptor() +} + +func (AwsSourceVmDetails_Firmware) Type() protoreflect.EnumType { + return &file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes[25] +} + +func (x AwsSourceVmDetails_Firmware) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AwsSourceVmDetails_Firmware.Descriptor instead. +func (AwsSourceVmDetails_Firmware) EnumDescriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{103, 0} +} + +// ReplicationCycle contains information about the current replication cycle +// status. +type ReplicationCycle struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The identifier of the ReplicationCycle. + Name string `protobuf:"bytes,13,opt,name=name,proto3" json:"name,omitempty"` + // The cycle's ordinal number. + CycleNumber int32 `protobuf:"varint,10,opt,name=cycle_number,json=cycleNumber,proto3" json:"cycle_number,omitempty"` + // The time the replication cycle has started. + StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // The time the replication cycle has ended. + EndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + // The accumulated duration the replication cycle was paused. + TotalPauseDuration *durationpb.Duration `protobuf:"bytes,7,opt,name=total_pause_duration,json=totalPauseDuration,proto3" json:"total_pause_duration,omitempty"` + // The current progress in percentage of this cycle. + // Was replaced by 'steps' field, which breaks down the cycle progression more + // accurately. + // + // Deprecated: Do not use. + ProgressPercent int32 `protobuf:"varint,5,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"` + // The cycle's steps list representing its progress. + Steps []*CycleStep `protobuf:"bytes,9,rep,name=steps,proto3" json:"steps,omitempty"` + // State of the ReplicationCycle. + State ReplicationCycle_State `protobuf:"varint,11,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.ReplicationCycle_State" json:"state,omitempty"` + // Provides details on the state of the cycle in case of an error. + Error *status.Status `protobuf:"bytes,12,opt,name=error,proto3" json:"error,omitempty"` } func (x *ReplicationCycle) Reset() { @@ -1256,6 +1678,20 @@ func (*ReplicationCycle) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{0} } +func (x *ReplicationCycle) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ReplicationCycle) GetCycleNumber() int32 { + if x != nil { + return x.CycleNumber + } + return 0 +} + func (x *ReplicationCycle) GetStartTime() *timestamppb.Timestamp { if x != nil { return x.StartTime @@ -1263,6 +1699,21 @@ func (x *ReplicationCycle) GetStartTime() *timestamppb.Timestamp { return nil } +func (x *ReplicationCycle) GetEndTime() *timestamppb.Timestamp { + if x != nil { + return x.EndTime + } + return nil +} + +func (x *ReplicationCycle) GetTotalPauseDuration() *durationpb.Duration { + if x != nil { + return x.TotalPauseDuration + } + return nil +} + +// Deprecated: Do not use. func (x *ReplicationCycle) GetProgressPercent() int32 { if x != nil { return x.ProgressPercent @@ -1270,19 +1721,47 @@ func (x *ReplicationCycle) GetProgressPercent() int32 { return 0 } -// ReplicationSync contain information about the last replica sync to the cloud. -type ReplicationSync struct { +func (x *ReplicationCycle) GetSteps() []*CycleStep { + if x != nil { + return x.Steps + } + return nil +} + +func (x *ReplicationCycle) GetState() ReplicationCycle_State { + if x != nil { + return x.State + } + return ReplicationCycle_STATE_UNSPECIFIED +} + +func (x *ReplicationCycle) GetError() *status.Status { + if x != nil { + return x.Error + } + return nil +} + +// CycleStep holds information about a step progress. +type CycleStep struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The most updated snapshot created time in the source that finished - // replication. - LastSyncTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=last_sync_time,json=lastSyncTime,proto3" json:"last_sync_time,omitempty"` + // Types that are assignable to Step: + // + // *CycleStep_InitializingReplication + // *CycleStep_Replicating + // *CycleStep_PostProcessing + Step isCycleStep_Step `protobuf_oneof:"step"` + // The time the cycle step has started. + StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // The time the cycle step has ended. + EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } -func (x *ReplicationSync) Reset() { - *x = ReplicationSync{} +func (x *CycleStep) Reset() { + *x = CycleStep{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1290,13 +1769,13 @@ func (x *ReplicationSync) Reset() { } } -func (x *ReplicationSync) String() string { +func (x *CycleStep) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ReplicationSync) ProtoMessage() {} +func (*CycleStep) ProtoMessage() {} -func (x *ReplicationSync) ProtoReflect() protoreflect.Message { +func (x *CycleStep) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1308,84 +1787,87 @@ func (x *ReplicationSync) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ReplicationSync.ProtoReflect.Descriptor instead. -func (*ReplicationSync) Descriptor() ([]byte, []int) { +// Deprecated: Use CycleStep.ProtoReflect.Descriptor instead. +func (*CycleStep) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{1} } -func (x *ReplicationSync) GetLastSyncTime() *timestamppb.Timestamp { +func (m *CycleStep) GetStep() isCycleStep_Step { + if m != nil { + return m.Step + } + return nil +} + +func (x *CycleStep) GetInitializingReplication() *InitializingReplicationStep { + if x, ok := x.GetStep().(*CycleStep_InitializingReplication); ok { + return x.InitializingReplication + } + return nil +} + +func (x *CycleStep) GetReplicating() *ReplicatingStep { + if x, ok := x.GetStep().(*CycleStep_Replicating); ok { + return x.Replicating + } + return nil +} + +func (x *CycleStep) GetPostProcessing() *PostProcessingStep { + if x, ok := x.GetStep().(*CycleStep_PostProcessing); ok { + return x.PostProcessing + } + return nil +} + +func (x *CycleStep) GetStartTime() *timestamppb.Timestamp { if x != nil { - return x.LastSyncTime + return x.StartTime } return nil } -// MigratingVm describes the VM that will be migrated from a Source environment -// and its replication state. -type MigratingVm struct { +func (x *CycleStep) GetEndTime() *timestamppb.Timestamp { + if x != nil { + return x.EndTime + } + return nil +} + +type isCycleStep_Step interface { + isCycleStep_Step() +} + +type CycleStep_InitializingReplication struct { + // Initializing replication step. + InitializingReplication *InitializingReplicationStep `protobuf:"bytes,3,opt,name=initializing_replication,json=initializingReplication,proto3,oneof"` +} + +type CycleStep_Replicating struct { + // Replicating step. + Replicating *ReplicatingStep `protobuf:"bytes,4,opt,name=replicating,proto3,oneof"` +} + +type CycleStep_PostProcessing struct { + // Post processing step. + PostProcessing *PostProcessingStep `protobuf:"bytes,5,opt,name=post_processing,json=postProcessing,proto3,oneof"` +} + +func (*CycleStep_InitializingReplication) isCycleStep_Step() {} + +func (*CycleStep_Replicating) isCycleStep_Step() {} + +func (*CycleStep_PostProcessing) isCycleStep_Step() {} + +// InitializingReplicationStep contains specific step details. +type InitializingReplicationStep struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - // The default configuration of the target VM that will be created in GCP as a - // result of the migration. - // - // Types that are assignable to TargetVmDefaults: - // - // *MigratingVm_ComputeEngineTargetDefaults - TargetVmDefaults isMigratingVm_TargetVmDefaults `protobuf_oneof:"target_vm_defaults"` - // Output only. The identifier of the MigratingVm. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // The unique ID of the VM in the source. - // The VM's name in vSphere can be changed, so this is not the VM's name but - // rather its moRef id. This id is of the form vm-. - SourceVmId string `protobuf:"bytes,2,opt,name=source_vm_id,json=sourceVmId,proto3" json:"source_vm_id,omitempty"` - // The display name attached to the MigratingVm by the user. - DisplayName string `protobuf:"bytes,18,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - // The description attached to the migrating VM by the user. - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - // The replication schedule policy. - Policy *SchedulePolicy `protobuf:"bytes,8,opt,name=policy,proto3" json:"policy,omitempty"` - // Output only. The time the migrating VM was created (this refers to this - // resource and not to the time it was installed in the source). - CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The last time the migrating VM resource was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // Output only. The most updated snapshot created time in the source that - // finished replication. - LastSync *ReplicationSync `protobuf:"bytes,11,opt,name=last_sync,json=lastSync,proto3" json:"last_sync,omitempty"` - // Output only. State of the MigratingVm. - State MigratingVm_State `protobuf:"varint,23,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.MigratingVm_State" json:"state,omitempty"` - // Output only. The last time the migrating VM state was updated. - StateTime *timestamppb.Timestamp `protobuf:"bytes,22,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` - // Output only. The percentage progress of the current running replication - // cycle. - CurrentSyncInfo *ReplicationCycle `protobuf:"bytes,13,opt,name=current_sync_info,json=currentSyncInfo,proto3" json:"current_sync_info,omitempty"` - // Output only. The group this migrating vm is included in, if any. The group - // is represented by the full path of the appropriate - // [Group][google.cloud.vmmigration.v1.Group] resource. - Group string `protobuf:"bytes,15,opt,name=group,proto3" json:"group,omitempty"` - // The labels of the migrating VM. - Labels map[string]string `protobuf:"bytes,16,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob] - // performed on the migrating VM. This field holds the vm's last completed - // clone job and the vm's running clone job, if one exists. - // Note: To have this field populated you need to explicitly request it via - // the "view" parameter of the Get/List request. - RecentCloneJobs []*CloneJob `protobuf:"bytes,17,rep,name=recent_clone_jobs,json=recentCloneJobs,proto3" json:"recent_clone_jobs,omitempty"` - // Output only. Provides details on the state of the Migrating VM in case of - // an error in replication. - Error *status.Status `protobuf:"bytes,19,opt,name=error,proto3" json:"error,omitempty"` - // Output only. The recent cutover jobs performed on the migrating VM. - // This field holds the vm's last completed cutover job and the vm's - // running cutover job, if one exists. - // Note: To have this field populated you need to explicitly request it via - // the "view" parameter of the Get/List request. - RecentCutoverJobs []*CutoverJob `protobuf:"bytes,20,rep,name=recent_cutover_jobs,json=recentCutoverJobs,proto3" json:"recent_cutover_jobs,omitempty"` } -func (x *MigratingVm) Reset() { - *x = MigratingVm{} +func (x *InitializingReplicationStep) Reset() { + *x = InitializingReplicationStep{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1393,13 +1875,13 @@ func (x *MigratingVm) Reset() { } } -func (x *MigratingVm) String() string { +func (x *InitializingReplicationStep) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MigratingVm) ProtoMessage() {} +func (*InitializingReplicationStep) ProtoMessage() {} -func (x *MigratingVm) ProtoReflect() protoreflect.Message { +func (x *InitializingReplicationStep) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1411,202 +1893,265 @@ func (x *MigratingVm) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MigratingVm.ProtoReflect.Descriptor instead. -func (*MigratingVm) Descriptor() ([]byte, []int) { +// Deprecated: Use InitializingReplicationStep.ProtoReflect.Descriptor instead. +func (*InitializingReplicationStep) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{2} } -func (m *MigratingVm) GetTargetVmDefaults() isMigratingVm_TargetVmDefaults { - if m != nil { - return m.TargetVmDefaults - } - return nil -} +// ReplicatingStep contains specific step details. +type ReplicatingStep struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *MigratingVm) GetComputeEngineTargetDefaults() *ComputeEngineTargetDefaults { - if x, ok := x.GetTargetVmDefaults().(*MigratingVm_ComputeEngineTargetDefaults); ok { - return x.ComputeEngineTargetDefaults - } - return nil + // Total bytes to be handled in the step. + TotalBytes int64 `protobuf:"varint,1,opt,name=total_bytes,json=totalBytes,proto3" json:"total_bytes,omitempty"` + // Replicated bytes in the step. + ReplicatedBytes int64 `protobuf:"varint,2,opt,name=replicated_bytes,json=replicatedBytes,proto3" json:"replicated_bytes,omitempty"` + // The source disks replication rate for the last 2 minutes in bytes per + // second. + LastTwoMinutesAverageBytesPerSecond int64 `protobuf:"varint,3,opt,name=last_two_minutes_average_bytes_per_second,json=lastTwoMinutesAverageBytesPerSecond,proto3" json:"last_two_minutes_average_bytes_per_second,omitempty"` + // The source disks replication rate for the last 30 minutes in bytes per + // second. + LastThirtyMinutesAverageBytesPerSecond int64 `protobuf:"varint,4,opt,name=last_thirty_minutes_average_bytes_per_second,json=lastThirtyMinutesAverageBytesPerSecond,proto3" json:"last_thirty_minutes_average_bytes_per_second,omitempty"` } -func (x *MigratingVm) GetName() string { - if x != nil { - return x.Name +func (x *ReplicatingStep) Reset() { + *x = ReplicatingStep{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (x *MigratingVm) GetSourceVmId() string { - if x != nil { - return x.SourceVmId - } - return "" +func (x *ReplicatingStep) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *MigratingVm) GetDisplayName() string { - if x != nil { - return x.DisplayName +func (*ReplicatingStep) ProtoMessage() {} + +func (x *ReplicatingStep) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_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 "" + return mi.MessageOf(x) } -func (x *MigratingVm) GetDescription() string { - if x != nil { - return x.Description - } - return "" +// Deprecated: Use ReplicatingStep.ProtoReflect.Descriptor instead. +func (*ReplicatingStep) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{3} } -func (x *MigratingVm) GetPolicy() *SchedulePolicy { +func (x *ReplicatingStep) GetTotalBytes() int64 { if x != nil { - return x.Policy + return x.TotalBytes } - return nil + return 0 } -func (x *MigratingVm) GetCreateTime() *timestamppb.Timestamp { +func (x *ReplicatingStep) GetReplicatedBytes() int64 { if x != nil { - return x.CreateTime + return x.ReplicatedBytes } - return nil + return 0 } -func (x *MigratingVm) GetUpdateTime() *timestamppb.Timestamp { +func (x *ReplicatingStep) GetLastTwoMinutesAverageBytesPerSecond() int64 { if x != nil { - return x.UpdateTime + return x.LastTwoMinutesAverageBytesPerSecond } - return nil + return 0 } -func (x *MigratingVm) GetLastSync() *ReplicationSync { +func (x *ReplicatingStep) GetLastThirtyMinutesAverageBytesPerSecond() int64 { if x != nil { - return x.LastSync + return x.LastThirtyMinutesAverageBytesPerSecond } - return nil + return 0 } -func (x *MigratingVm) GetState() MigratingVm_State { - if x != nil { - return x.State - } - return MigratingVm_STATE_UNSPECIFIED +// PostProcessingStep contains specific step details. +type PostProcessingStep struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (x *MigratingVm) GetStateTime() *timestamppb.Timestamp { - if x != nil { - return x.StateTime +func (x *PostProcessingStep) Reset() { + *x = PostProcessingStep{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (x *MigratingVm) GetCurrentSyncInfo() *ReplicationCycle { - if x != nil { - return x.CurrentSyncInfo - } - return nil +func (x *PostProcessingStep) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *MigratingVm) GetGroup() string { - if x != nil { - return x.Group +func (*PostProcessingStep) ProtoMessage() {} + +func (x *PostProcessingStep) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_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 "" + return mi.MessageOf(x) } -func (x *MigratingVm) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil +// Deprecated: Use PostProcessingStep.ProtoReflect.Descriptor instead. +func (*PostProcessingStep) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{4} } -func (x *MigratingVm) GetRecentCloneJobs() []*CloneJob { - if x != nil { - return x.RecentCloneJobs - } - return nil +// ReplicationSync contain information about the last replica sync to the cloud. +type ReplicationSync struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The most updated snapshot created time in the source that finished + // replication. + LastSyncTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=last_sync_time,json=lastSyncTime,proto3" json:"last_sync_time,omitempty"` } -func (x *MigratingVm) GetError() *status.Status { - if x != nil { - return x.Error +func (x *ReplicationSync) Reset() { + *x = ReplicationSync{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (x *MigratingVm) GetRecentCutoverJobs() []*CutoverJob { - if x != nil { - return x.RecentCutoverJobs - } - return nil +func (x *ReplicationSync) String() string { + return protoimpl.X.MessageStringOf(x) } -type isMigratingVm_TargetVmDefaults interface { - isMigratingVm_TargetVmDefaults() +func (*ReplicationSync) ProtoMessage() {} + +func (x *ReplicationSync) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_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) } -type MigratingVm_ComputeEngineTargetDefaults struct { - // Details of the target VM in Compute Engine. - ComputeEngineTargetDefaults *ComputeEngineTargetDefaults `protobuf:"bytes,26,opt,name=compute_engine_target_defaults,json=computeEngineTargetDefaults,proto3,oneof"` +// Deprecated: Use ReplicationSync.ProtoReflect.Descriptor instead. +func (*ReplicationSync) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{5} } -func (*MigratingVm_ComputeEngineTargetDefaults) isMigratingVm_TargetVmDefaults() {} +func (x *ReplicationSync) GetLastSyncTime() *timestamppb.Timestamp { + if x != nil { + return x.LastSyncTime + } + return nil +} -// CloneJob describes the process of creating a clone of a -// [MigratingVM][google.cloud.vmmigration.v1.MigratingVm] to the -// requested target based on the latest successful uploaded snapshots. -// While the migration cycles of a MigratingVm take place, it is possible to -// verify the uploaded VM can be started in the cloud, by creating a clone. The -// clone can be created without any downtime, and it is created using the latest -// snapshots which are already in the cloud. The cloneJob is only responsible -// for its work, not its products, which means once it is finished, it will -// never touch the instance it created. It will only delete it in case of the -// CloneJob being cancelled or upon failure to clone. -type CloneJob struct { +// MigratingVm describes the VM that will be migrated from a Source environment +// and its replication state. +type MigratingVm struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Details of the VM to create as the target of this clone job. + // The default configuration of the target VM that will be created in Google + // Cloud as a result of the migration. // - // Types that are assignable to TargetVmDetails: + // Types that are assignable to TargetVmDefaults: // - // *CloneJob_ComputeEngineTargetDetails - TargetVmDetails isCloneJob_TargetVmDetails `protobuf_oneof:"target_vm_details"` - // Output only. The time the clone job was created (as an API call, not when - // it was actually created in the target). - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The time the clone job was ended. - EndTime *timestamppb.Timestamp `protobuf:"bytes,22,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - // Output only. The name of the clone. - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - // Output only. State of the clone job. - State CloneJob_State `protobuf:"varint,12,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.CloneJob_State" json:"state,omitempty"` - // Output only. The time the state was last updated. - StateTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` - // Output only. Provides details for the errors that led to the Clone Job's - // state. - Error *status.Status `protobuf:"bytes,17,opt,name=error,proto3" json:"error,omitempty"` + // *MigratingVm_ComputeEngineTargetDefaults + TargetVmDefaults isMigratingVm_TargetVmDefaults `protobuf_oneof:"target_vm_defaults"` + // Details about the source VM. + // + // Types that are assignable to SourceVmDetails: + // + // *MigratingVm_AwsSourceVmDetails + SourceVmDetails isMigratingVm_SourceVmDetails `protobuf_oneof:"source_vm_details"` + // Output only. The identifier of the MigratingVm. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The unique ID of the VM in the source. + // The VM's name in vSphere can be changed, so this is not the VM's name but + // rather its moRef id. This id is of the form vm-. + SourceVmId string `protobuf:"bytes,2,opt,name=source_vm_id,json=sourceVmId,proto3" json:"source_vm_id,omitempty"` + // The display name attached to the MigratingVm by the user. + DisplayName string `protobuf:"bytes,18,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + // The description attached to the migrating VM by the user. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // The replication schedule policy. + Policy *SchedulePolicy `protobuf:"bytes,8,opt,name=policy,proto3" json:"policy,omitempty"` + // Output only. The time the migrating VM was created (this refers to this + // resource and not to the time it was installed in the source). + CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + // Output only. The last time the migrating VM resource was updated. + UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + // Output only. The most updated snapshot created time in the source that + // finished replication. + LastSync *ReplicationSync `protobuf:"bytes,11,opt,name=last_sync,json=lastSync,proto3" json:"last_sync,omitempty"` + // Output only. State of the MigratingVm. + State MigratingVm_State `protobuf:"varint,23,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.MigratingVm_State" json:"state,omitempty"` + // Output only. The last time the migrating VM state was updated. + StateTime *timestamppb.Timestamp `protobuf:"bytes,22,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` + // Output only. The percentage progress of the current running replication + // cycle. + CurrentSyncInfo *ReplicationCycle `protobuf:"bytes,13,opt,name=current_sync_info,json=currentSyncInfo,proto3" json:"current_sync_info,omitempty"` + // Output only. The group this migrating vm is included in, if any. The group + // is represented by the full path of the appropriate + // [Group][google.cloud.vmmigration.v1.Group] resource. + Group string `protobuf:"bytes,15,opt,name=group,proto3" json:"group,omitempty"` + // The labels of the migrating VM. + Labels map[string]string `protobuf:"bytes,16,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob] + // performed on the migrating VM. This field holds the vm's last completed + // clone job and the vm's running clone job, if one exists. + // Note: To have this field populated you need to explicitly request it via + // the "view" parameter of the Get/List request. + RecentCloneJobs []*CloneJob `protobuf:"bytes,17,rep,name=recent_clone_jobs,json=recentCloneJobs,proto3" json:"recent_clone_jobs,omitempty"` + // Output only. Provides details on the state of the Migrating VM in case of + // an error in replication. + Error *status.Status `protobuf:"bytes,19,opt,name=error,proto3" json:"error,omitempty"` + // Output only. The recent cutover jobs performed on the migrating VM. + // This field holds the vm's last completed cutover job and the vm's + // running cutover job, if one exists. + // Note: To have this field populated you need to explicitly request it via + // the "view" parameter of the Get/List request. + RecentCutoverJobs []*CutoverJob `protobuf:"bytes,20,rep,name=recent_cutover_jobs,json=recentCutoverJobs,proto3" json:"recent_cutover_jobs,omitempty"` } -func (x *CloneJob) Reset() { - *x = CloneJob{} +func (x *MigratingVm) Reset() { + *x = MigratingVm{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[3] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CloneJob) String() string { +func (x *MigratingVm) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CloneJob) ProtoMessage() {} +func (*MigratingVm) ProtoMessage() {} -func (x *CloneJob) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[3] +func (x *MigratingVm) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1617,130 +2162,229 @@ func (x *CloneJob) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CloneJob.ProtoReflect.Descriptor instead. -func (*CloneJob) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{3} +// Deprecated: Use MigratingVm.ProtoReflect.Descriptor instead. +func (*MigratingVm) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{6} } -func (m *CloneJob) GetTargetVmDetails() isCloneJob_TargetVmDetails { +func (m *MigratingVm) GetTargetVmDefaults() isMigratingVm_TargetVmDefaults { if m != nil { - return m.TargetVmDetails + return m.TargetVmDefaults } return nil } -func (x *CloneJob) GetComputeEngineTargetDetails() *ComputeEngineTargetDetails { - if x, ok := x.GetTargetVmDetails().(*CloneJob_ComputeEngineTargetDetails); ok { - return x.ComputeEngineTargetDetails +func (x *MigratingVm) GetComputeEngineTargetDefaults() *ComputeEngineTargetDefaults { + if x, ok := x.GetTargetVmDefaults().(*MigratingVm_ComputeEngineTargetDefaults); ok { + return x.ComputeEngineTargetDefaults } return nil } -func (x *CloneJob) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.CreateTime +func (m *MigratingVm) GetSourceVmDetails() isMigratingVm_SourceVmDetails { + if m != nil { + return m.SourceVmDetails } return nil } -func (x *CloneJob) GetEndTime() *timestamppb.Timestamp { - if x != nil { - return x.EndTime +func (x *MigratingVm) GetAwsSourceVmDetails() *AwsSourceVmDetails { + if x, ok := x.GetSourceVmDetails().(*MigratingVm_AwsSourceVmDetails); ok { + return x.AwsSourceVmDetails } return nil } -func (x *CloneJob) GetName() string { +func (x *MigratingVm) GetName() string { if x != nil { return x.Name } return "" } -func (x *CloneJob) GetState() CloneJob_State { +func (x *MigratingVm) GetSourceVmId() string { if x != nil { - return x.State + return x.SourceVmId } - return CloneJob_STATE_UNSPECIFIED + return "" } -func (x *CloneJob) GetStateTime() *timestamppb.Timestamp { +func (x *MigratingVm) GetDisplayName() string { if x != nil { - return x.StateTime + return x.DisplayName } - return nil + return "" } -func (x *CloneJob) GetError() *status.Status { +func (x *MigratingVm) GetDescription() string { if x != nil { - return x.Error + return x.Description } - return nil + return "" } -type isCloneJob_TargetVmDetails interface { - isCloneJob_TargetVmDetails() +func (x *MigratingVm) GetPolicy() *SchedulePolicy { + if x != nil { + return x.Policy + } + return nil } -type CloneJob_ComputeEngineTargetDetails struct { - // Output only. Details of the target VM in Compute Engine. - ComputeEngineTargetDetails *ComputeEngineTargetDetails `protobuf:"bytes,20,opt,name=compute_engine_target_details,json=computeEngineTargetDetails,proto3,oneof"` +func (x *MigratingVm) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.CreateTime + } + return nil } -func (*CloneJob_ComputeEngineTargetDetails) isCloneJob_TargetVmDetails() {} +func (x *MigratingVm) GetUpdateTime() *timestamppb.Timestamp { + if x != nil { + return x.UpdateTime + } + return nil +} -// CutoverJob message describes a cutover of a migrating VM. The CutoverJob is -// the operation of shutting down the VM, creating a snapshot and -// clonning the VM using the replicated snapshot. -type CutoverJob struct { +func (x *MigratingVm) GetLastSync() *ReplicationSync { + if x != nil { + return x.LastSync + } + return nil +} + +func (x *MigratingVm) GetState() MigratingVm_State { + if x != nil { + return x.State + } + return MigratingVm_STATE_UNSPECIFIED +} + +func (x *MigratingVm) GetStateTime() *timestamppb.Timestamp { + if x != nil { + return x.StateTime + } + return nil +} + +func (x *MigratingVm) GetCurrentSyncInfo() *ReplicationCycle { + if x != nil { + return x.CurrentSyncInfo + } + return nil +} + +func (x *MigratingVm) GetGroup() string { + if x != nil { + return x.Group + } + return "" +} + +func (x *MigratingVm) GetLabels() map[string]string { + if x != nil { + return x.Labels + } + return nil +} + +func (x *MigratingVm) GetRecentCloneJobs() []*CloneJob { + if x != nil { + return x.RecentCloneJobs + } + return nil +} + +func (x *MigratingVm) GetError() *status.Status { + if x != nil { + return x.Error + } + return nil +} + +func (x *MigratingVm) GetRecentCutoverJobs() []*CutoverJob { + if x != nil { + return x.RecentCutoverJobs + } + return nil +} + +type isMigratingVm_TargetVmDefaults interface { + isMigratingVm_TargetVmDefaults() +} + +type MigratingVm_ComputeEngineTargetDefaults struct { + // Details of the target VM in Compute Engine. + ComputeEngineTargetDefaults *ComputeEngineTargetDefaults `protobuf:"bytes,26,opt,name=compute_engine_target_defaults,json=computeEngineTargetDefaults,proto3,oneof"` +} + +func (*MigratingVm_ComputeEngineTargetDefaults) isMigratingVm_TargetVmDefaults() {} + +type isMigratingVm_SourceVmDetails interface { + isMigratingVm_SourceVmDetails() +} + +type MigratingVm_AwsSourceVmDetails struct { + // Output only. Details of the VM from an AWS source. + AwsSourceVmDetails *AwsSourceVmDetails `protobuf:"bytes,29,opt,name=aws_source_vm_details,json=awsSourceVmDetails,proto3,oneof"` +} + +func (*MigratingVm_AwsSourceVmDetails) isMigratingVm_SourceVmDetails() {} + +// CloneJob describes the process of creating a clone of a +// [MigratingVM][google.cloud.vmmigration.v1.MigratingVm] to the +// requested target based on the latest successful uploaded snapshots. +// While the migration cycles of a MigratingVm take place, it is possible to +// verify the uploaded VM can be started in the cloud, by creating a clone. The +// clone can be created without any downtime, and it is created using the latest +// snapshots which are already in the cloud. The cloneJob is only responsible +// for its work, not its products, which means once it is finished, it will +// never touch the instance it created. It will only delete it in case of the +// CloneJob being cancelled or upon failure to clone. +type CloneJob struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Details of the VM to create as the target of this cutover job. + // Details of the VM to create as the target of this clone job. // // Types that are assignable to TargetVmDetails: // - // *CutoverJob_ComputeEngineTargetDetails - TargetVmDetails isCutoverJob_TargetVmDetails `protobuf_oneof:"target_vm_details"` - // Output only. The time the cutover job was created (as an API call, not when + // *CloneJob_ComputeEngineTargetDetails + TargetVmDetails isCloneJob_TargetVmDetails `protobuf_oneof:"target_vm_details"` + // Output only. The time the clone job was created (as an API call, not when // it was actually created in the target). CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The time the cutover job had finished. - EndTime *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - // Output only. The name of the cutover job. + // Output only. The time the clone job was ended. + EndTime *timestamppb.Timestamp `protobuf:"bytes,22,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + // Output only. The name of the clone. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - // Output only. State of the cutover job. - State CutoverJob_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.CutoverJob_State" json:"state,omitempty"` + // Output only. State of the clone job. + State CloneJob_State `protobuf:"varint,12,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.CloneJob_State" json:"state,omitempty"` // Output only. The time the state was last updated. - StateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` - // Output only. The current progress in percentage of the cutover job. - ProgressPercent int32 `protobuf:"varint,13,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"` - // Output only. Provides details for the errors that led to the Cutover Job's - // state. - Error *status.Status `protobuf:"bytes,9,opt,name=error,proto3" json:"error,omitempty"` - // Output only. A message providing possible extra details about the current + StateTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` + // Output only. Provides details for the errors that led to the Clone Job's // state. - StateMessage string `protobuf:"bytes,10,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"` + Error *status.Status `protobuf:"bytes,17,opt,name=error,proto3" json:"error,omitempty"` + // Output only. The clone steps list representing its progress. + Steps []*CloneStep `protobuf:"bytes,23,rep,name=steps,proto3" json:"steps,omitempty"` } -func (x *CutoverJob) Reset() { - *x = CutoverJob{} +func (x *CloneJob) Reset() { + *x = CloneJob{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[4] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CutoverJob) String() string { +func (x *CloneJob) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CutoverJob) ProtoMessage() {} +func (*CloneJob) ProtoMessage() {} -func (x *CutoverJob) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[4] +func (x *CloneJob) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1751,137 +2395,120 @@ func (x *CutoverJob) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CutoverJob.ProtoReflect.Descriptor instead. -func (*CutoverJob) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{4} +// Deprecated: Use CloneJob.ProtoReflect.Descriptor instead. +func (*CloneJob) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{7} } -func (m *CutoverJob) GetTargetVmDetails() isCutoverJob_TargetVmDetails { +func (m *CloneJob) GetTargetVmDetails() isCloneJob_TargetVmDetails { if m != nil { return m.TargetVmDetails } return nil } -func (x *CutoverJob) GetComputeEngineTargetDetails() *ComputeEngineTargetDetails { - if x, ok := x.GetTargetVmDetails().(*CutoverJob_ComputeEngineTargetDetails); ok { +func (x *CloneJob) GetComputeEngineTargetDetails() *ComputeEngineTargetDetails { + if x, ok := x.GetTargetVmDetails().(*CloneJob_ComputeEngineTargetDetails); ok { return x.ComputeEngineTargetDetails } return nil } -func (x *CutoverJob) GetCreateTime() *timestamppb.Timestamp { +func (x *CloneJob) GetCreateTime() *timestamppb.Timestamp { if x != nil { return x.CreateTime } return nil } -func (x *CutoverJob) GetEndTime() *timestamppb.Timestamp { +func (x *CloneJob) GetEndTime() *timestamppb.Timestamp { if x != nil { return x.EndTime } return nil } -func (x *CutoverJob) GetName() string { +func (x *CloneJob) GetName() string { if x != nil { return x.Name } return "" } -func (x *CutoverJob) GetState() CutoverJob_State { +func (x *CloneJob) GetState() CloneJob_State { if x != nil { return x.State } - return CutoverJob_STATE_UNSPECIFIED + return CloneJob_STATE_UNSPECIFIED } -func (x *CutoverJob) GetStateTime() *timestamppb.Timestamp { +func (x *CloneJob) GetStateTime() *timestamppb.Timestamp { if x != nil { return x.StateTime } return nil } -func (x *CutoverJob) GetProgressPercent() int32 { - if x != nil { - return x.ProgressPercent - } - return 0 -} - -func (x *CutoverJob) GetError() *status.Status { +func (x *CloneJob) GetError() *status.Status { if x != nil { return x.Error } return nil } -func (x *CutoverJob) GetStateMessage() string { +func (x *CloneJob) GetSteps() []*CloneStep { if x != nil { - return x.StateMessage + return x.Steps } - return "" + return nil } -type isCutoverJob_TargetVmDetails interface { - isCutoverJob_TargetVmDetails() +type isCloneJob_TargetVmDetails interface { + isCloneJob_TargetVmDetails() } -type CutoverJob_ComputeEngineTargetDetails struct { +type CloneJob_ComputeEngineTargetDetails struct { // Output only. Details of the target VM in Compute Engine. - ComputeEngineTargetDetails *ComputeEngineTargetDetails `protobuf:"bytes,14,opt,name=compute_engine_target_details,json=computeEngineTargetDetails,proto3,oneof"` + ComputeEngineTargetDetails *ComputeEngineTargetDetails `protobuf:"bytes,20,opt,name=compute_engine_target_details,json=computeEngineTargetDetails,proto3,oneof"` } -func (*CutoverJob_ComputeEngineTargetDetails) isCutoverJob_TargetVmDetails() {} +func (*CloneJob_ComputeEngineTargetDetails) isCloneJob_TargetVmDetails() {} -// Request message for 'CreateCloneJob' request. -type CreateCloneJobRequest struct { +// CloneStep holds information about the clone step progress. +type CloneStep struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The Clone's parent. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The clone job identifier. - CloneJobId string `protobuf:"bytes,2,opt,name=clone_job_id,json=cloneJobId,proto3" json:"clone_job_id,omitempty"` - // Required. The clone request body. - CloneJob *CloneJob `protobuf:"bytes,3,opt,name=clone_job,json=cloneJob,proto3" json:"clone_job,omitempty"` - // A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes since the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. + // Types that are assignable to Step: // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // *CloneStep_AdaptingOs + // *CloneStep_PreparingVmDisks + // *CloneStep_InstantiatingMigratedVm + Step isCloneStep_Step `protobuf_oneof:"step"` + // The time the step has started. + StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // The time the step has ended. + EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } -func (x *CreateCloneJobRequest) Reset() { - *x = CreateCloneJobRequest{} +func (x *CloneStep) Reset() { + *x = CloneStep{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[5] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CreateCloneJobRequest) String() string { +func (x *CloneStep) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CreateCloneJobRequest) ProtoMessage() {} +func (*CloneStep) ProtoMessage() {} -func (x *CreateCloneJobRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[5] +func (x *CloneStep) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1892,66 +2519,102 @@ func (x *CreateCloneJobRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateCloneJobRequest.ProtoReflect.Descriptor instead. -func (*CreateCloneJobRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{5} +// Deprecated: Use CloneStep.ProtoReflect.Descriptor instead. +func (*CloneStep) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{8} } -func (x *CreateCloneJobRequest) GetParent() string { - if x != nil { - return x.Parent +func (m *CloneStep) GetStep() isCloneStep_Step { + if m != nil { + return m.Step } - return "" + return nil } -func (x *CreateCloneJobRequest) GetCloneJobId() string { - if x != nil { - return x.CloneJobId +func (x *CloneStep) GetAdaptingOs() *AdaptingOSStep { + if x, ok := x.GetStep().(*CloneStep_AdaptingOs); ok { + return x.AdaptingOs } - return "" + return nil } -func (x *CreateCloneJobRequest) GetCloneJob() *CloneJob { +func (x *CloneStep) GetPreparingVmDisks() *PreparingVMDisksStep { + if x, ok := x.GetStep().(*CloneStep_PreparingVmDisks); ok { + return x.PreparingVmDisks + } + return nil +} + +func (x *CloneStep) GetInstantiatingMigratedVm() *InstantiatingMigratedVMStep { + if x, ok := x.GetStep().(*CloneStep_InstantiatingMigratedVm); ok { + return x.InstantiatingMigratedVm + } + return nil +} + +func (x *CloneStep) GetStartTime() *timestamppb.Timestamp { if x != nil { - return x.CloneJob + return x.StartTime } return nil } -func (x *CreateCloneJobRequest) GetRequestId() string { +func (x *CloneStep) GetEndTime() *timestamppb.Timestamp { if x != nil { - return x.RequestId + return x.EndTime } - return "" + return nil } -// Request message for 'CancelCloneJob' request. -type CancelCloneJobRequest struct { - state protoimpl.MessageState +type isCloneStep_Step interface { + isCloneStep_Step() +} + +type CloneStep_AdaptingOs struct { + // Adapting OS step. + AdaptingOs *AdaptingOSStep `protobuf:"bytes,3,opt,name=adapting_os,json=adaptingOs,proto3,oneof"` +} + +type CloneStep_PreparingVmDisks struct { + // Preparing VM disks step. + PreparingVmDisks *PreparingVMDisksStep `protobuf:"bytes,4,opt,name=preparing_vm_disks,json=preparingVmDisks,proto3,oneof"` +} + +type CloneStep_InstantiatingMigratedVm struct { + // Instantiating migrated VM step. + InstantiatingMigratedVm *InstantiatingMigratedVMStep `protobuf:"bytes,5,opt,name=instantiating_migrated_vm,json=instantiatingMigratedVm,proto3,oneof"` +} + +func (*CloneStep_AdaptingOs) isCloneStep_Step() {} + +func (*CloneStep_PreparingVmDisks) isCloneStep_Step() {} + +func (*CloneStep_InstantiatingMigratedVm) isCloneStep_Step() {} + +// AdaptingOSStep contains specific step details. +type AdaptingOSStep struct { + state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - // Required. The clone job id - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (x *CancelCloneJobRequest) Reset() { - *x = CancelCloneJobRequest{} +func (x *AdaptingOSStep) Reset() { + *x = AdaptingOSStep{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[6] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CancelCloneJobRequest) String() string { +func (x *AdaptingOSStep) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CancelCloneJobRequest) ProtoMessage() {} +func (*AdaptingOSStep) ProtoMessage() {} -func (x *CancelCloneJobRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[6] +func (x *AdaptingOSStep) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1962,42 +2625,74 @@ func (x *CancelCloneJobRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CancelCloneJobRequest.ProtoReflect.Descriptor instead. -func (*CancelCloneJobRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{6} +// Deprecated: Use AdaptingOSStep.ProtoReflect.Descriptor instead. +func (*AdaptingOSStep) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{9} } -func (x *CancelCloneJobRequest) GetName() string { - if x != nil { - return x.Name +// PreparingVMDisksStep contains specific step details. +type PreparingVMDisksStep struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *PreparingVMDisksStep) Reset() { + *x = PreparingVMDisksStep{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -// Response message for 'CancelCloneJob' request. -type CancelCloneJobResponse struct { +func (x *PreparingVMDisksStep) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PreparingVMDisksStep) ProtoMessage() {} + +func (x *PreparingVMDisksStep) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_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 PreparingVMDisksStep.ProtoReflect.Descriptor instead. +func (*PreparingVMDisksStep) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{10} +} + +// InstantiatingMigratedVMStep contains specific step details. +type InstantiatingMigratedVMStep struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *CancelCloneJobResponse) Reset() { - *x = CancelCloneJobResponse{} +func (x *InstantiatingMigratedVMStep) Reset() { + *x = InstantiatingMigratedVMStep{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[7] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CancelCloneJobResponse) String() string { +func (x *InstantiatingMigratedVMStep) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CancelCloneJobResponse) ProtoMessage() {} +func (*InstantiatingMigratedVMStep) ProtoMessage() {} -func (x *CancelCloneJobResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[7] +func (x *InstantiatingMigratedVMStep) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2008,53 +2703,65 @@ func (x *CancelCloneJobResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CancelCloneJobResponse.ProtoReflect.Descriptor instead. -func (*CancelCloneJobResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{7} +// Deprecated: Use InstantiatingMigratedVMStep.ProtoReflect.Descriptor instead. +func (*InstantiatingMigratedVMStep) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{11} } -// Request message for 'ListCloneJobsRequest' request. -type ListCloneJobsRequest struct { +// CutoverJob message describes a cutover of a migrating VM. The CutoverJob is +// the operation of shutting down the VM, creating a snapshot and +// clonning the VM using the replicated snapshot. +type CutoverJob struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The parent, which owns this collection of source VMs. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The maximum number of clone jobs to return. The service may - // return fewer than this value. If unspecified, at most 500 clone jobs will - // be returned. The maximum value is 1000; values above 1000 will be coerced - // to 1000. - PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // Required. A page token, received from a previous `ListCloneJobs` call. - // Provide this to retrieve the subsequent page. + // Details of the VM to create as the target of this cutover job. // - // When paginating, all other parameters provided to `ListCloneJobs` must - // match the call that provided the page token. - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Optional. The filter request. - Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` - // Optional. the order by fields for the result. - OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` + // Types that are assignable to TargetVmDetails: + // + // *CutoverJob_ComputeEngineTargetDetails + TargetVmDetails isCutoverJob_TargetVmDetails `protobuf_oneof:"target_vm_details"` + // Output only. The time the cutover job was created (as an API call, not when + // it was actually created in the target). + CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + // Output only. The time the cutover job had finished. + EndTime *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + // Output only. The name of the cutover job. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // Output only. State of the cutover job. + State CutoverJob_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.CutoverJob_State" json:"state,omitempty"` + // Output only. The time the state was last updated. + StateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` + // Output only. The current progress in percentage of the cutover job. + ProgressPercent int32 `protobuf:"varint,13,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"` + // Output only. Provides details for the errors that led to the Cutover Job's + // state. + Error *status.Status `protobuf:"bytes,9,opt,name=error,proto3" json:"error,omitempty"` + // Output only. A message providing possible extra details about the current + // state. + StateMessage string `protobuf:"bytes,10,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"` + // Output only. The cutover steps list representing its progress. + Steps []*CutoverStep `protobuf:"bytes,17,rep,name=steps,proto3" json:"steps,omitempty"` } -func (x *ListCloneJobsRequest) Reset() { - *x = ListCloneJobsRequest{} +func (x *CutoverJob) Reset() { + *x = CutoverJob{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[8] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ListCloneJobsRequest) String() string { +func (x *CutoverJob) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListCloneJobsRequest) ProtoMessage() {} +func (*CutoverJob) ProtoMessage() {} -func (x *ListCloneJobsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[8] +func (x *CutoverJob) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2065,78 +2772,136 @@ func (x *ListCloneJobsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListCloneJobsRequest.ProtoReflect.Descriptor instead. -func (*ListCloneJobsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{8} +// Deprecated: Use CutoverJob.ProtoReflect.Descriptor instead. +func (*CutoverJob) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{12} } -func (x *ListCloneJobsRequest) GetParent() string { +func (m *CutoverJob) GetTargetVmDetails() isCutoverJob_TargetVmDetails { + if m != nil { + return m.TargetVmDetails + } + return nil +} + +func (x *CutoverJob) GetComputeEngineTargetDetails() *ComputeEngineTargetDetails { + if x, ok := x.GetTargetVmDetails().(*CutoverJob_ComputeEngineTargetDetails); ok { + return x.ComputeEngineTargetDetails + } + return nil +} + +func (x *CutoverJob) GetCreateTime() *timestamppb.Timestamp { if x != nil { - return x.Parent + return x.CreateTime + } + return nil +} + +func (x *CutoverJob) GetEndTime() *timestamppb.Timestamp { + if x != nil { + return x.EndTime + } + return nil +} + +func (x *CutoverJob) GetName() string { + if x != nil { + return x.Name } return "" } -func (x *ListCloneJobsRequest) GetPageSize() int32 { +func (x *CutoverJob) GetState() CutoverJob_State { if x != nil { - return x.PageSize + return x.State + } + return CutoverJob_STATE_UNSPECIFIED +} + +func (x *CutoverJob) GetStateTime() *timestamppb.Timestamp { + if x != nil { + return x.StateTime + } + return nil +} + +func (x *CutoverJob) GetProgressPercent() int32 { + if x != nil { + return x.ProgressPercent } return 0 } -func (x *ListCloneJobsRequest) GetPageToken() string { +func (x *CutoverJob) GetError() *status.Status { if x != nil { - return x.PageToken + return x.Error } - return "" + return nil } -func (x *ListCloneJobsRequest) GetFilter() string { +func (x *CutoverJob) GetStateMessage() string { if x != nil { - return x.Filter + return x.StateMessage } return "" } -func (x *ListCloneJobsRequest) GetOrderBy() string { +func (x *CutoverJob) GetSteps() []*CutoverStep { if x != nil { - return x.OrderBy + return x.Steps } - return "" + return nil } -// Response message for 'ListCloneJobs' request. -type ListCloneJobsResponse struct { +type isCutoverJob_TargetVmDetails interface { + isCutoverJob_TargetVmDetails() +} + +type CutoverJob_ComputeEngineTargetDetails struct { + // Output only. Details of the target VM in Compute Engine. + ComputeEngineTargetDetails *ComputeEngineTargetDetails `protobuf:"bytes,14,opt,name=compute_engine_target_details,json=computeEngineTargetDetails,proto3,oneof"` +} + +func (*CutoverJob_ComputeEngineTargetDetails) isCutoverJob_TargetVmDetails() {} + +// CutoverStep holds information about the cutover step progress. +type CutoverStep struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. The list of clone jobs response. - CloneJobs []*CloneJob `protobuf:"bytes,1,rep,name=clone_jobs,json=cloneJobs,proto3" json:"clone_jobs,omitempty"` - // Output only. A token, which can be sent as `page_token` to retrieve the - // next page. If this field is omitted, there are no subsequent pages. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - // Output only. Locations that could not be reached. - Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` + // Types that are assignable to Step: + // + // *CutoverStep_PreviousReplicationCycle + // *CutoverStep_ShuttingDownSourceVm + // *CutoverStep_FinalSync + // *CutoverStep_PreparingVmDisks + // *CutoverStep_InstantiatingMigratedVm + Step isCutoverStep_Step `protobuf_oneof:"step"` + // The time the step has started. + StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // The time the step has ended. + EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` } -func (x *ListCloneJobsResponse) Reset() { - *x = ListCloneJobsResponse{} +func (x *CutoverStep) Reset() { + *x = CutoverStep{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[9] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ListCloneJobsResponse) String() string { +func (x *CutoverStep) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListCloneJobsResponse) ProtoMessage() {} +func (*CutoverStep) ProtoMessage() {} -func (x *ListCloneJobsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[9] +func (x *CutoverStep) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2147,59 +2912,130 @@ func (x *ListCloneJobsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListCloneJobsResponse.ProtoReflect.Descriptor instead. -func (*ListCloneJobsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{9} +// Deprecated: Use CutoverStep.ProtoReflect.Descriptor instead. +func (*CutoverStep) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{13} } -func (x *ListCloneJobsResponse) GetCloneJobs() []*CloneJob { - if x != nil { - return x.CloneJobs +func (m *CutoverStep) GetStep() isCutoverStep_Step { + if m != nil { + return m.Step } return nil } -func (x *ListCloneJobsResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken +func (x *CutoverStep) GetPreviousReplicationCycle() *ReplicationCycle { + if x, ok := x.GetStep().(*CutoverStep_PreviousReplicationCycle); ok { + return x.PreviousReplicationCycle } - return "" + return nil } -func (x *ListCloneJobsResponse) GetUnreachable() []string { - if x != nil { - return x.Unreachable +func (x *CutoverStep) GetShuttingDownSourceVm() *ShuttingDownSourceVMStep { + if x, ok := x.GetStep().(*CutoverStep_ShuttingDownSourceVm); ok { + return x.ShuttingDownSourceVm } return nil } -// Request message for 'GetCloneJob' request. -type GetCloneJobRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *CutoverStep) GetFinalSync() *ReplicationCycle { + if x, ok := x.GetStep().(*CutoverStep_FinalSync); ok { + return x.FinalSync + } + return nil +} - // Required. The name of the CloneJob. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +func (x *CutoverStep) GetPreparingVmDisks() *PreparingVMDisksStep { + if x, ok := x.GetStep().(*CutoverStep_PreparingVmDisks); ok { + return x.PreparingVmDisks + } + return nil } -func (x *GetCloneJobRequest) Reset() { - *x = GetCloneJobRequest{} +func (x *CutoverStep) GetInstantiatingMigratedVm() *InstantiatingMigratedVMStep { + if x, ok := x.GetStep().(*CutoverStep_InstantiatingMigratedVm); ok { + return x.InstantiatingMigratedVm + } + return nil +} + +func (x *CutoverStep) GetStartTime() *timestamppb.Timestamp { + if x != nil { + return x.StartTime + } + return nil +} + +func (x *CutoverStep) GetEndTime() *timestamppb.Timestamp { + if x != nil { + return x.EndTime + } + return nil +} + +type isCutoverStep_Step interface { + isCutoverStep_Step() +} + +type CutoverStep_PreviousReplicationCycle struct { + // A replication cycle prior cutover step. + PreviousReplicationCycle *ReplicationCycle `protobuf:"bytes,3,opt,name=previous_replication_cycle,json=previousReplicationCycle,proto3,oneof"` +} + +type CutoverStep_ShuttingDownSourceVm struct { + // Shutting down VM step. + ShuttingDownSourceVm *ShuttingDownSourceVMStep `protobuf:"bytes,4,opt,name=shutting_down_source_vm,json=shuttingDownSourceVm,proto3,oneof"` +} + +type CutoverStep_FinalSync struct { + // Final sync step. + FinalSync *ReplicationCycle `protobuf:"bytes,5,opt,name=final_sync,json=finalSync,proto3,oneof"` +} + +type CutoverStep_PreparingVmDisks struct { + // Preparing VM disks step. + PreparingVmDisks *PreparingVMDisksStep `protobuf:"bytes,6,opt,name=preparing_vm_disks,json=preparingVmDisks,proto3,oneof"` +} + +type CutoverStep_InstantiatingMigratedVm struct { + // Instantiating migrated VM step. + InstantiatingMigratedVm *InstantiatingMigratedVMStep `protobuf:"bytes,7,opt,name=instantiating_migrated_vm,json=instantiatingMigratedVm,proto3,oneof"` +} + +func (*CutoverStep_PreviousReplicationCycle) isCutoverStep_Step() {} + +func (*CutoverStep_ShuttingDownSourceVm) isCutoverStep_Step() {} + +func (*CutoverStep_FinalSync) isCutoverStep_Step() {} + +func (*CutoverStep_PreparingVmDisks) isCutoverStep_Step() {} + +func (*CutoverStep_InstantiatingMigratedVm) isCutoverStep_Step() {} + +// ShuttingDownSourceVMStep contains specific step details. +type ShuttingDownSourceVMStep struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ShuttingDownSourceVMStep) Reset() { + *x = ShuttingDownSourceVMStep{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[10] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *GetCloneJobRequest) String() string { +func (x *ShuttingDownSourceVMStep) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetCloneJobRequest) ProtoMessage() {} +func (*ShuttingDownSourceVMStep) ProtoMessage() {} -func (x *GetCloneJobRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[10] +func (x *ShuttingDownSourceVMStep) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2210,58 +3046,56 @@ func (x *GetCloneJobRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetCloneJobRequest.ProtoReflect.Descriptor instead. -func (*GetCloneJobRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{10} -} - -func (x *GetCloneJobRequest) GetName() string { - if x != nil { - return x.Name - } - return "" +// Deprecated: Use ShuttingDownSourceVMStep.ProtoReflect.Descriptor instead. +func (*ShuttingDownSourceVMStep) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{14} } -// Source message describes a specific vm migration Source resource. It contains -// the source environment information. -type Source struct { +// Request message for 'CreateCloneJob' request. +type CreateCloneJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Types that are assignable to SourceDetails: + // Required. The Clone's parent. + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // Required. The clone job identifier. + CloneJobId string `protobuf:"bytes,2,opt,name=clone_job_id,json=cloneJobId,proto3" json:"clone_job_id,omitempty"` + // Required. The clone request body. + CloneJob *CloneJob `protobuf:"bytes,3,opt,name=clone_job,json=cloneJob,proto3" json:"clone_job,omitempty"` + // A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. // - // *Source_Vmware - SourceDetails isSource_SourceDetails `protobuf_oneof:"source_details"` - // Output only. The Source name. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Output only. The create time timestamp. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The update time timestamp. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // The labels of the source. - 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"` - // User-provided description of the source. - Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *Source) Reset() { - *x = Source{} +func (x *CreateCloneJobRequest) Reset() { + *x = CreateCloneJobRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[11] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Source) String() string { +func (x *CreateCloneJobRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Source) ProtoMessage() {} +func (*CreateCloneJobRequest) ProtoMessage() {} -func (x *Source) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[11] +func (x *CreateCloneJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2272,106 +3106,66 @@ func (x *Source) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Source.ProtoReflect.Descriptor instead. -func (*Source) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{11} -} - -func (m *Source) GetSourceDetails() isSource_SourceDetails { - if m != nil { - return m.SourceDetails - } - return nil -} - -func (x *Source) GetVmware() *VmwareSourceDetails { - if x, ok := x.GetSourceDetails().(*Source_Vmware); ok { - return x.Vmware - } - return nil +// Deprecated: Use CreateCloneJobRequest.ProtoReflect.Descriptor instead. +func (*CreateCloneJobRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{15} } -func (x *Source) GetName() string { +func (x *CreateCloneJobRequest) GetParent() string { if x != nil { - return x.Name + return x.Parent } return "" } -func (x *Source) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.CreateTime - } - return nil -} - -func (x *Source) GetUpdateTime() *timestamppb.Timestamp { +func (x *CreateCloneJobRequest) GetCloneJobId() string { if x != nil { - return x.UpdateTime + return x.CloneJobId } - return nil + return "" } -func (x *Source) GetLabels() map[string]string { +func (x *CreateCloneJobRequest) GetCloneJob() *CloneJob { if x != nil { - return x.Labels + return x.CloneJob } return nil } -func (x *Source) GetDescription() string { +func (x *CreateCloneJobRequest) GetRequestId() string { if x != nil { - return x.Description + return x.RequestId } return "" } -type isSource_SourceDetails interface { - isSource_SourceDetails() -} - -type Source_Vmware struct { - // Vmware type source details. - Vmware *VmwareSourceDetails `protobuf:"bytes,10,opt,name=vmware,proto3,oneof"` -} - -func (*Source_Vmware) isSource_SourceDetails() {} - -// VmwareSourceDetails message describes a specific source details for the -// vmware source type. -type VmwareSourceDetails struct { +// Request message for 'CancelCloneJob' request. +type CancelCloneJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The credentials username. - Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` - // Input only. The credentials password. This is write only and can not be - // read in a GET operation. - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` - // The ip address of the vcenter this Source represents. - VcenterIp string `protobuf:"bytes,3,opt,name=vcenter_ip,json=vcenterIp,proto3" json:"vcenter_ip,omitempty"` - // The thumbprint representing the certificate for the vcenter. - Thumbprint string `protobuf:"bytes,4,opt,name=thumbprint,proto3" json:"thumbprint,omitempty"` + // Required. The clone job id + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (x *VmwareSourceDetails) Reset() { - *x = VmwareSourceDetails{} +func (x *CancelCloneJobRequest) Reset() { + *x = CancelCloneJobRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[12] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *VmwareSourceDetails) String() string { +func (x *CancelCloneJobRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*VmwareSourceDetails) ProtoMessage() {} +func (*CancelCloneJobRequest) ProtoMessage() {} -func (x *VmwareSourceDetails) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[12] +func (x *CancelCloneJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2382,106 +3176,99 @@ func (x *VmwareSourceDetails) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use VmwareSourceDetails.ProtoReflect.Descriptor instead. -func (*VmwareSourceDetails) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{12} +// Deprecated: Use CancelCloneJobRequest.ProtoReflect.Descriptor instead. +func (*CancelCloneJobRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{16} } -func (x *VmwareSourceDetails) GetUsername() string { +func (x *CancelCloneJobRequest) GetName() string { if x != nil { - return x.Username + return x.Name } return "" } -func (x *VmwareSourceDetails) GetPassword() string { - if x != nil { - return x.Password - } - return "" +// Response message for 'CancelCloneJob' request. +type CancelCloneJobResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (x *VmwareSourceDetails) GetVcenterIp() string { - if x != nil { - return x.VcenterIp +func (x *CancelCloneJobResponse) Reset() { + *x = CancelCloneJobResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (x *VmwareSourceDetails) GetThumbprint() string { - if x != nil { - return x.Thumbprint - } - return "" +func (x *CancelCloneJobResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -// DatacenterConnector message describes a connector between the Source and GCP, -// which is installed on a vmware datacenter (an OVA vm installed by the user) -// to connect the Datacenter to GCP and support vm migration data transfer. -type DatacenterConnector struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (*CancelCloneJobResponse) ProtoMessage() {} - // Output only. The time the connector was created (as an API call, not when - // it was actually installed). - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The last time the connector was updated with an API call. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // Output only. The connector's name. - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - // Immutable. A unique key for this connector. This key is internal to the OVA - // connector and is supplied with its creation during the registration process - // and can not be modified. - RegistrationId string `protobuf:"bytes,12,opt,name=registration_id,json=registrationId,proto3" json:"registration_id,omitempty"` - // The service account to use in the connector when communicating with the - // cloud. - ServiceAccount string `protobuf:"bytes,5,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` - // The version running in the DatacenterConnector. This is supplied by the OVA - // connector during the registration process and can not be modified. - Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"` - // Output only. The communication channel between the datacenter connector and - // GCP. - Bucket string `protobuf:"bytes,10,opt,name=bucket,proto3" json:"bucket,omitempty"` - // Output only. State of the DatacenterConnector, as determined by the health - // checks. - State DatacenterConnector_State `protobuf:"varint,7,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.DatacenterConnector_State" json:"state,omitempty"` - // Output only. The time the state was last set. - StateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` - // Output only. Provides details on the state of the Datacenter Connector in - // case of an error. - Error *status.Status `protobuf:"bytes,11,opt,name=error,proto3" json:"error,omitempty"` - // Output only. Appliance OVA version. - // This is the OVA which is manually installed by the user and contains the - // infrastructure for the automatically updatable components on the appliance. - ApplianceInfrastructureVersion string `protobuf:"bytes,13,opt,name=appliance_infrastructure_version,json=applianceInfrastructureVersion,proto3" json:"appliance_infrastructure_version,omitempty"` - // Output only. Appliance last installed update bundle version. - // This is the version of the automatically updatable components on the - // appliance. - ApplianceSoftwareVersion string `protobuf:"bytes,14,opt,name=appliance_software_version,json=applianceSoftwareVersion,proto3" json:"appliance_software_version,omitempty"` - // Output only. The available versions for updating this appliance. - AvailableVersions *AvailableUpdates `protobuf:"bytes,15,opt,name=available_versions,json=availableVersions,proto3" json:"available_versions,omitempty"` - // Output only. The status of the current / last upgradeAppliance operation. - UpgradeStatus *UpgradeStatus `protobuf:"bytes,16,opt,name=upgrade_status,json=upgradeStatus,proto3" json:"upgrade_status,omitempty"` +func (x *CancelCloneJobResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_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) } -func (x *DatacenterConnector) Reset() { - *x = DatacenterConnector{} +// Deprecated: Use CancelCloneJobResponse.ProtoReflect.Descriptor instead. +func (*CancelCloneJobResponse) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{17} +} + +// Request message for 'ListCloneJobsRequest' request. +type ListCloneJobsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The parent, which owns this collection of source VMs. + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // Optional. The maximum number of clone jobs to return. The service may + // return fewer than this value. If unspecified, at most 500 clone jobs will + // be returned. The maximum value is 1000; values above 1000 will be coerced + // to 1000. + PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Required. A page token, received from a previous `ListCloneJobs` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListCloneJobs` must + // match the call that provided the page token. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // Optional. The filter request. + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + // Optional. the order by fields for the result. + OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` +} + +func (x *ListCloneJobsRequest) Reset() { + *x = ListCloneJobsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[13] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *DatacenterConnector) String() string { +func (x *ListCloneJobsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DatacenterConnector) ProtoMessage() {} +func (*ListCloneJobsRequest) ProtoMessage() {} -func (x *DatacenterConnector) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[13] +func (x *ListCloneJobsRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2492,144 +3279,141 @@ func (x *DatacenterConnector) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DatacenterConnector.ProtoReflect.Descriptor instead. -func (*DatacenterConnector) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{13} +// Deprecated: Use ListCloneJobsRequest.ProtoReflect.Descriptor instead. +func (*ListCloneJobsRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{18} } -func (x *DatacenterConnector) GetCreateTime() *timestamppb.Timestamp { +func (x *ListCloneJobsRequest) GetParent() string { if x != nil { - return x.CreateTime + return x.Parent } - return nil + return "" } -func (x *DatacenterConnector) GetUpdateTime() *timestamppb.Timestamp { +func (x *ListCloneJobsRequest) GetPageSize() int32 { if x != nil { - return x.UpdateTime + return x.PageSize } - return nil + return 0 } -func (x *DatacenterConnector) GetName() string { +func (x *ListCloneJobsRequest) GetPageToken() string { if x != nil { - return x.Name + return x.PageToken } return "" } -func (x *DatacenterConnector) GetRegistrationId() string { +func (x *ListCloneJobsRequest) GetFilter() string { if x != nil { - return x.RegistrationId + return x.Filter } return "" } -func (x *DatacenterConnector) GetServiceAccount() string { +func (x *ListCloneJobsRequest) GetOrderBy() string { if x != nil { - return x.ServiceAccount + return x.OrderBy } return "" } -func (x *DatacenterConnector) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} +// Response message for 'ListCloneJobs' request. +type ListCloneJobsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *DatacenterConnector) GetBucket() string { - if x != nil { - return x.Bucket - } - return "" + // Output only. The list of clone jobs response. + CloneJobs []*CloneJob `protobuf:"bytes,1,rep,name=clone_jobs,json=cloneJobs,proto3" json:"clone_jobs,omitempty"` + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + // Output only. Locations that could not be reached. + Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` } -func (x *DatacenterConnector) GetState() DatacenterConnector_State { - if x != nil { - return x.State +func (x *ListCloneJobsResponse) Reset() { + *x = ListCloneJobsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return DatacenterConnector_STATE_UNSPECIFIED } -func (x *DatacenterConnector) GetStateTime() *timestamppb.Timestamp { - if x != nil { - return x.StateTime - } - return nil +func (x *ListCloneJobsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *DatacenterConnector) GetError() *status.Status { - if x != nil { - return x.Error +func (*ListCloneJobsResponse) ProtoMessage() {} + +func (x *ListCloneJobsResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_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 nil + return mi.MessageOf(x) } -func (x *DatacenterConnector) GetApplianceInfrastructureVersion() string { - if x != nil { - return x.ApplianceInfrastructureVersion - } - return "" +// Deprecated: Use ListCloneJobsResponse.ProtoReflect.Descriptor instead. +func (*ListCloneJobsResponse) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{19} } -func (x *DatacenterConnector) GetApplianceSoftwareVersion() string { +func (x *ListCloneJobsResponse) GetCloneJobs() []*CloneJob { if x != nil { - return x.ApplianceSoftwareVersion + return x.CloneJobs } - return "" + return nil } -func (x *DatacenterConnector) GetAvailableVersions() *AvailableUpdates { +func (x *ListCloneJobsResponse) GetNextPageToken() string { if x != nil { - return x.AvailableVersions + return x.NextPageToken } - return nil + return "" } -func (x *DatacenterConnector) GetUpgradeStatus() *UpgradeStatus { +func (x *ListCloneJobsResponse) GetUnreachable() []string { if x != nil { - return x.UpgradeStatus + return x.Unreachable } return nil } -// UpgradeStatus contains information about upgradeAppliance operation. -type UpgradeStatus struct { +// Request message for 'GetCloneJob' request. +type GetCloneJobRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The version to upgrade to. - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - // The state of the upgradeAppliance operation. - State UpgradeStatus_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.UpgradeStatus_State" json:"state,omitempty"` - // Provides details on the state of the upgrade operation in case of an error. - Error *status.Status `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` - // The time the operation was started. - StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - // The version from which we upgraded. - PreviousVersion string `protobuf:"bytes,5,opt,name=previous_version,json=previousVersion,proto3" json:"previous_version,omitempty"` + // Required. The name of the CloneJob. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (x *UpgradeStatus) Reset() { - *x = UpgradeStatus{} +func (x *GetCloneJobRequest) Reset() { + *x = GetCloneJobRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[14] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *UpgradeStatus) String() string { +func (x *GetCloneJobRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*UpgradeStatus) ProtoMessage() {} +func (*GetCloneJobRequest) ProtoMessage() {} -func (x *UpgradeStatus) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[14] +func (x *GetCloneJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2640,79 +3424,59 @@ func (x *UpgradeStatus) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpgradeStatus.ProtoReflect.Descriptor instead. -func (*UpgradeStatus) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{14} +// Deprecated: Use GetCloneJobRequest.ProtoReflect.Descriptor instead. +func (*GetCloneJobRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{20} } -func (x *UpgradeStatus) GetVersion() string { +func (x *GetCloneJobRequest) GetName() string { if x != nil { - return x.Version + return x.Name } return "" } -func (x *UpgradeStatus) GetState() UpgradeStatus_State { - if x != nil { - return x.State - } - return UpgradeStatus_STATE_UNSPECIFIED -} - -func (x *UpgradeStatus) GetError() *status.Status { - if x != nil { - return x.Error - } - return nil -} +// Source message describes a specific vm migration Source resource. It contains +// the source environment information. +type Source struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *UpgradeStatus) GetStartTime() *timestamppb.Timestamp { - if x != nil { - return x.StartTime - } - return nil -} - -func (x *UpgradeStatus) GetPreviousVersion() string { - if x != nil { - return x.PreviousVersion - } - return "" -} - -// Holds informatiom about the available versions for upgrade. -type AvailableUpdates struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The newest deployable version of the appliance. - // The current appliance can't be updated into this version, and the owner - // must manually deploy this OVA to a new appliance. - NewDeployableAppliance *ApplianceVersion `protobuf:"bytes,1,opt,name=new_deployable_appliance,json=newDeployableAppliance,proto3" json:"new_deployable_appliance,omitempty"` - // The latest version for in place update. - // The current appliance can be updated to this version using the API or m4c - // CLI. - InPlaceUpdate *ApplianceVersion `protobuf:"bytes,2,opt,name=in_place_update,json=inPlaceUpdate,proto3" json:"in_place_update,omitempty"` + // Types that are assignable to SourceDetails: + // + // *Source_Vmware + // *Source_Aws + SourceDetails isSource_SourceDetails `protobuf_oneof:"source_details"` + // Output only. The Source name. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Output only. The create time timestamp. + CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + // Output only. The update time timestamp. + UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + // The labels of the source. + 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"` + // User-provided description of the source. + Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` } -func (x *AvailableUpdates) Reset() { - *x = AvailableUpdates{} +func (x *Source) Reset() { + *x = Source{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[15] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AvailableUpdates) String() string { +func (x *Source) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AvailableUpdates) ProtoMessage() {} +func (*Source) ProtoMessage() {} -func (x *AvailableUpdates) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[15] +func (x *Source) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2723,58 +3487,120 @@ func (x *AvailableUpdates) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AvailableUpdates.ProtoReflect.Descriptor instead. -func (*AvailableUpdates) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{15} +// Deprecated: Use Source.ProtoReflect.Descriptor instead. +func (*Source) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{21} } -func (x *AvailableUpdates) GetNewDeployableAppliance() *ApplianceVersion { +func (m *Source) GetSourceDetails() isSource_SourceDetails { + if m != nil { + return m.SourceDetails + } + return nil +} + +func (x *Source) GetVmware() *VmwareSourceDetails { + if x, ok := x.GetSourceDetails().(*Source_Vmware); ok { + return x.Vmware + } + return nil +} + +func (x *Source) GetAws() *AwsSourceDetails { + if x, ok := x.GetSourceDetails().(*Source_Aws); ok { + return x.Aws + } + return nil +} + +func (x *Source) GetName() string { if x != nil { - return x.NewDeployableAppliance + return x.Name + } + return "" +} + +func (x *Source) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.CreateTime } return nil } -func (x *AvailableUpdates) GetInPlaceUpdate() *ApplianceVersion { +func (x *Source) GetUpdateTime() *timestamppb.Timestamp { if x != nil { - return x.InPlaceUpdate + return x.UpdateTime } return nil } -// Describes an appliance version. -type ApplianceVersion struct { +func (x *Source) GetLabels() map[string]string { + if x != nil { + return x.Labels + } + return nil +} + +func (x *Source) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +type isSource_SourceDetails interface { + isSource_SourceDetails() +} + +type Source_Vmware struct { + // Vmware type source details. + Vmware *VmwareSourceDetails `protobuf:"bytes,10,opt,name=vmware,proto3,oneof"` +} + +type Source_Aws struct { + // AWS type source details. + Aws *AwsSourceDetails `protobuf:"bytes,12,opt,name=aws,proto3,oneof"` +} + +func (*Source_Vmware) isSource_SourceDetails() {} + +func (*Source_Aws) isSource_SourceDetails() {} + +// VmwareSourceDetails message describes a specific source details for the +// vmware source type. +type VmwareSourceDetails struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The appliance version. - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - // A link for downloading the version. - Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` - // Determine whether it's critical to upgrade the appliance to this version. - Critical bool `protobuf:"varint,3,opt,name=critical,proto3" json:"critical,omitempty"` - // Link to a page that contains the version release notes. - ReleaseNotesUri string `protobuf:"bytes,4,opt,name=release_notes_uri,json=releaseNotesUri,proto3" json:"release_notes_uri,omitempty"` + // The credentials username. + Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` + // Input only. The credentials password. This is write only and can not be + // read in a GET operation. + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + // The ip address of the vcenter this Source represents. + VcenterIp string `protobuf:"bytes,3,opt,name=vcenter_ip,json=vcenterIp,proto3" json:"vcenter_ip,omitempty"` + // The thumbprint representing the certificate for the vcenter. + Thumbprint string `protobuf:"bytes,4,opt,name=thumbprint,proto3" json:"thumbprint,omitempty"` } -func (x *ApplianceVersion) Reset() { - *x = ApplianceVersion{} +func (x *VmwareSourceDetails) Reset() { + *x = VmwareSourceDetails{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[16] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ApplianceVersion) String() string { +func (x *VmwareSourceDetails) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ApplianceVersion) ProtoMessage() {} +func (*VmwareSourceDetails) ProtoMessage() {} -func (x *ApplianceVersion) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[16] +func (x *VmwareSourceDetails) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2785,81 +3611,89 @@ func (x *ApplianceVersion) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ApplianceVersion.ProtoReflect.Descriptor instead. -func (*ApplianceVersion) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{16} +// Deprecated: Use VmwareSourceDetails.ProtoReflect.Descriptor instead. +func (*VmwareSourceDetails) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{22} } -func (x *ApplianceVersion) GetVersion() string { +func (x *VmwareSourceDetails) GetUsername() string { if x != nil { - return x.Version + return x.Username } return "" } -func (x *ApplianceVersion) GetUri() string { +func (x *VmwareSourceDetails) GetPassword() string { if x != nil { - return x.Uri + return x.Password } return "" } -func (x *ApplianceVersion) GetCritical() bool { +func (x *VmwareSourceDetails) GetVcenterIp() string { if x != nil { - return x.Critical + return x.VcenterIp } - return false + return "" } -func (x *ApplianceVersion) GetReleaseNotesUri() string { +func (x *VmwareSourceDetails) GetThumbprint() string { if x != nil { - return x.ReleaseNotesUri + return x.Thumbprint } return "" } -// Request message for 'ListSources' request. -type ListSourcesRequest struct { +// AwsSourceDetails message describes a specific source details for the +// AWS source type. +type AwsSourceDetails struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The parent, which owns this collection of sources. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The maximum number of sources to return. The service may return - // fewer than this value. If unspecified, at most 500 sources will be - // returned. The maximum value is 1000; values above 1000 will be coerced to - // 1000. - PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // Required. A page token, received from a previous `ListSources` call. - // Provide this to retrieve the subsequent page. + // Types that are assignable to CredentialsType: // - // When paginating, all other parameters provided to `ListSources` must - // match the call that provided the page token. - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Optional. The filter request. - Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` - // Optional. the order by fields for the result. - OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` -} - -func (x *ListSourcesRequest) Reset() { - *x = ListSourcesRequest{} + // *AwsSourceDetails_AccessKeyCreds + CredentialsType isAwsSourceDetails_CredentialsType `protobuf_oneof:"credentials_type"` + // Immutable. The AWS region that the source VMs will be migrated from. + AwsRegion string `protobuf:"bytes,3,opt,name=aws_region,json=awsRegion,proto3" json:"aws_region,omitempty"` + // Output only. State of the source as determined by the health check. + State AwsSourceDetails_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.AwsSourceDetails_State" json:"state,omitempty"` + // Output only. Provides details on the state of the Source in case of an + // error. + Error *status.Status `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"` + // AWS resource tags to limit the scope of the source inventory. + InventoryTagList []*AwsSourceDetails_Tag `protobuf:"bytes,10,rep,name=inventory_tag_list,json=inventoryTagList,proto3" json:"inventory_tag_list,omitempty"` + // AWS security group names to limit the scope of the source + // inventory. + InventorySecurityGroupNames []string `protobuf:"bytes,7,rep,name=inventory_security_group_names,json=inventorySecurityGroupNames,proto3" json:"inventory_security_group_names,omitempty"` + // User specified tags to add to every M2VM generated resource in AWS. + // These tags will be set in addition to the default tags that are set as part + // of the migration process. The tags must not begin with the reserved prefix + // `m2vm`. + MigrationResourcesUserTags map[string]string `protobuf:"bytes,8,rep,name=migration_resources_user_tags,json=migrationResourcesUserTags,proto3" json:"migration_resources_user_tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Output only. The source's public IP. All communication initiated by this + // source will originate from this IP. + PublicIp string `protobuf:"bytes,9,opt,name=public_ip,json=publicIp,proto3" json:"public_ip,omitempty"` +} + +func (x *AwsSourceDetails) Reset() { + *x = AwsSourceDetails{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[17] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ListSourcesRequest) String() string { +func (x *AwsSourceDetails) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListSourcesRequest) ProtoMessage() {} +func (*AwsSourceDetails) ProtoMessage() {} -func (x *ListSourcesRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[17] +func (x *AwsSourceDetails) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2870,78 +3704,153 @@ func (x *ListSourcesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListSourcesRequest.ProtoReflect.Descriptor instead. -func (*ListSourcesRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{17} +// Deprecated: Use AwsSourceDetails.ProtoReflect.Descriptor instead. +func (*AwsSourceDetails) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{23} } -func (x *ListSourcesRequest) GetParent() string { +func (m *AwsSourceDetails) GetCredentialsType() isAwsSourceDetails_CredentialsType { + if m != nil { + return m.CredentialsType + } + return nil +} + +func (x *AwsSourceDetails) GetAccessKeyCreds() *AwsSourceDetails_AccessKeyCredentials { + if x, ok := x.GetCredentialsType().(*AwsSourceDetails_AccessKeyCreds); ok { + return x.AccessKeyCreds + } + return nil +} + +func (x *AwsSourceDetails) GetAwsRegion() string { if x != nil { - return x.Parent + return x.AwsRegion } return "" } -func (x *ListSourcesRequest) GetPageSize() int32 { +func (x *AwsSourceDetails) GetState() AwsSourceDetails_State { if x != nil { - return x.PageSize + return x.State } - return 0 + return AwsSourceDetails_STATE_UNSPECIFIED } -func (x *ListSourcesRequest) GetPageToken() string { +func (x *AwsSourceDetails) GetError() *status.Status { if x != nil { - return x.PageToken + return x.Error } - return "" + return nil } -func (x *ListSourcesRequest) GetFilter() string { +func (x *AwsSourceDetails) GetInventoryTagList() []*AwsSourceDetails_Tag { if x != nil { - return x.Filter + return x.InventoryTagList } - return "" + return nil } -func (x *ListSourcesRequest) GetOrderBy() string { +func (x *AwsSourceDetails) GetInventorySecurityGroupNames() []string { if x != nil { - return x.OrderBy + return x.InventorySecurityGroupNames + } + return nil +} + +func (x *AwsSourceDetails) GetMigrationResourcesUserTags() map[string]string { + if x != nil { + return x.MigrationResourcesUserTags + } + return nil +} + +func (x *AwsSourceDetails) GetPublicIp() string { + if x != nil { + return x.PublicIp } return "" } -// Response message for 'ListSources' request. -type ListSourcesResponse struct { +type isAwsSourceDetails_CredentialsType interface { + isAwsSourceDetails_CredentialsType() +} + +type AwsSourceDetails_AccessKeyCreds struct { + // AWS Credentials using access key id and secret. + AccessKeyCreds *AwsSourceDetails_AccessKeyCredentials `protobuf:"bytes,11,opt,name=access_key_creds,json=accessKeyCreds,proto3,oneof"` +} + +func (*AwsSourceDetails_AccessKeyCreds) isAwsSourceDetails_CredentialsType() {} + +// DatacenterConnector message describes a connector between the Source and +// Google Cloud, which is installed on a vmware datacenter (an OVA vm installed +// by the user) to connect the Datacenter to Google Cloud and support vm +// migration data transfer. +type DatacenterConnector struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. The list of sources response. - Sources []*Source `protobuf:"bytes,1,rep,name=sources,proto3" json:"sources,omitempty"` - // Output only. A token, which can be sent as `page_token` to retrieve the - // next page. If this field is omitted, there are no subsequent pages. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - // Output only. Locations that could not be reached. - Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` + // Output only. The time the connector was created (as an API call, not when + // it was actually installed). + CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + // Output only. The last time the connector was updated with an API call. + UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + // Output only. The connector's name. + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // Immutable. A unique key for this connector. This key is internal to the OVA + // connector and is supplied with its creation during the registration process + // and can not be modified. + RegistrationId string `protobuf:"bytes,12,opt,name=registration_id,json=registrationId,proto3" json:"registration_id,omitempty"` + // The service account to use in the connector when communicating with the + // cloud. + ServiceAccount string `protobuf:"bytes,5,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` + // The version running in the DatacenterConnector. This is supplied by the OVA + // connector during the registration process and can not be modified. + Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"` + // Output only. The communication channel between the datacenter connector and + // Google Cloud. + Bucket string `protobuf:"bytes,10,opt,name=bucket,proto3" json:"bucket,omitempty"` + // Output only. State of the DatacenterConnector, as determined by the health + // checks. + State DatacenterConnector_State `protobuf:"varint,7,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.DatacenterConnector_State" json:"state,omitempty"` + // Output only. The time the state was last set. + StateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` + // Output only. Provides details on the state of the Datacenter Connector in + // case of an error. + Error *status.Status `protobuf:"bytes,11,opt,name=error,proto3" json:"error,omitempty"` + // Output only. Appliance OVA version. + // This is the OVA which is manually installed by the user and contains the + // infrastructure for the automatically updatable components on the appliance. + ApplianceInfrastructureVersion string `protobuf:"bytes,13,opt,name=appliance_infrastructure_version,json=applianceInfrastructureVersion,proto3" json:"appliance_infrastructure_version,omitempty"` + // Output only. Appliance last installed update bundle version. + // This is the version of the automatically updatable components on the + // appliance. + ApplianceSoftwareVersion string `protobuf:"bytes,14,opt,name=appliance_software_version,json=applianceSoftwareVersion,proto3" json:"appliance_software_version,omitempty"` + // Output only. The available versions for updating this appliance. + AvailableVersions *AvailableUpdates `protobuf:"bytes,15,opt,name=available_versions,json=availableVersions,proto3" json:"available_versions,omitempty"` + // Output only. The status of the current / last upgradeAppliance operation. + UpgradeStatus *UpgradeStatus `protobuf:"bytes,16,opt,name=upgrade_status,json=upgradeStatus,proto3" json:"upgrade_status,omitempty"` } -func (x *ListSourcesResponse) Reset() { - *x = ListSourcesResponse{} +func (x *DatacenterConnector) Reset() { + *x = DatacenterConnector{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[18] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ListSourcesResponse) String() string { +func (x *DatacenterConnector) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListSourcesResponse) ProtoMessage() {} +func (*DatacenterConnector) ProtoMessage() {} -func (x *ListSourcesResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[18] +func (x *DatacenterConnector) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2952,126 +3861,144 @@ func (x *ListSourcesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListSourcesResponse.ProtoReflect.Descriptor instead. -func (*ListSourcesResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{18} +// Deprecated: Use DatacenterConnector.ProtoReflect.Descriptor instead. +func (*DatacenterConnector) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{24} } -func (x *ListSourcesResponse) GetSources() []*Source { +func (x *DatacenterConnector) GetCreateTime() *timestamppb.Timestamp { if x != nil { - return x.Sources + return x.CreateTime } return nil } -func (x *ListSourcesResponse) GetNextPageToken() string { +func (x *DatacenterConnector) GetUpdateTime() *timestamppb.Timestamp { if x != nil { - return x.NextPageToken + return x.UpdateTime + } + return nil +} + +func (x *DatacenterConnector) GetName() string { + if x != nil { + return x.Name } return "" } -func (x *ListSourcesResponse) GetUnreachable() []string { +func (x *DatacenterConnector) GetRegistrationId() string { if x != nil { - return x.Unreachable + return x.RegistrationId } - return nil + return "" } -// Request message for 'GetSource' request. -type GetSourceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *DatacenterConnector) GetServiceAccount() string { + if x != nil { + return x.ServiceAccount + } + return "" +} - // Required. The Source name. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +func (x *DatacenterConnector) GetVersion() string { + if x != nil { + return x.Version + } + return "" } -func (x *GetSourceRequest) Reset() { - *x = GetSourceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *DatacenterConnector) GetBucket() string { + if x != nil { + return x.Bucket } + return "" } -func (x *GetSourceRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *DatacenterConnector) GetState() DatacenterConnector_State { + if x != nil { + return x.State + } + return DatacenterConnector_STATE_UNSPECIFIED } -func (*GetSourceRequest) ProtoMessage() {} +func (x *DatacenterConnector) GetStateTime() *timestamppb.Timestamp { + if x != nil { + return x.StateTime + } + return nil +} -func (x *GetSourceRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *DatacenterConnector) GetError() *status.Status { + if x != nil { + return x.Error } - return mi.MessageOf(x) + return nil } -// Deprecated: Use GetSourceRequest.ProtoReflect.Descriptor instead. -func (*GetSourceRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{19} +func (x *DatacenterConnector) GetApplianceInfrastructureVersion() string { + if x != nil { + return x.ApplianceInfrastructureVersion + } + return "" } -func (x *GetSourceRequest) GetName() string { +func (x *DatacenterConnector) GetApplianceSoftwareVersion() string { if x != nil { - return x.Name + return x.ApplianceSoftwareVersion } return "" } -// Request message for 'CreateSource' request. -type CreateSourceRequest struct { +func (x *DatacenterConnector) GetAvailableVersions() *AvailableUpdates { + if x != nil { + return x.AvailableVersions + } + return nil +} + +func (x *DatacenterConnector) GetUpgradeStatus() *UpgradeStatus { + if x != nil { + return x.UpgradeStatus + } + return nil +} + +// UpgradeStatus contains information about upgradeAppliance operation. +type UpgradeStatus struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The Source's parent. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The source identifier. - SourceId string `protobuf:"bytes,2,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"` - // Required. The create request body. - Source *Source `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` - // A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes since the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // The version to upgrade to. + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + // The state of the upgradeAppliance operation. + State UpgradeStatus_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.UpgradeStatus_State" json:"state,omitempty"` + // Provides details on the state of the upgrade operation in case of an error. + Error *status.Status `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` + // The time the operation was started. + StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // The version from which we upgraded. + PreviousVersion string `protobuf:"bytes,5,opt,name=previous_version,json=previousVersion,proto3" json:"previous_version,omitempty"` } -func (x *CreateSourceRequest) Reset() { - *x = CreateSourceRequest{} +func (x *UpgradeStatus) Reset() { + *x = UpgradeStatus{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[20] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CreateSourceRequest) String() string { +func (x *UpgradeStatus) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CreateSourceRequest) ProtoMessage() {} +func (*UpgradeStatus) ProtoMessage() {} -func (x *CreateSourceRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[20] +func (x *UpgradeStatus) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3082,86 +4009,79 @@ func (x *CreateSourceRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateSourceRequest.ProtoReflect.Descriptor instead. -func (*CreateSourceRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{20} +// Deprecated: Use UpgradeStatus.ProtoReflect.Descriptor instead. +func (*UpgradeStatus) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{25} } -func (x *CreateSourceRequest) GetParent() string { +func (x *UpgradeStatus) GetVersion() string { if x != nil { - return x.Parent + return x.Version } return "" } -func (x *CreateSourceRequest) GetSourceId() string { +func (x *UpgradeStatus) GetState() UpgradeStatus_State { if x != nil { - return x.SourceId + return x.State } - return "" + return UpgradeStatus_STATE_UNSPECIFIED } -func (x *CreateSourceRequest) GetSource() *Source { +func (x *UpgradeStatus) GetError() *status.Status { if x != nil { - return x.Source + return x.Error } return nil } -func (x *CreateSourceRequest) GetRequestId() string { +func (x *UpgradeStatus) GetStartTime() *timestamppb.Timestamp { if x != nil { - return x.RequestId + return x.StartTime + } + return nil +} + +func (x *UpgradeStatus) GetPreviousVersion() string { + if x != nil { + return x.PreviousVersion } return "" } -// Update message for 'UpdateSources' request. -type UpdateSourceRequest struct { +// Holds informatiom about the available versions for upgrade. +type AvailableUpdates struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Field mask is used to specify the fields to be overwritten in the - // Source resource by the update. - // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then all fields will be overwritten. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - // Required. The update request body. - Source *Source `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` - // A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes since the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // The newest deployable version of the appliance. + // The current appliance can't be updated into this version, and the owner + // must manually deploy this OVA to a new appliance. + NewDeployableAppliance *ApplianceVersion `protobuf:"bytes,1,opt,name=new_deployable_appliance,json=newDeployableAppliance,proto3" json:"new_deployable_appliance,omitempty"` + // The latest version for in place update. + // The current appliance can be updated to this version using the API or m4c + // CLI. + InPlaceUpdate *ApplianceVersion `protobuf:"bytes,2,opt,name=in_place_update,json=inPlaceUpdate,proto3" json:"in_place_update,omitempty"` } -func (x *UpdateSourceRequest) Reset() { - *x = UpdateSourceRequest{} +func (x *AvailableUpdates) Reset() { + *x = AvailableUpdates{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[21] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *UpdateSourceRequest) String() string { +func (x *AvailableUpdates) String() string { return protoimpl.X.MessageStringOf(x) } -func (*UpdateSourceRequest) ProtoMessage() {} +func (*AvailableUpdates) ProtoMessage() {} -func (x *UpdateSourceRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[21] +func (x *AvailableUpdates) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3172,73 +4092,58 @@ func (x *UpdateSourceRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateSourceRequest.ProtoReflect.Descriptor instead. -func (*UpdateSourceRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{21} +// Deprecated: Use AvailableUpdates.ProtoReflect.Descriptor instead. +func (*AvailableUpdates) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{26} } -func (x *UpdateSourceRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *AvailableUpdates) GetNewDeployableAppliance() *ApplianceVersion { if x != nil { - return x.UpdateMask + return x.NewDeployableAppliance } return nil } -func (x *UpdateSourceRequest) GetSource() *Source { +func (x *AvailableUpdates) GetInPlaceUpdate() *ApplianceVersion { if x != nil { - return x.Source + return x.InPlaceUpdate } return nil } -func (x *UpdateSourceRequest) GetRequestId() string { - if x != nil { - return x.RequestId - } - return "" -} - -// Request message for 'DeleteSource' request. -type DeleteSourceRequest struct { +// Describes an appliance version. +type ApplianceVersion struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The Source name. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Optional. A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes after the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // The appliance version. + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + // A link for downloading the version. + Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` + // Determine whether it's critical to upgrade the appliance to this version. + Critical bool `protobuf:"varint,3,opt,name=critical,proto3" json:"critical,omitempty"` + // Link to a page that contains the version release notes. + ReleaseNotesUri string `protobuf:"bytes,4,opt,name=release_notes_uri,json=releaseNotesUri,proto3" json:"release_notes_uri,omitempty"` } -func (x *DeleteSourceRequest) Reset() { - *x = DeleteSourceRequest{} +func (x *ApplianceVersion) Reset() { + *x = ApplianceVersion{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[22] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *DeleteSourceRequest) String() string { +func (x *ApplianceVersion) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DeleteSourceRequest) ProtoMessage() {} +func (*ApplianceVersion) ProtoMessage() {} -func (x *DeleteSourceRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[22] +func (x *ApplianceVersion) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3249,56 +4154,81 @@ func (x *DeleteSourceRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteSourceRequest.ProtoReflect.Descriptor instead. -func (*DeleteSourceRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{22} +// Deprecated: Use ApplianceVersion.ProtoReflect.Descriptor instead. +func (*ApplianceVersion) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{27} } -func (x *DeleteSourceRequest) GetName() string { +func (x *ApplianceVersion) GetVersion() string { if x != nil { - return x.Name + return x.Version } return "" } -func (x *DeleteSourceRequest) GetRequestId() string { +func (x *ApplianceVersion) GetUri() string { if x != nil { - return x.RequestId + return x.Uri } return "" } -// Request message for -// [fetchInventory][google.cloud.vmmigration.v1.VmMigration.FetchInventory]. -type FetchInventoryRequest struct { +func (x *ApplianceVersion) GetCritical() bool { + if x != nil { + return x.Critical + } + return false +} + +func (x *ApplianceVersion) GetReleaseNotesUri() string { + if x != nil { + return x.ReleaseNotesUri + } + return "" +} + +// Request message for 'ListSources' request. +type ListSourcesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The name of the Source. - Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` - // If this flag is set to true, the source will be queried instead of using - // cached results. Using this flag will make the call slower. - ForceRefresh bool `protobuf:"varint,2,opt,name=force_refresh,json=forceRefresh,proto3" json:"force_refresh,omitempty"` + // Required. The parent, which owns this collection of sources. + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // Optional. The maximum number of sources to return. The service may return + // fewer than this value. If unspecified, at most 500 sources will be + // returned. The maximum value is 1000; values above 1000 will be coerced to + // 1000. + PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Required. A page token, received from a previous `ListSources` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListSources` must + // match the call that provided the page token. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // Optional. The filter request. + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + // Optional. the order by fields for the result. + OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` } -func (x *FetchInventoryRequest) Reset() { - *x = FetchInventoryRequest{} +func (x *ListSourcesRequest) Reset() { + *x = ListSourcesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[23] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *FetchInventoryRequest) String() string { +func (x *ListSourcesRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FetchInventoryRequest) ProtoMessage() {} +func (*ListSourcesRequest) ProtoMessage() {} -func (x *FetchInventoryRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[23] +func (x *ListSourcesRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3309,77 +4239,78 @@ func (x *FetchInventoryRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FetchInventoryRequest.ProtoReflect.Descriptor instead. -func (*FetchInventoryRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{23} +// Deprecated: Use ListSourcesRequest.ProtoReflect.Descriptor instead. +func (*ListSourcesRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{28} } -func (x *FetchInventoryRequest) GetSource() string { +func (x *ListSourcesRequest) GetParent() string { if x != nil { - return x.Source + return x.Parent } return "" } -func (x *FetchInventoryRequest) GetForceRefresh() bool { +func (x *ListSourcesRequest) GetPageSize() int32 { if x != nil { - return x.ForceRefresh + return x.PageSize } - return false + return 0 } -// VmwareVmDetails describes a VM in vCenter. -type VmwareVmDetails struct { +func (x *ListSourcesRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +func (x *ListSourcesRequest) GetFilter() string { + if x != nil { + return x.Filter + } + return "" +} + +func (x *ListSourcesRequest) GetOrderBy() string { + if x != nil { + return x.OrderBy + } + return "" +} + +// Response message for 'ListSources' request. +type ListSourcesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The VM's id in the source (note that this is not the MigratingVm's id). - // This is the moref id of the VM. - VmId string `protobuf:"bytes,1,opt,name=vm_id,json=vmId,proto3" json:"vm_id,omitempty"` - // The id of the vCenter's datacenter this VM is contained in. - DatacenterId string `protobuf:"bytes,2,opt,name=datacenter_id,json=datacenterId,proto3" json:"datacenter_id,omitempty"` - // The descriptive name of the vCenter's datacenter this VM is contained in. - DatacenterDescription string `protobuf:"bytes,3,opt,name=datacenter_description,json=datacenterDescription,proto3" json:"datacenter_description,omitempty"` - // The unique identifier of the VM in vCenter. - Uuid string `protobuf:"bytes,4,opt,name=uuid,proto3" json:"uuid,omitempty"` - // The display name of the VM. Note that this is not necessarily unique. - DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - // The power state of the VM at the moment list was taken. - PowerState VmwareVmDetails_PowerState `protobuf:"varint,6,opt,name=power_state,json=powerState,proto3,enum=google.cloud.vmmigration.v1.VmwareVmDetails_PowerState" json:"power_state,omitempty"` - // The number of cpus in the VM. - CpuCount int32 `protobuf:"varint,7,opt,name=cpu_count,json=cpuCount,proto3" json:"cpu_count,omitempty"` - // The size of the memory of the VM in MB. - MemoryMb int32 `protobuf:"varint,8,opt,name=memory_mb,json=memoryMb,proto3" json:"memory_mb,omitempty"` - // The number of disks the VM has. - DiskCount int32 `protobuf:"varint,9,opt,name=disk_count,json=diskCount,proto3" json:"disk_count,omitempty"` - // The total size of the storage allocated to the VM in MB. - CommittedStorageMb int64 `protobuf:"varint,12,opt,name=committed_storage_mb,json=committedStorageMb,proto3" json:"committed_storage_mb,omitempty"` - // The VM's OS. See for example - // https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html - // for types of strings this might hold. - GuestDescription string `protobuf:"bytes,11,opt,name=guest_description,json=guestDescription,proto3" json:"guest_description,omitempty"` - // Output only. The VM Boot Option. - BootOption VmwareVmDetails_BootOption `protobuf:"varint,13,opt,name=boot_option,json=bootOption,proto3,enum=google.cloud.vmmigration.v1.VmwareVmDetails_BootOption" json:"boot_option,omitempty"` + // Output only. The list of sources response. + Sources []*Source `protobuf:"bytes,1,rep,name=sources,proto3" json:"sources,omitempty"` + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + // Output only. Locations that could not be reached. + Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` } -func (x *VmwareVmDetails) Reset() { - *x = VmwareVmDetails{} +func (x *ListSourcesResponse) Reset() { + *x = ListSourcesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[24] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *VmwareVmDetails) String() string { +func (x *ListSourcesResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*VmwareVmDetails) ProtoMessage() {} +func (*ListSourcesResponse) ProtoMessage() {} -func (x *VmwareVmDetails) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[24] +func (x *ListSourcesResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3390,122 +4321,126 @@ func (x *VmwareVmDetails) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use VmwareVmDetails.ProtoReflect.Descriptor instead. -func (*VmwareVmDetails) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{24} +// Deprecated: Use ListSourcesResponse.ProtoReflect.Descriptor instead. +func (*ListSourcesResponse) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{29} } -func (x *VmwareVmDetails) GetVmId() string { +func (x *ListSourcesResponse) GetSources() []*Source { if x != nil { - return x.VmId + return x.Sources } - return "" + return nil } -func (x *VmwareVmDetails) GetDatacenterId() string { +func (x *ListSourcesResponse) GetNextPageToken() string { if x != nil { - return x.DatacenterId + return x.NextPageToken } return "" } -func (x *VmwareVmDetails) GetDatacenterDescription() string { +func (x *ListSourcesResponse) GetUnreachable() []string { if x != nil { - return x.DatacenterDescription + return x.Unreachable } - return "" + return nil } -func (x *VmwareVmDetails) GetUuid() string { - if x != nil { - return x.Uuid - } - return "" -} +// Request message for 'GetSource' request. +type GetSourceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *VmwareVmDetails) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" + // Required. The Source name. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (x *VmwareVmDetails) GetPowerState() VmwareVmDetails_PowerState { - if x != nil { - return x.PowerState +func (x *GetSourceRequest) Reset() { + *x = GetSourceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return VmwareVmDetails_POWER_STATE_UNSPECIFIED } -func (x *VmwareVmDetails) GetCpuCount() int32 { - if x != nil { - return x.CpuCount - } - return 0 +func (x *GetSourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *VmwareVmDetails) GetMemoryMb() int32 { - if x != nil { - return x.MemoryMb - } - return 0 -} +func (*GetSourceRequest) ProtoMessage() {} -func (x *VmwareVmDetails) GetDiskCount() int32 { - if x != nil { - return x.DiskCount +func (x *GetSourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (x *VmwareVmDetails) GetCommittedStorageMb() int64 { - if x != nil { - return x.CommittedStorageMb - } - return 0 +// Deprecated: Use GetSourceRequest.ProtoReflect.Descriptor instead. +func (*GetSourceRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{30} } -func (x *VmwareVmDetails) GetGuestDescription() string { +func (x *GetSourceRequest) GetName() string { if x != nil { - return x.GuestDescription + return x.Name } return "" } -func (x *VmwareVmDetails) GetBootOption() VmwareVmDetails_BootOption { - if x != nil { - return x.BootOption - } - return VmwareVmDetails_BOOT_OPTION_UNSPECIFIED -} - -// VmwareVmsDetails describes VMs in vCenter. -type VmwareVmsDetails struct { +// Request message for 'CreateSource' request. +type CreateSourceRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The details of the vmware VMs. - Details []*VmwareVmDetails `protobuf:"bytes,1,rep,name=details,proto3" json:"details,omitempty"` + // Required. The Source's parent. + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // Required. The source identifier. + SourceId string `protobuf:"bytes,2,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"` + // Required. The create request body. + Source *Source `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` + // A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *VmwareVmsDetails) Reset() { - *x = VmwareVmsDetails{} +func (x *CreateSourceRequest) Reset() { + *x = CreateSourceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[25] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *VmwareVmsDetails) String() string { +func (x *CreateSourceRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*VmwareVmsDetails) ProtoMessage() {} +func (*CreateSourceRequest) ProtoMessage() {} -func (x *VmwareVmsDetails) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[25] +func (x *CreateSourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3516,51 +4451,86 @@ func (x *VmwareVmsDetails) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use VmwareVmsDetails.ProtoReflect.Descriptor instead. -func (*VmwareVmsDetails) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{25} +// Deprecated: Use CreateSourceRequest.ProtoReflect.Descriptor instead. +func (*CreateSourceRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{31} } -func (x *VmwareVmsDetails) GetDetails() []*VmwareVmDetails { +func (x *CreateSourceRequest) GetParent() string { if x != nil { - return x.Details + return x.Parent + } + return "" +} + +func (x *CreateSourceRequest) GetSourceId() string { + if x != nil { + return x.SourceId + } + return "" +} + +func (x *CreateSourceRequest) GetSource() *Source { + if x != nil { + return x.Source } return nil } -// Response message for -// [fetchInventory][google.cloud.vmmigration.v1.VmMigration.FetchInventory]. -type FetchInventoryResponse struct { +func (x *CreateSourceRequest) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +// Update message for 'UpdateSources' request. +type UpdateSourceRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Types that are assignable to SourceVms: + // Field mask is used to specify the fields to be overwritten in the + // Source resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // Required. The update request body. + Source *Source `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` + // A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. // - // *FetchInventoryResponse_VmwareVms - SourceVms isFetchInventoryResponse_SourceVms `protobuf_oneof:"SourceVms"` - // Output only. The timestamp when the source was last queried (if the result - // is from the cache). - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *FetchInventoryResponse) Reset() { - *x = FetchInventoryResponse{} +func (x *UpdateSourceRequest) Reset() { + *x = UpdateSourceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[26] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *FetchInventoryResponse) String() string { +func (x *UpdateSourceRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FetchInventoryResponse) ProtoMessage() {} +func (*UpdateSourceRequest) ProtoMessage() {} -func (x *FetchInventoryResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[26] +func (x *UpdateSourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3571,97 +4541,73 @@ func (x *FetchInventoryResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FetchInventoryResponse.ProtoReflect.Descriptor instead. -func (*FetchInventoryResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{26} +// Deprecated: Use UpdateSourceRequest.ProtoReflect.Descriptor instead. +func (*UpdateSourceRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{32} } -func (m *FetchInventoryResponse) GetSourceVms() isFetchInventoryResponse_SourceVms { - if m != nil { - return m.SourceVms +func (x *UpdateSourceRequest) GetUpdateMask() *fieldmaskpb.FieldMask { + if x != nil { + return x.UpdateMask } return nil } -func (x *FetchInventoryResponse) GetVmwareVms() *VmwareVmsDetails { - if x, ok := x.GetSourceVms().(*FetchInventoryResponse_VmwareVms); ok { - return x.VmwareVms +func (x *UpdateSourceRequest) GetSource() *Source { + if x != nil { + return x.Source } return nil } -func (x *FetchInventoryResponse) GetUpdateTime() *timestamppb.Timestamp { +func (x *UpdateSourceRequest) GetRequestId() string { if x != nil { - return x.UpdateTime + return x.RequestId } - return nil -} - -type isFetchInventoryResponse_SourceVms interface { - isFetchInventoryResponse_SourceVms() -} - -type FetchInventoryResponse_VmwareVms struct { - // The description of the VMs in a Source of type Vmware. - VmwareVms *VmwareVmsDetails `protobuf:"bytes,1,opt,name=vmware_vms,json=vmwareVms,proto3,oneof"` + return "" } -func (*FetchInventoryResponse_VmwareVms) isFetchInventoryResponse_SourceVms() {} +// Request message for 'DeleteSource' request. +type DeleteSourceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -// Utilization report details the utilization (CPU, memory, etc.) of selected -// source VMs. -type UtilizationReport struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Output only. The report unique name. + // Required. The Source name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // The report display name, as assigned by the user. - DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - // Output only. Current state of the report. - State UtilizationReport_State `protobuf:"varint,3,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.UtilizationReport_State" json:"state,omitempty"` - // Output only. The time the state was last set. - StateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` - // Output only. Provides details on the state of the report in case of an - // error. - Error *status.Status `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"` - // Output only. The time the report was created (this refers to the time of - // the request, not the time the report creation completed). - CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Time frame of the report. - TimeFrame UtilizationReport_TimeFrame `protobuf:"varint,7,opt,name=time_frame,json=timeFrame,proto3,enum=google.cloud.vmmigration.v1.UtilizationReport_TimeFrame" json:"time_frame,omitempty"` - // Output only. The point in time when the time frame ends. Notice that the - // time frame is counted backwards. For instance if the "frame_end_time" value - // is 2021/01/20 and the time frame is WEEK then the report covers the week - // between 2021/01/20 and 2021/01/14. - FrameEndTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=frame_end_time,json=frameEndTime,proto3" json:"frame_end_time,omitempty"` - // Output only. Total number of VMs included in the report. - VmCount int32 `protobuf:"varint,9,opt,name=vm_count,json=vmCount,proto3" json:"vm_count,omitempty"` - // List of utilization information per VM. - // When sent as part of the request, the "vm_id" field is used in order to - // specify which VMs to include in the report. In that case all other fields - // are ignored. - Vms []*VmUtilizationInfo `protobuf:"bytes,10,rep,name=vms,proto3" json:"vms,omitempty"` + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *UtilizationReport) Reset() { - *x = UtilizationReport{} +func (x *DeleteSourceRequest) Reset() { + *x = DeleteSourceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[27] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *UtilizationReport) String() string { +func (x *DeleteSourceRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*UtilizationReport) ProtoMessage() {} +func (*DeleteSourceRequest) ProtoMessage() {} -func (x *UtilizationReport) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[27] +func (x *DeleteSourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3672,114 +4618,137 @@ func (x *UtilizationReport) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UtilizationReport.ProtoReflect.Descriptor instead. -func (*UtilizationReport) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{27} +// Deprecated: Use DeleteSourceRequest.ProtoReflect.Descriptor instead. +func (*DeleteSourceRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{33} } -func (x *UtilizationReport) GetName() string { +func (x *DeleteSourceRequest) GetName() string { if x != nil { return x.Name } return "" } -func (x *UtilizationReport) GetDisplayName() string { +func (x *DeleteSourceRequest) GetRequestId() string { if x != nil { - return x.DisplayName + return x.RequestId } return "" } -func (x *UtilizationReport) GetState() UtilizationReport_State { - if x != nil { - return x.State - } - return UtilizationReport_STATE_UNSPECIFIED -} +// Request message for +// [fetchInventory][google.cloud.vmmigration.v1.VmMigration.FetchInventory]. +type FetchInventoryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *UtilizationReport) GetStateTime() *timestamppb.Timestamp { - if x != nil { - return x.StateTime - } - return nil + // Required. The name of the Source. + Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` + // If this flag is set to true, the source will be queried instead of using + // cached results. Using this flag will make the call slower. + ForceRefresh bool `protobuf:"varint,2,opt,name=force_refresh,json=forceRefresh,proto3" json:"force_refresh,omitempty"` } -func (x *UtilizationReport) GetError() *status.Status { - if x != nil { - return x.Error +func (x *FetchInventoryRequest) Reset() { + *x = FetchInventoryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (x *UtilizationReport) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.CreateTime - } - return nil +func (x *FetchInventoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *UtilizationReport) GetTimeFrame() UtilizationReport_TimeFrame { - if x != nil { - return x.TimeFrame +func (*FetchInventoryRequest) ProtoMessage() {} + +func (x *FetchInventoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return UtilizationReport_TIME_FRAME_UNSPECIFIED + return mi.MessageOf(x) } -func (x *UtilizationReport) GetFrameEndTime() *timestamppb.Timestamp { - if x != nil { - return x.FrameEndTime - } - return nil +// Deprecated: Use FetchInventoryRequest.ProtoReflect.Descriptor instead. +func (*FetchInventoryRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{34} } -func (x *UtilizationReport) GetVmCount() int32 { +func (x *FetchInventoryRequest) GetSource() string { if x != nil { - return x.VmCount + return x.Source } - return 0 + return "" } -func (x *UtilizationReport) GetVms() []*VmUtilizationInfo { +func (x *FetchInventoryRequest) GetForceRefresh() bool { if x != nil { - return x.Vms + return x.ForceRefresh } - return nil + return false } -// Utilization information of a single VM. -type VmUtilizationInfo struct { +// VmwareVmDetails describes a VM in vCenter. +type VmwareVmDetails struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Types that are assignable to VmDetails: - // - // *VmUtilizationInfo_VmwareVmDetails - VmDetails isVmUtilizationInfo_VmDetails `protobuf_oneof:"VmDetails"` - // The VM's ID in the source. - VmId string `protobuf:"bytes,3,opt,name=vm_id,json=vmId,proto3" json:"vm_id,omitempty"` - // Utilization metrics for this VM. - Utilization *VmUtilizationMetrics `protobuf:"bytes,2,opt,name=utilization,proto3" json:"utilization,omitempty"` + // The VM's id in the source (note that this is not the MigratingVm's id). + // This is the moref id of the VM. + VmId string `protobuf:"bytes,1,opt,name=vm_id,json=vmId,proto3" json:"vm_id,omitempty"` + // The id of the vCenter's datacenter this VM is contained in. + DatacenterId string `protobuf:"bytes,2,opt,name=datacenter_id,json=datacenterId,proto3" json:"datacenter_id,omitempty"` + // The descriptive name of the vCenter's datacenter this VM is contained in. + DatacenterDescription string `protobuf:"bytes,3,opt,name=datacenter_description,json=datacenterDescription,proto3" json:"datacenter_description,omitempty"` + // The unique identifier of the VM in vCenter. + Uuid string `protobuf:"bytes,4,opt,name=uuid,proto3" json:"uuid,omitempty"` + // The display name of the VM. Note that this is not necessarily unique. + DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + // The power state of the VM at the moment list was taken. + PowerState VmwareVmDetails_PowerState `protobuf:"varint,6,opt,name=power_state,json=powerState,proto3,enum=google.cloud.vmmigration.v1.VmwareVmDetails_PowerState" json:"power_state,omitempty"` + // The number of cpus in the VM. + CpuCount int32 `protobuf:"varint,7,opt,name=cpu_count,json=cpuCount,proto3" json:"cpu_count,omitempty"` + // The size of the memory of the VM in MB. + MemoryMb int32 `protobuf:"varint,8,opt,name=memory_mb,json=memoryMb,proto3" json:"memory_mb,omitempty"` + // The number of disks the VM has. + DiskCount int32 `protobuf:"varint,9,opt,name=disk_count,json=diskCount,proto3" json:"disk_count,omitempty"` + // The total size of the storage allocated to the VM in MB. + CommittedStorageMb int64 `protobuf:"varint,12,opt,name=committed_storage_mb,json=committedStorageMb,proto3" json:"committed_storage_mb,omitempty"` + // The VM's OS. See for example + // https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html + // for types of strings this might hold. + GuestDescription string `protobuf:"bytes,11,opt,name=guest_description,json=guestDescription,proto3" json:"guest_description,omitempty"` + // Output only. The VM Boot Option. + BootOption VmwareVmDetails_BootOption `protobuf:"varint,13,opt,name=boot_option,json=bootOption,proto3,enum=google.cloud.vmmigration.v1.VmwareVmDetails_BootOption" json:"boot_option,omitempty"` } -func (x *VmUtilizationInfo) Reset() { - *x = VmUtilizationInfo{} +func (x *VmwareVmDetails) Reset() { + *x = VmwareVmDetails{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[28] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *VmUtilizationInfo) String() string { +func (x *VmwareVmDetails) String() string { return protoimpl.X.MessageStringOf(x) } -func (*VmUtilizationInfo) ProtoMessage() {} +func (*VmwareVmDetails) ProtoMessage() {} -func (x *VmUtilizationInfo) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[28] +func (x *VmwareVmDetails) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3790,93 +4759,156 @@ func (x *VmUtilizationInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use VmUtilizationInfo.ProtoReflect.Descriptor instead. -func (*VmUtilizationInfo) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{28} +// Deprecated: Use VmwareVmDetails.ProtoReflect.Descriptor instead. +func (*VmwareVmDetails) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{35} } -func (m *VmUtilizationInfo) GetVmDetails() isVmUtilizationInfo_VmDetails { - if m != nil { - return m.VmDetails +func (x *VmwareVmDetails) GetVmId() string { + if x != nil { + return x.VmId } - return nil + return "" } -func (x *VmUtilizationInfo) GetVmwareVmDetails() *VmwareVmDetails { - if x, ok := x.GetVmDetails().(*VmUtilizationInfo_VmwareVmDetails); ok { - return x.VmwareVmDetails +func (x *VmwareVmDetails) GetDatacenterId() string { + if x != nil { + return x.DatacenterId } - return nil + return "" } -func (x *VmUtilizationInfo) GetVmId() string { +func (x *VmwareVmDetails) GetDatacenterDescription() string { if x != nil { - return x.VmId + return x.DatacenterDescription } return "" } -func (x *VmUtilizationInfo) GetUtilization() *VmUtilizationMetrics { +func (x *VmwareVmDetails) GetUuid() string { if x != nil { - return x.Utilization + return x.Uuid } - return nil + return "" } -type isVmUtilizationInfo_VmDetails interface { - isVmUtilizationInfo_VmDetails() +func (x *VmwareVmDetails) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" } -type VmUtilizationInfo_VmwareVmDetails struct { - // The description of the VM in a Source of type Vmware. - VmwareVmDetails *VmwareVmDetails `protobuf:"bytes,1,opt,name=vmware_vm_details,json=vmwareVmDetails,proto3,oneof"` +func (x *VmwareVmDetails) GetPowerState() VmwareVmDetails_PowerState { + if x != nil { + return x.PowerState + } + return VmwareVmDetails_POWER_STATE_UNSPECIFIED } -func (*VmUtilizationInfo_VmwareVmDetails) isVmUtilizationInfo_VmDetails() {} +func (x *VmwareVmDetails) GetCpuCount() int32 { + if x != nil { + return x.CpuCount + } + return 0 +} -// Utilization metrics values for a single VM. -type VmUtilizationMetrics struct { +func (x *VmwareVmDetails) GetMemoryMb() int32 { + if x != nil { + return x.MemoryMb + } + return 0 +} + +func (x *VmwareVmDetails) GetDiskCount() int32 { + if x != nil { + return x.DiskCount + } + return 0 +} + +func (x *VmwareVmDetails) GetCommittedStorageMb() int64 { + if x != nil { + return x.CommittedStorageMb + } + return 0 +} + +func (x *VmwareVmDetails) GetGuestDescription() string { + if x != nil { + return x.GuestDescription + } + return "" +} + +func (x *VmwareVmDetails) GetBootOption() VmwareVmDetails_BootOption { + if x != nil { + return x.BootOption + } + return VmwareVmDetails_BOOT_OPTION_UNSPECIFIED +} + +// AwsVmDetails describes a VM in AWS. +type AwsVmDetails struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Max CPU usage, percent. - CpuMaxPercent int32 `protobuf:"varint,9,opt,name=cpu_max_percent,json=cpuMaxPercent,proto3" json:"cpu_max_percent,omitempty"` - // Average CPU usage, percent. - CpuAveragePercent int32 `protobuf:"varint,10,opt,name=cpu_average_percent,json=cpuAveragePercent,proto3" json:"cpu_average_percent,omitempty"` - // Max memory usage, percent. - MemoryMaxPercent int32 `protobuf:"varint,11,opt,name=memory_max_percent,json=memoryMaxPercent,proto3" json:"memory_max_percent,omitempty"` - // Average memory usage, percent. - MemoryAveragePercent int32 `protobuf:"varint,12,opt,name=memory_average_percent,json=memoryAveragePercent,proto3" json:"memory_average_percent,omitempty"` - // Max disk IO rate, in kilobytes per second. - DiskIoRateMaxKbps int64 `protobuf:"varint,13,opt,name=disk_io_rate_max_kbps,json=diskIoRateMaxKbps,proto3" json:"disk_io_rate_max_kbps,omitempty"` - // Average disk IO rate, in kilobytes per second. - DiskIoRateAverageKbps int64 `protobuf:"varint,14,opt,name=disk_io_rate_average_kbps,json=diskIoRateAverageKbps,proto3" json:"disk_io_rate_average_kbps,omitempty"` - // Max network throughput (combined transmit-rates and receive-rates), in - // kilobytes per second. - NetworkThroughputMaxKbps int64 `protobuf:"varint,15,opt,name=network_throughput_max_kbps,json=networkThroughputMaxKbps,proto3" json:"network_throughput_max_kbps,omitempty"` - // Average network throughput (combined transmit-rates and receive-rates), in - // kilobytes per second. - NetworkThroughputAverageKbps int64 `protobuf:"varint,16,opt,name=network_throughput_average_kbps,json=networkThroughputAverageKbps,proto3" json:"network_throughput_average_kbps,omitempty"` -} - -func (x *VmUtilizationMetrics) Reset() { - *x = VmUtilizationMetrics{} + // The VM ID in AWS. + VmId string `protobuf:"bytes,1,opt,name=vm_id,json=vmId,proto3" json:"vm_id,omitempty"` + // The display name of the VM. Note that this value is not necessarily unique. + DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + // The id of the AWS's source this VM is connected to. + SourceId string `protobuf:"bytes,3,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"` + // The descriptive name of the AWS's source this VM is connected to. + SourceDescription string `protobuf:"bytes,4,opt,name=source_description,json=sourceDescription,proto3" json:"source_description,omitempty"` + // Output only. The power state of the VM at the moment list was taken. + PowerState AwsVmDetails_PowerState `protobuf:"varint,5,opt,name=power_state,json=powerState,proto3,enum=google.cloud.vmmigration.v1.AwsVmDetails_PowerState" json:"power_state,omitempty"` + // The number of cpus the VM has. + CpuCount int32 `protobuf:"varint,6,opt,name=cpu_count,json=cpuCount,proto3" json:"cpu_count,omitempty"` + // The memory size of the VM in MB. + MemoryMb int32 `protobuf:"varint,7,opt,name=memory_mb,json=memoryMb,proto3" json:"memory_mb,omitempty"` + // The number of disks the VM has. + DiskCount int32 `protobuf:"varint,8,opt,name=disk_count,json=diskCount,proto3" json:"disk_count,omitempty"` + // The total size of the storage allocated to the VM in MB. + CommittedStorageMb int64 `protobuf:"varint,9,opt,name=committed_storage_mb,json=committedStorageMb,proto3" json:"committed_storage_mb,omitempty"` + // The VM's OS. + OsDescription string `protobuf:"bytes,10,opt,name=os_description,json=osDescription,proto3" json:"os_description,omitempty"` + // The VM Boot Option. + BootOption AwsVmDetails_BootOption `protobuf:"varint,11,opt,name=boot_option,json=bootOption,proto3,enum=google.cloud.vmmigration.v1.AwsVmDetails_BootOption" json:"boot_option,omitempty"` + // The instance type of the VM. + InstanceType string `protobuf:"bytes,12,opt,name=instance_type,json=instanceType,proto3" json:"instance_type,omitempty"` + // The VPC ID the VM belongs to. + VpcId string `protobuf:"bytes,13,opt,name=vpc_id,json=vpcId,proto3" json:"vpc_id,omitempty"` + // The security groups the VM belongs to. + SecurityGroups []*AwsSecurityGroup `protobuf:"bytes,14,rep,name=security_groups,json=securityGroups,proto3" json:"security_groups,omitempty"` + // The tags of the VM. + Tags map[string]string `protobuf:"bytes,15,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // The AWS zone of the VM. + Zone string `protobuf:"bytes,16,opt,name=zone,proto3" json:"zone,omitempty"` + // The virtualization type. + VirtualizationType AwsVmDetails_VmVirtualizationType `protobuf:"varint,17,opt,name=virtualization_type,json=virtualizationType,proto3,enum=google.cloud.vmmigration.v1.AwsVmDetails_VmVirtualizationType" json:"virtualization_type,omitempty"` + // The CPU architecture. + Architecture AwsVmDetails_VmArchitecture `protobuf:"varint,18,opt,name=architecture,proto3,enum=google.cloud.vmmigration.v1.AwsVmDetails_VmArchitecture" json:"architecture,omitempty"` +} + +func (x *AwsVmDetails) Reset() { + *x = AwsVmDetails{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[29] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *VmUtilizationMetrics) String() string { +func (x *AwsVmDetails) String() string { return protoimpl.X.MessageStringOf(x) } -func (*VmUtilizationMetrics) ProtoMessage() {} +func (*AwsVmDetails) ProtoMessage() {} -func (x *VmUtilizationMetrics) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[29] +func (x *AwsVmDetails) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3887,201 +4919,166 @@ func (x *VmUtilizationMetrics) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use VmUtilizationMetrics.ProtoReflect.Descriptor instead. -func (*VmUtilizationMetrics) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{29} +// Deprecated: Use AwsVmDetails.ProtoReflect.Descriptor instead. +func (*AwsVmDetails) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{36} } -func (x *VmUtilizationMetrics) GetCpuMaxPercent() int32 { +func (x *AwsVmDetails) GetVmId() string { if x != nil { - return x.CpuMaxPercent + return x.VmId } - return 0 + return "" } -func (x *VmUtilizationMetrics) GetCpuAveragePercent() int32 { +func (x *AwsVmDetails) GetDisplayName() string { if x != nil { - return x.CpuAveragePercent + return x.DisplayName } - return 0 + return "" } -func (x *VmUtilizationMetrics) GetMemoryMaxPercent() int32 { +func (x *AwsVmDetails) GetSourceId() string { if x != nil { - return x.MemoryMaxPercent + return x.SourceId } - return 0 + return "" } -func (x *VmUtilizationMetrics) GetMemoryAveragePercent() int32 { +func (x *AwsVmDetails) GetSourceDescription() string { if x != nil { - return x.MemoryAveragePercent + return x.SourceDescription } - return 0 + return "" } -func (x *VmUtilizationMetrics) GetDiskIoRateMaxKbps() int64 { +func (x *AwsVmDetails) GetPowerState() AwsVmDetails_PowerState { if x != nil { - return x.DiskIoRateMaxKbps + return x.PowerState } - return 0 + return AwsVmDetails_POWER_STATE_UNSPECIFIED } -func (x *VmUtilizationMetrics) GetDiskIoRateAverageKbps() int64 { +func (x *AwsVmDetails) GetCpuCount() int32 { if x != nil { - return x.DiskIoRateAverageKbps + return x.CpuCount } return 0 } -func (x *VmUtilizationMetrics) GetNetworkThroughputMaxKbps() int64 { +func (x *AwsVmDetails) GetMemoryMb() int32 { if x != nil { - return x.NetworkThroughputMaxKbps + return x.MemoryMb } return 0 } -func (x *VmUtilizationMetrics) GetNetworkThroughputAverageKbps() int64 { +func (x *AwsVmDetails) GetDiskCount() int32 { if x != nil { - return x.NetworkThroughputAverageKbps + return x.DiskCount } return 0 } -// Request message for 'ListUtilizationReports' request. -type ListUtilizationReportsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The Utilization Reports parent. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The level of details of each report. - // Defaults to BASIC. - View UtilizationReportView `protobuf:"varint,2,opt,name=view,proto3,enum=google.cloud.vmmigration.v1.UtilizationReportView" json:"view,omitempty"` - // Optional. The maximum number of reports to return. The service may return - // fewer than this value. If unspecified, at most 500 reports will be - // returned. The maximum value is 1000; values above 1000 will be coerced to - // 1000. - PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // Required. A page token, received from a previous `ListUtilizationReports` - // call. Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListUtilizationReports` - // must match the call that provided the page token. - PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Optional. The filter request. - Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"` - // Optional. the order by fields for the result. - OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` -} - -func (x *ListUtilizationReportsRequest) Reset() { - *x = ListUtilizationReportsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *AwsVmDetails) GetCommittedStorageMb() int64 { + if x != nil { + return x.CommittedStorageMb } + return 0 } -func (x *ListUtilizationReportsRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *AwsVmDetails) GetOsDescription() string { + if x != nil { + return x.OsDescription + } + return "" } -func (*ListUtilizationReportsRequest) ProtoMessage() {} - -func (x *ListUtilizationReportsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *AwsVmDetails) GetBootOption() AwsVmDetails_BootOption { + if x != nil { + return x.BootOption } - return mi.MessageOf(x) + return AwsVmDetails_BOOT_OPTION_UNSPECIFIED } -// Deprecated: Use ListUtilizationReportsRequest.ProtoReflect.Descriptor instead. -func (*ListUtilizationReportsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{30} +func (x *AwsVmDetails) GetInstanceType() string { + if x != nil { + return x.InstanceType + } + return "" } -func (x *ListUtilizationReportsRequest) GetParent() string { +func (x *AwsVmDetails) GetVpcId() string { if x != nil { - return x.Parent + return x.VpcId } return "" } -func (x *ListUtilizationReportsRequest) GetView() UtilizationReportView { +func (x *AwsVmDetails) GetSecurityGroups() []*AwsSecurityGroup { if x != nil { - return x.View + return x.SecurityGroups } - return UtilizationReportView_UTILIZATION_REPORT_VIEW_UNSPECIFIED + return nil } -func (x *ListUtilizationReportsRequest) GetPageSize() int32 { +func (x *AwsVmDetails) GetTags() map[string]string { if x != nil { - return x.PageSize + return x.Tags } - return 0 + return nil } -func (x *ListUtilizationReportsRequest) GetPageToken() string { +func (x *AwsVmDetails) GetZone() string { if x != nil { - return x.PageToken + return x.Zone } return "" } -func (x *ListUtilizationReportsRequest) GetFilter() string { +func (x *AwsVmDetails) GetVirtualizationType() AwsVmDetails_VmVirtualizationType { if x != nil { - return x.Filter + return x.VirtualizationType } - return "" + return AwsVmDetails_VM_VIRTUALIZATION_TYPE_UNSPECIFIED } -func (x *ListUtilizationReportsRequest) GetOrderBy() string { +func (x *AwsVmDetails) GetArchitecture() AwsVmDetails_VmArchitecture { if x != nil { - return x.OrderBy + return x.Architecture } - return "" + return AwsVmDetails_VM_ARCHITECTURE_UNSPECIFIED } -// Response message for 'ListUtilizationReports' request. -type ListUtilizationReportsResponse struct { +// AwsSecurityGroup describes a security group of an AWS VM. +type AwsSecurityGroup struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. The list of reports. - UtilizationReports []*UtilizationReport `protobuf:"bytes,1,rep,name=utilization_reports,json=utilizationReports,proto3" json:"utilization_reports,omitempty"` - // Output only. A token, which can be sent as `page_token` to retrieve the - // next page. If this field is omitted, there are no subsequent pages. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - // Output only. Locations that could not be reached. - Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` + // The AWS security group id. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // The AWS security group name. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } -func (x *ListUtilizationReportsResponse) Reset() { - *x = ListUtilizationReportsResponse{} +func (x *AwsSecurityGroup) Reset() { + *x = AwsSecurityGroup{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[31] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ListUtilizationReportsResponse) String() string { +func (x *AwsSecurityGroup) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListUtilizationReportsResponse) ProtoMessage() {} +func (*AwsSecurityGroup) ProtoMessage() {} -func (x *ListUtilizationReportsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[31] +func (x *AwsSecurityGroup) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4092,62 +5089,52 @@ func (x *ListUtilizationReportsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListUtilizationReportsResponse.ProtoReflect.Descriptor instead. -func (*ListUtilizationReportsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{31} -} - -func (x *ListUtilizationReportsResponse) GetUtilizationReports() []*UtilizationReport { - if x != nil { - return x.UtilizationReports - } - return nil +// Deprecated: Use AwsSecurityGroup.ProtoReflect.Descriptor instead. +func (*AwsSecurityGroup) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{37} } -func (x *ListUtilizationReportsResponse) GetNextPageToken() string { +func (x *AwsSecurityGroup) GetId() string { if x != nil { - return x.NextPageToken + return x.Id } return "" } -func (x *ListUtilizationReportsResponse) GetUnreachable() []string { +func (x *AwsSecurityGroup) GetName() string { if x != nil { - return x.Unreachable + return x.Name } - return nil + return "" } -// Request message for 'GetUtilizationReport' request. -type GetUtilizationReportRequest struct { +// VmwareVmsDetails describes VMs in vCenter. +type VmwareVmsDetails struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The Utilization Report name. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Optional. The level of details of the report. - // Defaults to FULL - View UtilizationReportView `protobuf:"varint,2,opt,name=view,proto3,enum=google.cloud.vmmigration.v1.UtilizationReportView" json:"view,omitempty"` + // The details of the vmware VMs. + Details []*VmwareVmDetails `protobuf:"bytes,1,rep,name=details,proto3" json:"details,omitempty"` } -func (x *GetUtilizationReportRequest) Reset() { - *x = GetUtilizationReportRequest{} +func (x *VmwareVmsDetails) Reset() { + *x = VmwareVmsDetails{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[32] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *GetUtilizationReportRequest) String() string { +func (x *VmwareVmsDetails) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetUtilizationReportRequest) ProtoMessage() {} +func (*VmwareVmsDetails) ProtoMessage() {} -func (x *GetUtilizationReportRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[32] +func (x *VmwareVmsDetails) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4158,75 +5145,45 @@ func (x *GetUtilizationReportRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetUtilizationReportRequest.ProtoReflect.Descriptor instead. -func (*GetUtilizationReportRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{32} +// Deprecated: Use VmwareVmsDetails.ProtoReflect.Descriptor instead. +func (*VmwareVmsDetails) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{38} } -func (x *GetUtilizationReportRequest) GetName() string { +func (x *VmwareVmsDetails) GetDetails() []*VmwareVmDetails { if x != nil { - return x.Name - } - return "" -} - -func (x *GetUtilizationReportRequest) GetView() UtilizationReportView { - if x != nil { - return x.View + return x.Details } - return UtilizationReportView_UTILIZATION_REPORT_VIEW_UNSPECIFIED + return nil } -// Request message for 'CreateUtilizationReport' request. -type CreateUtilizationReportRequest struct { +// AWSVmsDetails describes VMs in AWS. +type AwsVmsDetails struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The Utilization Report's parent. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The report to create. - UtilizationReport *UtilizationReport `protobuf:"bytes,2,opt,name=utilization_report,json=utilizationReport,proto3" json:"utilization_report,omitempty"` - // Required. The ID to use for the report, which will become the final - // component of the reports's resource name. - // - // This value maximum length is 63 characters, and valid characters - // are /[a-z][0-9]-/. It must start with an english letter and must not - // end with a hyphen. - UtilizationReportId string `protobuf:"bytes,3,opt,name=utilization_report_id,json=utilizationReportId,proto3" json:"utilization_report_id,omitempty"` - // A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes since the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // The details of the AWS VMs. + Details []*AwsVmDetails `protobuf:"bytes,1,rep,name=details,proto3" json:"details,omitempty"` } -func (x *CreateUtilizationReportRequest) Reset() { - *x = CreateUtilizationReportRequest{} +func (x *AwsVmsDetails) Reset() { + *x = AwsVmsDetails{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[33] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CreateUtilizationReportRequest) String() string { +func (x *AwsVmsDetails) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CreateUtilizationReportRequest) ProtoMessage() {} +func (*AwsVmsDetails) ProtoMessage() {} -func (x *CreateUtilizationReportRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[33] +func (x *AwsVmsDetails) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4237,80 +5194,52 @@ func (x *CreateUtilizationReportRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateUtilizationReportRequest.ProtoReflect.Descriptor instead. -func (*CreateUtilizationReportRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{33} -} - -func (x *CreateUtilizationReportRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" +// Deprecated: Use AwsVmsDetails.ProtoReflect.Descriptor instead. +func (*AwsVmsDetails) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{39} } -func (x *CreateUtilizationReportRequest) GetUtilizationReport() *UtilizationReport { +func (x *AwsVmsDetails) GetDetails() []*AwsVmDetails { if x != nil { - return x.UtilizationReport + return x.Details } return nil } -func (x *CreateUtilizationReportRequest) GetUtilizationReportId() string { - if x != nil { - return x.UtilizationReportId - } - return "" -} - -func (x *CreateUtilizationReportRequest) GetRequestId() string { - if x != nil { - return x.RequestId - } - return "" -} - -// Request message for 'DeleteUtilizationReport' request. -type DeleteUtilizationReportRequest struct { +// Response message for +// [fetchInventory][google.cloud.vmmigration.v1.VmMigration.FetchInventory]. +type FetchInventoryResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The Utilization Report name. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Optional. A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes after the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. + // Types that are assignable to SourceVms: // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // *FetchInventoryResponse_VmwareVms + // *FetchInventoryResponse_AwsVms + SourceVms isFetchInventoryResponse_SourceVms `protobuf_oneof:"SourceVms"` + // Output only. The timestamp when the source was last queried (if the result + // is from the cache). + UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } -func (x *DeleteUtilizationReportRequest) Reset() { - *x = DeleteUtilizationReportRequest{} +func (x *FetchInventoryResponse) Reset() { + *x = FetchInventoryResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[34] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *DeleteUtilizationReportRequest) String() string { +func (x *FetchInventoryResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DeleteUtilizationReportRequest) ProtoMessage() {} +func (*FetchInventoryResponse) ProtoMessage() {} -func (x *DeleteUtilizationReportRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[34] +func (x *FetchInventoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4321,57 +5250,111 @@ func (x *DeleteUtilizationReportRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteUtilizationReportRequest.ProtoReflect.Descriptor instead. -func (*DeleteUtilizationReportRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{34} +// Deprecated: Use FetchInventoryResponse.ProtoReflect.Descriptor instead. +func (*FetchInventoryResponse) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{40} } -func (x *DeleteUtilizationReportRequest) GetName() string { - if x != nil { - return x.Name +func (m *FetchInventoryResponse) GetSourceVms() isFetchInventoryResponse_SourceVms { + if m != nil { + return m.SourceVms } - return "" + return nil } -func (x *DeleteUtilizationReportRequest) GetRequestId() string { +func (x *FetchInventoryResponse) GetVmwareVms() *VmwareVmsDetails { + if x, ok := x.GetSourceVms().(*FetchInventoryResponse_VmwareVms); ok { + return x.VmwareVms + } + return nil +} + +func (x *FetchInventoryResponse) GetAwsVms() *AwsVmsDetails { + if x, ok := x.GetSourceVms().(*FetchInventoryResponse_AwsVms); ok { + return x.AwsVms + } + return nil +} + +func (x *FetchInventoryResponse) GetUpdateTime() *timestamppb.Timestamp { if x != nil { - return x.RequestId + return x.UpdateTime } - return "" + return nil } -// Response message for 'ListDatacenterConnectors' request. -type ListDatacenterConnectorsResponse struct { +type isFetchInventoryResponse_SourceVms interface { + isFetchInventoryResponse_SourceVms() +} + +type FetchInventoryResponse_VmwareVms struct { + // The description of the VMs in a Source of type Vmware. + VmwareVms *VmwareVmsDetails `protobuf:"bytes,1,opt,name=vmware_vms,json=vmwareVms,proto3,oneof"` +} + +type FetchInventoryResponse_AwsVms struct { + // The description of the VMs in a Source of type AWS. + AwsVms *AwsVmsDetails `protobuf:"bytes,3,opt,name=aws_vms,json=awsVms,proto3,oneof"` +} + +func (*FetchInventoryResponse_VmwareVms) isFetchInventoryResponse_SourceVms() {} + +func (*FetchInventoryResponse_AwsVms) isFetchInventoryResponse_SourceVms() {} + +// Utilization report details the utilization (CPU, memory, etc.) of selected +// source VMs. +type UtilizationReport struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. The list of sources response. - DatacenterConnectors []*DatacenterConnector `protobuf:"bytes,1,rep,name=datacenter_connectors,json=datacenterConnectors,proto3" json:"datacenter_connectors,omitempty"` - // Output only. A token, which can be sent as `page_token` to retrieve the - // next page. If this field is omitted, there are no subsequent pages. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - // Output only. Locations that could not be reached. - Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` + // Output only. The report unique name. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The report display name, as assigned by the user. + DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + // Output only. Current state of the report. + State UtilizationReport_State `protobuf:"varint,3,opt,name=state,proto3,enum=google.cloud.vmmigration.v1.UtilizationReport_State" json:"state,omitempty"` + // Output only. The time the state was last set. + StateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"` + // Output only. Provides details on the state of the report in case of an + // error. + Error *status.Status `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"` + // Output only. The time the report was created (this refers to the time of + // the request, not the time the report creation completed). + CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + // Time frame of the report. + TimeFrame UtilizationReport_TimeFrame `protobuf:"varint,7,opt,name=time_frame,json=timeFrame,proto3,enum=google.cloud.vmmigration.v1.UtilizationReport_TimeFrame" json:"time_frame,omitempty"` + // Output only. The point in time when the time frame ends. Notice that the + // time frame is counted backwards. For instance if the "frame_end_time" value + // is 2021/01/20 and the time frame is WEEK then the report covers the week + // between 2021/01/20 and 2021/01/14. + FrameEndTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=frame_end_time,json=frameEndTime,proto3" json:"frame_end_time,omitempty"` + // Output only. Total number of VMs included in the report. + VmCount int32 `protobuf:"varint,9,opt,name=vm_count,json=vmCount,proto3" json:"vm_count,omitempty"` + // List of utilization information per VM. + // When sent as part of the request, the "vm_id" field is used in order to + // specify which VMs to include in the report. In that case all other fields + // are ignored. + Vms []*VmUtilizationInfo `protobuf:"bytes,10,rep,name=vms,proto3" json:"vms,omitempty"` } -func (x *ListDatacenterConnectorsResponse) Reset() { - *x = ListDatacenterConnectorsResponse{} +func (x *UtilizationReport) Reset() { + *x = UtilizationReport{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[35] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ListDatacenterConnectorsResponse) String() string { +func (x *UtilizationReport) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListDatacenterConnectorsResponse) ProtoMessage() {} +func (*UtilizationReport) ProtoMessage() {} -func (x *ListDatacenterConnectorsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[35] +func (x *UtilizationReport) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4382,129 +5365,114 @@ func (x *ListDatacenterConnectorsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListDatacenterConnectorsResponse.ProtoReflect.Descriptor instead. -func (*ListDatacenterConnectorsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{35} +// Deprecated: Use UtilizationReport.ProtoReflect.Descriptor instead. +func (*UtilizationReport) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{41} } -func (x *ListDatacenterConnectorsResponse) GetDatacenterConnectors() []*DatacenterConnector { +func (x *UtilizationReport) GetName() string { if x != nil { - return x.DatacenterConnectors + return x.Name } - return nil + return "" } -func (x *ListDatacenterConnectorsResponse) GetNextPageToken() string { +func (x *UtilizationReport) GetDisplayName() string { if x != nil { - return x.NextPageToken + return x.DisplayName } return "" } -func (x *ListDatacenterConnectorsResponse) GetUnreachable() []string { +func (x *UtilizationReport) GetState() UtilizationReport_State { if x != nil { - return x.Unreachable + return x.State } - return nil -} - -// Request message for 'GetDatacenterConnector' request. -type GetDatacenterConnectorRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the DatacenterConnector. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + return UtilizationReport_STATE_UNSPECIFIED } -func (x *GetDatacenterConnectorRequest) Reset() { - *x = GetDatacenterConnectorRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *UtilizationReport) GetStateTime() *timestamppb.Timestamp { + if x != nil { + return x.StateTime } + return nil } -func (x *GetDatacenterConnectorRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *UtilizationReport) GetError() *status.Status { + if x != nil { + return x.Error + } + return nil } -func (*GetDatacenterConnectorRequest) ProtoMessage() {} +func (x *UtilizationReport) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.CreateTime + } + return nil +} -func (x *GetDatacenterConnectorRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *UtilizationReport) GetTimeFrame() UtilizationReport_TimeFrame { + if x != nil { + return x.TimeFrame } - return mi.MessageOf(x) + return UtilizationReport_TIME_FRAME_UNSPECIFIED } -// Deprecated: Use GetDatacenterConnectorRequest.ProtoReflect.Descriptor instead. -func (*GetDatacenterConnectorRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{36} +func (x *UtilizationReport) GetFrameEndTime() *timestamppb.Timestamp { + if x != nil { + return x.FrameEndTime + } + return nil } -func (x *GetDatacenterConnectorRequest) GetName() string { +func (x *UtilizationReport) GetVmCount() int32 { if x != nil { - return x.Name + return x.VmCount } - return "" + return 0 } -// Request message for 'CreateDatacenterConnector' request. -type CreateDatacenterConnectorRequest struct { +func (x *UtilizationReport) GetVms() []*VmUtilizationInfo { + if x != nil { + return x.Vms + } + return nil +} + +// Utilization information of a single VM. +type VmUtilizationInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The DatacenterConnector's parent. - // Required. The Source in where the new DatacenterConnector will be created. - // For example: - // `projects/my-project/locations/us-central1/sources/my-source` - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The datacenterConnector identifier. - DatacenterConnectorId string `protobuf:"bytes,2,opt,name=datacenter_connector_id,json=datacenterConnectorId,proto3" json:"datacenter_connector_id,omitempty"` - // Required. The create request body. - DatacenterConnector *DatacenterConnector `protobuf:"bytes,3,opt,name=datacenter_connector,json=datacenterConnector,proto3" json:"datacenter_connector,omitempty"` - // A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes since the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. + // Types that are assignable to VmDetails: // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // *VmUtilizationInfo_VmwareVmDetails + VmDetails isVmUtilizationInfo_VmDetails `protobuf_oneof:"VmDetails"` + // The VM's ID in the source. + VmId string `protobuf:"bytes,3,opt,name=vm_id,json=vmId,proto3" json:"vm_id,omitempty"` + // Utilization metrics for this VM. + Utilization *VmUtilizationMetrics `protobuf:"bytes,2,opt,name=utilization,proto3" json:"utilization,omitempty"` } -func (x *CreateDatacenterConnectorRequest) Reset() { - *x = CreateDatacenterConnectorRequest{} +func (x *VmUtilizationInfo) Reset() { + *x = VmUtilizationInfo{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[37] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CreateDatacenterConnectorRequest) String() string { +func (x *VmUtilizationInfo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CreateDatacenterConnectorRequest) ProtoMessage() {} +func (*VmUtilizationInfo) ProtoMessage() {} -func (x *CreateDatacenterConnectorRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[37] +func (x *VmUtilizationInfo) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4515,80 +5483,93 @@ func (x *CreateDatacenterConnectorRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateDatacenterConnectorRequest.ProtoReflect.Descriptor instead. -func (*CreateDatacenterConnectorRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{37} +// Deprecated: Use VmUtilizationInfo.ProtoReflect.Descriptor instead. +func (*VmUtilizationInfo) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{42} } -func (x *CreateDatacenterConnectorRequest) GetParent() string { - if x != nil { - return x.Parent +func (m *VmUtilizationInfo) GetVmDetails() isVmUtilizationInfo_VmDetails { + if m != nil { + return m.VmDetails } - return "" + return nil } -func (x *CreateDatacenterConnectorRequest) GetDatacenterConnectorId() string { +func (x *VmUtilizationInfo) GetVmwareVmDetails() *VmwareVmDetails { + if x, ok := x.GetVmDetails().(*VmUtilizationInfo_VmwareVmDetails); ok { + return x.VmwareVmDetails + } + return nil +} + +func (x *VmUtilizationInfo) GetVmId() string { if x != nil { - return x.DatacenterConnectorId + return x.VmId } return "" } -func (x *CreateDatacenterConnectorRequest) GetDatacenterConnector() *DatacenterConnector { +func (x *VmUtilizationInfo) GetUtilization() *VmUtilizationMetrics { if x != nil { - return x.DatacenterConnector + return x.Utilization } return nil } -func (x *CreateDatacenterConnectorRequest) GetRequestId() string { - if x != nil { - return x.RequestId - } - return "" +type isVmUtilizationInfo_VmDetails interface { + isVmUtilizationInfo_VmDetails() } -// Request message for 'DeleteDatacenterConnector' request. -type DeleteDatacenterConnectorRequest struct { +type VmUtilizationInfo_VmwareVmDetails struct { + // The description of the VM in a Source of type Vmware. + VmwareVmDetails *VmwareVmDetails `protobuf:"bytes,1,opt,name=vmware_vm_details,json=vmwareVmDetails,proto3,oneof"` +} + +func (*VmUtilizationInfo_VmwareVmDetails) isVmUtilizationInfo_VmDetails() {} + +// Utilization metrics values for a single VM. +type VmUtilizationMetrics struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The DatacenterConnector name. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes after the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Max CPU usage, percent. + CpuMaxPercent int32 `protobuf:"varint,9,opt,name=cpu_max_percent,json=cpuMaxPercent,proto3" json:"cpu_max_percent,omitempty"` + // Average CPU usage, percent. + CpuAveragePercent int32 `protobuf:"varint,10,opt,name=cpu_average_percent,json=cpuAveragePercent,proto3" json:"cpu_average_percent,omitempty"` + // Max memory usage, percent. + MemoryMaxPercent int32 `protobuf:"varint,11,opt,name=memory_max_percent,json=memoryMaxPercent,proto3" json:"memory_max_percent,omitempty"` + // Average memory usage, percent. + MemoryAveragePercent int32 `protobuf:"varint,12,opt,name=memory_average_percent,json=memoryAveragePercent,proto3" json:"memory_average_percent,omitempty"` + // Max disk IO rate, in kilobytes per second. + DiskIoRateMaxKbps int64 `protobuf:"varint,13,opt,name=disk_io_rate_max_kbps,json=diskIoRateMaxKbps,proto3" json:"disk_io_rate_max_kbps,omitempty"` + // Average disk IO rate, in kilobytes per second. + DiskIoRateAverageKbps int64 `protobuf:"varint,14,opt,name=disk_io_rate_average_kbps,json=diskIoRateAverageKbps,proto3" json:"disk_io_rate_average_kbps,omitempty"` + // Max network throughput (combined transmit-rates and receive-rates), in + // kilobytes per second. + NetworkThroughputMaxKbps int64 `protobuf:"varint,15,opt,name=network_throughput_max_kbps,json=networkThroughputMaxKbps,proto3" json:"network_throughput_max_kbps,omitempty"` + // Average network throughput (combined transmit-rates and receive-rates), in + // kilobytes per second. + NetworkThroughputAverageKbps int64 `protobuf:"varint,16,opt,name=network_throughput_average_kbps,json=networkThroughputAverageKbps,proto3" json:"network_throughput_average_kbps,omitempty"` } -func (x *DeleteDatacenterConnectorRequest) Reset() { - *x = DeleteDatacenterConnectorRequest{} +func (x *VmUtilizationMetrics) Reset() { + *x = VmUtilizationMetrics{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[38] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *DeleteDatacenterConnectorRequest) String() string { +func (x *VmUtilizationMetrics) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DeleteDatacenterConnectorRequest) ProtoMessage() {} +func (*VmUtilizationMetrics) ProtoMessage() {} -func (x *DeleteDatacenterConnectorRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[38] +func (x *VmUtilizationMetrics) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4599,177 +5580,112 @@ func (x *DeleteDatacenterConnectorRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteDatacenterConnectorRequest.ProtoReflect.Descriptor instead. -func (*DeleteDatacenterConnectorRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{38} +// Deprecated: Use VmUtilizationMetrics.ProtoReflect.Descriptor instead. +func (*VmUtilizationMetrics) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{43} } -func (x *DeleteDatacenterConnectorRequest) GetName() string { +func (x *VmUtilizationMetrics) GetCpuMaxPercent() int32 { if x != nil { - return x.Name + return x.CpuMaxPercent } - return "" + return 0 } -func (x *DeleteDatacenterConnectorRequest) GetRequestId() string { +func (x *VmUtilizationMetrics) GetCpuAveragePercent() int32 { if x != nil { - return x.RequestId + return x.CpuAveragePercent } - return "" + return 0 } -// Request message for 'UpgradeAppliance' request. -type UpgradeApplianceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *VmUtilizationMetrics) GetMemoryMaxPercent() int32 { + if x != nil { + return x.MemoryMaxPercent + } + return 0 +} - // Required. The DatacenterConnector name. - DatacenterConnector string `protobuf:"bytes,1,opt,name=datacenter_connector,json=datacenterConnector,proto3" json:"datacenter_connector,omitempty"` - // A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes after the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` +func (x *VmUtilizationMetrics) GetMemoryAveragePercent() int32 { + if x != nil { + return x.MemoryAveragePercent + } + return 0 } -func (x *UpgradeApplianceRequest) Reset() { - *x = UpgradeApplianceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *VmUtilizationMetrics) GetDiskIoRateMaxKbps() int64 { + if x != nil { + return x.DiskIoRateMaxKbps } + return 0 } -func (x *UpgradeApplianceRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *VmUtilizationMetrics) GetDiskIoRateAverageKbps() int64 { + if x != nil { + return x.DiskIoRateAverageKbps + } + return 0 } -func (*UpgradeApplianceRequest) ProtoMessage() {} - -func (x *UpgradeApplianceRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpgradeApplianceRequest.ProtoReflect.Descriptor instead. -func (*UpgradeApplianceRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{39} -} - -func (x *UpgradeApplianceRequest) GetDatacenterConnector() string { +func (x *VmUtilizationMetrics) GetNetworkThroughputMaxKbps() int64 { if x != nil { - return x.DatacenterConnector + return x.NetworkThroughputMaxKbps } - return "" + return 0 } -func (x *UpgradeApplianceRequest) GetRequestId() string { +func (x *VmUtilizationMetrics) GetNetworkThroughputAverageKbps() int64 { if x != nil { - return x.RequestId - } - return "" -} - -// Response message for 'UpgradeAppliance' request. -type UpgradeApplianceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *UpgradeApplianceResponse) Reset() { - *x = UpgradeApplianceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpgradeApplianceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpgradeApplianceResponse) ProtoMessage() {} - -func (x *UpgradeApplianceResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms + return x.NetworkThroughputAverageKbps } - return mi.MessageOf(x) -} - -// Deprecated: Use UpgradeApplianceResponse.ProtoReflect.Descriptor instead. -func (*UpgradeApplianceResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{40} + return 0 } -// Request message for 'ListDatacenterConnectors' request. -type ListDatacenterConnectorsRequest struct { +// Request message for 'ListUtilizationReports' request. +type ListUtilizationReportsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The parent, which owns this collection of connectors. + // Required. The Utilization Reports parent. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The maximum number of connectors to return. The service may - // return fewer than this value. If unspecified, at most 500 sources will be + // Optional. The level of details of each report. + // Defaults to BASIC. + View UtilizationReportView `protobuf:"varint,2,opt,name=view,proto3,enum=google.cloud.vmmigration.v1.UtilizationReportView" json:"view,omitempty"` + // Optional. The maximum number of reports to return. The service may return + // fewer than this value. If unspecified, at most 500 reports will be // returned. The maximum value is 1000; values above 1000 will be coerced to // 1000. - PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // Required. A page token, received from a previous `ListDatacenterConnectors` + PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Required. A page token, received from a previous `ListUtilizationReports` // call. Provide this to retrieve the subsequent page. // - // When paginating, all other parameters provided to - // `ListDatacenterConnectors` must match the call that provided the page - // token. - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // When paginating, all other parameters provided to `ListUtilizationReports` + // must match the call that provided the page token. + PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Optional. The filter request. - Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"` // Optional. the order by fields for the result. - OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` + OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` } -func (x *ListDatacenterConnectorsRequest) Reset() { - *x = ListDatacenterConnectorsRequest{} +func (x *ListUtilizationReportsRequest) Reset() { + *x = ListUtilizationReportsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[41] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ListDatacenterConnectorsRequest) String() string { +func (x *ListUtilizationReportsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListDatacenterConnectorsRequest) ProtoMessage() {} +func (*ListUtilizationReportsRequest) ProtoMessage() {} -func (x *ListDatacenterConnectorsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[41] +func (x *ListUtilizationReportsRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4780,110 +5696,85 @@ func (x *ListDatacenterConnectorsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListDatacenterConnectorsRequest.ProtoReflect.Descriptor instead. -func (*ListDatacenterConnectorsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{41} +// Deprecated: Use ListUtilizationReportsRequest.ProtoReflect.Descriptor instead. +func (*ListUtilizationReportsRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{44} } -func (x *ListDatacenterConnectorsRequest) GetParent() string { +func (x *ListUtilizationReportsRequest) GetParent() string { if x != nil { return x.Parent } return "" } -func (x *ListDatacenterConnectorsRequest) GetPageSize() int32 { +func (x *ListUtilizationReportsRequest) GetView() UtilizationReportView { + if x != nil { + return x.View + } + return UtilizationReportView_UTILIZATION_REPORT_VIEW_UNSPECIFIED +} + +func (x *ListUtilizationReportsRequest) GetPageSize() int32 { if x != nil { return x.PageSize } return 0 } -func (x *ListDatacenterConnectorsRequest) GetPageToken() string { +func (x *ListUtilizationReportsRequest) GetPageToken() string { if x != nil { return x.PageToken } return "" } -func (x *ListDatacenterConnectorsRequest) GetFilter() string { +func (x *ListUtilizationReportsRequest) GetFilter() string { if x != nil { return x.Filter } return "" } -func (x *ListDatacenterConnectorsRequest) GetOrderBy() string { +func (x *ListUtilizationReportsRequest) GetOrderBy() string { if x != nil { return x.OrderBy } return "" } -// ComputeEngineTargetDefaults is a collection of details for creating a VM in a -// target Compute Engine project. -type ComputeEngineTargetDefaults struct { +// Response message for 'ListUtilizationReports' request. +type ListUtilizationReportsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The name of the VM to create. - VmName string `protobuf:"bytes,1,opt,name=vm_name,json=vmName,proto3" json:"vm_name,omitempty"` - // The full path of the resource of type TargetProject which represents the - // Compute Engine project in which to create this VM. - TargetProject string `protobuf:"bytes,2,opt,name=target_project,json=targetProject,proto3" json:"target_project,omitempty"` - // The zone in which to create the VM. - Zone string `protobuf:"bytes,3,opt,name=zone,proto3" json:"zone,omitempty"` - // The machine type series to create the VM with. - MachineTypeSeries string `protobuf:"bytes,4,opt,name=machine_type_series,json=machineTypeSeries,proto3" json:"machine_type_series,omitempty"` - // The machine type to create the VM with. - MachineType string `protobuf:"bytes,5,opt,name=machine_type,json=machineType,proto3" json:"machine_type,omitempty"` - // A map of network tags to associate with the VM. - NetworkTags []string `protobuf:"bytes,6,rep,name=network_tags,json=networkTags,proto3" json:"network_tags,omitempty"` - // List of NICs connected to this VM. - NetworkInterfaces []*NetworkInterface `protobuf:"bytes,7,rep,name=network_interfaces,json=networkInterfaces,proto3" json:"network_interfaces,omitempty"` - // The service account to associate the VM with. - ServiceAccount string `protobuf:"bytes,8,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` - // The disk type to use in the VM. - DiskType ComputeEngineDiskType `protobuf:"varint,9,opt,name=disk_type,json=diskType,proto3,enum=google.cloud.vmmigration.v1.ComputeEngineDiskType" json:"disk_type,omitempty"` - // A map of labels to associate with the VM. - Labels map[string]string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // The license type to use in OS adaptation. - LicenseType ComputeEngineLicenseType `protobuf:"varint,11,opt,name=license_type,json=licenseType,proto3,enum=google.cloud.vmmigration.v1.ComputeEngineLicenseType" json:"license_type,omitempty"` - // Output only. The OS license returned from the adaptation module report. - AppliedLicense *AppliedLicense `protobuf:"bytes,12,opt,name=applied_license,json=appliedLicense,proto3" json:"applied_license,omitempty"` - // Compute instance scheduling information (if empty default is used). - ComputeScheduling *ComputeScheduling `protobuf:"bytes,13,opt,name=compute_scheduling,json=computeScheduling,proto3" json:"compute_scheduling,omitempty"` - // Defines whether the instance has Secure Boot enabled. - // This can be set to true only if the vm boot option is EFI. - SecureBoot bool `protobuf:"varint,14,opt,name=secure_boot,json=secureBoot,proto3" json:"secure_boot,omitempty"` - // Output only. The VM Boot Option, as set in the source vm. - BootOption ComputeEngineBootOption `protobuf:"varint,15,opt,name=boot_option,json=bootOption,proto3,enum=google.cloud.vmmigration.v1.ComputeEngineBootOption" json:"boot_option,omitempty"` - // The metadata key/value pairs to assign to the VM. - Metadata map[string]string `protobuf:"bytes,16,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Additional licenses to assign to the VM. - AdditionalLicenses []string `protobuf:"bytes,17,rep,name=additional_licenses,json=additionalLicenses,proto3" json:"additional_licenses,omitempty"` - // The hostname to assign to the VM. - Hostname string `protobuf:"bytes,18,opt,name=hostname,proto3" json:"hostname,omitempty"` + // Output only. The list of reports. + UtilizationReports []*UtilizationReport `protobuf:"bytes,1,rep,name=utilization_reports,json=utilizationReports,proto3" json:"utilization_reports,omitempty"` + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + // Output only. Locations that could not be reached. + Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` } -func (x *ComputeEngineTargetDefaults) Reset() { - *x = ComputeEngineTargetDefaults{} +func (x *ListUtilizationReportsResponse) Reset() { + *x = ListUtilizationReportsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[42] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ComputeEngineTargetDefaults) String() string { +func (x *ListUtilizationReportsResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ComputeEngineTargetDefaults) ProtoMessage() {} +func (*ListUtilizationReportsResponse) ProtoMessage() {} -func (x *ComputeEngineTargetDefaults) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[42] +func (x *ListUtilizationReportsResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4894,200 +5785,225 @@ func (x *ComputeEngineTargetDefaults) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ComputeEngineTargetDefaults.ProtoReflect.Descriptor instead. -func (*ComputeEngineTargetDefaults) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{42} +// Deprecated: Use ListUtilizationReportsResponse.ProtoReflect.Descriptor instead. +func (*ListUtilizationReportsResponse) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{45} } -func (x *ComputeEngineTargetDefaults) GetVmName() string { +func (x *ListUtilizationReportsResponse) GetUtilizationReports() []*UtilizationReport { if x != nil { - return x.VmName + return x.UtilizationReports } - return "" + return nil } -func (x *ComputeEngineTargetDefaults) GetTargetProject() string { +func (x *ListUtilizationReportsResponse) GetNextPageToken() string { if x != nil { - return x.TargetProject + return x.NextPageToken } return "" } -func (x *ComputeEngineTargetDefaults) GetZone() string { +func (x *ListUtilizationReportsResponse) GetUnreachable() []string { if x != nil { - return x.Zone + return x.Unreachable } - return "" + return nil } -func (x *ComputeEngineTargetDefaults) GetMachineTypeSeries() string { - if x != nil { - return x.MachineTypeSeries - } - return "" +// Request message for 'GetUtilizationReport' request. +type GetUtilizationReportRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The Utilization Report name. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Optional. The level of details of the report. + // Defaults to FULL + View UtilizationReportView `protobuf:"varint,2,opt,name=view,proto3,enum=google.cloud.vmmigration.v1.UtilizationReportView" json:"view,omitempty"` } -func (x *ComputeEngineTargetDefaults) GetMachineType() string { - if x != nil { - return x.MachineType +func (x *GetUtilizationReportRequest) Reset() { + *x = GetUtilizationReportRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (x *ComputeEngineTargetDefaults) GetNetworkTags() []string { - if x != nil { - return x.NetworkTags - } - return nil +func (x *GetUtilizationReportRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *ComputeEngineTargetDefaults) GetNetworkInterfaces() []*NetworkInterface { - if x != nil { - return x.NetworkInterfaces +func (*GetUtilizationReportRequest) ProtoMessage() {} + +func (x *GetUtilizationReportRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[46] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (x *ComputeEngineTargetDefaults) GetServiceAccount() string { +// Deprecated: Use GetUtilizationReportRequest.ProtoReflect.Descriptor instead. +func (*GetUtilizationReportRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{46} +} + +func (x *GetUtilizationReportRequest) GetName() string { if x != nil { - return x.ServiceAccount + return x.Name } return "" } -func (x *ComputeEngineTargetDefaults) GetDiskType() ComputeEngineDiskType { +func (x *GetUtilizationReportRequest) GetView() UtilizationReportView { if x != nil { - return x.DiskType + return x.View } - return ComputeEngineDiskType_COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED + return UtilizationReportView_UTILIZATION_REPORT_VIEW_UNSPECIFIED } -func (x *ComputeEngineTargetDefaults) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil +// Request message for 'CreateUtilizationReport' request. +type CreateUtilizationReportRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The Utilization Report's parent. + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // Required. The report to create. + UtilizationReport *UtilizationReport `protobuf:"bytes,2,opt,name=utilization_report,json=utilizationReport,proto3" json:"utilization_report,omitempty"` + // Required. The ID to use for the report, which will become the final + // component of the reports's resource name. + // + // This value maximum length is 63 characters, and valid characters + // are /[a-z][0-9]-/. It must start with an english letter and must not + // end with a hyphen. + UtilizationReportId string `protobuf:"bytes,3,opt,name=utilization_report_id,json=utilizationReportId,proto3" json:"utilization_report_id,omitempty"` + // A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *ComputeEngineTargetDefaults) GetLicenseType() ComputeEngineLicenseType { - if x != nil { - return x.LicenseType +func (x *CreateUtilizationReportRequest) Reset() { + *x = CreateUtilizationReportRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return ComputeEngineLicenseType_COMPUTE_ENGINE_LICENSE_TYPE_DEFAULT } -func (x *ComputeEngineTargetDefaults) GetAppliedLicense() *AppliedLicense { - if x != nil { - return x.AppliedLicense - } - return nil +func (x *CreateUtilizationReportRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *ComputeEngineTargetDefaults) GetComputeScheduling() *ComputeScheduling { - if x != nil { - return x.ComputeScheduling +func (*CreateUtilizationReportRequest) ProtoMessage() {} + +func (x *CreateUtilizationReportRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[47] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (x *ComputeEngineTargetDefaults) GetSecureBoot() bool { - if x != nil { - return x.SecureBoot - } - return false +// Deprecated: Use CreateUtilizationReportRequest.ProtoReflect.Descriptor instead. +func (*CreateUtilizationReportRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{47} } -func (x *ComputeEngineTargetDefaults) GetBootOption() ComputeEngineBootOption { +func (x *CreateUtilizationReportRequest) GetParent() string { if x != nil { - return x.BootOption + return x.Parent } - return ComputeEngineBootOption_COMPUTE_ENGINE_BOOT_OPTION_UNSPECIFIED + return "" } -func (x *ComputeEngineTargetDefaults) GetMetadata() map[string]string { +func (x *CreateUtilizationReportRequest) GetUtilizationReport() *UtilizationReport { if x != nil { - return x.Metadata + return x.UtilizationReport } return nil } -func (x *ComputeEngineTargetDefaults) GetAdditionalLicenses() []string { +func (x *CreateUtilizationReportRequest) GetUtilizationReportId() string { if x != nil { - return x.AdditionalLicenses + return x.UtilizationReportId } - return nil + return "" } -func (x *ComputeEngineTargetDefaults) GetHostname() string { +func (x *CreateUtilizationReportRequest) GetRequestId() string { if x != nil { - return x.Hostname + return x.RequestId } return "" } -// ComputeEngineTargetDetails is a collection of details for creating a VM in a -// target Compute Engine project. -type ComputeEngineTargetDetails struct { +// Request message for 'DeleteUtilizationReport' request. +type DeleteUtilizationReportRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The name of the VM to create. - VmName string `protobuf:"bytes,1,opt,name=vm_name,json=vmName,proto3" json:"vm_name,omitempty"` - // The GCP target project ID or project name. - Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` - // The zone in which to create the VM. - Zone string `protobuf:"bytes,3,opt,name=zone,proto3" json:"zone,omitempty"` - // The machine type series to create the VM with. - MachineTypeSeries string `protobuf:"bytes,4,opt,name=machine_type_series,json=machineTypeSeries,proto3" json:"machine_type_series,omitempty"` - // The machine type to create the VM with. - MachineType string `protobuf:"bytes,5,opt,name=machine_type,json=machineType,proto3" json:"machine_type,omitempty"` - // A map of network tags to associate with the VM. - NetworkTags []string `protobuf:"bytes,6,rep,name=network_tags,json=networkTags,proto3" json:"network_tags,omitempty"` - // List of NICs connected to this VM. - NetworkInterfaces []*NetworkInterface `protobuf:"bytes,7,rep,name=network_interfaces,json=networkInterfaces,proto3" json:"network_interfaces,omitempty"` - // The service account to associate the VM with. - ServiceAccount string `protobuf:"bytes,8,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` - // The disk type to use in the VM. - DiskType ComputeEngineDiskType `protobuf:"varint,9,opt,name=disk_type,json=diskType,proto3,enum=google.cloud.vmmigration.v1.ComputeEngineDiskType" json:"disk_type,omitempty"` - // A map of labels to associate with the VM. - Labels map[string]string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // The license type to use in OS adaptation. - LicenseType ComputeEngineLicenseType `protobuf:"varint,11,opt,name=license_type,json=licenseType,proto3,enum=google.cloud.vmmigration.v1.ComputeEngineLicenseType" json:"license_type,omitempty"` - // The OS license returned from the adaptation module report. - AppliedLicense *AppliedLicense `protobuf:"bytes,12,opt,name=applied_license,json=appliedLicense,proto3" json:"applied_license,omitempty"` - // Compute instance scheduling information (if empty default is used). - ComputeScheduling *ComputeScheduling `protobuf:"bytes,13,opt,name=compute_scheduling,json=computeScheduling,proto3" json:"compute_scheduling,omitempty"` - // Defines whether the instance has Secure Boot enabled. - // This can be set to true only if the vm boot option is EFI. - SecureBoot bool `protobuf:"varint,14,opt,name=secure_boot,json=secureBoot,proto3" json:"secure_boot,omitempty"` - // The VM Boot Option, as set in the source vm. - BootOption ComputeEngineBootOption `protobuf:"varint,15,opt,name=boot_option,json=bootOption,proto3,enum=google.cloud.vmmigration.v1.ComputeEngineBootOption" json:"boot_option,omitempty"` - // The metadata key/value pairs to assign to the VM. - Metadata map[string]string `protobuf:"bytes,16,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Additional licenses to assign to the VM. - AdditionalLicenses []string `protobuf:"bytes,17,rep,name=additional_licenses,json=additionalLicenses,proto3" json:"additional_licenses,omitempty"` - // The hostname to assign to the VM. - Hostname string `protobuf:"bytes,18,opt,name=hostname,proto3" json:"hostname,omitempty"` + // Required. The Utilization Report name. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *ComputeEngineTargetDetails) Reset() { - *x = ComputeEngineTargetDetails{} +func (x *DeleteUtilizationReportRequest) Reset() { + *x = DeleteUtilizationReportRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[43] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ComputeEngineTargetDetails) String() string { +func (x *DeleteUtilizationReportRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ComputeEngineTargetDetails) ProtoMessage() {} +func (*DeleteUtilizationReportRequest) ProtoMessage() {} -func (x *ComputeEngineTargetDetails) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[43] +func (x *DeleteUtilizationReportRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5098,172 +6014,190 @@ func (x *ComputeEngineTargetDetails) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ComputeEngineTargetDetails.ProtoReflect.Descriptor instead. -func (*ComputeEngineTargetDetails) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{43} +// Deprecated: Use DeleteUtilizationReportRequest.ProtoReflect.Descriptor instead. +func (*DeleteUtilizationReportRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{48} } -func (x *ComputeEngineTargetDetails) GetVmName() string { +func (x *DeleteUtilizationReportRequest) GetName() string { if x != nil { - return x.VmName + return x.Name } return "" } -func (x *ComputeEngineTargetDetails) GetProject() string { +func (x *DeleteUtilizationReportRequest) GetRequestId() string { if x != nil { - return x.Project + return x.RequestId } return "" } -func (x *ComputeEngineTargetDetails) GetZone() string { - if x != nil { - return x.Zone - } - return "" -} +// Response message for 'ListDatacenterConnectors' request. +type ListDatacenterConnectorsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *ComputeEngineTargetDetails) GetMachineTypeSeries() string { - if x != nil { - return x.MachineTypeSeries - } - return "" + // Output only. The list of sources response. + DatacenterConnectors []*DatacenterConnector `protobuf:"bytes,1,rep,name=datacenter_connectors,json=datacenterConnectors,proto3" json:"datacenter_connectors,omitempty"` + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + // Output only. Locations that could not be reached. + Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` } -func (x *ComputeEngineTargetDetails) GetMachineType() string { - if x != nil { - return x.MachineType +func (x *ListDatacenterConnectorsResponse) Reset() { + *x = ListDatacenterConnectorsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (x *ComputeEngineTargetDetails) GetNetworkTags() []string { - if x != nil { - return x.NetworkTags - } - return nil +func (x *ListDatacenterConnectorsResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *ComputeEngineTargetDetails) GetNetworkInterfaces() []*NetworkInterface { - if x != nil { - return x.NetworkInterfaces - } - return nil -} +func (*ListDatacenterConnectorsResponse) ProtoMessage() {} -func (x *ComputeEngineTargetDetails) GetServiceAccount() string { - if x != nil { - return x.ServiceAccount +func (x *ListDatacenterConnectorsResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[49] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (x *ComputeEngineTargetDetails) GetDiskType() ComputeEngineDiskType { - if x != nil { - return x.DiskType - } - return ComputeEngineDiskType_COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED +// Deprecated: Use ListDatacenterConnectorsResponse.ProtoReflect.Descriptor instead. +func (*ListDatacenterConnectorsResponse) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{49} } -func (x *ComputeEngineTargetDetails) GetLabels() map[string]string { +func (x *ListDatacenterConnectorsResponse) GetDatacenterConnectors() []*DatacenterConnector { if x != nil { - return x.Labels + return x.DatacenterConnectors } return nil } -func (x *ComputeEngineTargetDetails) GetLicenseType() ComputeEngineLicenseType { +func (x *ListDatacenterConnectorsResponse) GetNextPageToken() string { if x != nil { - return x.LicenseType + return x.NextPageToken } - return ComputeEngineLicenseType_COMPUTE_ENGINE_LICENSE_TYPE_DEFAULT + return "" } -func (x *ComputeEngineTargetDetails) GetAppliedLicense() *AppliedLicense { +func (x *ListDatacenterConnectorsResponse) GetUnreachable() []string { if x != nil { - return x.AppliedLicense + return x.Unreachable } return nil } -func (x *ComputeEngineTargetDetails) GetComputeScheduling() *ComputeScheduling { - if x != nil { - return x.ComputeScheduling - } - return nil +// Request message for 'GetDatacenterConnector' request. +type GetDatacenterConnectorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The name of the DatacenterConnector. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (x *ComputeEngineTargetDetails) GetSecureBoot() bool { - if x != nil { - return x.SecureBoot +func (x *GetDatacenterConnectorRequest) Reset() { + *x = GetDatacenterConnectorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return false } -func (x *ComputeEngineTargetDetails) GetBootOption() ComputeEngineBootOption { - if x != nil { - return x.BootOption - } - return ComputeEngineBootOption_COMPUTE_ENGINE_BOOT_OPTION_UNSPECIFIED +func (x *GetDatacenterConnectorRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *ComputeEngineTargetDetails) GetMetadata() map[string]string { - if x != nil { - return x.Metadata +func (*GetDatacenterConnectorRequest) ProtoMessage() {} + +func (x *GetDatacenterConnectorRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[50] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (x *ComputeEngineTargetDetails) GetAdditionalLicenses() []string { - if x != nil { - return x.AdditionalLicenses - } - return nil +// Deprecated: Use GetDatacenterConnectorRequest.ProtoReflect.Descriptor instead. +func (*GetDatacenterConnectorRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{50} } -func (x *ComputeEngineTargetDetails) GetHostname() string { +func (x *GetDatacenterConnectorRequest) GetName() string { if x != nil { - return x.Hostname + return x.Name } return "" } -// NetworkInterface represents a NIC of a VM. -type NetworkInterface struct { +// Request message for 'CreateDatacenterConnector' request. +type CreateDatacenterConnectorRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The network to connect the NIC to. - Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` - // The subnetwork to connect the NIC to. - Subnetwork string `protobuf:"bytes,2,opt,name=subnetwork,proto3" json:"subnetwork,omitempty"` - // The internal IP to define in the NIC. - // The formats accepted are: `ephemeral` \ ipv4 address \ a named address - // resource full path. - InternalIp string `protobuf:"bytes,3,opt,name=internal_ip,json=internalIp,proto3" json:"internal_ip,omitempty"` - // The external IP to define in the NIC. - ExternalIp string `protobuf:"bytes,4,opt,name=external_ip,json=externalIp,proto3" json:"external_ip,omitempty"` + // Required. The DatacenterConnector's parent. + // Required. The Source in where the new DatacenterConnector will be created. + // For example: + // `projects/my-project/locations/us-central1/sources/my-source` + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // Required. The datacenterConnector identifier. + DatacenterConnectorId string `protobuf:"bytes,2,opt,name=datacenter_connector_id,json=datacenterConnectorId,proto3" json:"datacenter_connector_id,omitempty"` + // Required. The create request body. + DatacenterConnector *DatacenterConnector `protobuf:"bytes,3,opt,name=datacenter_connector,json=datacenterConnector,proto3" json:"datacenter_connector,omitempty"` + // A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *NetworkInterface) Reset() { - *x = NetworkInterface{} +func (x *CreateDatacenterConnectorRequest) Reset() { + *x = CreateDatacenterConnectorRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[44] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *NetworkInterface) String() string { +func (x *CreateDatacenterConnectorRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*NetworkInterface) ProtoMessage() {} +func (*CreateDatacenterConnectorRequest) ProtoMessage() {} -func (x *NetworkInterface) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[44] +func (x *CreateDatacenterConnectorRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5274,68 +6208,80 @@ func (x *NetworkInterface) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use NetworkInterface.ProtoReflect.Descriptor instead. -func (*NetworkInterface) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{44} +// Deprecated: Use CreateDatacenterConnectorRequest.ProtoReflect.Descriptor instead. +func (*CreateDatacenterConnectorRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{51} } -func (x *NetworkInterface) GetNetwork() string { +func (x *CreateDatacenterConnectorRequest) GetParent() string { if x != nil { - return x.Network + return x.Parent } return "" } -func (x *NetworkInterface) GetSubnetwork() string { +func (x *CreateDatacenterConnectorRequest) GetDatacenterConnectorId() string { if x != nil { - return x.Subnetwork + return x.DatacenterConnectorId } return "" } -func (x *NetworkInterface) GetInternalIp() string { +func (x *CreateDatacenterConnectorRequest) GetDatacenterConnector() *DatacenterConnector { if x != nil { - return x.InternalIp + return x.DatacenterConnector } - return "" + return nil } -func (x *NetworkInterface) GetExternalIp() string { +func (x *CreateDatacenterConnectorRequest) GetRequestId() string { if x != nil { - return x.ExternalIp + return x.RequestId } return "" } -// AppliedLicense holds the license data returned by adaptation module report. -type AppliedLicense struct { +// Request message for 'DeleteDatacenterConnector' request. +type DeleteDatacenterConnectorRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The license type that was used in OS adaptation. - Type AppliedLicense_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.vmmigration.v1.AppliedLicense_Type" json:"type,omitempty"` - // The OS license returned from the adaptation module's report. - OsLicense string `protobuf:"bytes,2,opt,name=os_license,json=osLicense,proto3" json:"os_license,omitempty"` + // Required. The DatacenterConnector name. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *AppliedLicense) Reset() { - *x = AppliedLicense{} +func (x *DeleteDatacenterConnectorRequest) Reset() { + *x = DeleteDatacenterConnectorRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[45] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AppliedLicense) String() string { +func (x *DeleteDatacenterConnectorRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AppliedLicense) ProtoMessage() {} +func (*DeleteDatacenterConnectorRequest) ProtoMessage() {} -func (x *AppliedLicense) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[45] +func (x *DeleteDatacenterConnectorRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5346,59 +6292,66 @@ func (x *AppliedLicense) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AppliedLicense.ProtoReflect.Descriptor instead. -func (*AppliedLicense) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{45} +// Deprecated: Use DeleteDatacenterConnectorRequest.ProtoReflect.Descriptor instead. +func (*DeleteDatacenterConnectorRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{52} } -func (x *AppliedLicense) GetType() AppliedLicense_Type { +func (x *DeleteDatacenterConnectorRequest) GetName() string { if x != nil { - return x.Type + return x.Name } - return AppliedLicense_TYPE_UNSPECIFIED + return "" } -func (x *AppliedLicense) GetOsLicense() string { +func (x *DeleteDatacenterConnectorRequest) GetRequestId() string { if x != nil { - return x.OsLicense + return x.RequestId } return "" } -// Node Affinity: the configuration of desired nodes onto which this Instance -// could be scheduled. Based on -// https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling -type SchedulingNodeAffinity struct { +// Request message for 'UpgradeAppliance' request. +type UpgradeApplianceRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The label key of Node resource to reference. - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - // The operator to use for the node resources specified in the `values` - // parameter. - Operator SchedulingNodeAffinity_Operator `protobuf:"varint,2,opt,name=operator,proto3,enum=google.cloud.vmmigration.v1.SchedulingNodeAffinity_Operator" json:"operator,omitempty"` - // Corresponds to the label values of Node resource. - Values []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` + // Required. The DatacenterConnector name. + DatacenterConnector string `protobuf:"bytes,1,opt,name=datacenter_connector,json=datacenterConnector,proto3" json:"datacenter_connector,omitempty"` + // A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *SchedulingNodeAffinity) Reset() { - *x = SchedulingNodeAffinity{} +func (x *UpgradeApplianceRequest) Reset() { + *x = UpgradeApplianceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[46] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *SchedulingNodeAffinity) String() string { +func (x *UpgradeApplianceRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SchedulingNodeAffinity) ProtoMessage() {} +func (*UpgradeApplianceRequest) ProtoMessage() {} -func (x *SchedulingNodeAffinity) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[46] +func (x *UpgradeApplianceRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5409,75 +6362,107 @@ func (x *SchedulingNodeAffinity) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SchedulingNodeAffinity.ProtoReflect.Descriptor instead. -func (*SchedulingNodeAffinity) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{46} +// Deprecated: Use UpgradeApplianceRequest.ProtoReflect.Descriptor instead. +func (*UpgradeApplianceRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{53} } -func (x *SchedulingNodeAffinity) GetKey() string { +func (x *UpgradeApplianceRequest) GetDatacenterConnector() string { if x != nil { - return x.Key + return x.DatacenterConnector } return "" } -func (x *SchedulingNodeAffinity) GetOperator() SchedulingNodeAffinity_Operator { +func (x *UpgradeApplianceRequest) GetRequestId() string { if x != nil { - return x.Operator + return x.RequestId } - return SchedulingNodeAffinity_OPERATOR_UNSPECIFIED + return "" } -func (x *SchedulingNodeAffinity) GetValues() []string { - if x != nil { - return x.Values +// Response message for 'UpgradeAppliance' request. +type UpgradeApplianceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *UpgradeApplianceResponse) Reset() { + *x = UpgradeApplianceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -// Scheduling information for VM on maintenance/restart behaviour and -// node allocation in sole tenant nodes. -type ComputeScheduling struct { +func (x *UpgradeApplianceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpgradeApplianceResponse) ProtoMessage() {} + +func (x *UpgradeApplianceResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[54] + 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 UpgradeApplianceResponse.ProtoReflect.Descriptor instead. +func (*UpgradeApplianceResponse) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{54} +} + +// Request message for 'ListDatacenterConnectors' request. +type ListDatacenterConnectorsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // How the instance should behave when the host machine undergoes - // maintenance that may temporarily impact instance performance. - OnHostMaintenance ComputeScheduling_OnHostMaintenance `protobuf:"varint,1,opt,name=on_host_maintenance,json=onHostMaintenance,proto3,enum=google.cloud.vmmigration.v1.ComputeScheduling_OnHostMaintenance" json:"on_host_maintenance,omitempty"` - // Whether the Instance should be automatically restarted whenever it is - // terminated by Compute Engine (not terminated by user). - // This configuration is identical to `automaticRestart` field in Compute - // Engine create instance under scheduling. - // It was changed to an enum (instead of a boolean) to match the default - // value in Compute Engine which is automatic restart. - RestartType ComputeScheduling_RestartType `protobuf:"varint,5,opt,name=restart_type,json=restartType,proto3,enum=google.cloud.vmmigration.v1.ComputeScheduling_RestartType" json:"restart_type,omitempty"` - // A set of node affinity and anti-affinity configurations for sole tenant - // nodes. - NodeAffinities []*SchedulingNodeAffinity `protobuf:"bytes,3,rep,name=node_affinities,json=nodeAffinities,proto3" json:"node_affinities,omitempty"` - // The minimum number of virtual CPUs this instance will consume when - // running on a sole-tenant node. Ignored if no node_affinites are - // configured. - MinNodeCpus int32 `protobuf:"varint,4,opt,name=min_node_cpus,json=minNodeCpus,proto3" json:"min_node_cpus,omitempty"` + // Required. The parent, which owns this collection of connectors. + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // Optional. The maximum number of connectors to return. The service may + // return fewer than this value. If unspecified, at most 500 sources will be + // returned. The maximum value is 1000; values above 1000 will be coerced to + // 1000. + PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Required. A page token, received from a previous `ListDatacenterConnectors` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListDatacenterConnectors` must match the call that provided the page + // token. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // Optional. The filter request. + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + // Optional. the order by fields for the result. + OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` } -func (x *ComputeScheduling) Reset() { - *x = ComputeScheduling{} +func (x *ListDatacenterConnectorsRequest) Reset() { + *x = ListDatacenterConnectorsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[47] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ComputeScheduling) String() string { +func (x *ListDatacenterConnectorsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ComputeScheduling) ProtoMessage() {} +func (*ListDatacenterConnectorsRequest) ProtoMessage() {} -func (x *ComputeScheduling) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[47] +func (x *ListDatacenterConnectorsRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5488,70 +6473,110 @@ func (x *ComputeScheduling) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ComputeScheduling.ProtoReflect.Descriptor instead. -func (*ComputeScheduling) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{47} +// Deprecated: Use ListDatacenterConnectorsRequest.ProtoReflect.Descriptor instead. +func (*ListDatacenterConnectorsRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{55} } -func (x *ComputeScheduling) GetOnHostMaintenance() ComputeScheduling_OnHostMaintenance { +func (x *ListDatacenterConnectorsRequest) GetParent() string { if x != nil { - return x.OnHostMaintenance + return x.Parent } - return ComputeScheduling_ON_HOST_MAINTENANCE_UNSPECIFIED + return "" } -func (x *ComputeScheduling) GetRestartType() ComputeScheduling_RestartType { +func (x *ListDatacenterConnectorsRequest) GetPageSize() int32 { if x != nil { - return x.RestartType + return x.PageSize } - return ComputeScheduling_RESTART_TYPE_UNSPECIFIED + return 0 } -func (x *ComputeScheduling) GetNodeAffinities() []*SchedulingNodeAffinity { +func (x *ListDatacenterConnectorsRequest) GetPageToken() string { if x != nil { - return x.NodeAffinities + return x.PageToken } - return nil + return "" } -func (x *ComputeScheduling) GetMinNodeCpus() int32 { +func (x *ListDatacenterConnectorsRequest) GetFilter() string { if x != nil { - return x.MinNodeCpus + return x.Filter } - return 0 + return "" } -// A policy for scheduling replications. -type SchedulePolicy struct { +func (x *ListDatacenterConnectorsRequest) GetOrderBy() string { + if x != nil { + return x.OrderBy + } + return "" +} + +// ComputeEngineTargetDefaults is a collection of details for creating a VM in a +// target Compute Engine project. +type ComputeEngineTargetDefaults struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The idle duration between replication stages. - IdleDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=idle_duration,json=idleDuration,proto3" json:"idle_duration,omitempty"` - // A flag to indicate whether to skip OS adaptation during the replication - // sync. OS adaptation is a process where the VM's operating system undergoes - // changes and adaptations to fully function on Compute Engine. - SkipOsAdaptation bool `protobuf:"varint,2,opt,name=skip_os_adaptation,json=skipOsAdaptation,proto3" json:"skip_os_adaptation,omitempty"` + // The name of the VM to create. + VmName string `protobuf:"bytes,1,opt,name=vm_name,json=vmName,proto3" json:"vm_name,omitempty"` + // The full path of the resource of type TargetProject which represents the + // Compute Engine project in which to create this VM. + TargetProject string `protobuf:"bytes,2,opt,name=target_project,json=targetProject,proto3" json:"target_project,omitempty"` + // The zone in which to create the VM. + Zone string `protobuf:"bytes,3,opt,name=zone,proto3" json:"zone,omitempty"` + // The machine type series to create the VM with. + MachineTypeSeries string `protobuf:"bytes,4,opt,name=machine_type_series,json=machineTypeSeries,proto3" json:"machine_type_series,omitempty"` + // The machine type to create the VM with. + MachineType string `protobuf:"bytes,5,opt,name=machine_type,json=machineType,proto3" json:"machine_type,omitempty"` + // A map of network tags to associate with the VM. + NetworkTags []string `protobuf:"bytes,6,rep,name=network_tags,json=networkTags,proto3" json:"network_tags,omitempty"` + // List of NICs connected to this VM. + NetworkInterfaces []*NetworkInterface `protobuf:"bytes,7,rep,name=network_interfaces,json=networkInterfaces,proto3" json:"network_interfaces,omitempty"` + // The service account to associate the VM with. + ServiceAccount string `protobuf:"bytes,8,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` + // The disk type to use in the VM. + DiskType ComputeEngineDiskType `protobuf:"varint,9,opt,name=disk_type,json=diskType,proto3,enum=google.cloud.vmmigration.v1.ComputeEngineDiskType" json:"disk_type,omitempty"` + // A map of labels to associate with the VM. + Labels map[string]string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // The license type to use in OS adaptation. + LicenseType ComputeEngineLicenseType `protobuf:"varint,11,opt,name=license_type,json=licenseType,proto3,enum=google.cloud.vmmigration.v1.ComputeEngineLicenseType" json:"license_type,omitempty"` + // Output only. The OS license returned from the adaptation module report. + AppliedLicense *AppliedLicense `protobuf:"bytes,12,opt,name=applied_license,json=appliedLicense,proto3" json:"applied_license,omitempty"` + // Compute instance scheduling information (if empty default is used). + ComputeScheduling *ComputeScheduling `protobuf:"bytes,13,opt,name=compute_scheduling,json=computeScheduling,proto3" json:"compute_scheduling,omitempty"` + // Defines whether the instance has Secure Boot enabled. + // This can be set to true only if the vm boot option is EFI. + SecureBoot bool `protobuf:"varint,14,opt,name=secure_boot,json=secureBoot,proto3" json:"secure_boot,omitempty"` + // Output only. The VM Boot Option, as set in the source vm. + BootOption ComputeEngineBootOption `protobuf:"varint,15,opt,name=boot_option,json=bootOption,proto3,enum=google.cloud.vmmigration.v1.ComputeEngineBootOption" json:"boot_option,omitempty"` + // The metadata key/value pairs to assign to the VM. + Metadata map[string]string `protobuf:"bytes,16,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Additional licenses to assign to the VM. + AdditionalLicenses []string `protobuf:"bytes,17,rep,name=additional_licenses,json=additionalLicenses,proto3" json:"additional_licenses,omitempty"` + // The hostname to assign to the VM. + Hostname string `protobuf:"bytes,18,opt,name=hostname,proto3" json:"hostname,omitempty"` } -func (x *SchedulePolicy) Reset() { - *x = SchedulePolicy{} +func (x *ComputeEngineTargetDefaults) Reset() { + *x = ComputeEngineTargetDefaults{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[48] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *SchedulePolicy) String() string { +func (x *ComputeEngineTargetDefaults) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SchedulePolicy) ProtoMessage() {} +func (*ComputeEngineTargetDefaults) ProtoMessage() {} -func (x *SchedulePolicy) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[48] +func (x *ComputeEngineTargetDefaults) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5562,246 +6587,200 @@ func (x *SchedulePolicy) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SchedulePolicy.ProtoReflect.Descriptor instead. -func (*SchedulePolicy) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{48} +// Deprecated: Use ComputeEngineTargetDefaults.ProtoReflect.Descriptor instead. +func (*ComputeEngineTargetDefaults) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{56} } -func (x *SchedulePolicy) GetIdleDuration() *durationpb.Duration { +func (x *ComputeEngineTargetDefaults) GetVmName() string { if x != nil { - return x.IdleDuration + return x.VmName } - return nil + return "" } -func (x *SchedulePolicy) GetSkipOsAdaptation() bool { +func (x *ComputeEngineTargetDefaults) GetTargetProject() string { if x != nil { - return x.SkipOsAdaptation + return x.TargetProject } - return false + return "" } -// Request message for 'CreateMigratingVm' request. -type CreateMigratingVmRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *ComputeEngineTargetDefaults) GetZone() string { + if x != nil { + return x.Zone + } + return "" +} - // Required. The MigratingVm's parent. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The migratingVm identifier. - MigratingVmId string `protobuf:"bytes,2,opt,name=migrating_vm_id,json=migratingVmId,proto3" json:"migrating_vm_id,omitempty"` - // Required. The create request body. - MigratingVm *MigratingVm `protobuf:"bytes,3,opt,name=migrating_vm,json=migratingVm,proto3" json:"migrating_vm,omitempty"` - // A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes since the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` -} - -func (x *CreateMigratingVmRequest) Reset() { - *x = CreateMigratingVmRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateMigratingVmRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateMigratingVmRequest) ProtoMessage() {} - -func (x *CreateMigratingVmRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[49] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *ComputeEngineTargetDefaults) GetMachineTypeSeries() string { + if x != nil { + return x.MachineTypeSeries } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateMigratingVmRequest.ProtoReflect.Descriptor instead. -func (*CreateMigratingVmRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{49} + return "" } -func (x *CreateMigratingVmRequest) GetParent() string { +func (x *ComputeEngineTargetDefaults) GetMachineType() string { if x != nil { - return x.Parent + return x.MachineType } return "" } -func (x *CreateMigratingVmRequest) GetMigratingVmId() string { +func (x *ComputeEngineTargetDefaults) GetNetworkTags() []string { if x != nil { - return x.MigratingVmId + return x.NetworkTags } - return "" + return nil } -func (x *CreateMigratingVmRequest) GetMigratingVm() *MigratingVm { +func (x *ComputeEngineTargetDefaults) GetNetworkInterfaces() []*NetworkInterface { if x != nil { - return x.MigratingVm + return x.NetworkInterfaces } return nil } -func (x *CreateMigratingVmRequest) GetRequestId() string { +func (x *ComputeEngineTargetDefaults) GetServiceAccount() string { if x != nil { - return x.RequestId + return x.ServiceAccount } return "" } -// Request message for 'LisMigratingVmsRequest' request. -type ListMigratingVmsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent, which owns this collection of MigratingVms. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The maximum number of migrating VMs to return. The service may - // return fewer than this value. If unspecified, at most 500 migrating VMs - // will be returned. The maximum value is 1000; values above 1000 will be - // coerced to 1000. - PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // Required. A page token, received from a previous `ListMigratingVms` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListMigratingVms` - // must match the call that provided the page token. - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Optional. The filter request. - Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` - // Optional. the order by fields for the result. - OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` - // Optional. The level of details of each migrating VM. - View MigratingVmView `protobuf:"varint,6,opt,name=view,proto3,enum=google.cloud.vmmigration.v1.MigratingVmView" json:"view,omitempty"` -} - -func (x *ListMigratingVmsRequest) Reset() { - *x = ListMigratingVmsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *ComputeEngineTargetDefaults) GetDiskType() ComputeEngineDiskType { + if x != nil { + return x.DiskType } + return ComputeEngineDiskType_COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED } -func (x *ListMigratingVmsRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *ComputeEngineTargetDefaults) GetLabels() map[string]string { + if x != nil { + return x.Labels + } + return nil } -func (*ListMigratingVmsRequest) ProtoMessage() {} - -func (x *ListMigratingVmsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[50] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *ComputeEngineTargetDefaults) GetLicenseType() ComputeEngineLicenseType { + if x != nil { + return x.LicenseType } - return mi.MessageOf(x) + return ComputeEngineLicenseType_COMPUTE_ENGINE_LICENSE_TYPE_DEFAULT } -// Deprecated: Use ListMigratingVmsRequest.ProtoReflect.Descriptor instead. -func (*ListMigratingVmsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{50} +func (x *ComputeEngineTargetDefaults) GetAppliedLicense() *AppliedLicense { + if x != nil { + return x.AppliedLicense + } + return nil } -func (x *ListMigratingVmsRequest) GetParent() string { +func (x *ComputeEngineTargetDefaults) GetComputeScheduling() *ComputeScheduling { if x != nil { - return x.Parent + return x.ComputeScheduling } - return "" + return nil } -func (x *ListMigratingVmsRequest) GetPageSize() int32 { +func (x *ComputeEngineTargetDefaults) GetSecureBoot() bool { if x != nil { - return x.PageSize + return x.SecureBoot } - return 0 + return false } -func (x *ListMigratingVmsRequest) GetPageToken() string { +func (x *ComputeEngineTargetDefaults) GetBootOption() ComputeEngineBootOption { if x != nil { - return x.PageToken + return x.BootOption } - return "" + return ComputeEngineBootOption_COMPUTE_ENGINE_BOOT_OPTION_UNSPECIFIED } -func (x *ListMigratingVmsRequest) GetFilter() string { +func (x *ComputeEngineTargetDefaults) GetMetadata() map[string]string { if x != nil { - return x.Filter + return x.Metadata } - return "" + return nil } -func (x *ListMigratingVmsRequest) GetOrderBy() string { +func (x *ComputeEngineTargetDefaults) GetAdditionalLicenses() []string { if x != nil { - return x.OrderBy + return x.AdditionalLicenses } - return "" + return nil } -func (x *ListMigratingVmsRequest) GetView() MigratingVmView { +func (x *ComputeEngineTargetDefaults) GetHostname() string { if x != nil { - return x.View + return x.Hostname } - return MigratingVmView_MIGRATING_VM_VIEW_UNSPECIFIED + return "" } -// Response message for 'ListMigratingVms' request. -type ListMigratingVmsResponse struct { +// ComputeEngineTargetDetails is a collection of details for creating a VM in a +// target Compute Engine project. +type ComputeEngineTargetDetails struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. The list of Migrating VMs response. - MigratingVms []*MigratingVm `protobuf:"bytes,1,rep,name=migrating_vms,json=migratingVms,proto3" json:"migrating_vms,omitempty"` - // Output only. A token, which can be sent as `page_token` to retrieve the - // next page. If this field is omitted, there are no subsequent pages. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - // Output only. Locations that could not be reached. - Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` + // The name of the VM to create. + VmName string `protobuf:"bytes,1,opt,name=vm_name,json=vmName,proto3" json:"vm_name,omitempty"` + // The Google Cloud target project ID or project name. + Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` + // The zone in which to create the VM. + Zone string `protobuf:"bytes,3,opt,name=zone,proto3" json:"zone,omitempty"` + // The machine type series to create the VM with. + MachineTypeSeries string `protobuf:"bytes,4,opt,name=machine_type_series,json=machineTypeSeries,proto3" json:"machine_type_series,omitempty"` + // The machine type to create the VM with. + MachineType string `protobuf:"bytes,5,opt,name=machine_type,json=machineType,proto3" json:"machine_type,omitempty"` + // A map of network tags to associate with the VM. + NetworkTags []string `protobuf:"bytes,6,rep,name=network_tags,json=networkTags,proto3" json:"network_tags,omitempty"` + // List of NICs connected to this VM. + NetworkInterfaces []*NetworkInterface `protobuf:"bytes,7,rep,name=network_interfaces,json=networkInterfaces,proto3" json:"network_interfaces,omitempty"` + // The service account to associate the VM with. + ServiceAccount string `protobuf:"bytes,8,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` + // The disk type to use in the VM. + DiskType ComputeEngineDiskType `protobuf:"varint,9,opt,name=disk_type,json=diskType,proto3,enum=google.cloud.vmmigration.v1.ComputeEngineDiskType" json:"disk_type,omitempty"` + // A map of labels to associate with the VM. + Labels map[string]string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // The license type to use in OS adaptation. + LicenseType ComputeEngineLicenseType `protobuf:"varint,11,opt,name=license_type,json=licenseType,proto3,enum=google.cloud.vmmigration.v1.ComputeEngineLicenseType" json:"license_type,omitempty"` + // The OS license returned from the adaptation module report. + AppliedLicense *AppliedLicense `protobuf:"bytes,12,opt,name=applied_license,json=appliedLicense,proto3" json:"applied_license,omitempty"` + // Compute instance scheduling information (if empty default is used). + ComputeScheduling *ComputeScheduling `protobuf:"bytes,13,opt,name=compute_scheduling,json=computeScheduling,proto3" json:"compute_scheduling,omitempty"` + // Defines whether the instance has Secure Boot enabled. + // This can be set to true only if the vm boot option is EFI. + SecureBoot bool `protobuf:"varint,14,opt,name=secure_boot,json=secureBoot,proto3" json:"secure_boot,omitempty"` + // The VM Boot Option, as set in the source vm. + BootOption ComputeEngineBootOption `protobuf:"varint,15,opt,name=boot_option,json=bootOption,proto3,enum=google.cloud.vmmigration.v1.ComputeEngineBootOption" json:"boot_option,omitempty"` + // The metadata key/value pairs to assign to the VM. + Metadata map[string]string `protobuf:"bytes,16,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Additional licenses to assign to the VM. + AdditionalLicenses []string `protobuf:"bytes,17,rep,name=additional_licenses,json=additionalLicenses,proto3" json:"additional_licenses,omitempty"` + // The hostname to assign to the VM. + Hostname string `protobuf:"bytes,18,opt,name=hostname,proto3" json:"hostname,omitempty"` } -func (x *ListMigratingVmsResponse) Reset() { - *x = ListMigratingVmsResponse{} +func (x *ComputeEngineTargetDetails) Reset() { + *x = ComputeEngineTargetDetails{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[51] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ListMigratingVmsResponse) String() string { +func (x *ComputeEngineTargetDetails) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListMigratingVmsResponse) ProtoMessage() {} +func (*ComputeEngineTargetDetails) ProtoMessage() {} -func (x *ListMigratingVmsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[51] +func (x *ComputeEngineTargetDetails) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5812,200 +6791,172 @@ func (x *ListMigratingVmsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListMigratingVmsResponse.ProtoReflect.Descriptor instead. -func (*ListMigratingVmsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{51} +// Deprecated: Use ComputeEngineTargetDetails.ProtoReflect.Descriptor instead. +func (*ComputeEngineTargetDetails) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{57} } -func (x *ListMigratingVmsResponse) GetMigratingVms() []*MigratingVm { +func (x *ComputeEngineTargetDetails) GetVmName() string { if x != nil { - return x.MigratingVms + return x.VmName } - return nil + return "" } -func (x *ListMigratingVmsResponse) GetNextPageToken() string { +func (x *ComputeEngineTargetDetails) GetProject() string { if x != nil { - return x.NextPageToken + return x.Project } return "" } -func (x *ListMigratingVmsResponse) GetUnreachable() []string { +func (x *ComputeEngineTargetDetails) GetZone() string { if x != nil { - return x.Unreachable + return x.Zone } - return nil + return "" } -// Request message for 'GetMigratingVm' request. -type GetMigratingVmRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the MigratingVm. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Optional. The level of details of the migrating VM. - View MigratingVmView `protobuf:"varint,2,opt,name=view,proto3,enum=google.cloud.vmmigration.v1.MigratingVmView" json:"view,omitempty"` -} - -func (x *GetMigratingVmRequest) Reset() { - *x = GetMigratingVmRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *ComputeEngineTargetDetails) GetMachineTypeSeries() string { + if x != nil { + return x.MachineTypeSeries } + return "" } -func (x *GetMigratingVmRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *ComputeEngineTargetDetails) GetMachineType() string { + if x != nil { + return x.MachineType + } + return "" } -func (*GetMigratingVmRequest) ProtoMessage() {} - -func (x *GetMigratingVmRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[52] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *ComputeEngineTargetDetails) GetNetworkTags() []string { + if x != nil { + return x.NetworkTags } - return mi.MessageOf(x) + return nil } -// Deprecated: Use GetMigratingVmRequest.ProtoReflect.Descriptor instead. -func (*GetMigratingVmRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{52} +func (x *ComputeEngineTargetDetails) GetNetworkInterfaces() []*NetworkInterface { + if x != nil { + return x.NetworkInterfaces + } + return nil } -func (x *GetMigratingVmRequest) GetName() string { +func (x *ComputeEngineTargetDetails) GetServiceAccount() string { if x != nil { - return x.Name + return x.ServiceAccount } return "" } -func (x *GetMigratingVmRequest) GetView() MigratingVmView { +func (x *ComputeEngineTargetDetails) GetDiskType() ComputeEngineDiskType { if x != nil { - return x.View + return x.DiskType } - return MigratingVmView_MIGRATING_VM_VIEW_UNSPECIFIED + return ComputeEngineDiskType_COMPUTE_ENGINE_DISK_TYPE_UNSPECIFIED } -// Request message for 'UpdateMigratingVm' request. -type UpdateMigratingVmRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Field mask is used to specify the fields to be overwritten in the - // MigratingVm resource by the update. - // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then all fields will be overwritten. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - // Required. The update request body. - MigratingVm *MigratingVm `protobuf:"bytes,2,opt,name=migrating_vm,json=migratingVm,proto3" json:"migrating_vm,omitempty"` - // A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes since the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` +func (x *ComputeEngineTargetDetails) GetLabels() map[string]string { + if x != nil { + return x.Labels + } + return nil } -func (x *UpdateMigratingVmRequest) Reset() { - *x = UpdateMigratingVmRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *ComputeEngineTargetDetails) GetLicenseType() ComputeEngineLicenseType { + if x != nil { + return x.LicenseType } + return ComputeEngineLicenseType_COMPUTE_ENGINE_LICENSE_TYPE_DEFAULT } -func (x *UpdateMigratingVmRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *ComputeEngineTargetDetails) GetAppliedLicense() *AppliedLicense { + if x != nil { + return x.AppliedLicense + } + return nil } -func (*UpdateMigratingVmRequest) ProtoMessage() {} +func (x *ComputeEngineTargetDetails) GetComputeScheduling() *ComputeScheduling { + if x != nil { + return x.ComputeScheduling + } + return nil +} -func (x *UpdateMigratingVmRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[53] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *ComputeEngineTargetDetails) GetSecureBoot() bool { + if x != nil { + return x.SecureBoot } - return mi.MessageOf(x) + return false } -// Deprecated: Use UpdateMigratingVmRequest.ProtoReflect.Descriptor instead. -func (*UpdateMigratingVmRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{53} +func (x *ComputeEngineTargetDetails) GetBootOption() ComputeEngineBootOption { + if x != nil { + return x.BootOption + } + return ComputeEngineBootOption_COMPUTE_ENGINE_BOOT_OPTION_UNSPECIFIED } -func (x *UpdateMigratingVmRequest) GetUpdateMask() *fieldmaskpb.FieldMask { +func (x *ComputeEngineTargetDetails) GetMetadata() map[string]string { if x != nil { - return x.UpdateMask + return x.Metadata } return nil } -func (x *UpdateMigratingVmRequest) GetMigratingVm() *MigratingVm { +func (x *ComputeEngineTargetDetails) GetAdditionalLicenses() []string { if x != nil { - return x.MigratingVm + return x.AdditionalLicenses } return nil } -func (x *UpdateMigratingVmRequest) GetRequestId() string { +func (x *ComputeEngineTargetDetails) GetHostname() string { if x != nil { - return x.RequestId + return x.Hostname } return "" } -// Request message for 'DeleteMigratingVm' request. -type DeleteMigratingVmRequest struct { +// NetworkInterface represents a NIC of a VM. +type NetworkInterface struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The name of the MigratingVm. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The network to connect the NIC to. + Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` + // The subnetwork to connect the NIC to. + Subnetwork string `protobuf:"bytes,2,opt,name=subnetwork,proto3" json:"subnetwork,omitempty"` + // The internal IP to define in the NIC. + // The formats accepted are: `ephemeral` \ ipv4 address \ a named address + // resource full path. + InternalIp string `protobuf:"bytes,3,opt,name=internal_ip,json=internalIp,proto3" json:"internal_ip,omitempty"` + // The external IP to define in the NIC. + ExternalIp string `protobuf:"bytes,4,opt,name=external_ip,json=externalIp,proto3" json:"external_ip,omitempty"` } -func (x *DeleteMigratingVmRequest) Reset() { - *x = DeleteMigratingVmRequest{} +func (x *NetworkInterface) Reset() { + *x = NetworkInterface{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[54] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *DeleteMigratingVmRequest) String() string { +func (x *NetworkInterface) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DeleteMigratingVmRequest) ProtoMessage() {} +func (*NetworkInterface) ProtoMessage() {} -func (x *DeleteMigratingVmRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[54] +func (x *NetworkInterface) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6016,45 +6967,68 @@ func (x *DeleteMigratingVmRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteMigratingVmRequest.ProtoReflect.Descriptor instead. -func (*DeleteMigratingVmRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{54} +// Deprecated: Use NetworkInterface.ProtoReflect.Descriptor instead. +func (*NetworkInterface) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{58} } -func (x *DeleteMigratingVmRequest) GetName() string { +func (x *NetworkInterface) GetNetwork() string { if x != nil { - return x.Name + return x.Network } return "" } -// Request message for 'StartMigrationRequest' request. -type StartMigrationRequest struct { +func (x *NetworkInterface) GetSubnetwork() string { + if x != nil { + return x.Subnetwork + } + return "" +} + +func (x *NetworkInterface) GetInternalIp() string { + if x != nil { + return x.InternalIp + } + return "" +} + +func (x *NetworkInterface) GetExternalIp() string { + if x != nil { + return x.ExternalIp + } + return "" +} + +// AppliedLicense holds the license data returned by adaptation module report. +type AppliedLicense struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The name of the MigratingVm. - MigratingVm string `protobuf:"bytes,1,opt,name=migrating_vm,json=migratingVm,proto3" json:"migrating_vm,omitempty"` + // The license type that was used in OS adaptation. + Type AppliedLicense_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.vmmigration.v1.AppliedLicense_Type" json:"type,omitempty"` + // The OS license returned from the adaptation module's report. + OsLicense string `protobuf:"bytes,2,opt,name=os_license,json=osLicense,proto3" json:"os_license,omitempty"` } -func (x *StartMigrationRequest) Reset() { - *x = StartMigrationRequest{} +func (x *AppliedLicense) Reset() { + *x = AppliedLicense{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[55] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *StartMigrationRequest) String() string { +func (x *AppliedLicense) String() string { return protoimpl.X.MessageStringOf(x) } -func (*StartMigrationRequest) ProtoMessage() {} +func (*AppliedLicense) ProtoMessage() {} -func (x *StartMigrationRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[55] +func (x *AppliedLicense) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6065,42 +7039,59 @@ func (x *StartMigrationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StartMigrationRequest.ProtoReflect.Descriptor instead. -func (*StartMigrationRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{55} +// Deprecated: Use AppliedLicense.ProtoReflect.Descriptor instead. +func (*AppliedLicense) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{59} } -func (x *StartMigrationRequest) GetMigratingVm() string { +func (x *AppliedLicense) GetType() AppliedLicense_Type { if x != nil { - return x.MigratingVm + return x.Type + } + return AppliedLicense_TYPE_UNSPECIFIED +} + +func (x *AppliedLicense) GetOsLicense() string { + if x != nil { + return x.OsLicense } return "" } -// Response message for 'StartMigration' request. -type StartMigrationResponse struct { +// Node Affinity: the configuration of desired nodes onto which this Instance +// could be scheduled. Based on +// https://cloud.google.com/compute/docs/reference/rest/v1/instances/setScheduling +type SchedulingNodeAffinity struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields -} -func (x *StartMigrationResponse) Reset() { - *x = StartMigrationResponse{} + // The label key of Node resource to reference. + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // The operator to use for the node resources specified in the `values` + // parameter. + Operator SchedulingNodeAffinity_Operator `protobuf:"varint,2,opt,name=operator,proto3,enum=google.cloud.vmmigration.v1.SchedulingNodeAffinity_Operator" json:"operator,omitempty"` + // Corresponds to the label values of Node resource. + Values []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` +} + +func (x *SchedulingNodeAffinity) Reset() { + *x = SchedulingNodeAffinity{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[56] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *StartMigrationResponse) String() string { +func (x *SchedulingNodeAffinity) String() string { return protoimpl.X.MessageStringOf(x) } -func (*StartMigrationResponse) ProtoMessage() {} +func (*SchedulingNodeAffinity) ProtoMessage() {} -func (x *StartMigrationResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[56] +func (x *SchedulingNodeAffinity) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6111,38 +7102,75 @@ func (x *StartMigrationResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StartMigrationResponse.ProtoReflect.Descriptor instead. -func (*StartMigrationResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{56} +// Deprecated: Use SchedulingNodeAffinity.ProtoReflect.Descriptor instead. +func (*SchedulingNodeAffinity) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{60} } -// Request message for 'PauseMigration' request. -type PauseMigrationRequest struct { +func (x *SchedulingNodeAffinity) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *SchedulingNodeAffinity) GetOperator() SchedulingNodeAffinity_Operator { + if x != nil { + return x.Operator + } + return SchedulingNodeAffinity_OPERATOR_UNSPECIFIED +} + +func (x *SchedulingNodeAffinity) GetValues() []string { + if x != nil { + return x.Values + } + return nil +} + +// Scheduling information for VM on maintenance/restart behaviour and +// node allocation in sole tenant nodes. +type ComputeScheduling struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The name of the MigratingVm. - MigratingVm string `protobuf:"bytes,1,opt,name=migrating_vm,json=migratingVm,proto3" json:"migrating_vm,omitempty"` + // How the instance should behave when the host machine undergoes + // maintenance that may temporarily impact instance performance. + OnHostMaintenance ComputeScheduling_OnHostMaintenance `protobuf:"varint,1,opt,name=on_host_maintenance,json=onHostMaintenance,proto3,enum=google.cloud.vmmigration.v1.ComputeScheduling_OnHostMaintenance" json:"on_host_maintenance,omitempty"` + // Whether the Instance should be automatically restarted whenever it is + // terminated by Compute Engine (not terminated by user). + // This configuration is identical to `automaticRestart` field in Compute + // Engine create instance under scheduling. + // It was changed to an enum (instead of a boolean) to match the default + // value in Compute Engine which is automatic restart. + RestartType ComputeScheduling_RestartType `protobuf:"varint,5,opt,name=restart_type,json=restartType,proto3,enum=google.cloud.vmmigration.v1.ComputeScheduling_RestartType" json:"restart_type,omitempty"` + // A set of node affinity and anti-affinity configurations for sole tenant + // nodes. + NodeAffinities []*SchedulingNodeAffinity `protobuf:"bytes,3,rep,name=node_affinities,json=nodeAffinities,proto3" json:"node_affinities,omitempty"` + // The minimum number of virtual CPUs this instance will consume when + // running on a sole-tenant node. Ignored if no node_affinites are + // configured. + MinNodeCpus int32 `protobuf:"varint,4,opt,name=min_node_cpus,json=minNodeCpus,proto3" json:"min_node_cpus,omitempty"` } -func (x *PauseMigrationRequest) Reset() { - *x = PauseMigrationRequest{} +func (x *ComputeScheduling) Reset() { + *x = ComputeScheduling{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[57] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *PauseMigrationRequest) String() string { +func (x *ComputeScheduling) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PauseMigrationRequest) ProtoMessage() {} +func (*ComputeScheduling) ProtoMessage() {} -func (x *PauseMigrationRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[57] +func (x *ComputeScheduling) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[61] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6153,84 +7181,70 @@ func (x *PauseMigrationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PauseMigrationRequest.ProtoReflect.Descriptor instead. -func (*PauseMigrationRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{57} +// Deprecated: Use ComputeScheduling.ProtoReflect.Descriptor instead. +func (*ComputeScheduling) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{61} } -func (x *PauseMigrationRequest) GetMigratingVm() string { +func (x *ComputeScheduling) GetOnHostMaintenance() ComputeScheduling_OnHostMaintenance { if x != nil { - return x.MigratingVm + return x.OnHostMaintenance } - return "" -} - -// Response message for 'PauseMigration' request. -type PauseMigrationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + return ComputeScheduling_ON_HOST_MAINTENANCE_UNSPECIFIED } -func (x *PauseMigrationResponse) Reset() { - *x = PauseMigrationResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *ComputeScheduling) GetRestartType() ComputeScheduling_RestartType { + if x != nil { + return x.RestartType } + return ComputeScheduling_RESTART_TYPE_UNSPECIFIED } -func (x *PauseMigrationResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PauseMigrationResponse) ProtoMessage() {} - -func (x *PauseMigrationResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[58] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *ComputeScheduling) GetNodeAffinities() []*SchedulingNodeAffinity { + if x != nil { + return x.NodeAffinities } - return mi.MessageOf(x) + return nil } -// Deprecated: Use PauseMigrationResponse.ProtoReflect.Descriptor instead. -func (*PauseMigrationResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{58} +func (x *ComputeScheduling) GetMinNodeCpus() int32 { + if x != nil { + return x.MinNodeCpus + } + return 0 } -// Request message for 'ResumeMigration' request. -type ResumeMigrationRequest struct { +// A policy for scheduling replications. +type SchedulePolicy struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The name of the MigratingVm. - MigratingVm string `protobuf:"bytes,1,opt,name=migrating_vm,json=migratingVm,proto3" json:"migrating_vm,omitempty"` + // The idle duration between replication stages. + IdleDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=idle_duration,json=idleDuration,proto3" json:"idle_duration,omitempty"` + // A flag to indicate whether to skip OS adaptation during the replication + // sync. OS adaptation is a process where the VM's operating system undergoes + // changes and adaptations to fully function on Compute Engine. + SkipOsAdaptation bool `protobuf:"varint,2,opt,name=skip_os_adaptation,json=skipOsAdaptation,proto3" json:"skip_os_adaptation,omitempty"` } -func (x *ResumeMigrationRequest) Reset() { - *x = ResumeMigrationRequest{} +func (x *SchedulePolicy) Reset() { + *x = SchedulePolicy{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[59] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ResumeMigrationRequest) String() string { +func (x *SchedulePolicy) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ResumeMigrationRequest) ProtoMessage() {} +func (*SchedulePolicy) ProtoMessage() {} -func (x *ResumeMigrationRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[59] +func (x *SchedulePolicy) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6241,42 +7255,70 @@ func (x *ResumeMigrationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResumeMigrationRequest.ProtoReflect.Descriptor instead. -func (*ResumeMigrationRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{59} +// Deprecated: Use SchedulePolicy.ProtoReflect.Descriptor instead. +func (*SchedulePolicy) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{62} } -func (x *ResumeMigrationRequest) GetMigratingVm() string { +func (x *SchedulePolicy) GetIdleDuration() *durationpb.Duration { if x != nil { - return x.MigratingVm + return x.IdleDuration } - return "" + return nil } -// Response message for 'ResumeMigration' request. -type ResumeMigrationResponse struct { +func (x *SchedulePolicy) GetSkipOsAdaptation() bool { + if x != nil { + return x.SkipOsAdaptation + } + return false +} + +// Request message for 'CreateMigratingVm' request. +type CreateMigratingVmRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // Required. The MigratingVm's parent. + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // Required. The migratingVm identifier. + MigratingVmId string `protobuf:"bytes,2,opt,name=migrating_vm_id,json=migratingVmId,proto3" json:"migrating_vm_id,omitempty"` + // Required. The create request body. + MigratingVm *MigratingVm `protobuf:"bytes,3,opt,name=migrating_vm,json=migratingVm,proto3" json:"migrating_vm,omitempty"` + // A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *ResumeMigrationResponse) Reset() { - *x = ResumeMigrationResponse{} +func (x *CreateMigratingVmRequest) Reset() { + *x = CreateMigratingVmRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[60] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ResumeMigrationResponse) String() string { +func (x *CreateMigratingVmRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ResumeMigrationResponse) ProtoMessage() {} +func (*CreateMigratingVmRequest) ProtoMessage() {} -func (x *ResumeMigrationResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[60] +func (x *CreateMigratingVmRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6287,136 +7329,83 @@ func (x *ResumeMigrationResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResumeMigrationResponse.ProtoReflect.Descriptor instead. -func (*ResumeMigrationResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{60} -} - -// Request message for 'FinalizeMigration' request. -type FinalizeMigrationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the MigratingVm. - MigratingVm string `protobuf:"bytes,1,opt,name=migrating_vm,json=migratingVm,proto3" json:"migrating_vm,omitempty"` +// Deprecated: Use CreateMigratingVmRequest.ProtoReflect.Descriptor instead. +func (*CreateMigratingVmRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{63} } -func (x *FinalizeMigrationRequest) Reset() { - *x = FinalizeMigrationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *CreateMigratingVmRequest) GetParent() string { + if x != nil { + return x.Parent } + return "" } -func (x *FinalizeMigrationRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FinalizeMigrationRequest) ProtoMessage() {} - -func (x *FinalizeMigrationRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[61] - 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 FinalizeMigrationRequest.ProtoReflect.Descriptor instead. -func (*FinalizeMigrationRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{61} -} - -func (x *FinalizeMigrationRequest) GetMigratingVm() string { +func (x *CreateMigratingVmRequest) GetMigratingVmId() string { if x != nil { - return x.MigratingVm + return x.MigratingVmId } return "" } -// Response message for 'FinalizeMigration' request. -type FinalizeMigrationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *FinalizeMigrationResponse) Reset() { - *x = FinalizeMigrationResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *CreateMigratingVmRequest) GetMigratingVm() *MigratingVm { + if x != nil { + return x.MigratingVm } + return nil } -func (x *FinalizeMigrationResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FinalizeMigrationResponse) ProtoMessage() {} - -func (x *FinalizeMigrationResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[62] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *CreateMigratingVmRequest) GetRequestId() string { + if x != nil { + return x.RequestId } - return mi.MessageOf(x) -} - -// Deprecated: Use FinalizeMigrationResponse.ProtoReflect.Descriptor instead. -func (*FinalizeMigrationResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{62} + return "" } -// TargetProject message represents a target Compute Engine project for a -// migration or a clone. -type TargetProject struct { +// Request message for 'LisMigratingVmsRequest' request. +type ListMigratingVmsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. The name of the target project. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // The target project ID (number) or project name. - Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` - // The target project's description. - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - // Output only. The time this target project resource was created (not related - // to when the Compute Engine project it points to was created). - CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The last time the target project resource was updated. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + // Required. The parent, which owns this collection of MigratingVms. + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // Optional. The maximum number of migrating VMs to return. The service may + // return fewer than this value. If unspecified, at most 500 migrating VMs + // will be returned. The maximum value is 1000; values above 1000 will be + // coerced to 1000. + PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Required. A page token, received from a previous `ListMigratingVms` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListMigratingVms` + // must match the call that provided the page token. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // Optional. The filter request. + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + // Optional. the order by fields for the result. + OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` + // Optional. The level of details of each migrating VM. + View MigratingVmView `protobuf:"varint,6,opt,name=view,proto3,enum=google.cloud.vmmigration.v1.MigratingVmView" json:"view,omitempty"` } -func (x *TargetProject) Reset() { - *x = TargetProject{} +func (x *ListMigratingVmsRequest) Reset() { + *x = ListMigratingVmsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[63] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *TargetProject) String() string { +func (x *ListMigratingVmsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*TargetProject) ProtoMessage() {} +func (*ListMigratingVmsRequest) ProtoMessage() {} -func (x *TargetProject) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[63] +func (x *ListMigratingVmsRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6427,73 +7416,85 @@ func (x *TargetProject) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TargetProject.ProtoReflect.Descriptor instead. -func (*TargetProject) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{63} +// Deprecated: Use ListMigratingVmsRequest.ProtoReflect.Descriptor instead. +func (*ListMigratingVmsRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{64} } -func (x *TargetProject) GetName() string { +func (x *ListMigratingVmsRequest) GetParent() string { if x != nil { - return x.Name + return x.Parent } return "" } -func (x *TargetProject) GetProject() string { +func (x *ListMigratingVmsRequest) GetPageSize() int32 { if x != nil { - return x.Project + return x.PageSize + } + return 0 +} + +func (x *ListMigratingVmsRequest) GetPageToken() string { + if x != nil { + return x.PageToken } return "" } -func (x *TargetProject) GetDescription() string { +func (x *ListMigratingVmsRequest) GetFilter() string { if x != nil { - return x.Description + return x.Filter } return "" } -func (x *TargetProject) GetCreateTime() *timestamppb.Timestamp { +func (x *ListMigratingVmsRequest) GetOrderBy() string { if x != nil { - return x.CreateTime + return x.OrderBy } - return nil + return "" } -func (x *TargetProject) GetUpdateTime() *timestamppb.Timestamp { +func (x *ListMigratingVmsRequest) GetView() MigratingVmView { if x != nil { - return x.UpdateTime + return x.View } - return nil + return MigratingVmView_MIGRATING_VM_VIEW_UNSPECIFIED } -// Request message for 'GetTargetProject' call. -type GetTargetProjectRequest struct { +// Response message for 'ListMigratingVms' request. +type ListMigratingVmsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The TargetProject name. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Output only. The list of Migrating VMs response. + MigratingVms []*MigratingVm `protobuf:"bytes,1,rep,name=migrating_vms,json=migratingVms,proto3" json:"migrating_vms,omitempty"` + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + // Output only. Locations that could not be reached. + Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` } -func (x *GetTargetProjectRequest) Reset() { - *x = GetTargetProjectRequest{} +func (x *ListMigratingVmsResponse) Reset() { + *x = ListMigratingVmsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[64] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *GetTargetProjectRequest) String() string { +func (x *ListMigratingVmsResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetTargetProjectRequest) ProtoMessage() {} +func (*ListMigratingVmsResponse) ProtoMessage() {} -func (x *GetTargetProjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[64] +func (x *ListMigratingVmsResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6504,60 +7505,61 @@ func (x *GetTargetProjectRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetTargetProjectRequest.ProtoReflect.Descriptor instead. -func (*GetTargetProjectRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{64} +// Deprecated: Use ListMigratingVmsResponse.ProtoReflect.Descriptor instead. +func (*ListMigratingVmsResponse) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{65} } -func (x *GetTargetProjectRequest) GetName() string { +func (x *ListMigratingVmsResponse) GetMigratingVms() []*MigratingVm { if x != nil { - return x.Name + return x.MigratingVms + } + return nil +} + +func (x *ListMigratingVmsResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken } return "" } -// Request message for 'ListTargetProjects' call. -type ListTargetProjectsRequest struct { +func (x *ListMigratingVmsResponse) GetUnreachable() []string { + if x != nil { + return x.Unreachable + } + return nil +} + +// Request message for 'GetMigratingVm' request. +type GetMigratingVmRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The parent, which owns this collection of targets. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The maximum number of targets to return. The service may return - // fewer than this value. If unspecified, at most 500 targets will be - // returned. The maximum value is 1000; values above 1000 will be coerced to - // 1000. - PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // Required. A page token, received from a previous `ListTargets` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListTargets` must - // match the call that provided the page token. - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Optional. The filter request. - Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` - // Optional. the order by fields for the result. - OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` + // Required. The name of the MigratingVm. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Optional. The level of details of the migrating VM. + View MigratingVmView `protobuf:"varint,2,opt,name=view,proto3,enum=google.cloud.vmmigration.v1.MigratingVmView" json:"view,omitempty"` } -func (x *ListTargetProjectsRequest) Reset() { - *x = ListTargetProjectsRequest{} +func (x *GetMigratingVmRequest) Reset() { + *x = GetMigratingVmRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[65] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ListTargetProjectsRequest) String() string { +func (x *GetMigratingVmRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListTargetProjectsRequest) ProtoMessage() {} +func (*GetMigratingVmRequest) ProtoMessage() {} -func (x *ListTargetProjectsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[65] +func (x *GetMigratingVmRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6568,126 +7570,39 @@ func (x *ListTargetProjectsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListTargetProjectsRequest.ProtoReflect.Descriptor instead. -func (*ListTargetProjectsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{65} +// Deprecated: Use GetMigratingVmRequest.ProtoReflect.Descriptor instead. +func (*GetMigratingVmRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{66} } -func (x *ListTargetProjectsRequest) GetParent() string { +func (x *GetMigratingVmRequest) GetName() string { if x != nil { - return x.Parent + return x.Name } return "" } -func (x *ListTargetProjectsRequest) GetPageSize() int32 { +func (x *GetMigratingVmRequest) GetView() MigratingVmView { if x != nil { - return x.PageSize + return x.View } - return 0 -} - -func (x *ListTargetProjectsRequest) GetPageToken() string { - if x != nil { - return x.PageToken - } - return "" -} - -func (x *ListTargetProjectsRequest) GetFilter() string { - if x != nil { - return x.Filter - } - return "" -} - -func (x *ListTargetProjectsRequest) GetOrderBy() string { - if x != nil { - return x.OrderBy - } - return "" -} - -// Response message for 'ListTargetProjects' call. -type ListTargetProjectsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Output only. The list of target response. - TargetProjects []*TargetProject `protobuf:"bytes,1,rep,name=target_projects,json=targetProjects,proto3" json:"target_projects,omitempty"` - // Output only. A token, which can be sent as `page_token` to retrieve the - // next page. If this field is omitted, there are no subsequent pages. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - // Output only. Locations that could not be reached. - Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` -} - -func (x *ListTargetProjectsResponse) Reset() { - *x = ListTargetProjectsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListTargetProjectsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListTargetProjectsResponse) ProtoMessage() {} - -func (x *ListTargetProjectsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[66] - 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 ListTargetProjectsResponse.ProtoReflect.Descriptor instead. -func (*ListTargetProjectsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{66} -} - -func (x *ListTargetProjectsResponse) GetTargetProjects() []*TargetProject { - if x != nil { - return x.TargetProjects - } - return nil -} - -func (x *ListTargetProjectsResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken - } - return "" -} - -func (x *ListTargetProjectsResponse) GetUnreachable() []string { - if x != nil { - return x.Unreachable - } - return nil + return MigratingVmView_MIGRATING_VM_VIEW_UNSPECIFIED } -// Request message for 'CreateTargetProject' request. -type CreateTargetProjectRequest struct { +// Request message for 'UpdateMigratingVm' request. +type UpdateMigratingVmRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The TargetProject's parent. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The target_project identifier. - TargetProjectId string `protobuf:"bytes,2,opt,name=target_project_id,json=targetProjectId,proto3" json:"target_project_id,omitempty"` - // Required. The create request body. - TargetProject *TargetProject `protobuf:"bytes,3,opt,name=target_project,json=targetProject,proto3" json:"target_project,omitempty"` + // Field mask is used to specify the fields to be overwritten in the + // MigratingVm resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // Required. The update request body. + MigratingVm *MigratingVm `protobuf:"bytes,2,opt,name=migrating_vm,json=migratingVm,proto3" json:"migrating_vm,omitempty"` // A request ID to identify requests. Specify a unique request ID // so that if you must retry your request, the server will know to ignore // the request if it has already been completed. The server will guarantee @@ -6701,11 +7616,11 @@ type CreateTargetProjectRequest struct { // // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). - RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *CreateTargetProjectRequest) Reset() { - *x = CreateTargetProjectRequest{} +func (x *UpdateMigratingVmRequest) Reset() { + *x = UpdateMigratingVmRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6713,13 +7628,13 @@ func (x *CreateTargetProjectRequest) Reset() { } } -func (x *CreateTargetProjectRequest) String() string { +func (x *UpdateMigratingVmRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CreateTargetProjectRequest) ProtoMessage() {} +func (*UpdateMigratingVmRequest) ProtoMessage() {} -func (x *CreateTargetProjectRequest) ProtoReflect() protoreflect.Message { +func (x *UpdateMigratingVmRequest) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6731,71 +7646,44 @@ func (x *CreateTargetProjectRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateTargetProjectRequest.ProtoReflect.Descriptor instead. -func (*CreateTargetProjectRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use UpdateMigratingVmRequest.ProtoReflect.Descriptor instead. +func (*UpdateMigratingVmRequest) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{67} } -func (x *CreateTargetProjectRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *CreateTargetProjectRequest) GetTargetProjectId() string { +func (x *UpdateMigratingVmRequest) GetUpdateMask() *fieldmaskpb.FieldMask { if x != nil { - return x.TargetProjectId + return x.UpdateMask } - return "" + return nil } -func (x *CreateTargetProjectRequest) GetTargetProject() *TargetProject { +func (x *UpdateMigratingVmRequest) GetMigratingVm() *MigratingVm { if x != nil { - return x.TargetProject + return x.MigratingVm } return nil } -func (x *CreateTargetProjectRequest) GetRequestId() string { +func (x *UpdateMigratingVmRequest) GetRequestId() string { if x != nil { return x.RequestId } return "" } -// Update message for 'UpdateTargetProject' request. -type UpdateTargetProjectRequest struct { +// Request message for 'DeleteMigratingVm' request. +type DeleteMigratingVmRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Field mask is used to specify the fields to be overwritten in the - // TargetProject resource by the update. - // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then all fields will be overwritten. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - // Required. The update request body. - TargetProject *TargetProject `protobuf:"bytes,2,opt,name=target_project,json=targetProject,proto3" json:"target_project,omitempty"` - // A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes since the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Required. The name of the MigratingVm. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (x *UpdateTargetProjectRequest) Reset() { - *x = UpdateTargetProjectRequest{} +func (x *DeleteMigratingVmRequest) Reset() { + *x = DeleteMigratingVmRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6803,13 +7691,13 @@ func (x *UpdateTargetProjectRequest) Reset() { } } -func (x *UpdateTargetProjectRequest) String() string { +func (x *DeleteMigratingVmRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*UpdateTargetProjectRequest) ProtoMessage() {} +func (*DeleteMigratingVmRequest) ProtoMessage() {} -func (x *UpdateTargetProjectRequest) ProtoReflect() protoreflect.Message { +func (x *DeleteMigratingVmRequest) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6821,58 +7709,30 @@ func (x *UpdateTargetProjectRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateTargetProjectRequest.ProtoReflect.Descriptor instead. -func (*UpdateTargetProjectRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use DeleteMigratingVmRequest.ProtoReflect.Descriptor instead. +func (*DeleteMigratingVmRequest) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{68} } -func (x *UpdateTargetProjectRequest) GetUpdateMask() *fieldmaskpb.FieldMask { - if x != nil { - return x.UpdateMask - } - return nil -} - -func (x *UpdateTargetProjectRequest) GetTargetProject() *TargetProject { - if x != nil { - return x.TargetProject - } - return nil -} - -func (x *UpdateTargetProjectRequest) GetRequestId() string { +func (x *DeleteMigratingVmRequest) GetName() string { if x != nil { - return x.RequestId + return x.Name } return "" } -// Request message for 'DeleteTargetProject' request. -type DeleteTargetProjectRequest struct { +// Request message for 'StartMigrationRequest' request. +type StartMigrationRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The TargetProject name. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Optional. A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes after the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Required. The name of the MigratingVm. + MigratingVm string `protobuf:"bytes,1,opt,name=migrating_vm,json=migratingVm,proto3" json:"migrating_vm,omitempty"` } -func (x *DeleteTargetProjectRequest) Reset() { - *x = DeleteTargetProjectRequest{} +func (x *StartMigrationRequest) Reset() { + *x = StartMigrationRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6880,13 +7740,13 @@ func (x *DeleteTargetProjectRequest) Reset() { } } -func (x *DeleteTargetProjectRequest) String() string { +func (x *StartMigrationRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DeleteTargetProjectRequest) ProtoMessage() {} +func (*StartMigrationRequest) ProtoMessage() {} -func (x *DeleteTargetProjectRequest) ProtoReflect() protoreflect.Message { +func (x *StartMigrationRequest) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[69] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6898,46 +7758,27 @@ func (x *DeleteTargetProjectRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteTargetProjectRequest.ProtoReflect.Descriptor instead. -func (*DeleteTargetProjectRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use StartMigrationRequest.ProtoReflect.Descriptor instead. +func (*StartMigrationRequest) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{69} } -func (x *DeleteTargetProjectRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *DeleteTargetProjectRequest) GetRequestId() string { +func (x *StartMigrationRequest) GetMigratingVm() string { if x != nil { - return x.RequestId + return x.MigratingVm } return "" } -// Describes message for 'Group' resource. The Group is a collections of several -// MigratingVms. -type Group struct { +// Response message for 'StartMigration' request. +type StartMigrationResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - // Output only. The Group name. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Output only. The create time timestamp. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The update time timestamp. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // User-provided description of the group. - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` - // Display name is a user defined name for this group which can be updated. - DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` } -func (x *Group) Reset() { - *x = Group{} +func (x *StartMigrationResponse) Reset() { + *x = StartMigrationResponse{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6945,13 +7786,13 @@ func (x *Group) Reset() { } } -func (x *Group) String() string { +func (x *StartMigrationResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Group) ProtoMessage() {} +func (*StartMigrationResponse) ProtoMessage() {} -func (x *Group) ProtoReflect() protoreflect.Message { +func (x *StartMigrationResponse) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[70] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6963,73 +7804,23 @@ func (x *Group) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Group.ProtoReflect.Descriptor instead. -func (*Group) Descriptor() ([]byte, []int) { +// Deprecated: Use StartMigrationResponse.ProtoReflect.Descriptor instead. +func (*StartMigrationResponse) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{70} } -func (x *Group) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Group) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.CreateTime - } - return nil -} - -func (x *Group) GetUpdateTime() *timestamppb.Timestamp { - if x != nil { - return x.UpdateTime - } - return nil -} - -func (x *Group) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *Group) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -// Request message for 'ListGroups' request. -type ListGroupsRequest struct { +// Request message for 'PauseMigration' request. +type PauseMigrationRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The parent, which owns this collection of groups. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The maximum number of groups to return. The service may return - // fewer than this value. If unspecified, at most 500 groups will be - // returned. The maximum value is 1000; values above 1000 will be coerced to - // 1000. - PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // Required. A page token, received from a previous `ListGroups` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListGroups` must - // match the call that provided the page token. - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Optional. The filter request. - Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` - // Optional. the order by fields for the result. - OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` + // Required. The name of the MigratingVm. + MigratingVm string `protobuf:"bytes,1,opt,name=migrating_vm,json=migratingVm,proto3" json:"migrating_vm,omitempty"` } -func (x *ListGroupsRequest) Reset() { - *x = ListGroupsRequest{} +func (x *PauseMigrationRequest) Reset() { + *x = PauseMigrationRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7037,13 +7828,13 @@ func (x *ListGroupsRequest) Reset() { } } -func (x *ListGroupsRequest) String() string { +func (x *PauseMigrationRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListGroupsRequest) ProtoMessage() {} +func (*PauseMigrationRequest) ProtoMessage() {} -func (x *ListGroupsRequest) ProtoReflect() protoreflect.Message { +func (x *PauseMigrationRequest) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[71] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7055,63 +7846,27 @@ func (x *ListGroupsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListGroupsRequest.ProtoReflect.Descriptor instead. -func (*ListGroupsRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use PauseMigrationRequest.ProtoReflect.Descriptor instead. +func (*PauseMigrationRequest) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{71} } -func (x *ListGroupsRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *ListGroupsRequest) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *ListGroupsRequest) GetPageToken() string { - if x != nil { - return x.PageToken - } - return "" -} - -func (x *ListGroupsRequest) GetFilter() string { - if x != nil { - return x.Filter - } - return "" -} - -func (x *ListGroupsRequest) GetOrderBy() string { +func (x *PauseMigrationRequest) GetMigratingVm() string { if x != nil { - return x.OrderBy + return x.MigratingVm } return "" } -// Response message for 'ListGroups' request. -type ListGroupsResponse struct { +// Response message for 'PauseMigration' request. +type PauseMigrationResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - // Output only. The list of groups response. - Groups []*Group `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` - // Output only. A token, which can be sent as `page_token` to retrieve the - // next page. If this field is omitted, there are no subsequent pages. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - // Output only. Locations that could not be reached. - Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` } -func (x *ListGroupsResponse) Reset() { - *x = ListGroupsResponse{} +func (x *PauseMigrationResponse) Reset() { + *x = PauseMigrationResponse{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7119,13 +7874,13 @@ func (x *ListGroupsResponse) Reset() { } } -func (x *ListGroupsResponse) String() string { +func (x *PauseMigrationResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListGroupsResponse) ProtoMessage() {} +func (*PauseMigrationResponse) ProtoMessage() {} -func (x *ListGroupsResponse) ProtoReflect() protoreflect.Message { +func (x *PauseMigrationResponse) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7137,44 +7892,23 @@ func (x *ListGroupsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListGroupsResponse.ProtoReflect.Descriptor instead. -func (*ListGroupsResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use PauseMigrationResponse.ProtoReflect.Descriptor instead. +func (*PauseMigrationResponse) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{72} } -func (x *ListGroupsResponse) GetGroups() []*Group { - if x != nil { - return x.Groups - } - return nil -} - -func (x *ListGroupsResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken - } - return "" -} - -func (x *ListGroupsResponse) GetUnreachable() []string { - if x != nil { - return x.Unreachable - } - return nil -} - -// Request message for 'GetGroup' request. -type GetGroupRequest struct { +// Request message for 'ResumeMigration' request. +type ResumeMigrationRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The group name. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Required. The name of the MigratingVm. + MigratingVm string `protobuf:"bytes,1,opt,name=migrating_vm,json=migratingVm,proto3" json:"migrating_vm,omitempty"` } -func (x *GetGroupRequest) Reset() { - *x = GetGroupRequest{} +func (x *ResumeMigrationRequest) Reset() { + *x = ResumeMigrationRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7182,13 +7916,13 @@ func (x *GetGroupRequest) Reset() { } } -func (x *GetGroupRequest) String() string { +func (x *ResumeMigrationRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetGroupRequest) ProtoMessage() {} +func (*ResumeMigrationRequest) ProtoMessage() {} -func (x *GetGroupRequest) ProtoReflect() protoreflect.Message { +func (x *ResumeMigrationRequest) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[73] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7200,48 +7934,27 @@ func (x *GetGroupRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetGroupRequest.ProtoReflect.Descriptor instead. -func (*GetGroupRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use ResumeMigrationRequest.ProtoReflect.Descriptor instead. +func (*ResumeMigrationRequest) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{73} } -func (x *GetGroupRequest) GetName() string { +func (x *ResumeMigrationRequest) GetMigratingVm() string { if x != nil { - return x.Name + return x.MigratingVm } return "" } -// Request message for 'CreateGroup' request. -type CreateGroupRequest struct { +// Response message for 'ResumeMigration' request. +type ResumeMigrationResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - // Required. The Group's parent. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The group identifier. - GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - // Required. The create request body. - Group *Group `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` - // A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes since the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *CreateGroupRequest) Reset() { - *x = CreateGroupRequest{} +func (x *ResumeMigrationResponse) Reset() { + *x = ResumeMigrationResponse{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7249,13 +7962,13 @@ func (x *CreateGroupRequest) Reset() { } } -func (x *CreateGroupRequest) String() string { +func (x *ResumeMigrationResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CreateGroupRequest) ProtoMessage() {} +func (*ResumeMigrationResponse) ProtoMessage() {} -func (x *CreateGroupRequest) ProtoReflect() protoreflect.Message { +func (x *ResumeMigrationResponse) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[74] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7267,71 +7980,23 @@ func (x *CreateGroupRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateGroupRequest.ProtoReflect.Descriptor instead. -func (*CreateGroupRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use ResumeMigrationResponse.ProtoReflect.Descriptor instead. +func (*ResumeMigrationResponse) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{74} } -func (x *CreateGroupRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" +// Request message for 'FinalizeMigration' request. +type FinalizeMigrationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The name of the MigratingVm. + MigratingVm string `protobuf:"bytes,1,opt,name=migrating_vm,json=migratingVm,proto3" json:"migrating_vm,omitempty"` } -func (x *CreateGroupRequest) GetGroupId() string { - if x != nil { - return x.GroupId - } - return "" -} - -func (x *CreateGroupRequest) GetGroup() *Group { - if x != nil { - return x.Group - } - return nil -} - -func (x *CreateGroupRequest) GetRequestId() string { - if x != nil { - return x.RequestId - } - return "" -} - -// Update message for 'UpdateGroups' request. -type UpdateGroupRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Field mask is used to specify the fields to be overwritten in the - // Group resource by the update. - // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then all fields will be overwritten. - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - // Required. The update request body. - Group *Group `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` - // A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes since the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` -} - -func (x *UpdateGroupRequest) Reset() { - *x = UpdateGroupRequest{} +func (x *FinalizeMigrationRequest) Reset() { + *x = FinalizeMigrationRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7339,13 +8004,13 @@ func (x *UpdateGroupRequest) Reset() { } } -func (x *UpdateGroupRequest) String() string { +func (x *FinalizeMigrationRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*UpdateGroupRequest) ProtoMessage() {} +func (*FinalizeMigrationRequest) ProtoMessage() {} -func (x *UpdateGroupRequest) ProtoReflect() protoreflect.Message { +func (x *FinalizeMigrationRequest) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[75] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7357,58 +8022,27 @@ func (x *UpdateGroupRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UpdateGroupRequest.ProtoReflect.Descriptor instead. -func (*UpdateGroupRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use FinalizeMigrationRequest.ProtoReflect.Descriptor instead. +func (*FinalizeMigrationRequest) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{75} } -func (x *UpdateGroupRequest) GetUpdateMask() *fieldmaskpb.FieldMask { - if x != nil { - return x.UpdateMask - } - return nil -} - -func (x *UpdateGroupRequest) GetGroup() *Group { - if x != nil { - return x.Group - } - return nil -} - -func (x *UpdateGroupRequest) GetRequestId() string { +func (x *FinalizeMigrationRequest) GetMigratingVm() string { if x != nil { - return x.RequestId + return x.MigratingVm } return "" } -// Request message for 'DeleteGroup' request. -type DeleteGroupRequest struct { +// Response message for 'FinalizeMigration' request. +type FinalizeMigrationResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - - // Required. The Group name. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Optional. A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes after the first request. - // - // For example, consider a situation where you make an initial request and t - // he request times out. If you make the request again with the same request - // ID, the server can check if original operation with the same request ID - // was received, and if so, will ignore the second request. This prevents - // clients from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *DeleteGroupRequest) Reset() { - *x = DeleteGroupRequest{} +func (x *FinalizeMigrationResponse) Reset() { + *x = FinalizeMigrationResponse{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7416,13 +8050,13 @@ func (x *DeleteGroupRequest) Reset() { } } -func (x *DeleteGroupRequest) String() string { +func (x *FinalizeMigrationResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DeleteGroupRequest) ProtoMessage() {} +func (*FinalizeMigrationResponse) ProtoMessage() {} -func (x *DeleteGroupRequest) ProtoReflect() protoreflect.Message { +func (x *FinalizeMigrationResponse) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[76] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7434,39 +8068,33 @@ func (x *DeleteGroupRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteGroupRequest.ProtoReflect.Descriptor instead. -func (*DeleteGroupRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use FinalizeMigrationResponse.ProtoReflect.Descriptor instead. +func (*FinalizeMigrationResponse) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{76} } -func (x *DeleteGroupRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *DeleteGroupRequest) GetRequestId() string { - if x != nil { - return x.RequestId - } - return "" -} - -// Request message for 'AddGroupMigration' request. -type AddGroupMigrationRequest struct { +// TargetProject message represents a target Compute Engine project for a +// migration or a clone. +type TargetProject struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The full path name of the Group to add to. - Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` - // The full path name of the MigratingVm to add. - MigratingVm string `protobuf:"bytes,2,opt,name=migrating_vm,json=migratingVm,proto3" json:"migrating_vm,omitempty"` + // Output only. The name of the target project. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The target project ID (number) or project name. + Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` + // The target project's description. + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // Output only. The time this target project resource was created (not related + // to when the Compute Engine project it points to was created). + CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + // Output only. The last time the target project resource was updated. + UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` } -func (x *AddGroupMigrationRequest) Reset() { - *x = AddGroupMigrationRequest{} +func (x *TargetProject) Reset() { + *x = TargetProject{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7474,13 +8102,13 @@ func (x *AddGroupMigrationRequest) Reset() { } } -func (x *AddGroupMigrationRequest) String() string { +func (x *TargetProject) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddGroupMigrationRequest) ProtoMessage() {} +func (*TargetProject) ProtoMessage() {} -func (x *AddGroupMigrationRequest) ProtoReflect() protoreflect.Message { +func (x *TargetProject) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[77] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7492,34 +8120,58 @@ func (x *AddGroupMigrationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddGroupMigrationRequest.ProtoReflect.Descriptor instead. -func (*AddGroupMigrationRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use TargetProject.ProtoReflect.Descriptor instead. +func (*TargetProject) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{77} } -func (x *AddGroupMigrationRequest) GetGroup() string { +func (x *TargetProject) GetName() string { if x != nil { - return x.Group + return x.Name } return "" } -func (x *AddGroupMigrationRequest) GetMigratingVm() string { +func (x *TargetProject) GetProject() string { if x != nil { - return x.MigratingVm + return x.Project } return "" } -// Response message for 'AddGroupMigration' request. -type AddGroupMigrationResponse struct { +func (x *TargetProject) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *TargetProject) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.CreateTime + } + return nil +} + +func (x *TargetProject) GetUpdateTime() *timestamppb.Timestamp { + if x != nil { + return x.UpdateTime + } + return nil +} + +// Request message for 'GetTargetProject' call. +type GetTargetProjectRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // Required. The TargetProject name. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (x *AddGroupMigrationResponse) Reset() { - *x = AddGroupMigrationResponse{} +func (x *GetTargetProjectRequest) Reset() { + *x = GetTargetProjectRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7527,13 +8179,13 @@ func (x *AddGroupMigrationResponse) Reset() { } } -func (x *AddGroupMigrationResponse) String() string { +func (x *GetTargetProjectRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddGroupMigrationResponse) ProtoMessage() {} +func (*GetTargetProjectRequest) ProtoMessage() {} -func (x *AddGroupMigrationResponse) ProtoReflect() protoreflect.Message { +func (x *GetTargetProjectRequest) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[78] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7545,25 +8197,45 @@ func (x *AddGroupMigrationResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddGroupMigrationResponse.ProtoReflect.Descriptor instead. -func (*AddGroupMigrationResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use GetTargetProjectRequest.ProtoReflect.Descriptor instead. +func (*GetTargetProjectRequest) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{78} } -// Request message for 'RemoveMigration' request. -type RemoveGroupMigrationRequest struct { +func (x *GetTargetProjectRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// Request message for 'ListTargetProjects' call. +type ListTargetProjectsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The name of the Group. - Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` - // The MigratingVm to remove. - MigratingVm string `protobuf:"bytes,2,opt,name=migrating_vm,json=migratingVm,proto3" json:"migrating_vm,omitempty"` + // Required. The parent, which owns this collection of targets. + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // Optional. The maximum number of targets to return. The service may return + // fewer than this value. If unspecified, at most 500 targets will be + // returned. The maximum value is 1000; values above 1000 will be coerced to + // 1000. + PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Required. A page token, received from a previous `ListTargets` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListTargets` must + // match the call that provided the page token. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // Optional. The filter request. + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + // Optional. the order by fields for the result. + OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` } -func (x *RemoveGroupMigrationRequest) Reset() { - *x = RemoveGroupMigrationRequest{} +func (x *ListTargetProjectsRequest) Reset() { + *x = ListTargetProjectsRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7571,13 +8243,13 @@ func (x *RemoveGroupMigrationRequest) Reset() { } } -func (x *RemoveGroupMigrationRequest) String() string { +func (x *ListTargetProjectsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RemoveGroupMigrationRequest) ProtoMessage() {} +func (*ListTargetProjectsRequest) ProtoMessage() {} -func (x *RemoveGroupMigrationRequest) ProtoReflect() protoreflect.Message { +func (x *ListTargetProjectsRequest) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[79] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7589,34 +8261,63 @@ func (x *RemoveGroupMigrationRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RemoveGroupMigrationRequest.ProtoReflect.Descriptor instead. -func (*RemoveGroupMigrationRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use ListTargetProjectsRequest.ProtoReflect.Descriptor instead. +func (*ListTargetProjectsRequest) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{79} } -func (x *RemoveGroupMigrationRequest) GetGroup() string { +func (x *ListTargetProjectsRequest) GetParent() string { if x != nil { - return x.Group + return x.Parent } return "" } -func (x *RemoveGroupMigrationRequest) GetMigratingVm() string { +func (x *ListTargetProjectsRequest) GetPageSize() int32 { if x != nil { - return x.MigratingVm + return x.PageSize + } + return 0 +} + +func (x *ListTargetProjectsRequest) GetPageToken() string { + if x != nil { + return x.PageToken } return "" } -// Response message for 'RemoveMigration' request. -type RemoveGroupMigrationResponse struct { +func (x *ListTargetProjectsRequest) GetFilter() string { + if x != nil { + return x.Filter + } + return "" +} + +func (x *ListTargetProjectsRequest) GetOrderBy() string { + if x != nil { + return x.OrderBy + } + return "" +} + +// Response message for 'ListTargetProjects' call. +type ListTargetProjectsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // Output only. The list of target response. + TargetProjects []*TargetProject `protobuf:"bytes,1,rep,name=target_projects,json=targetProjects,proto3" json:"target_projects,omitempty"` + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + // Output only. Locations that could not be reached. + Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` } -func (x *RemoveGroupMigrationResponse) Reset() { - *x = RemoveGroupMigrationResponse{} +func (x *ListTargetProjectsResponse) Reset() { + *x = ListTargetProjectsResponse{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7624,13 +8325,13 @@ func (x *RemoveGroupMigrationResponse) Reset() { } } -func (x *RemoveGroupMigrationResponse) String() string { +func (x *ListTargetProjectsResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RemoveGroupMigrationResponse) ProtoMessage() {} +func (*ListTargetProjectsResponse) ProtoMessage() {} -func (x *RemoveGroupMigrationResponse) ProtoReflect() protoreflect.Message { +func (x *ListTargetProjectsResponse) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[80] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7642,23 +8343,44 @@ func (x *RemoveGroupMigrationResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RemoveGroupMigrationResponse.ProtoReflect.Descriptor instead. -func (*RemoveGroupMigrationResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use ListTargetProjectsResponse.ProtoReflect.Descriptor instead. +func (*ListTargetProjectsResponse) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{80} } -// Request message for 'CreateCutoverJob' request. -type CreateCutoverJobRequest struct { +func (x *ListTargetProjectsResponse) GetTargetProjects() []*TargetProject { + if x != nil { + return x.TargetProjects + } + return nil +} + +func (x *ListTargetProjectsResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +func (x *ListTargetProjectsResponse) GetUnreachable() []string { + if x != nil { + return x.Unreachable + } + return nil +} + +// Request message for 'CreateTargetProject' request. +type CreateTargetProjectRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The Cutover's parent. + // Required. The TargetProject's parent. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The cutover job identifier. - CutoverJobId string `protobuf:"bytes,2,opt,name=cutover_job_id,json=cutoverJobId,proto3" json:"cutover_job_id,omitempty"` - // Required. The cutover request body. - CutoverJob *CutoverJob `protobuf:"bytes,3,opt,name=cutover_job,json=cutoverJob,proto3" json:"cutover_job,omitempty"` + // Required. The target_project identifier. + TargetProjectId string `protobuf:"bytes,2,opt,name=target_project_id,json=targetProjectId,proto3" json:"target_project_id,omitempty"` + // Required. The create request body. + TargetProject *TargetProject `protobuf:"bytes,3,opt,name=target_project,json=targetProject,proto3" json:"target_project,omitempty"` // A request ID to identify requests. Specify a unique request ID // so that if you must retry your request, the server will know to ignore // the request if it has already been completed. The server will guarantee @@ -7675,8 +8397,8 @@ type CreateCutoverJobRequest struct { RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *CreateCutoverJobRequest) Reset() { - *x = CreateCutoverJobRequest{} +func (x *CreateTargetProjectRequest) Reset() { + *x = CreateTargetProjectRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[81] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7684,13 +8406,13 @@ func (x *CreateCutoverJobRequest) Reset() { } } -func (x *CreateCutoverJobRequest) String() string { +func (x *CreateTargetProjectRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CreateCutoverJobRequest) ProtoMessage() {} +func (*CreateTargetProjectRequest) ProtoMessage() {} -func (x *CreateCutoverJobRequest) ProtoReflect() protoreflect.Message { +func (x *CreateTargetProjectRequest) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[81] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7702,51 +8424,71 @@ func (x *CreateCutoverJobRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateCutoverJobRequest.ProtoReflect.Descriptor instead. -func (*CreateCutoverJobRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use CreateTargetProjectRequest.ProtoReflect.Descriptor instead. +func (*CreateTargetProjectRequest) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{81} } -func (x *CreateCutoverJobRequest) GetParent() string { +func (x *CreateTargetProjectRequest) GetParent() string { if x != nil { return x.Parent } return "" } -func (x *CreateCutoverJobRequest) GetCutoverJobId() string { +func (x *CreateTargetProjectRequest) GetTargetProjectId() string { if x != nil { - return x.CutoverJobId + return x.TargetProjectId } return "" } -func (x *CreateCutoverJobRequest) GetCutoverJob() *CutoverJob { +func (x *CreateTargetProjectRequest) GetTargetProject() *TargetProject { if x != nil { - return x.CutoverJob + return x.TargetProject } return nil } -func (x *CreateCutoverJobRequest) GetRequestId() string { +func (x *CreateTargetProjectRequest) GetRequestId() string { if x != nil { return x.RequestId } return "" } -// Request message for 'CancelCutoverJob' request. -type CancelCutoverJobRequest struct { +// Update message for 'UpdateTargetProject' request. +type UpdateTargetProjectRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The cutover job id - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Field mask is used to specify the fields to be overwritten in the + // TargetProject resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // Required. The update request body. + TargetProject *TargetProject `protobuf:"bytes,2,opt,name=target_project,json=targetProject,proto3" json:"target_project,omitempty"` + // A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *CancelCutoverJobRequest) Reset() { - *x = CancelCutoverJobRequest{} +func (x *UpdateTargetProjectRequest) Reset() { + *x = UpdateTargetProjectRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[82] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7754,13 +8496,13 @@ func (x *CancelCutoverJobRequest) Reset() { } } -func (x *CancelCutoverJobRequest) String() string { +func (x *UpdateTargetProjectRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CancelCutoverJobRequest) ProtoMessage() {} +func (*UpdateTargetProjectRequest) ProtoMessage() {} -func (x *CancelCutoverJobRequest) ProtoReflect() protoreflect.Message { +func (x *UpdateTargetProjectRequest) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[82] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7772,27 +8514,58 @@ func (x *CancelCutoverJobRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CancelCutoverJobRequest.ProtoReflect.Descriptor instead. -func (*CancelCutoverJobRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use UpdateTargetProjectRequest.ProtoReflect.Descriptor instead. +func (*UpdateTargetProjectRequest) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{82} } -func (x *CancelCutoverJobRequest) GetName() string { +func (x *UpdateTargetProjectRequest) GetUpdateMask() *fieldmaskpb.FieldMask { if x != nil { - return x.Name + return x.UpdateMask + } + return nil +} + +func (x *UpdateTargetProjectRequest) GetTargetProject() *TargetProject { + if x != nil { + return x.TargetProject + } + return nil +} + +func (x *UpdateTargetProjectRequest) GetRequestId() string { + if x != nil { + return x.RequestId } return "" } -// Response message for 'CancelCutoverJob' request. -type CancelCutoverJobResponse struct { +// Request message for 'DeleteTargetProject' request. +type DeleteTargetProjectRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + // Required. The TargetProject name. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *CancelCutoverJobResponse) Reset() { - *x = CancelCutoverJobResponse{} +func (x *DeleteTargetProjectRequest) Reset() { + *x = DeleteTargetProjectRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[83] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7800,13 +8573,13 @@ func (x *CancelCutoverJobResponse) Reset() { } } -func (x *CancelCutoverJobResponse) String() string { +func (x *DeleteTargetProjectRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CancelCutoverJobResponse) ProtoMessage() {} +func (*DeleteTargetProjectRequest) ProtoMessage() {} -func (x *CancelCutoverJobResponse) ProtoReflect() protoreflect.Message { +func (x *DeleteTargetProjectRequest) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[83] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7818,52 +8591,60 @@ func (x *CancelCutoverJobResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CancelCutoverJobResponse.ProtoReflect.Descriptor instead. -func (*CancelCutoverJobResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use DeleteTargetProjectRequest.ProtoReflect.Descriptor instead. +func (*DeleteTargetProjectRequest) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{83} } -// Request message for 'ListCutoverJobsRequest' request. -type ListCutoverJobsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent, which owns this collection of migrating VMs. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The maximum number of cutover jobs to return. The service may - // return fewer than this value. If unspecified, at most 500 cutover jobs will - // be returned. The maximum value is 1000; values above 1000 will be coerced - // to 1000. - PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // Required. A page token, received from a previous `ListCutoverJobs` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListCutoverJobs` must - // match the call that provided the page token. - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Optional. The filter request. - Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` - // Optional. the order by fields for the result. - OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` +func (x *DeleteTargetProjectRequest) GetName() string { + if x != nil { + return x.Name + } + return "" } -func (x *ListCutoverJobsRequest) Reset() { - *x = ListCutoverJobsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[84] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *DeleteTargetProjectRequest) GetRequestId() string { + if x != nil { + return x.RequestId } + return "" } -func (x *ListCutoverJobsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} +// Describes message for 'Group' resource. The Group is a collections of several +// MigratingVms. +type Group struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (*ListCutoverJobsRequest) ProtoMessage() {} + // Output only. The Group name. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Output only. The create time timestamp. + CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + // Output only. The update time timestamp. + UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + // User-provided description of the group. + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + // Display name is a user defined name for this group which can be updated. + DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` +} -func (x *ListCutoverJobsRequest) ProtoReflect() protoreflect.Message { +func (x *Group) Reset() { + *x = Group{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[84] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Group) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Group) ProtoMessage() {} + +func (x *Group) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[84] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7875,63 +8656,73 @@ func (x *ListCutoverJobsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListCutoverJobsRequest.ProtoReflect.Descriptor instead. -func (*ListCutoverJobsRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use Group.ProtoReflect.Descriptor instead. +func (*Group) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{84} } -func (x *ListCutoverJobsRequest) GetParent() string { +func (x *Group) GetName() string { if x != nil { - return x.Parent + return x.Name } return "" } -func (x *ListCutoverJobsRequest) GetPageSize() int32 { +func (x *Group) GetCreateTime() *timestamppb.Timestamp { if x != nil { - return x.PageSize + return x.CreateTime } - return 0 + return nil } -func (x *ListCutoverJobsRequest) GetPageToken() string { +func (x *Group) GetUpdateTime() *timestamppb.Timestamp { if x != nil { - return x.PageToken + return x.UpdateTime } - return "" + return nil } -func (x *ListCutoverJobsRequest) GetFilter() string { +func (x *Group) GetDescription() string { if x != nil { - return x.Filter + return x.Description } return "" } -func (x *ListCutoverJobsRequest) GetOrderBy() string { +func (x *Group) GetDisplayName() string { if x != nil { - return x.OrderBy + return x.DisplayName } return "" } -// Response message for 'ListCutoverJobs' request. -type ListCutoverJobsResponse struct { +// Request message for 'ListGroups' request. +type ListGroupsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. The list of cutover jobs response. - CutoverJobs []*CutoverJob `protobuf:"bytes,1,rep,name=cutover_jobs,json=cutoverJobs,proto3" json:"cutover_jobs,omitempty"` - // Output only. A token, which can be sent as `page_token` to retrieve the - // next page. If this field is omitted, there are no subsequent pages. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - // Output only. Locations that could not be reached. - Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` + // Required. The parent, which owns this collection of groups. + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // Optional. The maximum number of groups to return. The service may return + // fewer than this value. If unspecified, at most 500 groups will be + // returned. The maximum value is 1000; values above 1000 will be coerced to + // 1000. + PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Required. A page token, received from a previous `ListGroups` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListGroups` must + // match the call that provided the page token. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // Optional. The filter request. + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + // Optional. the order by fields for the result. + OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` } -func (x *ListCutoverJobsResponse) Reset() { - *x = ListCutoverJobsResponse{} +func (x *ListGroupsRequest) Reset() { + *x = ListGroupsRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[85] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7939,13 +8730,13 @@ func (x *ListCutoverJobsResponse) Reset() { } } -func (x *ListCutoverJobsResponse) String() string { +func (x *ListGroupsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListCutoverJobsResponse) ProtoMessage() {} +func (*ListGroupsRequest) ProtoMessage() {} -func (x *ListCutoverJobsResponse) ProtoReflect() protoreflect.Message { +func (x *ListGroupsRequest) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[85] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7957,44 +8748,63 @@ func (x *ListCutoverJobsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListCutoverJobsResponse.ProtoReflect.Descriptor instead. -func (*ListCutoverJobsResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use ListGroupsRequest.ProtoReflect.Descriptor instead. +func (*ListGroupsRequest) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{85} } -func (x *ListCutoverJobsResponse) GetCutoverJobs() []*CutoverJob { +func (x *ListGroupsRequest) GetParent() string { if x != nil { - return x.CutoverJobs + return x.Parent } - return nil + return "" } -func (x *ListCutoverJobsResponse) GetNextPageToken() string { +func (x *ListGroupsRequest) GetPageSize() int32 { if x != nil { - return x.NextPageToken + return x.PageSize + } + return 0 +} + +func (x *ListGroupsRequest) GetPageToken() string { + if x != nil { + return x.PageToken } return "" } -func (x *ListCutoverJobsResponse) GetUnreachable() []string { +func (x *ListGroupsRequest) GetFilter() string { if x != nil { - return x.Unreachable + return x.Filter } - return nil + return "" } -// Request message for 'GetCutoverJob' request. -type GetCutoverJobRequest struct { +func (x *ListGroupsRequest) GetOrderBy() string { + if x != nil { + return x.OrderBy + } + return "" +} + +// Response message for 'ListGroups' request. +type ListGroupsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Required. The name of the CutoverJob. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Output only. The list of groups response. + Groups []*Group `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + // Output only. Locations that could not be reached. + Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` } -func (x *GetCutoverJobRequest) Reset() { - *x = GetCutoverJobRequest{} +func (x *ListGroupsResponse) Reset() { + *x = ListGroupsResponse{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[86] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8002,13 +8812,13 @@ func (x *GetCutoverJobRequest) Reset() { } } -func (x *GetCutoverJobRequest) String() string { +func (x *ListGroupsResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetCutoverJobRequest) ProtoMessage() {} +func (*ListGroupsResponse) ProtoMessage() {} -func (x *GetCutoverJobRequest) ProtoReflect() protoreflect.Message { +func (x *ListGroupsResponse) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[86] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8020,46 +8830,44 @@ func (x *GetCutoverJobRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetCutoverJobRequest.ProtoReflect.Descriptor instead. -func (*GetCutoverJobRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use ListGroupsResponse.ProtoReflect.Descriptor instead. +func (*ListGroupsResponse) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{86} } -func (x *GetCutoverJobRequest) GetName() string { +func (x *ListGroupsResponse) GetGroups() []*Group { if x != nil { - return x.Name + return x.Groups + } + return nil +} + +func (x *ListGroupsResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken } return "" } -// Represents the metadata of the long-running operation. -type OperationMetadata struct { +func (x *ListGroupsResponse) GetUnreachable() []string { + if x != nil { + return x.Unreachable + } + return nil +} + +// Request message for 'GetGroup' request. +type GetGroupRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - // Output only. Server-defined resource path for the target of the operation. - Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` - // Output only. Name of the verb executed by the operation. - Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"` - // Output only. Human-readable status of the operation, if any. - StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"` - // Output only. Identifies whether the user has requested cancellation - // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a - // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - // `Code.CANCELLED`. - RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"` - // Output only. API version used to start the operation. - ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` + // Required. The group name. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } -func (x *OperationMetadata) Reset() { - *x = OperationMetadata{} +func (x *GetGroupRequest) Reset() { + *x = GetGroupRequest{} if protoimpl.UnsafeEnabled { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[87] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8067,13 +8875,13 @@ func (x *OperationMetadata) Reset() { } } -func (x *OperationMetadata) String() string { +func (x *GetGroupRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*OperationMetadata) ProtoMessage() {} +func (*GetGroupRequest) ProtoMessage() {} -func (x *OperationMetadata) ProtoReflect() protoreflect.Message { +func (x *GetGroupRequest) ProtoReflect() protoreflect.Message { mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[87] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8085,98 +8893,153 @@ func (x *OperationMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead. -func (*OperationMetadata) Descriptor() ([]byte, []int) { +// Deprecated: Use GetGroupRequest.ProtoReflect.Descriptor instead. +func (*GetGroupRequest) Descriptor() ([]byte, []int) { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{87} } -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.CreateTime - } - return nil -} - -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { - if x != nil { - return x.EndTime - } - return nil -} - -func (x *OperationMetadata) GetTarget() string { - if x != nil { - return x.Target - } - return "" -} - -func (x *OperationMetadata) GetVerb() string { +func (x *GetGroupRequest) GetName() string { if x != nil { - return x.Verb + return x.Name } return "" } -func (x *OperationMetadata) GetStatusMessage() string { - if x != nil { - return x.StatusMessage - } - return "" -} +// Request message for 'CreateGroup' request. +type CreateGroupRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *OperationMetadata) GetRequestedCancellation() bool { - if x != nil { - return x.RequestedCancellation + // Required. The Group's parent. + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // Required. The group identifier. + GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` + // Required. The create request body. + Group *Group `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` + // A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` +} + +func (x *CreateGroupRequest) Reset() { + *x = CreateGroupRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[88] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return false } -func (x *OperationMetadata) GetApiVersion() string { +func (x *CreateGroupRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateGroupRequest) ProtoMessage() {} + +func (x *CreateGroupRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[88] + 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 CreateGroupRequest.ProtoReflect.Descriptor instead. +func (*CreateGroupRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{88} +} + +func (x *CreateGroupRequest) GetParent() string { if x != nil { - return x.ApiVersion + return x.Parent } return "" } -// Represents migration resource error information that can be used with -// google.rpc.Status message. MigrationError is used to present the user with -// error information in migration operations. -type MigrationError struct { +func (x *CreateGroupRequest) GetGroupId() string { + if x != nil { + return x.GroupId + } + return "" +} + +func (x *CreateGroupRequest) GetGroup() *Group { + if x != nil { + return x.Group + } + return nil +} + +func (x *CreateGroupRequest) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +// Update message for 'UpdateGroups' request. +type UpdateGroupRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Output only. The error code. - Code MigrationError_ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=google.cloud.vmmigration.v1.MigrationError_ErrorCode" json:"code,omitempty"` - // Output only. The localized error message. - ErrorMessage *errdetails.LocalizedMessage `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` - // Output only. Suggested action for solving the error. - ActionItem *errdetails.LocalizedMessage `protobuf:"bytes,3,opt,name=action_item,json=actionItem,proto3" json:"action_item,omitempty"` - // Output only. URL(s) pointing to additional information on handling the - // current error. - HelpLinks []*errdetails.Help_Link `protobuf:"bytes,4,rep,name=help_links,json=helpLinks,proto3" json:"help_links,omitempty"` - // Output only. The time the error occurred. - ErrorTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=error_time,json=errorTime,proto3" json:"error_time,omitempty"` + // Field mask is used to specify the fields to be overwritten in the + // Group resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // Required. The update request body. + Group *Group `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` + // A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *MigrationError) Reset() { - *x = MigrationError{} +func (x *UpdateGroupRequest) Reset() { + *x = UpdateGroupRequest{} if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[88] + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[89] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MigrationError) String() string { +func (x *UpdateGroupRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MigrationError) ProtoMessage() {} +func (*UpdateGroupRequest) ProtoMessage() {} -func (x *MigrationError) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[88] +func (x *UpdateGroupRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[89] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8187,2229 +9050,3860 @@ func (x *MigrationError) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use MigrationError.ProtoReflect.Descriptor instead. -func (*MigrationError) Descriptor() ([]byte, []int) { - return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{88} +// Deprecated: Use UpdateGroupRequest.ProtoReflect.Descriptor instead. +func (*UpdateGroupRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{89} } -func (x *MigrationError) GetCode() MigrationError_ErrorCode { +func (x *UpdateGroupRequest) GetUpdateMask() *fieldmaskpb.FieldMask { if x != nil { - return x.Code + return x.UpdateMask } - return MigrationError_ERROR_CODE_UNSPECIFIED + return nil } -func (x *MigrationError) GetErrorMessage() *errdetails.LocalizedMessage { +func (x *UpdateGroupRequest) GetGroup() *Group { if x != nil { - return x.ErrorMessage + return x.Group } return nil } -func (x *MigrationError) GetActionItem() *errdetails.LocalizedMessage { +func (x *UpdateGroupRequest) GetRequestId() string { if x != nil { - return x.ActionItem + return x.RequestId } - return nil + return "" } -func (x *MigrationError) GetHelpLinks() []*errdetails.Help_Link { +// Request message for 'DeleteGroup' request. +type DeleteGroupRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The Group name. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` +} + +func (x *DeleteGroupRequest) Reset() { + *x = DeleteGroupRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[90] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteGroupRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteGroupRequest) ProtoMessage() {} + +func (x *DeleteGroupRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[90] + 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 DeleteGroupRequest.ProtoReflect.Descriptor instead. +func (*DeleteGroupRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{90} +} + +func (x *DeleteGroupRequest) GetName() string { if x != nil { - return x.HelpLinks + return x.Name } - return nil + return "" } -func (x *MigrationError) GetErrorTime() *timestamppb.Timestamp { +func (x *DeleteGroupRequest) GetRequestId() string { if x != nil { - return x.ErrorTime + return x.RequestId } - return nil + return "" } -var File_google_cloud_vmmigration_v1_vmmigration_proto protoreflect.FileDescriptor +// Request message for 'AddGroupMigration' request. +type AddGroupMigrationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -var file_google_cloud_vmmigration_v1_vmmigration_proto_rawDesc = []byte{ - 0x0a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, - 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x6d, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 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, 0x1a, - 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, - 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 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, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, - 0x72, 0x70, 0x63, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, - 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x78, 0x0a, 0x10, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, - 0x79, 0x63, 0x6c, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, - 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x63, - 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x22, 0x53, 0x0a, 0x0f, 0x52, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x79, 0x6e, 0x63, 0x12, 0x40, 0x0a, - 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x22, - 0x94, 0x0c, 0x0a, 0x0b, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x12, - 0x7f, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x73, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x73, 0x48, 0x00, 0x52, 0x1b, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, - 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, - 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x5f, 0x76, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, 0x6d, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, - 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 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, 0x43, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, - 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4e, 0x0a, 0x09, 0x6c, 0x61, 0x73, - 0x74, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x79, 0x6e, 0x63, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, - 0x08, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x12, 0x49, 0x0a, 0x05, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, - 0x56, 0x6d, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, - 0x6d, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + // Required. The full path name of the Group to add to. + Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` + // The full path name of the MigratingVm to add. + MigratingVm string `protobuf:"bytes,2,opt,name=migrating_vm,json=migratingVm,proto3" json:"migrating_vm,omitempty"` +} + +func (x *AddGroupMigrationRequest) Reset() { + *x = AddGroupMigrationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[91] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddGroupMigrationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddGroupMigrationRequest) ProtoMessage() {} + +func (x *AddGroupMigrationRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[91] + 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 AddGroupMigrationRequest.ProtoReflect.Descriptor instead. +func (*AddGroupMigrationRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{91} +} + +func (x *AddGroupMigrationRequest) GetGroup() string { + if x != nil { + return x.Group + } + return "" +} + +func (x *AddGroupMigrationRequest) GetMigratingVm() string { + if x != nil { + return x.MigratingVm + } + return "" +} + +// Response message for 'AddGroupMigration' request. +type AddGroupMigrationResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *AddGroupMigrationResponse) Reset() { + *x = AddGroupMigrationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[92] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddGroupMigrationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddGroupMigrationResponse) ProtoMessage() {} + +func (x *AddGroupMigrationResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[92] + 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 AddGroupMigrationResponse.ProtoReflect.Descriptor instead. +func (*AddGroupMigrationResponse) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{92} +} + +// Request message for 'RemoveMigration' request. +type RemoveGroupMigrationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The name of the Group. + Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` + // The MigratingVm to remove. + MigratingVm string `protobuf:"bytes,2,opt,name=migrating_vm,json=migratingVm,proto3" json:"migrating_vm,omitempty"` +} + +func (x *RemoveGroupMigrationRequest) Reset() { + *x = RemoveGroupMigrationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[93] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveGroupMigrationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveGroupMigrationRequest) ProtoMessage() {} + +func (x *RemoveGroupMigrationRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[93] + 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 RemoveGroupMigrationRequest.ProtoReflect.Descriptor instead. +func (*RemoveGroupMigrationRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{93} +} + +func (x *RemoveGroupMigrationRequest) GetGroup() string { + if x != nil { + return x.Group + } + return "" +} + +func (x *RemoveGroupMigrationRequest) GetMigratingVm() string { + if x != nil { + return x.MigratingVm + } + return "" +} + +// Response message for 'RemoveMigration' request. +type RemoveGroupMigrationResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *RemoveGroupMigrationResponse) Reset() { + *x = RemoveGroupMigrationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[94] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveGroupMigrationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveGroupMigrationResponse) ProtoMessage() {} + +func (x *RemoveGroupMigrationResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[94] + 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 RemoveGroupMigrationResponse.ProtoReflect.Descriptor instead. +func (*RemoveGroupMigrationResponse) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{94} +} + +// Request message for 'CreateCutoverJob' request. +type CreateCutoverJobRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The Cutover's parent. + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // Required. The cutover job identifier. + CutoverJobId string `protobuf:"bytes,2,opt,name=cutover_job_id,json=cutoverJobId,proto3" json:"cutover_job_id,omitempty"` + // Required. The cutover request body. + CutoverJob *CutoverJob `protobuf:"bytes,3,opt,name=cutover_job,json=cutoverJob,proto3" json:"cutover_job,omitempty"` + // A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` +} + +func (x *CreateCutoverJobRequest) Reset() { + *x = CreateCutoverJobRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[95] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateCutoverJobRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateCutoverJobRequest) ProtoMessage() {} + +func (x *CreateCutoverJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[95] + 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 CreateCutoverJobRequest.ProtoReflect.Descriptor instead. +func (*CreateCutoverJobRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{95} +} + +func (x *CreateCutoverJobRequest) GetParent() string { + if x != nil { + return x.Parent + } + return "" +} + +func (x *CreateCutoverJobRequest) GetCutoverJobId() string { + if x != nil { + return x.CutoverJobId + } + return "" +} + +func (x *CreateCutoverJobRequest) GetCutoverJob() *CutoverJob { + if x != nil { + return x.CutoverJob + } + return nil +} + +func (x *CreateCutoverJobRequest) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +// Request message for 'CancelCutoverJob' request. +type CancelCutoverJobRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The cutover job id + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *CancelCutoverJobRequest) Reset() { + *x = CancelCutoverJobRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[96] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CancelCutoverJobRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CancelCutoverJobRequest) ProtoMessage() {} + +func (x *CancelCutoverJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[96] + 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 CancelCutoverJobRequest.ProtoReflect.Descriptor instead. +func (*CancelCutoverJobRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{96} +} + +func (x *CancelCutoverJobRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// Response message for 'CancelCutoverJob' request. +type CancelCutoverJobResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CancelCutoverJobResponse) Reset() { + *x = CancelCutoverJobResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[97] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CancelCutoverJobResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CancelCutoverJobResponse) ProtoMessage() {} + +func (x *CancelCutoverJobResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[97] + 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 CancelCutoverJobResponse.ProtoReflect.Descriptor instead. +func (*CancelCutoverJobResponse) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{97} +} + +// Request message for 'ListCutoverJobsRequest' request. +type ListCutoverJobsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The parent, which owns this collection of migrating VMs. + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // Optional. The maximum number of cutover jobs to return. The service may + // return fewer than this value. If unspecified, at most 500 cutover jobs will + // be returned. The maximum value is 1000; values above 1000 will be coerced + // to 1000. + PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Required. A page token, received from a previous `ListCutoverJobs` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListCutoverJobs` must + // match the call that provided the page token. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // Optional. The filter request. + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + // Optional. the order by fields for the result. + OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` +} + +func (x *ListCutoverJobsRequest) Reset() { + *x = ListCutoverJobsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[98] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListCutoverJobsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListCutoverJobsRequest) ProtoMessage() {} + +func (x *ListCutoverJobsRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[98] + 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 ListCutoverJobsRequest.ProtoReflect.Descriptor instead. +func (*ListCutoverJobsRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{98} +} + +func (x *ListCutoverJobsRequest) GetParent() string { + if x != nil { + return x.Parent + } + return "" +} + +func (x *ListCutoverJobsRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListCutoverJobsRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +func (x *ListCutoverJobsRequest) GetFilter() string { + if x != nil { + return x.Filter + } + return "" +} + +func (x *ListCutoverJobsRequest) GetOrderBy() string { + if x != nil { + return x.OrderBy + } + return "" +} + +// Response message for 'ListCutoverJobs' request. +type ListCutoverJobsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Output only. The list of cutover jobs response. + CutoverJobs []*CutoverJob `protobuf:"bytes,1,rep,name=cutover_jobs,json=cutoverJobs,proto3" json:"cutover_jobs,omitempty"` + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + // Output only. Locations that could not be reached. + Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` +} + +func (x *ListCutoverJobsResponse) Reset() { + *x = ListCutoverJobsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[99] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListCutoverJobsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListCutoverJobsResponse) ProtoMessage() {} + +func (x *ListCutoverJobsResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[99] + 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 ListCutoverJobsResponse.ProtoReflect.Descriptor instead. +func (*ListCutoverJobsResponse) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{99} +} + +func (x *ListCutoverJobsResponse) GetCutoverJobs() []*CutoverJob { + if x != nil { + return x.CutoverJobs + } + return nil +} + +func (x *ListCutoverJobsResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +func (x *ListCutoverJobsResponse) GetUnreachable() []string { + if x != nil { + return x.Unreachable + } + return nil +} + +// Request message for 'GetCutoverJob' request. +type GetCutoverJobRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The name of the CutoverJob. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *GetCutoverJobRequest) Reset() { + *x = GetCutoverJobRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[100] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetCutoverJobRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCutoverJobRequest) ProtoMessage() {} + +func (x *GetCutoverJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[100] + 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 GetCutoverJobRequest.ProtoReflect.Descriptor instead. +func (*GetCutoverJobRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{100} +} + +func (x *GetCutoverJobRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// Represents the metadata of the long-running operation. +type OperationMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Output only. The time the operation was created. + CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + // Output only. The time the operation finished running. + EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + // Output only. Server-defined resource path for the target of the operation. + Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` + // Output only. Name of the verb executed by the operation. + Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"` + // Output only. Human-readable status of the operation, if any. + StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"` + // Output only. Identifies whether the user has requested cancellation + // of the operation. Operations that have successfully been cancelled + // have [Operation.error][] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`. + RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"` + // Output only. API version used to start the operation. + ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` +} + +func (x *OperationMetadata) Reset() { + *x = OperationMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[101] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OperationMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OperationMetadata) ProtoMessage() {} + +func (x *OperationMetadata) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[101] + 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 OperationMetadata.ProtoReflect.Descriptor instead. +func (*OperationMetadata) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{101} +} + +func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.CreateTime + } + return nil +} + +func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { + if x != nil { + return x.EndTime + } + return nil +} + +func (x *OperationMetadata) GetTarget() string { + if x != nil { + return x.Target + } + return "" +} + +func (x *OperationMetadata) GetVerb() string { + if x != nil { + return x.Verb + } + return "" +} + +func (x *OperationMetadata) GetStatusMessage() string { + if x != nil { + return x.StatusMessage + } + return "" +} + +func (x *OperationMetadata) GetRequestedCancellation() bool { + if x != nil { + return x.RequestedCancellation + } + return false +} + +func (x *OperationMetadata) GetApiVersion() string { + if x != nil { + return x.ApiVersion + } + return "" +} + +// Represents migration resource error information that can be used with +// google.rpc.Status message. MigrationError is used to present the user with +// error information in migration operations. +type MigrationError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Output only. The error code. + Code MigrationError_ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=google.cloud.vmmigration.v1.MigrationError_ErrorCode" json:"code,omitempty"` + // Output only. The localized error message. + ErrorMessage *errdetails.LocalizedMessage `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + // Output only. Suggested action for solving the error. + ActionItem *errdetails.LocalizedMessage `protobuf:"bytes,3,opt,name=action_item,json=actionItem,proto3" json:"action_item,omitempty"` + // Output only. URL(s) pointing to additional information on handling the + // current error. + HelpLinks []*errdetails.Help_Link `protobuf:"bytes,4,rep,name=help_links,json=helpLinks,proto3" json:"help_links,omitempty"` + // Output only. The time the error occurred. + ErrorTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=error_time,json=errorTime,proto3" json:"error_time,omitempty"` +} + +func (x *MigrationError) Reset() { + *x = MigrationError{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[102] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MigrationError) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MigrationError) ProtoMessage() {} + +func (x *MigrationError) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[102] + 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 MigrationError.ProtoReflect.Descriptor instead. +func (*MigrationError) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{102} +} + +func (x *MigrationError) GetCode() MigrationError_ErrorCode { + if x != nil { + return x.Code + } + return MigrationError_ERROR_CODE_UNSPECIFIED +} + +func (x *MigrationError) GetErrorMessage() *errdetails.LocalizedMessage { + if x != nil { + return x.ErrorMessage + } + return nil +} + +func (x *MigrationError) GetActionItem() *errdetails.LocalizedMessage { + if x != nil { + return x.ActionItem + } + return nil +} + +func (x *MigrationError) GetHelpLinks() []*errdetails.Help_Link { + if x != nil { + return x.HelpLinks + } + return nil +} + +func (x *MigrationError) GetErrorTime() *timestamppb.Timestamp { + if x != nil { + return x.ErrorTime + } + return nil +} + +// Represent the source AWS VM details. +type AwsSourceVmDetails struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The firmware type of the source VM. + Firmware AwsSourceVmDetails_Firmware `protobuf:"varint,1,opt,name=firmware,proto3,enum=google.cloud.vmmigration.v1.AwsSourceVmDetails_Firmware" json:"firmware,omitempty"` + // The total size of the disks being migrated in bytes. + CommittedStorageBytes int64 `protobuf:"varint,2,opt,name=committed_storage_bytes,json=committedStorageBytes,proto3" json:"committed_storage_bytes,omitempty"` +} + +func (x *AwsSourceVmDetails) Reset() { + *x = AwsSourceVmDetails{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[103] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AwsSourceVmDetails) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AwsSourceVmDetails) ProtoMessage() {} + +func (x *AwsSourceVmDetails) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[103] + 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 AwsSourceVmDetails.ProtoReflect.Descriptor instead. +func (*AwsSourceVmDetails) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{103} +} + +func (x *AwsSourceVmDetails) GetFirmware() AwsSourceVmDetails_Firmware { + if x != nil { + return x.Firmware + } + return AwsSourceVmDetails_FIRMWARE_UNSPECIFIED +} + +func (x *AwsSourceVmDetails) GetCommittedStorageBytes() int64 { + if x != nil { + return x.CommittedStorageBytes + } + return 0 +} + +// Request message for 'LisReplicationCyclesRequest' request. +type ListReplicationCyclesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The parent, which owns this collection of ReplicationCycles. + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + // Optional. The maximum number of replication cycles to return. The service + // may return fewer than this value. If unspecified, at most 100 migrating VMs + // will be returned. The maximum value is 100; values above 100 will be + // coerced to 100. + PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // Required. A page token, received from a previous `ListReplicationCycles` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListReplicationCycles` + // must match the call that provided the page token. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // Optional. The filter request. + Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + // Optional. the order by fields for the result. + OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` +} + +func (x *ListReplicationCyclesRequest) Reset() { + *x = ListReplicationCyclesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[104] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListReplicationCyclesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListReplicationCyclesRequest) ProtoMessage() {} + +func (x *ListReplicationCyclesRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[104] + 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 ListReplicationCyclesRequest.ProtoReflect.Descriptor instead. +func (*ListReplicationCyclesRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{104} +} + +func (x *ListReplicationCyclesRequest) GetParent() string { + if x != nil { + return x.Parent + } + return "" +} + +func (x *ListReplicationCyclesRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *ListReplicationCyclesRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +func (x *ListReplicationCyclesRequest) GetFilter() string { + if x != nil { + return x.Filter + } + return "" +} + +func (x *ListReplicationCyclesRequest) GetOrderBy() string { + if x != nil { + return x.OrderBy + } + return "" +} + +// Response message for 'ListReplicationCycles' request. +type ListReplicationCyclesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Output only. The list of replication cycles response. + ReplicationCycles []*ReplicationCycle `protobuf:"bytes,1,rep,name=replication_cycles,json=replicationCycles,proto3" json:"replication_cycles,omitempty"` + // Output only. A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + // Output only. Locations that could not be reached. + Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` +} + +func (x *ListReplicationCyclesResponse) Reset() { + *x = ListReplicationCyclesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[105] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListReplicationCyclesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListReplicationCyclesResponse) ProtoMessage() {} + +func (x *ListReplicationCyclesResponse) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[105] + 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 ListReplicationCyclesResponse.ProtoReflect.Descriptor instead. +func (*ListReplicationCyclesResponse) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{105} +} + +func (x *ListReplicationCyclesResponse) GetReplicationCycles() []*ReplicationCycle { + if x != nil { + return x.ReplicationCycles + } + return nil +} + +func (x *ListReplicationCyclesResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +func (x *ListReplicationCyclesResponse) GetUnreachable() []string { + if x != nil { + return x.Unreachable + } + return nil +} + +// Request message for 'GetReplicationCycle' request. +type GetReplicationCycleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. The name of the ReplicationCycle. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *GetReplicationCycleRequest) Reset() { + *x = GetReplicationCycleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[106] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetReplicationCycleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetReplicationCycleRequest) ProtoMessage() {} + +func (x *GetReplicationCycleRequest) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[106] + 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 GetReplicationCycleRequest.ProtoReflect.Descriptor instead. +func (*GetReplicationCycleRequest) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{106} +} + +func (x *GetReplicationCycleRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// Message describing AWS Credentials using access key id and secret. +type AwsSourceDetails_AccessKeyCredentials struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // AWS access key ID. + AccessKeyId string `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"` + // Input only. AWS secret access key. + SecretAccessKey string `protobuf:"bytes,2,opt,name=secret_access_key,json=secretAccessKey,proto3" json:"secret_access_key,omitempty"` +} + +func (x *AwsSourceDetails_AccessKeyCredentials) Reset() { + *x = AwsSourceDetails_AccessKeyCredentials{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[109] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AwsSourceDetails_AccessKeyCredentials) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AwsSourceDetails_AccessKeyCredentials) ProtoMessage() {} + +func (x *AwsSourceDetails_AccessKeyCredentials) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[109] + 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 AwsSourceDetails_AccessKeyCredentials.ProtoReflect.Descriptor instead. +func (*AwsSourceDetails_AccessKeyCredentials) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{23, 0} +} + +func (x *AwsSourceDetails_AccessKeyCredentials) GetAccessKeyId() string { + if x != nil { + return x.AccessKeyId + } + return "" +} + +func (x *AwsSourceDetails_AccessKeyCredentials) GetSecretAccessKey() string { + if x != nil { + return x.SecretAccessKey + } + return "" +} + +// Tag is an AWS tag representation. +type AwsSourceDetails_Tag struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Key of tag. + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // Value of tag. + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *AwsSourceDetails_Tag) Reset() { + *x = AwsSourceDetails_Tag{} + if protoimpl.UnsafeEnabled { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[110] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AwsSourceDetails_Tag) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AwsSourceDetails_Tag) ProtoMessage() {} + +func (x *AwsSourceDetails_Tag) ProtoReflect() protoreflect.Message { + mi := &file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[110] + 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 AwsSourceDetails_Tag.ProtoReflect.Descriptor instead. +func (*AwsSourceDetails_Tag) Descriptor() ([]byte, []int) { + return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP(), []int{23, 1} +} + +func (x *AwsSourceDetails_Tag) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *AwsSourceDetails_Tag) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +var File_google_cloud_vmmigration_v1_vmmigration_proto protoreflect.FileDescriptor + +var file_google_cloud_vmmigration_v1_vmmigration_proto_rawDesc = []byte{ + 0x0a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, + 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x6d, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 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, 0x1a, + 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, + 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 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, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x72, 0x70, 0x63, 0x2f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0xee, 0x05, 0x0a, 0x10, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0d, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x79, 0x63, + 0x6c, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x0b, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x0a, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4b, + 0x0a, 0x14, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x70, 0x61, 0x75, 0x73, 0x65, 0x5f, 0x64, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 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, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x61, + 0x75, 0x73, 0x65, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x10, 0x70, + 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x05, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x67, 0x72, + 0x65, 0x73, 0x73, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x3c, 0x0a, 0x05, 0x73, 0x74, + 0x65, 0x70, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x53, 0x74, 0x65, + 0x70, 0x52, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x12, 0x49, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x28, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0c, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x52, 0x0a, + 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, + 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x41, + 0x55, 0x53, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, + 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, + 0x04, 0x3a, 0xad, 0x01, 0xea, 0x41, 0xa9, 0x01, 0x0a, 0x2b, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x7a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x7d, 0x2f, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x7b, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x7d, 0x2f, 0x72, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x72, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x79, 0x63, 0x6c, 0x65, + 0x7d, 0x22, 0xaa, 0x03, 0x0a, 0x09, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x53, 0x74, 0x65, 0x70, 0x12, + 0x75, 0x0a, 0x18, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x69, 0x6e, 0x67, 0x5f, + 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x65, 0x70, 0x48, 0x00, 0x52, 0x17, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0b, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x65, 0x70, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x5a, 0x0a, 0x0f, 0x70, 0x6f, 0x73, 0x74, + 0x5f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x6f, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x53, 0x74, + 0x65, 0x70, 0x48, 0x00, 0x52, 0x0e, 0x70, 0x6f, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x69, 0x6e, 0x67, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x54, 0x69, 0x6d, 0x65, 0x12, 0x5e, 0x0a, 0x11, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, - 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, - 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x42, 0x03, - 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x79, 0x6e, 0x63, - 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3e, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x0f, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, 0x41, 0x03, 0xfa, 0x41, 0x22, 0x12, 0x20, 0x76, 0x6d, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x12, 0x4c, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x10, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x2e, 0x4c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x12, 0x56, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x6f, - 0x6e, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x6e, - 0x65, 0x4a, 0x6f, 0x62, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x72, 0x65, 0x63, 0x65, 0x6e, - 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x03, 0xe0, - 0x41, 0x03, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x5c, 0x0a, 0x13, 0x72, 0x65, 0x63, - 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x6a, 0x6f, 0x62, 0x73, - 0x18, 0x14, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, + 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, 0x22, 0x1d, + 0x0a, 0x1b, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x69, 0x6e, 0x67, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x65, 0x70, 0x22, 0x93, 0x02, + 0x0a, 0x0f, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x65, + 0x70, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x42, 0x79, 0x74, + 0x65, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x72, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x56, 0x0a, + 0x29, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x74, 0x77, 0x6f, 0x5f, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, + 0x73, 0x5f, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, + 0x70, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x23, 0x6c, 0x61, 0x73, 0x74, 0x54, 0x77, 0x6f, 0x4d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x73, + 0x41, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x50, 0x65, 0x72, 0x53, + 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x12, 0x5c, 0x0a, 0x2c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x74, 0x68, + 0x69, 0x72, 0x74, 0x79, 0x5f, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x73, 0x5f, 0x61, 0x76, 0x65, + 0x72, 0x61, 0x67, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x73, + 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x26, 0x6c, 0x61, 0x73, + 0x74, 0x54, 0x68, 0x69, 0x72, 0x74, 0x79, 0x4d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x73, 0x41, 0x76, + 0x65, 0x72, 0x61, 0x67, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x50, 0x65, 0x72, 0x53, 0x65, 0x63, + 0x6f, 0x6e, 0x64, 0x22, 0x14, 0x0a, 0x12, 0x50, 0x6f, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x65, 0x70, 0x22, 0x53, 0x0a, 0x0f, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x79, 0x6e, 0x63, 0x12, 0x40, 0x0a, 0x0e, + 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x94, + 0x0d, 0x0a, 0x0b, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x12, 0x7f, + 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, + 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x42, - 0x03, 0xe0, 0x41, 0x03, 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x43, 0x75, 0x74, 0x6f, - 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x22, 0xb7, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, - 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, - 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, - 0x12, 0x09, 0x0a, 0x05, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x46, - 0x49, 0x52, 0x53, 0x54, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x41, - 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x55, 0x54, 0x54, 0x49, - 0x4e, 0x47, 0x5f, 0x4f, 0x56, 0x45, 0x52, 0x10, 0x07, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x55, 0x54, - 0x4f, 0x56, 0x45, 0x52, 0x10, 0x08, 0x12, 0x0e, 0x0a, 0x0a, 0x46, 0x49, 0x4e, 0x41, 0x4c, 0x5f, - 0x53, 0x59, 0x4e, 0x43, 0x10, 0x09, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x41, 0x55, 0x53, 0x45, 0x44, - 0x10, 0x0a, 0x12, 0x0e, 0x0a, 0x0a, 0x46, 0x49, 0x4e, 0x41, 0x4c, 0x49, 0x5a, 0x49, 0x4e, 0x47, - 0x10, 0x0b, 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x49, 0x4e, 0x41, 0x4c, 0x49, 0x5a, 0x45, 0x44, 0x10, - 0x0c, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x0d, 0x3a, 0x81, 0x01, 0xea, - 0x41, 0x7e, 0x0a, 0x26, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x12, 0x54, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x7d, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x7d, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, - 0x73, 0x2f, 0x7b, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x7d, - 0x42, 0x14, 0x0a, 0x12, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x6d, 0x5f, 0x64, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x8e, 0x06, 0x0a, 0x08, 0x43, 0x6c, 0x6f, 0x6e, 0x65, - 0x4a, 0x6f, 0x62, 0x12, 0x81, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, - 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x64, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, - 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x48, 0x00, 0x52, 0x1a, 0x63, 0x6f, 0x6d, - 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x65, 0x6e, 0x64, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x65, 0x6e, - 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x46, - 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x6e, - 0x65, 0x4a, 0x6f, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, - 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, - 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, - 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x82, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, - 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, - 0x47, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x12, - 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, - 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x41, - 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x41, 0x4e, - 0x43, 0x45, 0x4c, 0x4c, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x44, 0x41, - 0x50, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x4f, 0x53, 0x10, 0x07, 0x3a, 0x95, 0x01, 0xea, 0x41, 0x91, - 0x01, 0x0a, 0x23, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6c, - 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x6a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, - 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x7d, - 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x7b, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x7d, 0x2f, 0x63, 0x6c, 0x6f, - 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x6a, 0x6f, - 0x62, 0x7d, 0x42, 0x13, 0x0a, 0x11, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x6d, 0x5f, - 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xf2, 0x06, 0x0a, 0x0a, 0x43, 0x75, 0x74, 0x6f, - 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x12, 0x81, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x70, 0x75, - 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, + 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x48, 0x00, 0x52, 0x1b, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, + 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, + 0x69, 0x0a, 0x15, 0x61, 0x77, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x76, 0x6d, + 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, - 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x48, 0x00, 0x52, 0x1a, - 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, - 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x08, - 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, - 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x48, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, - 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, - 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, - 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x10, 0x70, - 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, - 0x0d, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x67, - 0x72, 0x65, 0x73, 0x73, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x05, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x03, - 0xe0, 0x41, 0x03, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x28, 0x0a, 0x0d, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x22, 0x82, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, - 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, - 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, - 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0d, - 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0d, 0x0a, - 0x09, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0e, 0x0a, 0x0a, - 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, - 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x06, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x44, 0x41, 0x50, - 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x4f, 0x53, 0x10, 0x07, 0x3a, 0x9b, 0x01, 0xea, 0x41, 0x97, 0x01, - 0x0a, 0x25, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x75, 0x74, - 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x12, 0x6e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, - 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x7d, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x7b, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x7d, 0x2f, 0x63, 0x75, - 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x73, 0x2f, 0x7b, 0x63, 0x75, 0x74, 0x6f, 0x76, - 0x65, 0x72, 0x5f, 0x6a, 0x6f, 0x62, 0x7d, 0x42, 0x13, 0x0a, 0x11, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x5f, 0x76, 0x6d, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xeb, 0x01, 0x0a, - 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x25, 0x12, 0x23, - 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6c, 0x6f, 0x6e, 0x65, - 0x4a, 0x6f, 0x62, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0c, 0x63, - 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, - 0x49, 0x64, 0x12, 0x47, 0x0a, 0x09, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x42, 0x03, 0xe0, 0x41, - 0x02, 0x52, 0x08, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x1d, 0x0a, 0x0a, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x58, 0x0a, 0x15, 0x43, 0x61, - 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x2b, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x25, 0x0a, 0x23, 0x76, 0x6d, 0x6d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x18, 0x0a, 0x16, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x6c, - 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xde, - 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x25, 0x12, - 0x23, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6c, 0x6f, 0x6e, - 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, - 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, - 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, - 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, - 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, - 0xb6, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0a, 0x63, 0x6c, 0x6f, - 0x6e, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x6e, - 0x65, 0x4a, 0x6f, 0x62, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x63, 0x6c, 0x6f, 0x6e, 0x65, - 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x2b, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, - 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, - 0x41, 0x03, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x12, 0x25, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x75, 0x6e, 0x72, - 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x55, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, - 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xe0, 0x41, - 0x02, 0xfa, 0x41, 0x25, 0x0a, 0x23, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, - 0x8b, 0x04, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x06, 0x76, 0x6d, - 0x77, 0x61, 0x72, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x77, 0x73, + 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, 0x6d, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x42, + 0x03, 0xe0, 0x41, 0x03, 0x48, 0x01, 0x52, 0x12, 0x61, 0x77, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x56, 0x6d, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x76, 0x6d, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x56, 0x6d, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, + 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 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, 0x43, 0x0a, 0x06, 0x70, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x53, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x48, 0x00, 0x52, 0x06, - 0x76, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, + 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, - 0x69, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x20, 0x0a, 0x0b, - 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x39, - 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x60, 0xea, 0x41, 0x5d, 0x0a, 0x21, - 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x12, 0x38, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x7d, 0x42, 0x10, 0x0a, 0x0e, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x91, 0x01, - 0x0a, 0x13, 0x56, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x70, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x49, - 0x70, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x70, 0x72, 0x69, 0x6e, - 0x74, 0x22, 0xbe, 0x08, 0x0a, 0x13, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, - 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, - 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x03, 0xe0, 0x41, 0x05, 0x52, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, - 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x62, 0x75, - 0x63, 0x6b, 0x65, 0x74, 0x12, 0x51, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, - 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x69, 0x6d, 0x65, 0x12, 0x4e, 0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x79, 0x6e, 0x63, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x53, 0x79, 0x6e, 0x63, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x53, + 0x79, 0x6e, 0x63, 0x12, 0x49, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x17, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, + 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x16, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, + 0xe0, 0x41, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x5e, + 0x0a, 0x11, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x69, + 0x6e, 0x66, 0x6f, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x63, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3e, + 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, + 0x41, 0x03, 0xfa, 0x41, 0x22, 0x12, 0x20, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x4c, + 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x10, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x56, 0x0a, 0x11, + 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x6a, 0x6f, 0x62, + 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x42, 0x03, + 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, + 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x13, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, + 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x12, 0x5c, 0x0a, 0x13, 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x75, + 0x74, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x14, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x11, + 0x72, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, + 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb7, 0x01, 0x0a, + 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, + 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x45, + 0x41, 0x44, 0x59, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x46, 0x49, 0x52, 0x53, 0x54, 0x5f, 0x53, + 0x59, 0x4e, 0x43, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, + 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x55, 0x54, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x4f, 0x56, 0x45, + 0x52, 0x10, 0x07, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x55, 0x54, 0x4f, 0x56, 0x45, 0x52, 0x10, 0x08, + 0x12, 0x0e, 0x0a, 0x0a, 0x46, 0x49, 0x4e, 0x41, 0x4c, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x09, + 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x41, 0x55, 0x53, 0x45, 0x44, 0x10, 0x0a, 0x12, 0x0e, 0x0a, 0x0a, + 0x46, 0x49, 0x4e, 0x41, 0x4c, 0x49, 0x5a, 0x49, 0x4e, 0x47, 0x10, 0x0b, 0x12, 0x0d, 0x0a, 0x09, + 0x46, 0x49, 0x4e, 0x41, 0x4c, 0x49, 0x5a, 0x45, 0x44, 0x10, 0x0c, 0x12, 0x09, 0x0a, 0x05, 0x45, + 0x52, 0x52, 0x4f, 0x52, 0x10, 0x0d, 0x3a, 0x81, 0x01, 0xea, 0x41, 0x7e, 0x0a, 0x26, 0x76, 0x6d, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6e, 0x67, 0x56, 0x6d, 0x12, 0x54, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x7d, 0x2f, 0x6d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x7b, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x7d, 0x42, 0x14, 0x0a, 0x12, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x6d, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x42, 0x13, 0x0a, 0x11, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x76, 0x6d, 0x5f, 0x64, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xd1, 0x06, 0x0a, 0x08, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, + 0x6f, 0x62, 0x12, 0x81, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x65, + 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, + 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x48, 0x00, 0x52, 0x1a, 0x63, 0x6f, 0x6d, 0x70, + 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, - 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x4d, 0x0a, 0x20, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x61, - 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, - 0x72, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x1e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, - 0x49, 0x6e, 0x66, 0x72, 0x61, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x1a, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, - 0x63, 0x65, 0x5f, 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x18, - 0x61, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, - 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x61, 0x0a, 0x12, 0x61, 0x76, 0x61, 0x69, - 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0f, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x11, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, - 0x62, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x56, 0x0a, 0x0e, 0x75, - 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x10, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x46, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x6e, 0x65, + 0x4a, 0x6f, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x11, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, + 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x12, 0x41, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x17, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, - 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x22, 0x50, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, - 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, - 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, - 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x46, 0x46, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, - 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, - 0x49, 0x56, 0x45, 0x10, 0x04, 0x3a, 0x9a, 0x01, 0xea, 0x41, 0x96, 0x01, 0x0a, 0x2e, 0x76, 0x6d, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, - 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x64, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, - 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, - 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, - 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x7d, 0x22, 0xc9, 0x02, 0x0a, 0x0d, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x46, - 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, + 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x53, 0x74, 0x65, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, + 0x52, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x22, 0x82, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, + 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, + 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, + 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0d, 0x0a, + 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09, + 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x43, + 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x12, 0x0f, 0x0a, 0x0b, 0x41, + 0x44, 0x41, 0x50, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x4f, 0x53, 0x10, 0x07, 0x3a, 0x95, 0x01, 0xea, + 0x41, 0x91, 0x01, 0x0a, 0x23, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x6a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x7d, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x7d, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, + 0x7b, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x7d, 0x2f, 0x63, + 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, + 0x6a, 0x6f, 0x62, 0x7d, 0x42, 0x13, 0x0a, 0x11, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x76, + 0x6d, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xb0, 0x03, 0x0a, 0x09, 0x43, 0x6c, + 0x6f, 0x6e, 0x65, 0x53, 0x74, 0x65, 0x70, 0x12, 0x4e, 0x0a, 0x0b, 0x61, 0x64, 0x61, 0x70, 0x74, + 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x61, 0x70, 0x74, + 0x69, 0x6e, 0x67, 0x4f, 0x53, 0x53, 0x74, 0x65, 0x70, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x64, 0x61, + 0x70, 0x74, 0x69, 0x6e, 0x67, 0x4f, 0x73, 0x12, 0x61, 0x0a, 0x12, 0x70, 0x72, 0x65, 0x70, 0x61, + 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x5f, 0x64, 0x69, 0x73, 0x6b, 0x73, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x4d, 0x44, 0x69, 0x73, + 0x6b, 0x73, 0x53, 0x74, 0x65, 0x70, 0x48, 0x00, 0x52, 0x10, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, + 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x44, 0x69, 0x73, 0x6b, 0x73, 0x12, 0x76, 0x0a, 0x19, 0x69, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x74, 0x69, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x76, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x67, 0x72, - 0x61, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, - 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x28, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, - 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x70, - 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x46, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, - 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, - 0x47, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, - 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x03, 0x22, 0xd2, - 0x01, 0x0a, 0x10, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x73, 0x12, 0x67, 0x0a, 0x18, 0x6e, 0x65, 0x77, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x16, 0x6e, 0x65, 0x77, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x61, - 0x62, 0x6c, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x55, 0x0a, 0x0f, - 0x69, 0x6e, 0x5f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x69, 0x6e, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x22, 0x86, 0x01, 0x0a, 0x10, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, - 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x75, 0x72, 0x69, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x72, 0x69, 0x74, 0x69, 0x63, 0x61, 0x6c, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x63, 0x72, 0x69, 0x74, 0x69, 0x63, 0x61, 0x6c, - 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x6e, 0x6f, 0x74, 0x65, - 0x73, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x6c, - 0x65, 0x61, 0x73, 0x65, 0x4e, 0x6f, 0x74, 0x65, 0x73, 0x55, 0x72, 0x69, 0x22, 0xda, 0x01, 0x0a, - 0x12, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x12, 0x21, 0x76, 0x6d, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, - 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, - 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, - 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, - 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, - 0x02, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, - 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, - 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, - 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0xad, 0x01, 0x0a, 0x13, 0x4c, 0x69, - 0x73, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x42, 0x0a, 0x07, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, - 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, - 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x12, 0x25, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, - 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x75, 0x6e, - 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x51, 0x0a, 0x10, 0x47, 0x65, 0x74, - 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, 0xe0, 0x41, 0x02, - 0xfa, 0x41, 0x23, 0x0a, 0x21, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x74, 0x69, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, + 0x64, 0x56, 0x4d, 0x53, 0x74, 0x65, 0x70, 0x48, 0x00, 0x52, 0x17, 0x69, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x74, 0x69, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x64, + 0x56, 0x6d, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, + 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, + 0x54, 0x69, 0x6d, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, 0x22, 0x10, 0x0a, 0x0e, + 0x41, 0x64, 0x61, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x4f, 0x53, 0x53, 0x74, 0x65, 0x70, 0x22, 0x16, + 0x0a, 0x14, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x4d, 0x44, 0x69, 0x73, + 0x6b, 0x73, 0x53, 0x74, 0x65, 0x70, 0x22, 0x1d, 0x0a, 0x1b, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x74, 0x69, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x64, 0x56, + 0x4d, 0x53, 0x74, 0x65, 0x70, 0x22, 0xb7, 0x07, 0x0a, 0x0a, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, + 0x72, 0x4a, 0x6f, 0x62, 0x12, 0x81, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, + 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x64, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, + 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x48, 0x00, 0x52, 0x1a, 0x63, 0x6f, + 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x65, 0x6e, + 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x65, + 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x48, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x74, + 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, + 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x10, 0x70, 0x72, 0x6f, + 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x0d, 0x20, + 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x03, 0xe0, 0x41, + 0x03, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x28, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x12, 0x43, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x53, 0x74, 0x65, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, + 0x52, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x22, 0x82, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, + 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, + 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, + 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x03, + 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x12, + 0x0e, 0x0a, 0x0a, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12, + 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x06, 0x12, 0x0f, 0x0a, 0x0b, 0x41, + 0x44, 0x41, 0x50, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x4f, 0x53, 0x10, 0x07, 0x3a, 0x9b, 0x01, 0xea, + 0x41, 0x97, 0x01, 0x0a, 0x25, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xdb, 0x01, 0x0a, - 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x12, 0x21, 0x76, 0x6d, + 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x12, 0x6e, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, + 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x7d, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x7d, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, + 0x73, 0x2f, 0x7b, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x7d, + 0x2f, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x73, 0x2f, 0x7b, 0x63, 0x75, + 0x74, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x6a, 0x6f, 0x62, 0x7d, 0x42, 0x13, 0x0a, 0x11, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x6d, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, + 0x91, 0x05, 0x0a, 0x0b, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x53, 0x74, 0x65, 0x70, 0x12, + 0x6d, 0x0a, 0x1a, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x79, 0x63, + 0x6c, 0x65, 0x48, 0x00, 0x52, 0x18, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x12, 0x6e, + 0x0a, 0x17, 0x73, 0x68, 0x75, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x5f, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x76, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, + 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, + 0x75, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x44, 0x6f, 0x77, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x56, 0x4d, 0x53, 0x74, 0x65, 0x70, 0x48, 0x00, 0x52, 0x14, 0x73, 0x68, 0x75, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x44, 0x6f, 0x77, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, 0x6d, 0x12, 0x4e, + 0x0a, 0x0a, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x79, 0x63, 0x6c, + 0x65, 0x48, 0x00, 0x52, 0x09, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x79, 0x6e, 0x63, 0x12, 0x61, + 0x0a, 0x12, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x5f, 0x64, + 0x69, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x69, + 0x6e, 0x67, 0x56, 0x4d, 0x44, 0x69, 0x73, 0x6b, 0x73, 0x53, 0x74, 0x65, 0x70, 0x48, 0x00, 0x52, + 0x10, 0x70, 0x72, 0x65, 0x70, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x44, 0x69, 0x73, 0x6b, + 0x73, 0x12, 0x76, 0x0a, 0x19, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x69, 0x61, 0x74, 0x69, + 0x6e, 0x67, 0x5f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x76, 0x6d, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x69, 0x61, 0x74, 0x69, 0x6e, 0x67, + 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x64, 0x56, 0x4d, 0x53, 0x74, 0x65, 0x70, 0x48, 0x00, + 0x52, 0x17, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x69, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x4d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x64, 0x56, 0x6d, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x73, + 0x74, 0x65, 0x70, 0x22, 0x1a, 0x0a, 0x18, 0x53, 0x68, 0x75, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x44, + 0x6f, 0x77, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, 0x4d, 0x53, 0x74, 0x65, 0x70, 0x22, + 0xeb, 0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, + 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x06, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xe0, 0x41, 0x02, 0xfa, 0x41, + 0x25, 0x12, 0x23, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6c, + 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x25, + 0x0a, 0x0c, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x63, 0x6c, 0x6f, 0x6e, 0x65, + 0x4a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x47, 0x0a, 0x09, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x6a, + 0x6f, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x1d, + 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x58, 0x0a, + 0x15, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x25, 0x0a, 0x23, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, - 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, - 0x08, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x40, 0x0a, 0x06, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, + 0x62, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x18, 0x0a, 0x16, 0x43, 0x61, 0x6e, 0x63, 0x65, + 0x6c, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0xde, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, + 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x06, 0x70, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xe0, 0x41, 0x02, 0xfa, + 0x41, 0x25, 0x12, 0x23, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, + 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, + 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, + 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x42, 0x79, 0x22, 0xb6, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, + 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0a, + 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x63, 0x6c, + 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x2b, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x25, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, + 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, + 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x55, 0x0a, 0x12, 0x47, + 0x65, 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x3f, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x2b, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x25, 0x0a, 0x23, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x22, 0xce, 0x04, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x4a, 0x0a, + 0x06, 0x76, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6d, 0x77, 0x61, + 0x72, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x48, + 0x00, 0x52, 0x06, 0x76, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x12, 0x41, 0x0a, 0x03, 0x61, 0x77, 0x73, + 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x77, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x48, 0x00, 0x52, 0x03, 0x61, 0x77, 0x73, 0x12, 0x17, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x06, 0x6c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x03, - 0xe0, 0x41, 0x02, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0xb3, 0x01, 0x0a, 0x13, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, - 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, - 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, - 0x40, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x4c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, + 0x60, 0xea, 0x41, 0x5d, 0x0a, 0x21, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x38, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, + 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x7d, 0x42, 0x10, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x73, 0x22, 0x91, 0x01, 0x0a, 0x13, 0x56, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x75, + 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, + 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x08, + 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x63, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x5f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x63, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x49, 0x70, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x68, 0x75, 0x6d, 0x62, + 0x70, 0x72, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x68, 0x75, + 0x6d, 0x62, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x22, 0xc4, 0x07, 0x0a, 0x10, 0x41, 0x77, 0x73, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x6e, 0x0a, 0x10, + 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x73, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x77, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x43, + 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x43, 0x72, 0x65, 0x64, 0x73, 0x12, 0x22, 0x0a, 0x0a, + 0x61, 0x77, 0x73, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x05, 0x52, 0x09, 0x61, 0x77, 0x73, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x12, 0x4e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, + 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x77, + 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, + 0x5f, 0x0a, 0x12, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x74, 0x61, 0x67, + 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x77, 0x73, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x10, + 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x61, 0x67, 0x4c, 0x69, 0x73, 0x74, + 0x12, 0x43, 0x0a, 0x1e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x73, 0x65, + 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x1b, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x90, 0x01, 0x0a, 0x1d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x5f, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x74, 0x61, 0x67, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4d, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x77, 0x73, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x4d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x55, + 0x73, 0x65, 0x72, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x1a, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x67, 0x73, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x5f, 0x69, 0x70, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, + 0x52, 0x08, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x70, 0x1a, 0x6b, 0x0a, 0x14, 0x41, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, + 0x6c, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x11, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, + 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x0f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x41, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x1a, 0x2d, 0x0a, 0x03, 0x54, 0x61, 0x67, 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, 0x1a, 0x4d, 0x0a, 0x1f, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x55, 0x73, 0x65, 0x72, + 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 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, 0x43, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, + 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, + 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0a, + 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x03, 0x42, 0x12, 0x0a, 0x10, 0x63, 0x72, + 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0xbe, + 0x08, 0x0a, 0x13, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, + 0x05, 0x52, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 0x65, + 0x74, 0x12, 0x51, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, + 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x12, 0x4d, 0x0a, 0x20, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, + 0x5f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x5f, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, + 0x41, 0x03, 0x52, 0x1e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x66, + 0x72, 0x61, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x1a, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x5f, + 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x18, 0x61, 0x70, 0x70, + 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x61, 0x0a, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, + 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x11, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x56, 0x0a, 0x0e, 0x75, 0x70, 0x67, 0x72, + 0x61, 0x64, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x03, 0xe0, 0x41, + 0x03, 0x52, 0x0d, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x22, 0x50, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, + 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, + 0x07, 0x4f, 0x46, 0x46, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, + 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, + 0x10, 0x04, 0x3a, 0x9a, 0x01, 0xea, 0x41, 0x96, 0x01, 0x0a, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x64, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x7d, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x7d, 0x22, + 0xc9, 0x02, 0x0a, 0x0d, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x28, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x39, 0x0a, + 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x65, 0x76, + 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x22, 0x46, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, + 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, + 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, + 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, + 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x03, 0x22, 0xd2, 0x01, 0x0a, 0x10, + 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, + 0x12, 0x67, 0x0a, 0x18, 0x6e, 0x65, 0x77, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x16, 0x6e, 0x65, 0x77, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x61, 0x62, 0x6c, 0x65, + 0x41, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x55, 0x0a, 0x0f, 0x69, 0x6e, 0x5f, + 0x70, 0x6c, 0x61, 0x63, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x0d, 0x69, 0x6e, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x22, 0x86, 0x01, 0x0a, 0x10, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, + 0x69, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x72, 0x69, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x08, 0x63, 0x72, 0x69, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x12, 0x2a, 0x0a, + 0x11, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x5f, 0x75, + 0x72, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, + 0x65, 0x4e, 0x6f, 0x74, 0x65, 0x73, 0x55, 0x72, 0x69, 0x22, 0xda, 0x01, 0x0a, 0x12, 0x4c, 0x69, + 0x73, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x41, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x12, 0x21, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, + 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, + 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, + 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, + 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0xad, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, + 0x0a, 0x07, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, - 0x22, 0x78, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x0a, 0x21, 0x76, - 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, - 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x7f, 0x0a, 0x15, 0x46, 0x65, - 0x74, 0x63, 0x68, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x0a, 0x21, 0x76, 0x6d, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, - 0x72, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x66, - 0x6f, 0x72, 0x63, 0x65, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x22, 0xb3, 0x05, 0x0a, 0x0f, - 0x56, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x56, 0x6d, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, - 0x13, 0x0a, 0x05, 0x76, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x76, 0x6d, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x61, 0x74, - 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x16, 0x64, 0x61, 0x74, - 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x64, 0x61, 0x74, 0x61, 0x63, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x75, 0x75, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, - 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x58, 0x0a, 0x0b, 0x70, 0x6f, 0x77, 0x65, 0x72, - 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x67, + 0x75, 0x72, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, + 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, + 0x25, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, + 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x51, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, + 0x0a, 0x21, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xdb, 0x01, 0x0a, 0x13, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x41, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x12, 0x21, 0x76, 0x6d, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x70, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x40, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, + 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0xb3, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, + 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x40, 0x0a, 0x06, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6d, 0x77, 0x61, 0x72, - 0x65, 0x56, 0x6d, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x50, 0x6f, 0x77, 0x65, 0x72, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0a, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x70, 0x75, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x70, 0x75, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, - 0x0a, 0x09, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x6d, 0x62, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x08, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x4d, 0x62, 0x12, 0x1d, 0x0a, 0x0a, 0x64, - 0x69, 0x73, 0x6b, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x09, 0x64, 0x69, 0x73, 0x6b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6f, - 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, - 0x6d, 0x62, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, - 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4d, 0x62, 0x12, 0x2b, 0x0a, 0x11, - 0x67, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x67, 0x75, 0x65, 0x73, 0x74, 0x44, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5d, 0x0a, 0x0b, 0x62, 0x6f, 0x6f, - 0x74, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1d, + 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x78, 0x0a, + 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x0a, 0x21, 0x76, 0x6d, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x7f, 0x0a, 0x15, 0x46, 0x65, 0x74, 0x63, 0x68, + 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x41, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x0a, 0x21, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x66, + 0x72, 0x65, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x66, 0x6f, 0x72, 0x63, + 0x65, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x22, 0xb3, 0x05, 0x0a, 0x0f, 0x56, 0x6d, 0x77, + 0x61, 0x72, 0x65, 0x56, 0x6d, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x13, 0x0a, 0x05, + 0x76, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x76, 0x6d, 0x49, + 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x16, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, + 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, + 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x58, 0x0a, 0x0b, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x56, 0x6d, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x52, 0x0a, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1b, + 0x0a, 0x09, 0x63, 0x70, 0x75, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x08, 0x63, 0x70, 0x75, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, + 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x6d, 0x62, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, + 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x4d, 0x62, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x69, 0x73, 0x6b, + 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x64, 0x69, + 0x73, 0x6b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6d, 0x62, 0x18, + 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, + 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4d, 0x62, 0x12, 0x2b, 0x0a, 0x11, 0x67, 0x75, 0x65, + 0x73, 0x74, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x67, 0x75, 0x65, 0x73, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5d, 0x0a, 0x0b, 0x62, 0x6f, 0x6f, 0x74, 0x5f, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6d, 0x77, 0x61, 0x72, 0x65, + 0x56, 0x6d, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x42, 0x6f, 0x6f, 0x74, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x62, 0x6f, 0x6f, 0x74, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x49, 0x0a, 0x0a, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x46, 0x46, 0x10, + 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x53, 0x50, 0x45, 0x4e, 0x44, 0x45, 0x44, 0x10, 0x03, + 0x22, 0x3c, 0x0a, 0x0a, 0x42, 0x6f, 0x6f, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, + 0x0a, 0x17, 0x42, 0x4f, 0x4f, 0x54, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, + 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x45, + 0x46, 0x49, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x49, 0x4f, 0x53, 0x10, 0x02, 0x22, 0xc4, + 0x0a, 0x0a, 0x0c, 0x41, 0x77, 0x73, 0x56, 0x6d, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, + 0x13, 0x0a, 0x05, 0x76, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x76, 0x6d, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, + 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x11, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x5a, 0x0a, 0x0b, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x77, 0x73, 0x56, 0x6d, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x73, 0x2e, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, + 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x1b, 0x0a, 0x09, 0x63, 0x70, 0x75, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x08, 0x63, 0x70, 0x75, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, + 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x6d, 0x62, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x08, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x4d, 0x62, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x69, 0x73, + 0x6b, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x64, + 0x69, 0x73, 0x6b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6d, 0x62, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, + 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4d, 0x62, 0x12, 0x25, 0x0a, 0x0e, 0x6f, 0x73, + 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x73, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x55, 0x0a, 0x0b, 0x62, 0x6f, 0x6f, 0x74, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x77, 0x73, 0x56, 0x6d, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x2e, 0x42, 0x6f, 0x6f, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x62, 0x6f, + 0x6f, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, + 0x06, 0x76, 0x70, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x70, 0x63, 0x49, 0x64, 0x12, 0x56, 0x0a, 0x0f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, + 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x77, 0x73, 0x53, + 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0e, 0x73, 0x65, + 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x47, 0x0a, 0x04, + 0x74, 0x61, 0x67, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x77, 0x73, 0x56, 0x6d, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x10, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x7a, 0x6f, 0x6e, 0x65, 0x12, 0x6f, 0x0a, 0x13, 0x76, 0x69, 0x72, + 0x74, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x11, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x77, 0x73, 0x56, 0x6d, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x2e, 0x56, 0x6d, 0x56, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x12, 0x76, 0x69, 0x72, 0x74, 0x75, 0x61, 0x6c, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x5c, 0x0a, 0x0c, 0x61, 0x72, + 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, + 0x77, 0x73, 0x56, 0x6d, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x56, 0x6d, 0x41, 0x72, + 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, + 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 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, 0x56, 0x0a, 0x0a, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, + 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x46, 0x46, 0x10, 0x02, 0x12, 0x0d, 0x0a, + 0x09, 0x53, 0x55, 0x53, 0x50, 0x45, 0x4e, 0x44, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, + 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x22, 0x3c, 0x0a, 0x0a, 0x42, 0x6f, 0x6f, + 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x42, 0x4f, 0x4f, 0x54, 0x5f, + 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, + 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x45, 0x46, 0x49, 0x10, 0x01, 0x12, 0x08, 0x0a, + 0x04, 0x42, 0x49, 0x4f, 0x53, 0x10, 0x02, 0x22, 0x58, 0x0a, 0x14, 0x56, 0x6d, 0x56, 0x69, 0x72, + 0x74, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x26, 0x0a, 0x22, 0x56, 0x4d, 0x5f, 0x56, 0x49, 0x52, 0x54, 0x55, 0x41, 0x4c, 0x49, 0x5a, 0x41, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x48, 0x56, 0x4d, 0x10, 0x01, + 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x41, 0x52, 0x41, 0x56, 0x49, 0x52, 0x54, 0x55, 0x41, 0x4c, 0x10, + 0x02, 0x22, 0x62, 0x0a, 0x0e, 0x56, 0x6d, 0x41, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, + 0x75, 0x72, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x56, 0x4d, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, + 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, + 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x33, 0x38, 0x36, 0x10, 0x01, 0x12, 0x0a, + 0x0a, 0x06, 0x58, 0x38, 0x36, 0x5f, 0x36, 0x34, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x52, + 0x4d, 0x36, 0x34, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x58, 0x38, 0x36, 0x5f, 0x36, 0x34, 0x5f, + 0x4d, 0x41, 0x43, 0x10, 0x04, 0x22, 0x36, 0x0a, 0x10, 0x41, 0x77, 0x73, 0x53, 0x65, 0x63, 0x75, + 0x72, 0x69, 0x74, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x5a, 0x0a, + 0x10, 0x56, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x56, 0x6d, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x12, 0x46, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x56, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x56, 0x6d, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, + 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x54, 0x0a, 0x0d, 0x41, 0x77, 0x73, + 0x56, 0x6d, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x43, 0x0a, 0x07, 0x64, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x77, 0x73, 0x56, 0x6d, 0x44, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, + 0xfe, 0x01, 0x0a, 0x16, 0x46, 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x0a, 0x76, 0x6d, + 0x77, 0x61, 0x72, 0x65, 0x5f, 0x76, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6d, 0x77, - 0x61, 0x72, 0x65, 0x56, 0x6d, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x42, 0x6f, 0x6f, - 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x62, 0x6f, - 0x6f, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x49, 0x0a, 0x0a, 0x50, 0x6f, 0x77, 0x65, - 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, - 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x4f, - 0x46, 0x46, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x53, 0x50, 0x45, 0x4e, 0x44, 0x45, - 0x44, 0x10, 0x03, 0x22, 0x3c, 0x0a, 0x0a, 0x42, 0x6f, 0x6f, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x42, 0x4f, 0x4f, 0x54, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, - 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, - 0x0a, 0x03, 0x45, 0x46, 0x49, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x49, 0x4f, 0x53, 0x10, - 0x02, 0x22, 0x5a, 0x0a, 0x10, 0x56, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x56, 0x6d, 0x73, 0x44, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x46, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x56, 0x6d, 0x44, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xb7, 0x01, - 0x0a, 0x16, 0x46, 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x0a, 0x76, 0x6d, 0x77, 0x61, - 0x72, 0x65, 0x5f, 0x76, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6d, 0x77, 0x61, 0x72, - 0x65, 0x56, 0x6d, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x48, 0x00, 0x52, 0x09, 0x76, - 0x6d, 0x77, 0x61, 0x72, 0x65, 0x56, 0x6d, 0x73, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x56, 0x6d, 0x73, 0x22, 0xfb, 0x06, 0x0a, 0x11, 0x55, 0x74, 0x69, 0x6c, - 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x17, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, - 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, - 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x4f, 0x0a, 0x05, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x61, 0x72, 0x65, 0x56, 0x6d, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x48, 0x00, 0x52, + 0x09, 0x76, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x56, 0x6d, 0x73, 0x12, 0x45, 0x0a, 0x07, 0x61, 0x77, + 0x73, 0x5f, 0x76, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x77, 0x73, 0x56, 0x6d, 0x73, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x48, 0x00, 0x52, 0x06, 0x61, 0x77, 0x73, 0x56, 0x6d, + 0x73, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, + 0x69, 0x6d, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, 0x6d, 0x73, + 0x22, 0xfb, 0x06, 0x0a, 0x11, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x4f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x54, + 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x57, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x66, 0x72, 0x61, + 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, - 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, - 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x03, 0xe0, - 0x41, 0x03, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, - 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x57, 0x0a, 0x0a, 0x74, - 0x69, 0x6d, 0x65, 0x5f, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, - 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x74, - 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x46, - 0x72, 0x61, 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x0e, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x5f, 0x65, 0x6e, - 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c, 0x66, - 0x72, 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x08, 0x76, - 0x6d, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, - 0x41, 0x03, 0x52, 0x07, 0x76, 0x6d, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x40, 0x0a, 0x03, 0x76, - 0x6d, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6d, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x03, 0x76, 0x6d, 0x73, 0x22, 0x47, 0x0a, - 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, - 0x08, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, - 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, - 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x22, 0x46, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x46, 0x72, - 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x46, 0x52, 0x41, 0x4d, - 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, - 0x08, 0x0a, 0x04, 0x57, 0x45, 0x45, 0x4b, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4d, 0x4f, 0x4e, - 0x54, 0x48, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x59, 0x45, 0x41, 0x52, 0x10, 0x03, 0x3a, 0x94, - 0x01, 0xea, 0x41, 0x90, 0x01, 0x0a, 0x2c, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, - 0x6f, 0x72, 0x74, 0x12, 0x60, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x7d, 0x2f, 0x75, 0x74, - 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, - 0x2f, 0x7b, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x7d, 0x22, 0xe6, 0x01, 0x0a, 0x11, 0x56, 0x6d, 0x55, 0x74, 0x69, 0x6c, - 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x5a, 0x0a, 0x11, 0x76, - 0x6d, 0x77, 0x61, 0x72, 0x65, 0x5f, 0x76, 0x6d, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x56, 0x6d, 0x44, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x73, 0x48, 0x00, 0x52, 0x0f, 0x76, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x56, 0x6d, - 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x13, 0x0a, 0x05, 0x76, 0x6d, 0x5f, 0x69, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x76, 0x6d, 0x49, 0x64, 0x12, 0x53, 0x0a, 0x0b, - 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x46, 0x72, 0x61, + 0x6d, 0x65, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x12, 0x45, 0x0a, + 0x0e, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x64, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x08, 0x76, 0x6d, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x76, 0x6d, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x40, 0x0a, 0x03, 0x76, 0x6d, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x56, 0x6d, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, - 0x72, 0x69, 0x63, 0x73, 0x52, 0x0b, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x42, 0x0b, 0x0a, 0x09, 0x56, 0x6d, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xc4, - 0x03, 0x0a, 0x14, 0x56, 0x6d, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x63, 0x70, 0x75, 0x5f, 0x6d, - 0x61, 0x78, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x0d, 0x63, 0x70, 0x75, 0x4d, 0x61, 0x78, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, - 0x2e, 0x0a, 0x13, 0x63, 0x70, 0x75, 0x5f, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x70, - 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x63, 0x70, - 0x75, 0x41, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, - 0x2c, 0x0a, 0x12, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x65, - 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x6d, 0x65, 0x6d, - 0x6f, 0x72, 0x79, 0x4d, 0x61, 0x78, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x34, 0x0a, - 0x16, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, - 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x6d, - 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x41, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x63, - 0x65, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x15, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x69, 0x6f, 0x5f, 0x72, - 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x6b, 0x62, 0x70, 0x73, 0x18, 0x0d, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x11, 0x64, 0x69, 0x73, 0x6b, 0x49, 0x6f, 0x52, 0x61, 0x74, 0x65, 0x4d, 0x61, - 0x78, 0x4b, 0x62, 0x70, 0x73, 0x12, 0x38, 0x0a, 0x19, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x69, 0x6f, - 0x5f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6b, 0x62, - 0x70, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x64, 0x69, 0x73, 0x6b, 0x49, 0x6f, - 0x52, 0x61, 0x74, 0x65, 0x41, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x4b, 0x62, 0x70, 0x73, 0x12, - 0x3d, 0x0a, 0x1b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x74, 0x68, 0x72, 0x6f, 0x75, - 0x67, 0x68, 0x70, 0x75, 0x74, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x6b, 0x62, 0x70, 0x73, 0x18, 0x0f, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x18, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x54, 0x68, 0x72, - 0x6f, 0x75, 0x67, 0x68, 0x70, 0x75, 0x74, 0x4d, 0x61, 0x78, 0x4b, 0x62, 0x70, 0x73, 0x12, 0x45, - 0x0a, 0x1f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x74, 0x68, 0x72, 0x6f, 0x75, 0x67, - 0x68, 0x70, 0x75, 0x74, 0x5f, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6b, 0x62, 0x70, - 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1c, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, - 0x54, 0x68, 0x72, 0x6f, 0x75, 0x67, 0x68, 0x70, 0x75, 0x74, 0x41, 0x76, 0x65, 0x72, 0x61, 0x67, - 0x65, 0x4b, 0x62, 0x70, 0x73, 0x22, 0xbd, 0x02, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x74, - 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x34, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2e, 0x12, - 0x2c, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x55, 0x74, 0x69, 0x6c, - 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x4b, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, + 0x56, 0x6d, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x03, 0x76, 0x6d, 0x73, 0x22, 0x47, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, + 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, + 0x44, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x22, + 0x46, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x16, + 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x46, 0x52, 0x41, 0x4d, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, + 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x45, 0x45, 0x4b, + 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x10, 0x02, 0x12, 0x08, 0x0a, + 0x04, 0x59, 0x45, 0x41, 0x52, 0x10, 0x03, 0x3a, 0x94, 0x01, 0xea, 0x41, 0x90, 0x01, 0x0a, 0x2c, + 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x55, 0x74, 0x69, 0x6c, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x60, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, + 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x7d, 0x2f, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x7b, 0x75, 0x74, 0x69, 0x6c, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x7d, 0x22, 0xe6, + 0x01, 0x0a, 0x11, 0x56, 0x6d, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x5a, 0x0a, 0x11, 0x76, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x5f, 0x76, + 0x6d, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, + 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6d, + 0x77, 0x61, 0x72, 0x65, 0x56, 0x6d, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x48, 0x00, 0x52, + 0x0f, 0x76, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x56, 0x6d, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, + 0x12, 0x13, 0x0a, 0x05, 0x76, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x76, 0x6d, 0x49, 0x64, 0x12, 0x53, 0x0a, 0x0b, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6d, 0x55, 0x74, 0x69, 0x6c, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x0b, 0x75, + 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0b, 0x0a, 0x09, 0x56, 0x6d, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xc4, 0x03, 0x0a, 0x14, 0x56, 0x6d, 0x55, 0x74, + 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, + 0x12, 0x26, 0x0a, 0x0f, 0x63, 0x70, 0x75, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x65, 0x72, 0x63, + 0x65, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x63, 0x70, 0x75, 0x4d, 0x61, + 0x78, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x63, 0x70, 0x75, 0x5f, + 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x63, 0x70, 0x75, 0x41, 0x76, 0x65, 0x72, 0x61, 0x67, + 0x65, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x6d, 0x65, 0x6d, 0x6f, + 0x72, 0x79, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x4d, 0x61, 0x78, 0x50, + 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, + 0x5f, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, + 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x41, 0x76, + 0x65, 0x72, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x15, + 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x69, 0x6f, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x78, + 0x5f, 0x6b, 0x62, 0x70, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x64, 0x69, 0x73, + 0x6b, 0x49, 0x6f, 0x52, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x78, 0x4b, 0x62, 0x70, 0x73, 0x12, 0x38, + 0x0a, 0x19, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x69, 0x6f, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x61, + 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6b, 0x62, 0x70, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x15, 0x64, 0x69, 0x73, 0x6b, 0x49, 0x6f, 0x52, 0x61, 0x74, 0x65, 0x41, 0x76, 0x65, + 0x72, 0x61, 0x67, 0x65, 0x4b, 0x62, 0x70, 0x73, 0x12, 0x3d, 0x0a, 0x1b, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x5f, 0x74, 0x68, 0x72, 0x6f, 0x75, 0x67, 0x68, 0x70, 0x75, 0x74, 0x5f, 0x6d, + 0x61, 0x78, 0x5f, 0x6b, 0x62, 0x70, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x03, 0x52, 0x18, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x54, 0x68, 0x72, 0x6f, 0x75, 0x67, 0x68, 0x70, 0x75, 0x74, + 0x4d, 0x61, 0x78, 0x4b, 0x62, 0x70, 0x73, 0x12, 0x45, 0x0a, 0x1f, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x5f, 0x74, 0x68, 0x72, 0x6f, 0x75, 0x67, 0x68, 0x70, 0x75, 0x74, 0x5f, 0x61, 0x76, + 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6b, 0x62, 0x70, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x1c, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x54, 0x68, 0x72, 0x6f, 0x75, 0x67, 0x68, + 0x70, 0x75, 0x74, 0x41, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x4b, 0x62, 0x70, 0x73, 0x22, 0xbd, + 0x02, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x4c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x34, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2e, 0x12, 0x2c, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x4b, + 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x74, 0x69, 0x6c, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x56, 0x69, 0x65, 0x77, + 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x12, 0x20, 0x0a, 0x09, 0x70, + 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, + 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, + 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0xda, + 0x01, 0x0a, 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x64, 0x0a, 0x13, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x74, 0x69, + 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x42, 0x03, + 0xe0, 0x41, 0x03, 0x52, 0x12, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x25, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, + 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, + 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x1b, + 0x47, 0x65, 0x74, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x34, 0xe0, 0x41, 0x02, 0xfa, 0x41, + 0x2e, 0x0a, 0x2c, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x55, 0x74, + 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4b, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x56, 0x69, 0x65, 0x77, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x76, 0x69, - 0x65, 0x77, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, - 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, - 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, - 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, - 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0xda, 0x01, 0x0a, 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x74, - 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x13, 0x75, 0x74, 0x69, 0x6c, - 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x12, 0x75, 0x74, 0x69, 0x6c, - 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x2b, - 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x6e, 0x65, - 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x25, 0x0a, 0x0b, 0x75, - 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, - 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, - 0x6c, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, + 0x65, 0x77, 0x22, 0xaa, 0x02, 0x0a, 0x1e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x74, 0x69, + 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x34, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2e, 0x12, 0x2c, 0x76, + 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x12, 0x62, 0x0a, 0x12, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, + 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x74, + 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x11, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x37, 0x0a, 0x15, 0x75, 0x74, 0x69, 0x6c, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x13, 0x75, 0x74, 0x69, + 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x64, + 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, + 0x8e, 0x01, 0x0a, 0x1e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x34, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2e, 0x0a, 0x2c, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4b, 0x0a, 0x04, - 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x56, 0x69, 0x65, 0x77, 0x42, 0x03, - 0xe0, 0x41, 0x01, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x22, 0xaa, 0x02, 0x0a, 0x1e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x06, - 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x34, 0xe0, 0x41, - 0x02, 0xfa, 0x41, 0x2e, 0x12, 0x2c, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x62, 0x0a, 0x12, 0x75, 0x74, - 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x11, 0x75, 0x74, 0x69, - 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x37, - 0x0a, 0x15, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, - 0x41, 0x02, 0x52, 0x13, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x8e, 0x01, 0x0a, 0x1e, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x34, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2e, 0x0a, - 0x2c, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x55, 0x74, 0x69, 0x6c, - 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0xe2, 0x01, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, - 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x15, - 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x42, 0x03, 0xe0, - 0x41, 0x03, 0x52, 0x14, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x2b, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, - 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x25, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, - 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, - 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x6b, 0x0a, 0x1d, - 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xe0, 0x41, 0x02, - 0xfa, 0x41, 0x30, 0x0a, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xb8, 0x02, 0x0a, 0x20, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, - 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, - 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x30, 0x12, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x3b, - 0x0a, 0x17, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x03, 0xe0, 0x41, 0x02, 0x52, 0x15, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x68, 0x0a, 0x14, 0x64, - 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x02, - 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x49, 0x64, 0x22, 0x8d, 0x01, 0x0a, 0x20, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, - 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x30, 0x0a, + 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0a, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, + 0x22, 0xe2, 0x01, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x15, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x14, 0x64, 0x61, 0x74, + 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x73, 0x12, 0x2b, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, + 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x25, + 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, + 0x68, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x6b, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x30, 0x0a, 0x2e, 0x76, 0x6d, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x22, 0xb8, 0x02, 0x0a, 0x20, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, + 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x30, 0x12, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x49, 0x64, 0x22, 0xa3, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, - 0x41, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x69, 0x0a, 0x14, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, - 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x30, 0x0a, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x1a, 0x0a, 0x18, 0x55, 0x70, - 0x67, 0x72, 0x61, 0x64, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf4, 0x01, 0x0a, 0x1f, 0x4c, 0x69, 0x73, 0x74, 0x44, + 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x17, 0x64, 0x61, 0x74, 0x61, 0x63, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x15, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x06, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xe0, 0x41, 0x02, 0xfa, - 0x41, 0x30, 0x12, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, - 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, - 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, - 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, - 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, - 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0x86, 0x0a, - 0x0a, 0x1b, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x17, 0x0a, - 0x07, 0x76, 0x6d, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x76, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x54, 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, - 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x0d, 0x74, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, - 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x7a, 0x6f, 0x6e, 0x65, - 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6d, - 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, - 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x74, - 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x54, 0x61, 0x67, 0x73, 0x12, 0x5c, 0x0a, 0x12, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, - 0x6b, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x6f, 0x72, 0x49, 0x64, 0x12, 0x68, 0x0a, 0x14, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, - 0x65, 0x52, 0x11, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, - 0x61, 0x63, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x4f, 0x0a, - 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, - 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x44, 0x69, 0x73, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x5c, - 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x44, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, - 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x58, 0x0a, 0x0c, - 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x4c, 0x69, - 0x63, 0x65, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6c, 0x69, 0x63, 0x65, 0x6e, - 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x59, 0x0a, 0x0f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x65, - 0x64, 0x5f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, - 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, - 0x70, 0x6c, 0x69, 0x65, 0x64, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x42, 0x03, 0xe0, 0x41, - 0x03, 0x52, 0x0e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, - 0x65, 0x12, 0x5d, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x73, 0x63, 0x68, - 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, - 0x75, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x11, 0x63, - 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, - 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x18, - 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x42, 0x6f, 0x6f, - 0x74, 0x12, 0x5a, 0x0a, 0x0b, 0x62, 0x6f, 0x6f, 0x74, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x2e, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x63, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1d, + 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x8d, 0x01, + 0x0a, 0x20, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x4a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x36, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x30, 0x0a, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, + 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0xa3, 0x01, + 0x0a, 0x17, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x69, 0x0a, 0x14, 0x64, 0x61, 0x74, + 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x36, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x30, 0x0a, + 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, + 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, + 0x13, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x49, 0x64, 0x22, 0x1a, 0x0a, 0x18, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x41, 0x70, + 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0xf4, 0x01, 0x0a, 0x1f, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x36, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x30, 0x12, 0x2e, 0x76, 0x6d, 0x6d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x06, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, + 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, + 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, + 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, + 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0x86, 0x0a, 0x0a, 0x1b, 0x43, 0x6f, 0x6d, 0x70, 0x75, + 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x76, 0x6d, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x54, 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x76, 0x6d, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x7a, 0x6f, 0x6e, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x61, 0x63, + 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x63, + 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x54, 0x61, 0x67, 0x73, 0x12, + 0x5c, 0x0a, 0x12, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x66, 0x61, 0x63, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x11, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x27, 0x0a, + 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x4f, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, + 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, + 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x5c, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, + 0x69, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x58, 0x0a, 0x0c, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, + 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x0b, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x59, 0x0a, 0x0f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x5f, 0x6c, 0x69, 0x63, 0x65, 0x6e, + 0x73, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x4c, 0x69, + 0x63, 0x65, 0x6e, 0x73, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0e, 0x61, 0x70, 0x70, 0x6c, + 0x69, 0x65, 0x64, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x12, 0x63, 0x6f, + 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, - 0x6e, 0x65, 0x42, 0x6f, 0x6f, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, - 0x03, 0x52, 0x0a, 0x62, 0x6f, 0x6f, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x62, 0x0a, - 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x10, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x46, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x53, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x63, + 0x75, 0x72, 0x65, 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, + 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x42, 0x6f, 0x6f, 0x74, 0x12, 0x5a, 0x0a, 0x0b, 0x62, 0x6f, + 0x6f, 0x74, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, - 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x2f, 0x0a, 0x13, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, - 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, - 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, - 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x12, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x39, - 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 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, 0x09, 0x0a, 0x1a, 0x43, 0x6f, 0x6d, 0x70, 0x75, - 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x76, 0x6d, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x7a, 0x6f, 0x6e, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x7a, 0x6f, 0x6e, 0x65, 0x12, 0x2e, 0x0a, 0x13, - 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, 0x65, 0x72, - 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6d, 0x61, 0x63, 0x68, 0x69, - 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, - 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x74, 0x61, 0x67, 0x73, 0x18, - 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x54, 0x61, - 0x67, 0x73, 0x12, 0x5c, 0x0a, 0x12, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x6e, - 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x11, 0x6e, - 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, - 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x4f, 0x0a, 0x09, 0x64, 0x69, 0x73, - 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, - 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x5b, 0x0a, 0x06, 0x6c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, - 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x58, 0x0a, 0x0c, 0x6c, 0x69, 0x63, 0x65, 0x6e, - 0x73, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, - 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x54, 0x0a, 0x0f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x5f, 0x6c, 0x69, 0x63, - 0x65, 0x6e, 0x73, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, - 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x52, 0x0e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, - 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x70, 0x75, - 0x74, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x42, 0x6f, 0x6f, 0x74, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x62, 0x6f, 0x6f, 0x74, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x62, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x10, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x46, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, + 0x67, 0x69, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2f, 0x0a, 0x13, 0x61, 0x64, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, + 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x68, + 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, + 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x1a, 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, 0x09, 0x0a, 0x1a, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, + 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x17, + 0x0a, 0x07, 0x76, 0x6d, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x76, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x7a, 0x6f, 0x6e, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x11, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x53, + 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x61, 0x63, + 0x68, 0x69, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x5f, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x54, 0x61, 0x67, 0x73, 0x12, 0x5c, 0x0a, 0x12, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x11, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x4f, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, + 0x65, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x5b, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0a, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x4c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x12, 0x58, 0x0a, 0x0c, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, + 0x6e, 0x65, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6c, + 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x54, 0x0a, 0x0f, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x65, 0x64, 0x5f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, - 0x69, 0x6e, 0x67, 0x52, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, - 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, - 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x73, 0x65, 0x63, - 0x75, 0x72, 0x65, 0x42, 0x6f, 0x6f, 0x74, 0x12, 0x55, 0x0a, 0x0b, 0x62, 0x6f, 0x6f, 0x74, 0x5f, - 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x67, + 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, + 0x52, 0x0e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, + 0x12, 0x5d, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, - 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x42, 0x6f, 0x6f, 0x74, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x0a, 0x62, 0x6f, 0x6f, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x61, - 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x10, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x11, 0x63, 0x6f, + 0x6d, 0x70, 0x75, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x12, + 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x18, 0x0e, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x42, 0x6f, 0x6f, 0x74, + 0x12, 0x55, 0x0a, 0x0b, 0x62, 0x6f, 0x6f, 0x74, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x0f, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, + 0x65, 0x42, 0x6f, 0x6f, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x62, 0x6f, 0x6f, + 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x61, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x10, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, + 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2f, 0x0a, 0x13, 0x61, 0x64, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, + 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x68, + 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, + 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x1a, 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, + 0x8e, 0x01, 0x0a, 0x10, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, + 0x66, 0x61, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x1e, + 0x0a, 0x0a, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x1f, + 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x70, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x70, 0x12, + 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x70, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x70, + 0x22, 0xb1, 0x01, 0x0a, 0x0e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x4c, 0x69, 0x63, 0x65, + 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x2e, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x73, 0x5f, + 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, + 0x73, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, + 0x12, 0x08, 0x0a, 0x04, 0x50, 0x41, 0x59, 0x47, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x59, + 0x4f, 0x4c, 0x10, 0x03, 0x22, 0xd6, 0x01, 0x0a, 0x16, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x69, 0x6e, 0x67, 0x4e, 0x6f, 0x64, 0x65, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x58, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x4e, 0x6f, 0x64, 0x65, + 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x22, 0x38, 0x0a, 0x08, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, + 0x18, 0x0a, 0x14, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x49, 0x4e, 0x10, + 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x4f, 0x54, 0x5f, 0x49, 0x4e, 0x10, 0x02, 0x22, 0x9a, 0x04, + 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x69, 0x6e, 0x67, 0x12, 0x70, 0x0a, 0x13, 0x6f, 0x6e, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x6d, + 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, - 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x54, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x2f, 0x0a, 0x13, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, - 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, - 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, - 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x12, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x39, - 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 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, 0x8e, 0x01, 0x0a, 0x10, 0x4e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6e, - 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, - 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x77, - 0x6f, 0x72, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x75, 0x62, 0x6e, 0x65, - 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, - 0x6c, 0x5f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x70, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, - 0x61, 0x6c, 0x5f, 0x69, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x74, - 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x70, 0x22, 0xb1, 0x01, 0x0a, 0x0e, 0x41, 0x70, 0x70, 0x6c, - 0x69, 0x65, 0x64, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x4c, 0x69, - 0x63, 0x65, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x73, 0x5f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x73, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x22, - 0x3a, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, - 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x41, 0x59, 0x47, 0x10, - 0x02, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x59, 0x4f, 0x4c, 0x10, 0x03, 0x22, 0xd6, 0x01, 0x0a, 0x16, - 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x4e, 0x6f, 0x64, 0x65, 0x41, 0x66, - 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x58, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, - 0x69, 0x6e, 0x67, 0x4e, 0x6f, 0x64, 0x65, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x2e, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x38, 0x0a, 0x08, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, - 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x06, 0x0a, 0x02, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x4f, 0x54, 0x5f, - 0x49, 0x4e, 0x10, 0x02, 0x22, 0x9a, 0x04, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, - 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x12, 0x70, 0x0a, 0x13, 0x6f, 0x6e, - 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x53, 0x63, 0x68, - 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x6e, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, - 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x11, 0x6f, 0x6e, 0x48, 0x6f, 0x73, - 0x74, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x5d, 0x0a, 0x0c, - 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, + 0x2e, 0x4f, 0x6e, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, + 0x63, 0x65, 0x52, 0x11, 0x6f, 0x6e, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, + 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x5d, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, + 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x5c, 0x0a, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x61, 0x66, 0x66, + 0x69, 0x6e, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x4e, 0x6f, 0x64, 0x65, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, + 0x74, 0x79, 0x52, 0x0e, 0x6e, 0x6f, 0x64, 0x65, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x65, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x69, 0x6e, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x63, + 0x70, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x69, 0x6e, 0x4e, 0x6f, + 0x64, 0x65, 0x43, 0x70, 0x75, 0x73, 0x22, 0x54, 0x0a, 0x11, 0x4f, 0x6e, 0x48, 0x6f, 0x73, 0x74, + 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x1f, 0x4f, + 0x4e, 0x5f, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x4d, 0x41, 0x49, 0x4e, 0x54, 0x45, 0x4e, 0x41, 0x4e, + 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, + 0x0b, 0x0a, 0x07, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02, 0x22, 0x5c, 0x0a, 0x0b, + 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x52, + 0x45, 0x53, 0x54, 0x41, 0x52, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x55, 0x54, + 0x4f, 0x4d, 0x41, 0x54, 0x49, 0x43, 0x5f, 0x52, 0x45, 0x53, 0x54, 0x41, 0x52, 0x54, 0x10, 0x01, + 0x12, 0x18, 0x0a, 0x14, 0x4e, 0x4f, 0x5f, 0x41, 0x55, 0x54, 0x4f, 0x4d, 0x41, 0x54, 0x49, 0x43, + 0x5f, 0x52, 0x45, 0x53, 0x54, 0x41, 0x52, 0x54, 0x10, 0x02, 0x22, 0x7e, 0x0a, 0x0e, 0x53, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x3e, 0x0a, 0x0d, + 0x69, 0x64, 0x6c, 0x65, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x0c, + 0x69, 0x64, 0x6c, 0x65, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x12, + 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x6f, 0x73, 0x5f, 0x61, 0x64, 0x61, 0x70, 0x74, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x73, 0x6b, 0x69, 0x70, 0x4f, 0x73, + 0x41, 0x64, 0x61, 0x70, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x80, 0x02, 0x0a, 0x18, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2e, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x28, 0x12, + 0x26, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, + 0x2b, 0x0a, 0x0f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x6d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x49, 0x64, 0x12, 0x50, 0x0a, 0x0c, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, - 0x6e, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, - 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x5c, 0x0a, 0x0f, 0x6e, - 0x6f, 0x64, 0x65, 0x5f, 0x61, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x4e, 0x6f, 0x64, - 0x65, 0x41, 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x79, 0x52, 0x0e, 0x6e, 0x6f, 0x64, 0x65, 0x41, - 0x66, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x6d, 0x69, 0x6e, - 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x63, 0x70, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x0b, 0x6d, 0x69, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x70, 0x75, 0x73, 0x22, 0x54, 0x0a, - 0x11, 0x4f, 0x6e, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, - 0x63, 0x65, 0x12, 0x23, 0x0a, 0x1f, 0x4f, 0x4e, 0x5f, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x4d, 0x41, - 0x49, 0x4e, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, - 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x45, 0x52, 0x4d, 0x49, - 0x4e, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, - 0x45, 0x10, 0x02, 0x22, 0x5c, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x52, 0x45, 0x53, 0x54, 0x41, 0x52, 0x54, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x15, 0x0a, 0x11, 0x41, 0x55, 0x54, 0x4f, 0x4d, 0x41, 0x54, 0x49, 0x43, 0x5f, 0x52, 0x45, - 0x53, 0x54, 0x41, 0x52, 0x54, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x4e, 0x4f, 0x5f, 0x41, 0x55, - 0x54, 0x4f, 0x4d, 0x41, 0x54, 0x49, 0x43, 0x5f, 0x52, 0x45, 0x53, 0x54, 0x41, 0x52, 0x54, 0x10, - 0x02, 0x22, 0x7e, 0x0a, 0x0e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x12, 0x3e, 0x0a, 0x0d, 0x69, 0x64, 0x6c, 0x65, 0x5f, 0x64, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 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, 0x0c, 0x69, 0x64, 0x6c, 0x65, 0x44, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x6f, 0x73, 0x5f, 0x61, - 0x64, 0x61, 0x70, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x10, 0x73, 0x6b, 0x69, 0x70, 0x4f, 0x73, 0x41, 0x64, 0x61, 0x70, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0x80, 0x02, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, - 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2e, - 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x28, 0x12, 0x26, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x06, - 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x0f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, - 0x6d, 0x49, 0x64, 0x12, 0x50, 0x0a, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, - 0x5f, 0x76, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, - 0x67, 0x56, 0x6d, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x49, 0x64, 0x22, 0xab, 0x02, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x46, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x2e, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x28, 0x12, 0x26, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, - 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, - 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, - 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, - 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, - 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, - 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, - 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, - 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, - 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x45, 0x0a, 0x04, 0x76, - 0x69, 0x65, 0x77, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, - 0x67, 0x56, 0x6d, 0x56, 0x69, 0x65, 0x77, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x76, 0x69, - 0x65, 0x77, 0x22, 0xc2, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x52, 0x0a, 0x0d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, - 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, - 0x56, 0x6d, 0x73, 0x12, 0x2b, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, - 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, - 0x03, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x12, 0x25, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x18, - 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, - 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x22, 0xa2, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x42, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x42, 0x03, 0xe0, 0x41, + 0x02, 0x52, 0x0b, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x12, 0x1d, + 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0xab, 0x02, + 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, + 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x06, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2e, 0xe0, 0x41, 0x02, 0xfa, 0x41, + 0x28, 0x12, 0x26, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, + 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x61, + 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, + 0x65, 0x72, 0x42, 0x79, 0x12, 0x45, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x56, 0x69, 0x65, 0x77, + 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x22, 0xc2, 0x01, 0x0a, 0x18, + 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x0d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, + 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x12, 0x2b, 0x0a, 0x0f, + 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, + 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x25, 0x0a, 0x0b, 0x75, 0x6e, 0x72, + 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, + 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, + 0x22, 0xa2, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, + 0x67, 0x56, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2e, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x28, + 0x0a, 0x26, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x45, + 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, + 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x56, 0x69, 0x65, 0x77, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, + 0x04, 0x76, 0x69, 0x65, 0x77, 0x22, 0xc8, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, + 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, + 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, + 0x50, 0x0a, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, + 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, + 0x22, 0x5e, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2e, 0xe0, 0x41, 0x02, 0xfa, + 0x41, 0x28, 0x0a, 0x26, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x22, 0x6a, 0x0a, 0x15, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x51, 0x0a, 0x0c, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2e, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x28, 0x0a, 0x26, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x56, 0x69, 0x65, - 0x77, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x22, 0xc8, 0x01, 0x0a, - 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, - 0x56, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x50, 0x0a, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x6d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x5e, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x2e, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x28, 0x0a, 0x26, 0x76, 0x6d, 0x6d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, - 0x6d, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x6a, 0x0a, 0x15, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x0b, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x22, 0x18, 0x0a, 0x16, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6a, 0x0a, 0x15, 0x50, 0x61, 0x75, 0x73, 0x65, 0x4d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x51, 0x0a, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2e, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x28, 0x0a, 0x26, 0x76, + 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x0b, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, + 0x56, 0x6d, 0x22, 0x18, 0x0a, 0x16, 0x50, 0x61, 0x75, 0x73, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6b, 0x0a, 0x16, + 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x51, 0x0a, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2e, 0xe0, 0x41, + 0x02, 0xfa, 0x41, 0x28, 0x0a, 0x26, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x0b, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x22, 0x19, 0x0a, 0x17, 0x52, 0x65, 0x73, + 0x75, 0x6d, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6d, 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x51, 0x0a, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2e, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x28, 0x0a, 0x26, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x0b, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, - 0x67, 0x56, 0x6d, 0x22, 0x18, 0x0a, 0x16, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6a, 0x0a, - 0x15, 0x50, 0x61, 0x75, 0x73, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x51, 0x0a, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2e, 0xe0, 0x41, - 0x02, 0xfa, 0x41, 0x28, 0x0a, 0x26, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x67, 0x56, 0x6d, 0x22, 0x1b, 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0xe0, 0x02, 0x0a, 0x0d, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, + 0x6f, 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, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, + 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x3a, 0x76, 0xea, 0x41, 0x73, + 0x0a, 0x28, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x47, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, + 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x7d, 0x2f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x7d, 0x22, 0x5f, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x44, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, + 0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x0b, 0x6d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x22, 0x18, 0x0a, 0x16, 0x50, 0x61, 0x75, - 0x73, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x6b, 0x0a, 0x16, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x4d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x51, 0x0a, - 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x2e, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x28, 0x0a, 0x26, 0x76, 0x6d, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, - 0x67, 0x56, 0x6d, 0x52, 0x0b, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, - 0x22, 0x19, 0x0a, 0x17, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6d, 0x0a, 0x18, 0x46, - 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x51, 0x0a, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2e, 0xe0, - 0x41, 0x02, 0xfa, 0x41, 0x28, 0x0a, 0x26, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x0b, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x22, 0x1b, 0x0a, 0x19, 0x46, 0x69, - 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xe0, 0x02, 0x0a, 0x0d, 0x54, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 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, 0x12, 0x40, - 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, - 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, - 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, - 0x6d, 0x65, 0x3a, 0x76, 0xea, 0x41, 0x73, 0x0a, 0x28, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x12, 0x47, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x22, 0x5f, 0x0a, 0x17, 0x47, 0x65, - 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x44, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x76, 0x6d, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xe8, 0x01, 0x0a, 0x19, - 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x06, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, - 0x2a, 0x12, 0x28, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, - 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, - 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, - 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, - 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0xca, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x54, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, - 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, - 0x2b, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x6e, - 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x25, 0x0a, 0x0b, - 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, - 0x62, 0x6c, 0x65, 0x22, 0x8e, 0x02, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x2f, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xe8, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x12, 0x28, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x2f, 0x0a, 0x11, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x74, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x56, 0x0a, - 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x49, 0x64, 0x22, 0xd0, 0x01, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, - 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, - 0x12, 0x56, 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x86, 0x01, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x44, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x76, 0x6d, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0a, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, - 0x22, 0xc8, 0x02, 0x0a, 0x05, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 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, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, - 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x3a, 0x5d, 0xea, 0x41, - 0x5a, 0x0a, 0x20, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x12, 0x36, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x73, 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x7d, 0x22, 0xd8, 0x01, 0x0a, 0x11, - 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x40, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x12, 0x20, 0x76, 0x6d, 0x6d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x06, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, - 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, - 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, - 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, - 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0xa9, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, - 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x2b, - 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x6e, 0x65, - 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x25, 0x0a, 0x0b, 0x75, - 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, - 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, - 0x6c, 0x65, 0x22, 0x4f, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x0a, 0x20, 0x76, 0x6d, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x22, 0xd4, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x06, 0x70, 0x61, + 0x6a, 0x65, 0x63, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, + 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, + 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, + 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, + 0xca, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, + 0x0a, 0x0f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, + 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x25, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, + 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, + 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x8e, 0x02, 0x0a, + 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x06, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, 0x41, 0x02, + 0xfa, 0x41, 0x2a, 0x12, 0x28, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x06, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x2f, 0x0a, 0x11, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x56, 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, + 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1d, + 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0xd0, 0x01, + 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x0b, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x56, 0x0a, 0x0e, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x42, 0x03, 0xe0, + 0x41, 0x02, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, + 0x22, 0x86, 0x01, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x44, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xe0, + 0x41, 0x02, 0xfa, 0x41, 0x2a, 0x0a, 0x28, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0xc8, 0x02, 0x0a, 0x05, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, + 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, + 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, + 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, + 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, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, + 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x3a, 0x5d, 0xea, 0x41, 0x5a, 0x0a, 0x20, 0x76, 0x6d, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x36, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, + 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x7b, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x7d, 0x22, 0xd8, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x12, 0x20, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x08, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, - 0xe0, 0x41, 0x02, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x05, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, - 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0xaf, 0x01, 0x0a, 0x12, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, - 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x3d, - 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1d, 0x0a, - 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x76, 0x0a, 0x12, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x0a, 0x20, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x22, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x49, 0x64, 0x22, 0xaa, 0x01, 0x0a, 0x18, 0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x3e, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x0a, 0x20, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x12, 0x4e, 0x0a, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, - 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xfa, 0x41, 0x28, 0x0a, 0x26, 0x76, 0x6d, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x0b, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, - 0x6d, 0x22, 0x1b, 0x0a, 0x19, 0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xad, - 0x01, 0x0a, 0x1b, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, - 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, - 0x41, 0x02, 0xfa, 0x41, 0x22, 0x0a, 0x20, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x72, 0x6f, 0x75, 0x70, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, + 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, + 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, + 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, + 0xa9, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, + 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x2b, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x25, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, + 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, + 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x4f, 0x0a, 0x0f, 0x47, + 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, 0x41, + 0x02, 0xfa, 0x41, 0x22, 0x0a, 0x20, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xd4, 0x01, 0x0a, + 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x12, 0x20, 0x76, 0x6d, 0x6d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x06, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x49, 0x64, 0x22, 0xaf, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x3d, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, + 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x76, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, + 0x22, 0x0a, 0x20, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, + 0x41, 0x01, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0xaa, 0x01, + 0x0a, 0x18, 0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x05, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, + 0x22, 0x0a, 0x20, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x4e, 0x0a, 0x0c, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x2b, 0xfa, 0x41, 0x28, 0x0a, 0x26, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x0b, 0x6d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x22, 0x1b, 0x0a, 0x19, 0x41, 0x64, + 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xad, 0x01, 0x0a, 0x1b, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x28, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x22, 0x0a, 0x20, + 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x4e, 0x0a, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, + 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xfa, + 0x41, 0x28, 0x0a, 0x26, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x0b, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x22, 0x1e, 0x0a, 0x1c, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf9, 0x01, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x12, 0x25, 0x76, 0x6d, 0x6d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, + 0x6f, 0x62, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x0e, 0x63, 0x75, + 0x74, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, + 0x4a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x4d, 0x0a, 0x0b, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, + 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, + 0x4a, 0x6f, 0x62, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, + 0x72, 0x4a, 0x6f, 0x62, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x49, 0x64, 0x22, 0x5c, 0x0a, 0x17, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x75, 0x74, + 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, + 0x02, 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x22, 0x1a, 0x0a, 0x18, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x75, 0x74, 0x6f, 0x76, + 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xe2, 0x01, + 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, + 0x12, 0x25, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x75, 0x74, + 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, + 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, + 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x42, 0x79, 0x22, 0xbe, 0x01, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x75, 0x74, 0x6f, 0x76, + 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, + 0x0a, 0x0c, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x42, 0x03, 0xe0, + 0x41, 0x03, 0x52, 0x0b, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x73, 0x12, + 0x2b, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x6e, + 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x25, 0x0a, 0x0b, + 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, + 0x62, 0x6c, 0x65, 0x22, 0x59, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, + 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, + 0x27, 0x0a, 0x25, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x75, + 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xd5, + 0x02, 0x0a, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, + 0x17, 0x0a, 0x04, 0x76, 0x65, 0x72, 0x62, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, + 0x41, 0x03, 0x52, 0x04, 0x76, 0x65, 0x72, 0x62, 0x12, 0x2a, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x12, 0x3a, 0x0a, 0x16, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, + 0x64, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x15, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x65, 0x64, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x24, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x61, 0x70, 0x69, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xf5, 0x04, 0x0a, 0x0e, 0x4d, 0x69, 0x67, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x4e, 0x0a, 0x04, 0x63, 0x6f, 0x64, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x42, 0x03, + 0xe0, 0x41, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x46, 0x0a, 0x0d, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x6f, + 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x03, + 0xe0, 0x41, 0x03, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x74, 0x65, 0x6d, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x39, 0x0a, 0x0a, 0x68, 0x65, 0x6c, 0x70, 0x5f, 0x6c, 0x69, + 0x6e, 0x6b, 0x73, 0x18, 0x04, 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, + 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x68, 0x65, 0x6c, 0x70, 0x4c, 0x69, 0x6e, 0x6b, 0x73, + 0x12, 0x3e, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x54, 0x69, 0x6d, 0x65, + 0x22, 0x8b, 0x02, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1a, + 0x0a, 0x16, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, + 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x55, 0x4e, + 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x1b, 0x0a, + 0x17, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x4f, + 0x55, 0x52, 0x43, 0x45, 0x5f, 0x52, 0x45, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, + 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x1c, 0x0a, 0x18, 0x54, 0x41, 0x52, 0x47, + 0x45, 0x54, 0x5f, 0x52, 0x45, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, + 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x4f, 0x53, 0x5f, 0x41, 0x44, 0x41, + 0x50, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x05, 0x12, + 0x0f, 0x0a, 0x0b, 0x43, 0x4c, 0x4f, 0x4e, 0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x06, + 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x55, 0x54, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, + 0x52, 0x10, 0x07, 0x12, 0x1c, 0x0a, 0x18, 0x55, 0x54, 0x49, 0x4c, 0x49, 0x5a, 0x41, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, + 0x08, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x50, 0x50, 0x4c, 0x49, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x55, + 0x50, 0x47, 0x52, 0x41, 0x44, 0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x09, 0x22, 0xdb, + 0x01, 0x0a, 0x12, 0x41, 0x77, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, 0x6d, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x54, 0x0a, 0x08, 0x66, 0x69, 0x72, 0x6d, 0x77, 0x61, 0x72, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x77, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, + 0x6d, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x46, 0x69, 0x72, 0x6d, 0x77, 0x61, 0x72, + 0x65, 0x52, 0x08, 0x66, 0x69, 0x72, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x12, 0x36, 0x0a, 0x17, 0x63, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x42, 0x79, + 0x74, 0x65, 0x73, 0x22, 0x37, 0x0a, 0x08, 0x46, 0x69, 0x72, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x12, + 0x18, 0x0a, 0x14, 0x46, 0x49, 0x52, 0x4d, 0x57, 0x41, 0x52, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x45, 0x46, 0x49, + 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x49, 0x4f, 0x53, 0x10, 0x02, 0x22, 0xee, 0x01, 0x0a, + 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x79, 0x63, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, + 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x33, 0xe0, + 0x41, 0x02, 0xfa, 0x41, 0x2d, 0x12, 0x2b, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x4e, - 0x0a, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x2b, 0xfa, 0x41, 0x28, 0x0a, 0x26, 0x76, 0x6d, 0x6d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, - 0x6d, 0x52, 0x0b, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x22, 0x1e, - 0x0a, 0x1c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf9, - 0x01, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, - 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x06, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, - 0x41, 0x27, 0x12, 0x25, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, - 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x12, 0x29, 0x0a, 0x0e, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x6a, 0x6f, 0x62, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, - 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x4d, 0x0a, 0x0b, - 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, - 0x0a, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x12, 0x1d, 0x0a, 0x0a, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x5c, 0x0a, 0x17, 0x43, 0x61, - 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x76, 0x6d, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, - 0x6f, 0x62, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x1a, 0x0a, 0x18, 0x43, 0x61, 0x6e, 0x63, - 0x65, 0x6c, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xe2, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x75, 0x74, - 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x45, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x12, 0x25, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x06, - 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, - 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, - 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, - 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, - 0x02, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, - 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, - 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, - 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0xbe, 0x01, 0x0a, 0x17, 0x4c, 0x69, - 0x73, 0x74, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0c, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, - 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, + 0x6d, 0x2f, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x79, 0x63, + 0x6c, 0x65, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, + 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, + 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, + 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, + 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0xd6, 0x01, + 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x61, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, + 0x79, 0x63, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, - 0x72, 0x4a, 0x6f, 0x62, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x63, 0x75, 0x74, 0x6f, 0x76, - 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x2b, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, - 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x12, 0x25, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, - 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x75, - 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x59, 0x0a, 0x14, 0x47, 0x65, - 0x74, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x41, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x2d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x27, 0x0a, 0x25, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xd5, 0x02, 0x0a, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x0b, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, - 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3a, 0x0a, - 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, - 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x76, 0x65, 0x72, 0x62, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x76, 0x65, 0x72, 0x62, 0x12, - 0x2a, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3a, 0x0a, 0x16, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, - 0x52, 0x15, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x43, 0x61, 0x6e, 0x63, 0x65, - 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x5f, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, - 0x03, 0x52, 0x0a, 0x61, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xf5, 0x04, - 0x0a, 0x0e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, - 0x12, 0x4e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x43, 0x6f, 0x64, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, - 0x12, 0x46, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, - 0x69, 0x7a, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, - 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x39, 0x0a, 0x0a, - 0x68, 0x65, 0x6c, 0x70, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x04, 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, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x68, 0x65, - 0x6c, 0x70, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x12, 0x3e, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x8b, 0x02, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, - 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x45, 0x52, 0x52, - 0x4f, 0x52, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x56, - 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, - 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x52, 0x45, 0x50, 0x4c, - 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, - 0x1c, 0x0a, 0x18, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x52, 0x45, 0x50, 0x4c, 0x49, 0x43, - 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x12, 0x17, 0x0a, - 0x13, 0x4f, 0x53, 0x5f, 0x41, 0x44, 0x41, 0x50, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, - 0x52, 0x52, 0x4f, 0x52, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x4c, 0x4f, 0x4e, 0x45, 0x5f, - 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x55, 0x54, 0x4f, 0x56, - 0x45, 0x52, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x07, 0x12, 0x1c, 0x0a, 0x18, 0x55, 0x54, - 0x49, 0x4c, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x52, 0x54, - 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x08, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x50, 0x50, 0x4c, - 0x49, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x55, 0x50, 0x47, 0x52, 0x41, 0x44, 0x45, 0x5f, 0x45, 0x52, - 0x52, 0x4f, 0x52, 0x10, 0x09, 0x2a, 0x55, 0x0a, 0x15, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x56, 0x69, 0x65, 0x77, 0x12, 0x27, - 0x0a, 0x23, 0x55, 0x54, 0x49, 0x4c, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, - 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, - 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x41, 0x53, 0x49, 0x43, - 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0x6d, 0x0a, 0x0f, - 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x56, 0x69, 0x65, 0x77, 0x12, - 0x21, 0x0a, 0x1d, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x56, 0x4d, 0x5f, - 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, - 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x5f, - 0x56, 0x4d, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, - 0x1a, 0x0a, 0x16, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x56, 0x4d, 0x5f, - 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0xb1, 0x01, 0x0a, 0x15, - 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x44, 0x69, 0x73, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x24, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, - 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, - 0x25, 0x0a, 0x21, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, - 0x45, 0x5f, 0x44, 0x49, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x4e, - 0x44, 0x41, 0x52, 0x44, 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, - 0x45, 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x4b, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x53, 0x53, 0x44, 0x10, 0x02, 0x12, 0x25, 0x0a, 0x21, 0x43, 0x4f, 0x4d, 0x50, - 0x55, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x4b, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x44, 0x10, 0x03, 0x2a, - 0x8f, 0x01, 0x0a, 0x18, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x23, - 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x5f, 0x4c, - 0x49, 0x43, 0x45, 0x4e, 0x53, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x46, 0x41, - 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x24, 0x0a, 0x20, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, - 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x5f, 0x4c, 0x49, 0x43, 0x45, 0x4e, 0x53, 0x45, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x41, 0x59, 0x47, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, 0x43, - 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x5f, 0x4c, 0x49, - 0x43, 0x45, 0x4e, 0x53, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x59, 0x4f, 0x4c, 0x10, - 0x02, 0x2a, 0x8e, 0x01, 0x0a, 0x17, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x42, 0x6f, 0x6f, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, - 0x26, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x5f, - 0x42, 0x4f, 0x4f, 0x54, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x22, 0x0a, 0x1e, 0x43, 0x4f, 0x4d, - 0x50, 0x55, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x5f, 0x42, 0x4f, 0x4f, 0x54, - 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x46, 0x49, 0x10, 0x01, 0x12, 0x23, 0x0a, - 0x1f, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x5f, - 0x42, 0x4f, 0x4f, 0x54, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x42, 0x49, 0x4f, 0x53, - 0x10, 0x02, 0x32, 0xb8, 0x4f, 0x0a, 0x0b, 0x56, 0x6d, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0xae, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x73, 0x12, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, - 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x2a, 0x7d, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x12, 0x9b, 0x01, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x12, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, - 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0xd4, 0x01, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, - 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x73, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x22, 0x2b, 0x2f, 0x76, 0x31, - 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, - 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x3a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0xda, 0x41, 0x17, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x2c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0xca, 0x41, 0x1b, 0x0a, 0x06, 0x53, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xd6, 0x01, 0x0a, 0x0c, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, + 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x79, 0x63, 0x6c, + 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, + 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, + 0x25, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, + 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x65, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x33, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x76, 0x6d, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x2a, 0x55, 0x0a, + 0x15, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x56, 0x69, 0x65, 0x77, 0x12, 0x27, 0x0a, 0x23, 0x55, 0x54, 0x49, 0x4c, 0x49, 0x5a, + 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x56, 0x49, 0x45, + 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x09, 0x0a, 0x05, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x55, + 0x4c, 0x4c, 0x10, 0x02, 0x2a, 0x6d, 0x0a, 0x0f, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, + 0x67, 0x56, 0x6d, 0x56, 0x69, 0x65, 0x77, 0x12, 0x21, 0x0a, 0x1d, 0x4d, 0x49, 0x47, 0x52, 0x41, + 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x56, 0x4d, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, + 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x49, + 0x47, 0x52, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x56, 0x4d, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, + 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x49, 0x47, 0x52, 0x41, + 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x56, 0x4d, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, + 0x4c, 0x10, 0x02, 0x2a, 0xb1, 0x01, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, + 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, + 0x24, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x5f, + 0x44, 0x49, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x25, 0x0a, 0x21, 0x43, 0x4f, 0x4d, 0x50, 0x55, + 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x4b, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x4e, 0x44, 0x41, 0x52, 0x44, 0x10, 0x01, 0x12, 0x20, + 0x0a, 0x1c, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, + 0x5f, 0x44, 0x49, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x53, 0x44, 0x10, 0x02, + 0x12, 0x25, 0x0a, 0x21, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x47, 0x49, + 0x4e, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x41, 0x4c, + 0x41, 0x4e, 0x43, 0x45, 0x44, 0x10, 0x03, 0x2a, 0x8f, 0x01, 0x0a, 0x18, 0x43, 0x6f, 0x6d, 0x70, + 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x4c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x23, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, 0x5f, + 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x5f, 0x4c, 0x49, 0x43, 0x45, 0x4e, 0x53, 0x45, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x24, 0x0a, + 0x20, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x5f, + 0x4c, 0x49, 0x43, 0x45, 0x4e, 0x53, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x41, 0x59, + 0x47, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, 0x5f, 0x45, + 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x5f, 0x4c, 0x49, 0x43, 0x45, 0x4e, 0x53, 0x45, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x42, 0x59, 0x4f, 0x4c, 0x10, 0x02, 0x2a, 0x8e, 0x01, 0x0a, 0x17, 0x43, 0x6f, + 0x6d, 0x70, 0x75, 0x74, 0x65, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x42, 0x6f, 0x6f, 0x74, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x26, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, + 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x5f, 0x42, 0x4f, 0x4f, 0x54, 0x5f, 0x4f, 0x50, 0x54, + 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x22, 0x0a, 0x1e, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x47, + 0x49, 0x4e, 0x45, 0x5f, 0x42, 0x4f, 0x4f, 0x54, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, + 0x45, 0x46, 0x49, 0x10, 0x01, 0x12, 0x23, 0x0a, 0x1f, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, + 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x5f, 0x42, 0x4f, 0x4f, 0x54, 0x5f, 0x4f, 0x50, 0x54, + 0x49, 0x4f, 0x4e, 0x5f, 0x42, 0x49, 0x4f, 0x53, 0x10, 0x02, 0x32, 0x89, 0x53, 0x0a, 0x0b, 0x56, + 0x6d, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0xae, 0x01, 0x0a, 0x0b, 0x4c, + 0x69, 0x73, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x9b, 0x01, 0x0a, 0x09, + 0x47, 0x65, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, - 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x75, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x3c, 0x32, 0x32, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, - 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0xda, 0x41, - 0x12, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, - 0x61, 0x73, 0x6b, 0xca, 0x41, 0x1b, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x11, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x12, 0xc8, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, - 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x67, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x2a, 0x2b, 0x2f, 0x76, 0x31, - 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, - 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, - 0x41, 0x2a, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xc8, 0x01, 0x0a, - 0x0e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x12, - 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, - 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x65, - 0x74, 0x63, 0x68, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, - 0x12, 0x3c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, - 0x66, 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0xda, 0x41, - 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0xe4, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, - 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x73, 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x42, 0x12, 0x40, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x3a, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, - 0x2a, 0x7d, 0x2f, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xd1, - 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x22, 0x4f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x12, 0x40, 0x2f, 0x76, 0x31, 0x2f, 0x7b, - 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0xaf, 0x02, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x74, 0x69, - 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x3b, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, - 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb7, 0x01, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x56, 0x22, 0x40, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, + 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xd4, 0x01, 0x0a, 0x0c, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, + 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x73, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x35, 0x22, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, - 0x2a, 0x7d, 0x2f, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x73, 0x3a, 0x12, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0xda, 0x41, 0x2f, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x2c, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2c, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x64, 0xca, 0x41, 0x26, 0x0a, 0x11, - 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, - 0x74, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x12, 0xf3, 0x01, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, - 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, - 0x12, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, - 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x7c, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x42, 0x2a, 0x40, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, - 0x2f, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x2a, - 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xec, 0x01, 0x0a, 0x18, 0x4c, - 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x53, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x12, 0x42, 0x2f, 0x76, - 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, - 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, - 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, - 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xd9, 0x01, 0x0a, 0x16, 0x47, 0x65, - 0x74, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x22, 0x51, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x12, 0x42, 0x2f, 0x76, 0x31, 0x2f, - 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, - 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, - 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xbd, 0x02, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, - 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0xc1, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5a, 0x22, 0x42, 0x2f, 0x76, 0x31, 0x2f, - 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, - 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x3a, 0x14, - 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0xda, 0x41, 0x33, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x64, 0x61, - 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2c, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0xca, 0x41, 0x28, 0x0a, 0x13, 0x44, - 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xf9, 0x01, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, - 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0x7e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x2a, 0x42, 0x2f, 0x76, 0x31, 0x2f, 0x7b, - 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x2a, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x11, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x88, 0x02, 0x0a, 0x10, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x41, 0x70, 0x70, - 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x41, 0x70, 0x70, 0x6c, - 0x69, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x3a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0xda, 0x41, 0x17, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x2c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x69, 0x64, 0xca, 0x41, 0x1b, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x11, 0x4f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x12, 0xd6, 0x01, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, + 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x75, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x32, 0x32, 0x2f, 0x76, 0x31, 0x2f, + 0x7b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x06, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0xda, 0x41, 0x12, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2c, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0xca, 0x41, 0x1b, 0x0a, 0x06, + 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xc8, 0x01, 0x0a, 0x0c, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, - 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9e, 0x01, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x68, 0x22, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x63, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x3d, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, - 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, - 0x41, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x3a, 0x01, 0x2a, 0xca, 0x41, 0x2d, 0x0a, - 0x18, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x85, 0x02, 0x0a, - 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, - 0x56, 0x6d, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, - 0x56, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x99, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x4a, 0x22, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, + 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x67, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x2d, 0x2a, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, - 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x3a, 0x0c, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0xda, 0x41, 0x23, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, - 0x6d, 0x2c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x5f, 0x69, - 0x64, 0xca, 0x41, 0x20, 0x0a, 0x0b, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, - 0x6d, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x12, 0xcc, 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x12, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x2a, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0xc8, 0x01, 0x0a, 0x0e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, + 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x49, + 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x4d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, + 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x66, 0x65, 0x74, 0x63, 0x68, 0x49, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0xda, 0x41, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, + 0xe4, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x74, 0x69, + 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x51, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x12, 0x40, 0x2f, 0x76, 0x31, + 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x75, 0x74, 0x69, 0x6c, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0xda, 0x41, 0x06, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xd1, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x55, 0x74, + 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, + 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, + 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, - 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x12, 0x3a, - 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x12, 0xb9, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x12, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x4f, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x42, 0x12, 0x40, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x75, 0x74, + 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, + 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xaf, 0x02, 0x0a, 0x17, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, - 0x67, 0x56, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6e, 0x67, 0x56, 0x6d, 0x22, 0x49, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x12, 0x3a, 0x2f, 0x76, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x74, 0x69, 0x6c, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, + 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0xb7, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x56, 0x22, 0x40, 0x2f, 0x76, 0x31, + 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x75, 0x74, 0x69, 0x6c, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x3a, 0x12, 0x75, + 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, + 0x74, 0xda, 0x41, 0x2f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x75, 0x74, 0x69, 0x6c, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2c, 0x75, 0x74, + 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x5f, 0x69, 0x64, 0xca, 0x41, 0x26, 0x0a, 0x11, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xf3, 0x01, 0x0a, + 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x74, 0x69, + 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, + 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x7c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x2a, 0x40, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x87, 0x02, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, - 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9b, 0x01, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x57, 0x32, 0x47, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x75, 0x74, 0x69, 0x6c, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x2a, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, + 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0xec, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x63, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, + 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, + 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x53, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x44, 0x12, 0x42, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x12, 0xd9, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x3a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x51, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x44, 0x12, 0x42, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, + 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xbd, 0x02, + 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x3d, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc1, 0x01, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x5a, 0x22, 0x42, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, + 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x3a, 0x14, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0xda, 0x41, 0x33, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2c, 0x64, 0x61, 0x74, 0x61, 0x63, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, + 0x69, 0x64, 0xca, 0x41, 0x28, 0x0a, 0x13, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xf9, 0x01, + 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x3d, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x7e, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x44, 0x2a, 0x42, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x0c, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0xda, 0x41, 0x18, 0x6d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0xca, 0x41, 0x20, 0x0a, 0x0b, 0x4d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xe1, 0x01, 0x0a, 0x11, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x12, - 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, - 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x76, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x2a, 0x3a, 0x2f, - 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0xca, 0x41, 0x2a, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xff, 0x01, - 0x0a, 0x0e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, - 0x74, 0x61, 0x72, 0x74, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, + 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x2a, 0x0a, + 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x88, 0x02, 0x0a, 0x10, 0x55, 0x70, + 0x67, 0x72, 0x61, 0x64, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x34, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x67, + 0x72, 0x61, 0x64, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x99, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x56, 0x22, 0x51, 0x2f, 0x76, - 0x31, 0x2f, 0x7b, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x3d, + 0x69, 0x6f, 0x6e, 0x22, 0x9e, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x68, 0x22, 0x63, 0x2f, 0x76, + 0x31, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x2a, 0x7d, + 0x3a, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, + 0x65, 0x3a, 0x01, 0x2a, 0xca, 0x41, 0x2d, 0x0a, 0x18, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, + 0x41, 0x70, 0x70, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x85, 0x02, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, + 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x99, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4a, 0x22, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x3a, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, + 0x5f, 0x76, 0x6d, 0xda, 0x41, 0x23, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x2c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x5f, 0x69, 0x64, 0xca, 0x41, 0x20, 0x0a, 0x0b, 0x4d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xcc, 0x01, 0x0a, + 0x10, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, + 0x73, 0x12, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x12, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, + 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, + 0x6d, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xb9, 0x01, 0x0a, 0x0e, + 0x47, 0x65, 0x74, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x12, 0x32, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x22, 0x49, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x3c, 0x12, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, - 0x3a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, - 0x01, 0x2a, 0xda, 0x41, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, - 0x6d, 0xca, 0x41, 0x2b, 0x0a, 0x16, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x11, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, - 0xf4, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8c, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x57, - 0x22, 0x52, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, - 0x5f, 0x76, 0x6d, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, - 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0xca, 0x41, 0x2c, 0x0a, 0x17, 0x52, 0x65, 0x73, 0x75, - 0x6d, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xf0, 0x01, 0x0a, 0x0e, 0x50, 0x61, 0x75, 0x73, 0x65, - 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x75, 0x73, 0x65, 0x4d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, - 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8a, 0x01, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x56, 0x22, 0x51, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x70, 0x61, 0x75, 0x73, 0x65, 0x4d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0xca, 0x41, 0x2b, 0x0a, 0x16, - 0x50, 0x61, 0x75, 0x73, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x8b, 0x02, 0x0a, 0x11, 0x46, 0x69, - 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, - 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, - 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9f, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x59, 0x22, 0x54, - 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, - 0x6d, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, - 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, - 0x2a, 0x7d, 0x3a, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0xca, 0x41, 0x2e, 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x61, 0x6c, - 0x69, 0x7a, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xff, 0x01, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x32, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, - 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, + 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x87, 0x02, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x12, 0x35, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, + 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x9b, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x57, 0x32, 0x47, 0x2f, 0x76, + 0x31, 0x2f, 0x7b, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x2e, + 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, + 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, + 0x5f, 0x76, 0x6d, 0xda, 0x41, 0x18, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, + 0x76, 0x6d, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0xca, 0x41, + 0x20, 0x0a, 0x0b, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x12, 0x11, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x12, 0xe1, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, - 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x99, 0x01, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x53, 0x22, 0x46, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, - 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x3a, 0x09, - 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0xda, 0x41, 0x1d, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x2c, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x2c, 0x63, 0x6c, 0x6f, - 0x6e, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0xca, 0x41, 0x1d, 0x0a, 0x08, 0x43, 0x6c, - 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xf3, 0x01, 0x0a, 0x0e, 0x43, 0x61, - 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x32, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, - 0x6c, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x76, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x2a, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, + 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, + 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, + 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x2a, 0x0a, 0x15, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xff, 0x01, 0x0a, 0x0e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, + 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x99, 0x01, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x56, 0x22, 0x51, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6d, 0x69, 0x67, 0x72, 0x61, + 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, + 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x0c, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0xca, 0x41, 0x2b, 0x0a, 0x16, 0x53, 0x74, + 0x61, 0x72, 0x74, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xf4, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x75, + 0x6d, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, + 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, - 0x8d, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x52, 0x22, 0x4d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, - 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, - 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x2f, 0x2a, 0x7d, - 0x3a, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0xca, 0x41, 0x2b, 0x0a, 0x16, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x6c, 0x6f, 0x6e, - 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x11, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, - 0xcf, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, - 0x73, 0x12, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x57, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, - 0x12, 0x46, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, - 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x12, 0xbc, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, - 0x62, 0x12, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x8c, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x57, 0x22, 0x52, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x3d, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x73, + 0x75, 0x6d, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0xca, + 0x41, 0x2c, 0x0a, 0x17, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x11, 0x4f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xf0, + 0x01, 0x0a, 0x0e, 0x50, 0x61, 0x75, 0x73, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x22, 0x55, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x48, 0x12, 0x46, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, - 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x6c, 0x6f, - 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x8d, 0x02, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x75, 0x74, 0x6f, 0x76, - 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x12, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, - 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, - 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa3, 0x01, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x57, 0x22, 0x48, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, + 0x50, 0x61, 0x75, 0x73, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, + 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x56, 0x22, 0x51, 0x2f, + 0x76, 0x31, 0x2f, 0x7b, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, - 0x7d, 0x2f, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x73, 0x3a, 0x0b, 0x63, - 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x6a, 0x6f, 0x62, 0xda, 0x41, 0x21, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x2c, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x6a, 0x6f, 0x62, 0x2c, - 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0xca, 0x41, - 0x1f, 0x0a, 0x0a, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x12, 0x11, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x12, 0xfb, 0x01, 0x0a, 0x10, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x75, 0x74, 0x6f, 0x76, - 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x12, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, - 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, - 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x91, 0x01, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x54, 0x22, 0x4f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x2f, 0x63, - 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x63, 0x61, - 0x6e, 0x63, 0x65, 0x6c, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, - 0x2d, 0x0a, 0x18, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, - 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x11, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xd7, - 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, - 0x62, 0x73, 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x7d, 0x3a, 0x70, 0x61, 0x75, 0x73, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x3a, 0x01, 0x2a, 0xca, 0x41, 0x2b, 0x0a, 0x16, 0x50, 0x61, 0x75, 0x73, 0x65, 0x4d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x11, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x12, 0x8b, 0x02, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, - 0x72, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x59, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x4a, 0x12, 0x48, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, - 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x73, 0xda, - 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xc4, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, - 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x12, 0x31, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x74, 0x6f, - 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x74, 0x6f, - 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x22, 0x57, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4a, 0x12, 0x48, - 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, + 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9f, 0x01, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x59, 0x22, 0x54, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, - 0x72, 0x4a, 0x6f, 0x62, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0xaa, 0x01, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x2e, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x97, 0x01, 0x0a, - 0x08, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x39, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0xda, - 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xcd, 0x01, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x22, 0x2a, + 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x66, 0x69, 0x6e, 0x61, 0x6c, + 0x69, 0x7a, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0xda, + 0x41, 0x0c, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x6d, 0xca, 0x41, + 0x2e, 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x4d, 0x69, 0x67, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x11, 0x4f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, + 0xff, 0x01, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, + 0x6f, 0x62, 0x12, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x99, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x53, 0x22, 0x46, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x2a, 0x7d, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x3a, 0x05, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0xda, 0x41, 0x15, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x2c, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0xca, 0x41, 0x1a, 0x0a, 0x05, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xcf, 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x70, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x32, 0x30, - 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, - 0x3a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0xda, 0x41, 0x11, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2c, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0xca, 0x41, 0x1a, 0x0a, 0x05, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xc5, 0x01, 0x0a, 0x0b, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x66, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, - 0x2a, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, + 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x6c, 0x6f, + 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x3a, 0x09, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x6a, 0x6f, + 0x62, 0xda, 0x41, 0x1d, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x63, 0x6c, 0x6f, 0x6e, 0x65, + 0x5f, 0x6a, 0x6f, 0x62, 0x2c, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x69, + 0x64, 0xca, 0x41, 0x1d, 0x0a, 0x08, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x11, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x12, 0xf3, 0x01, 0x0a, 0x0e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x6c, 0x6f, 0x6e, + 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, + 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, + 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8d, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x52, + 0x22, 0x4d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x2a, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0xca, 0x41, 0x2a, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x11, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x12, 0xed, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, - 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x81, 0x01, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x22, 0x3d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, - 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0xca, - 0x41, 0x2e, 0x0a, 0x19, 0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x11, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x12, 0xf9, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x6c, 0x6f, 0x6e, + 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x3a, + 0x01, 0x2a, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x2b, 0x0a, 0x16, 0x43, 0x61, + 0x6e, 0x63, 0x65, 0x6c, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xcf, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, + 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6c, 0x6f, 0x6e, + 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, + 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x57, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x12, 0x46, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, + 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, + 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x73, + 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xbc, 0x01, 0x0a, 0x0b, 0x47, 0x65, + 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x6f, 0x6e, 0x65, + 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, + 0x62, 0x22, 0x55, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x12, 0x46, 0x2f, 0x76, 0x31, 0x2f, 0x7b, + 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, + 0x6d, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x6c, 0x6f, 0x6e, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x2f, 0x2a, + 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x8d, 0x02, 0x0a, 0x10, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x12, 0x34, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, + 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0xa3, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x57, 0x22, 0x48, 0x2f, 0x76, 0x31, + 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, + 0x72, 0x4a, 0x6f, 0x62, 0x73, 0x3a, 0x0b, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x5f, 0x6a, + 0x6f, 0x62, 0xda, 0x41, 0x21, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x63, 0x75, 0x74, 0x6f, + 0x76, 0x65, 0x72, 0x5f, 0x6a, 0x6f, 0x62, 0x2c, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x5f, + 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0xca, 0x41, 0x1f, 0x0a, 0x0a, 0x43, 0x75, 0x74, 0x6f, 0x76, + 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xfb, 0x01, 0x0a, 0x10, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x12, 0x34, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, + 0x65, 0x6c, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x87, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x22, 0x40, 0x2f, 0x76, 0x31, - 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x6f, 0x6e, 0x22, 0x91, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x54, 0x22, 0x4f, 0x2f, 0x76, 0x31, + 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, + 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, + 0x62, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x3a, 0x01, 0x2a, 0xda, + 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x2d, 0x0a, 0x18, 0x43, 0x61, 0x6e, 0x63, 0x65, + 0x6c, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xd7, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x43, + 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x75, 0x74, + 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, + 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x59, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4a, 0x12, 0x48, 0x2f, + 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, + 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x75, 0x74, 0x6f, + 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, + 0x12, 0xc4, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, + 0x6f, 0x62, 0x12, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x22, 0x57, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4a, 0x12, 0x48, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, + 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, + 0x2a, 0x2f, 0x63, 0x75, 0x74, 0x6f, 0x76, 0x65, 0x72, 0x4a, 0x6f, 0x62, 0x73, 0x2f, 0x2a, 0x7d, + 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xaa, 0x01, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, + 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x12, 0x97, 0x01, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x12, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, + 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x76, 0x31, + 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0xcd, + 0x01, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2f, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, + 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6e, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x22, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, + 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x73, 0x3a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0xda, 0x41, 0x15, 0x70, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x2c, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2c, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, + 0x64, 0xca, 0x41, 0x1a, 0x0a, 0x05, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x11, 0x4f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xcf, + 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2f, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, + 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x70, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x32, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, - 0xda, 0x41, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0xca, 0x41, 0x31, 0x0a, 0x1c, 0x52, 0x65, 0x6d, + 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0xda, + 0x41, 0x11, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, + 0x61, 0x73, 0x6b, 0xca, 0x41, 0x1a, 0x0a, 0x05, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x11, 0x4f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x12, 0xc5, 0x01, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x12, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, + 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, + 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x66, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x2a, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, + 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, + 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x2a, 0x0a, 0x15, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xed, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, + 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, + 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x81, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x22, 0x3d, 0x2f, + 0x76, 0x31, 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, + 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x64, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0xda, + 0x41, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0xca, 0x41, 0x2e, 0x0a, 0x19, 0x41, 0x64, 0x64, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xf9, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xca, 0x01, 0x0a, - 0x12, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x73, 0x12, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x67, 0x6f, + 0x6e, 0x12, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, + 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x87, 0x01, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x45, 0x22, 0x40, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x3d, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, + 0x3a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0xda, 0x41, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0xca, 0x41, 0x31, 0x0a, 0x1c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0xca, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x76, - 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, - 0x7d, 0x2f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, - 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xb7, 0x01, 0x0a, 0x10, 0x47, 0x65, - 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x34, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, - 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x76, 0x31, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, - 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x89, 0x02, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x37, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, - 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x99, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x22, 0x32, 0x2f, 0x76, - 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, - 0x7d, 0x2f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, - 0x3a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0xda, 0x41, 0x27, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0xca, 0x41, 0x22, 0x0a, 0x0d, 0x54, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x11, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x8b, 0x02, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, - 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, - 0x9b, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x53, 0x32, 0x41, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x6e, 0x61, - 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x0e, 0x74, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0xda, 0x41, 0x1a, 0x74, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0xca, 0x41, 0x22, 0x0a, 0x0d, 0x54, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xdd, 0x01, - 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, - 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6e, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x2a, 0x32, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, - 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0xca, 0x41, 0x2a, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x4e, 0xca, - 0x41, 0x1a, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, - 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xda, 0x01, - 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, + 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x43, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x12, 0xb7, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, + 0x12, 0x32, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x2a, 0x2f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x2a, 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x89, 0x02, 0x0a, 0x13, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x12, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, - 0x31, 0x42, 0x10, 0x56, 0x6d, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x46, 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, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2f, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, - 0x31, 0x3b, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xaa, 0x02, 0x1b, - 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x56, 0x4d, 0x4d, - 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1b, 0x47, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x56, 0x4d, 0x4d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x56, 0x4d, 0x4d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, + 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x99, 0x01, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x44, 0x22, 0x32, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x3a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0xda, 0x41, 0x27, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x2c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x2c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, + 0x69, 0x64, 0xca, 0x41, 0x22, 0x0a, 0x0d, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x8b, 0x02, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, + 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, + 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9b, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x53, + 0x32, 0x41, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, + 0x2a, 0x2f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x2f, 0x2a, 0x7d, 0x3a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0xda, 0x41, 0x1a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, + 0xca, 0x41, 0x22, 0x0a, 0x0d, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xdd, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x37, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, + 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x2a, 0x32, 0x2f, + 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, + 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, + 0x7d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xca, 0x41, 0x2a, 0x0a, 0x15, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, + 0x74, 0x79, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0xef, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x73, 0x12, + 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, + 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x79, 0x63, + 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x50, 0x12, 0x4e, + 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x73, 0xda, 0x41, + 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0xdc, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x12, + 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, + 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x79, 0x63, 0x6c, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x22, 0x5d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x50, 0x12, + 0x4e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, + 0x2a, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x69, 0x67, 0x72, + 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x6d, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0xda, + 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x1a, 0x4e, 0xca, 0x41, 0x1a, 0x76, 0x6d, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, + 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xda, 0x01, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x6d, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x10, 0x56, 0x6d, 0x4d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x46, + 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, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 0x6d, 0x6d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x76, 0x6d, 0x6d, 0x69, 0x67, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0xaa, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x56, 0x4d, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, + 0x6f, 0x75, 0x64, 0x5c, 0x56, 0x4d, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5c, + 0x56, 0x31, 0xea, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, + 0x75, 0x64, 0x3a, 0x3a, 0x56, 0x4d, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, + 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -10424,342 +12918,416 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescGZIP() []byte { return file_google_cloud_vmmigration_v1_vmmigration_proto_rawDescData } -var file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes = make([]protoimpl.EnumInfo, 19) -var file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes = make([]protoimpl.MessageInfo, 95) +var file_google_cloud_vmmigration_v1_vmmigration_proto_enumTypes = make([]protoimpl.EnumInfo, 26) +var file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes = make([]protoimpl.MessageInfo, 117) var file_google_cloud_vmmigration_v1_vmmigration_proto_goTypes = []interface{}{ - (UtilizationReportView)(0), // 0: google.cloud.vmmigration.v1.UtilizationReportView - (MigratingVmView)(0), // 1: google.cloud.vmmigration.v1.MigratingVmView - (ComputeEngineDiskType)(0), // 2: google.cloud.vmmigration.v1.ComputeEngineDiskType - (ComputeEngineLicenseType)(0), // 3: google.cloud.vmmigration.v1.ComputeEngineLicenseType - (ComputeEngineBootOption)(0), // 4: google.cloud.vmmigration.v1.ComputeEngineBootOption - (MigratingVm_State)(0), // 5: google.cloud.vmmigration.v1.MigratingVm.State - (CloneJob_State)(0), // 6: google.cloud.vmmigration.v1.CloneJob.State - (CutoverJob_State)(0), // 7: google.cloud.vmmigration.v1.CutoverJob.State - (DatacenterConnector_State)(0), // 8: google.cloud.vmmigration.v1.DatacenterConnector.State - (UpgradeStatus_State)(0), // 9: google.cloud.vmmigration.v1.UpgradeStatus.State - (VmwareVmDetails_PowerState)(0), // 10: google.cloud.vmmigration.v1.VmwareVmDetails.PowerState - (VmwareVmDetails_BootOption)(0), // 11: google.cloud.vmmigration.v1.VmwareVmDetails.BootOption - (UtilizationReport_State)(0), // 12: google.cloud.vmmigration.v1.UtilizationReport.State - (UtilizationReport_TimeFrame)(0), // 13: google.cloud.vmmigration.v1.UtilizationReport.TimeFrame - (AppliedLicense_Type)(0), // 14: google.cloud.vmmigration.v1.AppliedLicense.Type - (SchedulingNodeAffinity_Operator)(0), // 15: google.cloud.vmmigration.v1.SchedulingNodeAffinity.Operator - (ComputeScheduling_OnHostMaintenance)(0), // 16: google.cloud.vmmigration.v1.ComputeScheduling.OnHostMaintenance - (ComputeScheduling_RestartType)(0), // 17: google.cloud.vmmigration.v1.ComputeScheduling.RestartType - (MigrationError_ErrorCode)(0), // 18: google.cloud.vmmigration.v1.MigrationError.ErrorCode - (*ReplicationCycle)(nil), // 19: google.cloud.vmmigration.v1.ReplicationCycle - (*ReplicationSync)(nil), // 20: google.cloud.vmmigration.v1.ReplicationSync - (*MigratingVm)(nil), // 21: google.cloud.vmmigration.v1.MigratingVm - (*CloneJob)(nil), // 22: google.cloud.vmmigration.v1.CloneJob - (*CutoverJob)(nil), // 23: google.cloud.vmmigration.v1.CutoverJob - (*CreateCloneJobRequest)(nil), // 24: google.cloud.vmmigration.v1.CreateCloneJobRequest - (*CancelCloneJobRequest)(nil), // 25: google.cloud.vmmigration.v1.CancelCloneJobRequest - (*CancelCloneJobResponse)(nil), // 26: google.cloud.vmmigration.v1.CancelCloneJobResponse - (*ListCloneJobsRequest)(nil), // 27: google.cloud.vmmigration.v1.ListCloneJobsRequest - (*ListCloneJobsResponse)(nil), // 28: google.cloud.vmmigration.v1.ListCloneJobsResponse - (*GetCloneJobRequest)(nil), // 29: google.cloud.vmmigration.v1.GetCloneJobRequest - (*Source)(nil), // 30: google.cloud.vmmigration.v1.Source - (*VmwareSourceDetails)(nil), // 31: google.cloud.vmmigration.v1.VmwareSourceDetails - (*DatacenterConnector)(nil), // 32: google.cloud.vmmigration.v1.DatacenterConnector - (*UpgradeStatus)(nil), // 33: google.cloud.vmmigration.v1.UpgradeStatus - (*AvailableUpdates)(nil), // 34: google.cloud.vmmigration.v1.AvailableUpdates - (*ApplianceVersion)(nil), // 35: google.cloud.vmmigration.v1.ApplianceVersion - (*ListSourcesRequest)(nil), // 36: google.cloud.vmmigration.v1.ListSourcesRequest - (*ListSourcesResponse)(nil), // 37: google.cloud.vmmigration.v1.ListSourcesResponse - (*GetSourceRequest)(nil), // 38: google.cloud.vmmigration.v1.GetSourceRequest - (*CreateSourceRequest)(nil), // 39: google.cloud.vmmigration.v1.CreateSourceRequest - (*UpdateSourceRequest)(nil), // 40: google.cloud.vmmigration.v1.UpdateSourceRequest - (*DeleteSourceRequest)(nil), // 41: google.cloud.vmmigration.v1.DeleteSourceRequest - (*FetchInventoryRequest)(nil), // 42: google.cloud.vmmigration.v1.FetchInventoryRequest - (*VmwareVmDetails)(nil), // 43: google.cloud.vmmigration.v1.VmwareVmDetails - (*VmwareVmsDetails)(nil), // 44: google.cloud.vmmigration.v1.VmwareVmsDetails - (*FetchInventoryResponse)(nil), // 45: google.cloud.vmmigration.v1.FetchInventoryResponse - (*UtilizationReport)(nil), // 46: google.cloud.vmmigration.v1.UtilizationReport - (*VmUtilizationInfo)(nil), // 47: google.cloud.vmmigration.v1.VmUtilizationInfo - (*VmUtilizationMetrics)(nil), // 48: google.cloud.vmmigration.v1.VmUtilizationMetrics - (*ListUtilizationReportsRequest)(nil), // 49: google.cloud.vmmigration.v1.ListUtilizationReportsRequest - (*ListUtilizationReportsResponse)(nil), // 50: google.cloud.vmmigration.v1.ListUtilizationReportsResponse - (*GetUtilizationReportRequest)(nil), // 51: google.cloud.vmmigration.v1.GetUtilizationReportRequest - (*CreateUtilizationReportRequest)(nil), // 52: google.cloud.vmmigration.v1.CreateUtilizationReportRequest - (*DeleteUtilizationReportRequest)(nil), // 53: google.cloud.vmmigration.v1.DeleteUtilizationReportRequest - (*ListDatacenterConnectorsResponse)(nil), // 54: google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse - (*GetDatacenterConnectorRequest)(nil), // 55: google.cloud.vmmigration.v1.GetDatacenterConnectorRequest - (*CreateDatacenterConnectorRequest)(nil), // 56: google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest - (*DeleteDatacenterConnectorRequest)(nil), // 57: google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest - (*UpgradeApplianceRequest)(nil), // 58: google.cloud.vmmigration.v1.UpgradeApplianceRequest - (*UpgradeApplianceResponse)(nil), // 59: google.cloud.vmmigration.v1.UpgradeApplianceResponse - (*ListDatacenterConnectorsRequest)(nil), // 60: google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest - (*ComputeEngineTargetDefaults)(nil), // 61: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults - (*ComputeEngineTargetDetails)(nil), // 62: google.cloud.vmmigration.v1.ComputeEngineTargetDetails - (*NetworkInterface)(nil), // 63: google.cloud.vmmigration.v1.NetworkInterface - (*AppliedLicense)(nil), // 64: google.cloud.vmmigration.v1.AppliedLicense - (*SchedulingNodeAffinity)(nil), // 65: google.cloud.vmmigration.v1.SchedulingNodeAffinity - (*ComputeScheduling)(nil), // 66: google.cloud.vmmigration.v1.ComputeScheduling - (*SchedulePolicy)(nil), // 67: google.cloud.vmmigration.v1.SchedulePolicy - (*CreateMigratingVmRequest)(nil), // 68: google.cloud.vmmigration.v1.CreateMigratingVmRequest - (*ListMigratingVmsRequest)(nil), // 69: google.cloud.vmmigration.v1.ListMigratingVmsRequest - (*ListMigratingVmsResponse)(nil), // 70: google.cloud.vmmigration.v1.ListMigratingVmsResponse - (*GetMigratingVmRequest)(nil), // 71: google.cloud.vmmigration.v1.GetMigratingVmRequest - (*UpdateMigratingVmRequest)(nil), // 72: google.cloud.vmmigration.v1.UpdateMigratingVmRequest - (*DeleteMigratingVmRequest)(nil), // 73: google.cloud.vmmigration.v1.DeleteMigratingVmRequest - (*StartMigrationRequest)(nil), // 74: google.cloud.vmmigration.v1.StartMigrationRequest - (*StartMigrationResponse)(nil), // 75: google.cloud.vmmigration.v1.StartMigrationResponse - (*PauseMigrationRequest)(nil), // 76: google.cloud.vmmigration.v1.PauseMigrationRequest - (*PauseMigrationResponse)(nil), // 77: google.cloud.vmmigration.v1.PauseMigrationResponse - (*ResumeMigrationRequest)(nil), // 78: google.cloud.vmmigration.v1.ResumeMigrationRequest - (*ResumeMigrationResponse)(nil), // 79: google.cloud.vmmigration.v1.ResumeMigrationResponse - (*FinalizeMigrationRequest)(nil), // 80: google.cloud.vmmigration.v1.FinalizeMigrationRequest - (*FinalizeMigrationResponse)(nil), // 81: google.cloud.vmmigration.v1.FinalizeMigrationResponse - (*TargetProject)(nil), // 82: google.cloud.vmmigration.v1.TargetProject - (*GetTargetProjectRequest)(nil), // 83: google.cloud.vmmigration.v1.GetTargetProjectRequest - (*ListTargetProjectsRequest)(nil), // 84: google.cloud.vmmigration.v1.ListTargetProjectsRequest - (*ListTargetProjectsResponse)(nil), // 85: google.cloud.vmmigration.v1.ListTargetProjectsResponse - (*CreateTargetProjectRequest)(nil), // 86: google.cloud.vmmigration.v1.CreateTargetProjectRequest - (*UpdateTargetProjectRequest)(nil), // 87: google.cloud.vmmigration.v1.UpdateTargetProjectRequest - (*DeleteTargetProjectRequest)(nil), // 88: google.cloud.vmmigration.v1.DeleteTargetProjectRequest - (*Group)(nil), // 89: google.cloud.vmmigration.v1.Group - (*ListGroupsRequest)(nil), // 90: google.cloud.vmmigration.v1.ListGroupsRequest - (*ListGroupsResponse)(nil), // 91: google.cloud.vmmigration.v1.ListGroupsResponse - (*GetGroupRequest)(nil), // 92: google.cloud.vmmigration.v1.GetGroupRequest - (*CreateGroupRequest)(nil), // 93: google.cloud.vmmigration.v1.CreateGroupRequest - (*UpdateGroupRequest)(nil), // 94: google.cloud.vmmigration.v1.UpdateGroupRequest - (*DeleteGroupRequest)(nil), // 95: google.cloud.vmmigration.v1.DeleteGroupRequest - (*AddGroupMigrationRequest)(nil), // 96: google.cloud.vmmigration.v1.AddGroupMigrationRequest - (*AddGroupMigrationResponse)(nil), // 97: google.cloud.vmmigration.v1.AddGroupMigrationResponse - (*RemoveGroupMigrationRequest)(nil), // 98: google.cloud.vmmigration.v1.RemoveGroupMigrationRequest - (*RemoveGroupMigrationResponse)(nil), // 99: google.cloud.vmmigration.v1.RemoveGroupMigrationResponse - (*CreateCutoverJobRequest)(nil), // 100: google.cloud.vmmigration.v1.CreateCutoverJobRequest - (*CancelCutoverJobRequest)(nil), // 101: google.cloud.vmmigration.v1.CancelCutoverJobRequest - (*CancelCutoverJobResponse)(nil), // 102: google.cloud.vmmigration.v1.CancelCutoverJobResponse - (*ListCutoverJobsRequest)(nil), // 103: google.cloud.vmmigration.v1.ListCutoverJobsRequest - (*ListCutoverJobsResponse)(nil), // 104: google.cloud.vmmigration.v1.ListCutoverJobsResponse - (*GetCutoverJobRequest)(nil), // 105: google.cloud.vmmigration.v1.GetCutoverJobRequest - (*OperationMetadata)(nil), // 106: google.cloud.vmmigration.v1.OperationMetadata - (*MigrationError)(nil), // 107: google.cloud.vmmigration.v1.MigrationError - nil, // 108: google.cloud.vmmigration.v1.MigratingVm.LabelsEntry - nil, // 109: google.cloud.vmmigration.v1.Source.LabelsEntry - nil, // 110: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.LabelsEntry - nil, // 111: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.MetadataEntry - nil, // 112: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.LabelsEntry - nil, // 113: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.MetadataEntry - (*timestamppb.Timestamp)(nil), // 114: google.protobuf.Timestamp - (*status.Status)(nil), // 115: google.rpc.Status - (*fieldmaskpb.FieldMask)(nil), // 116: google.protobuf.FieldMask - (*durationpb.Duration)(nil), // 117: google.protobuf.Duration - (*errdetails.LocalizedMessage)(nil), // 118: google.rpc.LocalizedMessage - (*errdetails.Help_Link)(nil), // 119: google.rpc.Help.Link - (*longrunning.Operation)(nil), // 120: google.longrunning.Operation + (UtilizationReportView)(0), // 0: google.cloud.vmmigration.v1.UtilizationReportView + (MigratingVmView)(0), // 1: google.cloud.vmmigration.v1.MigratingVmView + (ComputeEngineDiskType)(0), // 2: google.cloud.vmmigration.v1.ComputeEngineDiskType + (ComputeEngineLicenseType)(0), // 3: google.cloud.vmmigration.v1.ComputeEngineLicenseType + (ComputeEngineBootOption)(0), // 4: google.cloud.vmmigration.v1.ComputeEngineBootOption + (ReplicationCycle_State)(0), // 5: google.cloud.vmmigration.v1.ReplicationCycle.State + (MigratingVm_State)(0), // 6: google.cloud.vmmigration.v1.MigratingVm.State + (CloneJob_State)(0), // 7: google.cloud.vmmigration.v1.CloneJob.State + (CutoverJob_State)(0), // 8: google.cloud.vmmigration.v1.CutoverJob.State + (AwsSourceDetails_State)(0), // 9: google.cloud.vmmigration.v1.AwsSourceDetails.State + (DatacenterConnector_State)(0), // 10: google.cloud.vmmigration.v1.DatacenterConnector.State + (UpgradeStatus_State)(0), // 11: google.cloud.vmmigration.v1.UpgradeStatus.State + (VmwareVmDetails_PowerState)(0), // 12: google.cloud.vmmigration.v1.VmwareVmDetails.PowerState + (VmwareVmDetails_BootOption)(0), // 13: google.cloud.vmmigration.v1.VmwareVmDetails.BootOption + (AwsVmDetails_PowerState)(0), // 14: google.cloud.vmmigration.v1.AwsVmDetails.PowerState + (AwsVmDetails_BootOption)(0), // 15: google.cloud.vmmigration.v1.AwsVmDetails.BootOption + (AwsVmDetails_VmVirtualizationType)(0), // 16: google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType + (AwsVmDetails_VmArchitecture)(0), // 17: google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture + (UtilizationReport_State)(0), // 18: google.cloud.vmmigration.v1.UtilizationReport.State + (UtilizationReport_TimeFrame)(0), // 19: google.cloud.vmmigration.v1.UtilizationReport.TimeFrame + (AppliedLicense_Type)(0), // 20: google.cloud.vmmigration.v1.AppliedLicense.Type + (SchedulingNodeAffinity_Operator)(0), // 21: google.cloud.vmmigration.v1.SchedulingNodeAffinity.Operator + (ComputeScheduling_OnHostMaintenance)(0), // 22: google.cloud.vmmigration.v1.ComputeScheduling.OnHostMaintenance + (ComputeScheduling_RestartType)(0), // 23: google.cloud.vmmigration.v1.ComputeScheduling.RestartType + (MigrationError_ErrorCode)(0), // 24: google.cloud.vmmigration.v1.MigrationError.ErrorCode + (AwsSourceVmDetails_Firmware)(0), // 25: google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware + (*ReplicationCycle)(nil), // 26: google.cloud.vmmigration.v1.ReplicationCycle + (*CycleStep)(nil), // 27: google.cloud.vmmigration.v1.CycleStep + (*InitializingReplicationStep)(nil), // 28: google.cloud.vmmigration.v1.InitializingReplicationStep + (*ReplicatingStep)(nil), // 29: google.cloud.vmmigration.v1.ReplicatingStep + (*PostProcessingStep)(nil), // 30: google.cloud.vmmigration.v1.PostProcessingStep + (*ReplicationSync)(nil), // 31: google.cloud.vmmigration.v1.ReplicationSync + (*MigratingVm)(nil), // 32: google.cloud.vmmigration.v1.MigratingVm + (*CloneJob)(nil), // 33: google.cloud.vmmigration.v1.CloneJob + (*CloneStep)(nil), // 34: google.cloud.vmmigration.v1.CloneStep + (*AdaptingOSStep)(nil), // 35: google.cloud.vmmigration.v1.AdaptingOSStep + (*PreparingVMDisksStep)(nil), // 36: google.cloud.vmmigration.v1.PreparingVMDisksStep + (*InstantiatingMigratedVMStep)(nil), // 37: google.cloud.vmmigration.v1.InstantiatingMigratedVMStep + (*CutoverJob)(nil), // 38: google.cloud.vmmigration.v1.CutoverJob + (*CutoverStep)(nil), // 39: google.cloud.vmmigration.v1.CutoverStep + (*ShuttingDownSourceVMStep)(nil), // 40: google.cloud.vmmigration.v1.ShuttingDownSourceVMStep + (*CreateCloneJobRequest)(nil), // 41: google.cloud.vmmigration.v1.CreateCloneJobRequest + (*CancelCloneJobRequest)(nil), // 42: google.cloud.vmmigration.v1.CancelCloneJobRequest + (*CancelCloneJobResponse)(nil), // 43: google.cloud.vmmigration.v1.CancelCloneJobResponse + (*ListCloneJobsRequest)(nil), // 44: google.cloud.vmmigration.v1.ListCloneJobsRequest + (*ListCloneJobsResponse)(nil), // 45: google.cloud.vmmigration.v1.ListCloneJobsResponse + (*GetCloneJobRequest)(nil), // 46: google.cloud.vmmigration.v1.GetCloneJobRequest + (*Source)(nil), // 47: google.cloud.vmmigration.v1.Source + (*VmwareSourceDetails)(nil), // 48: google.cloud.vmmigration.v1.VmwareSourceDetails + (*AwsSourceDetails)(nil), // 49: google.cloud.vmmigration.v1.AwsSourceDetails + (*DatacenterConnector)(nil), // 50: google.cloud.vmmigration.v1.DatacenterConnector + (*UpgradeStatus)(nil), // 51: google.cloud.vmmigration.v1.UpgradeStatus + (*AvailableUpdates)(nil), // 52: google.cloud.vmmigration.v1.AvailableUpdates + (*ApplianceVersion)(nil), // 53: google.cloud.vmmigration.v1.ApplianceVersion + (*ListSourcesRequest)(nil), // 54: google.cloud.vmmigration.v1.ListSourcesRequest + (*ListSourcesResponse)(nil), // 55: google.cloud.vmmigration.v1.ListSourcesResponse + (*GetSourceRequest)(nil), // 56: google.cloud.vmmigration.v1.GetSourceRequest + (*CreateSourceRequest)(nil), // 57: google.cloud.vmmigration.v1.CreateSourceRequest + (*UpdateSourceRequest)(nil), // 58: google.cloud.vmmigration.v1.UpdateSourceRequest + (*DeleteSourceRequest)(nil), // 59: google.cloud.vmmigration.v1.DeleteSourceRequest + (*FetchInventoryRequest)(nil), // 60: google.cloud.vmmigration.v1.FetchInventoryRequest + (*VmwareVmDetails)(nil), // 61: google.cloud.vmmigration.v1.VmwareVmDetails + (*AwsVmDetails)(nil), // 62: google.cloud.vmmigration.v1.AwsVmDetails + (*AwsSecurityGroup)(nil), // 63: google.cloud.vmmigration.v1.AwsSecurityGroup + (*VmwareVmsDetails)(nil), // 64: google.cloud.vmmigration.v1.VmwareVmsDetails + (*AwsVmsDetails)(nil), // 65: google.cloud.vmmigration.v1.AwsVmsDetails + (*FetchInventoryResponse)(nil), // 66: google.cloud.vmmigration.v1.FetchInventoryResponse + (*UtilizationReport)(nil), // 67: google.cloud.vmmigration.v1.UtilizationReport + (*VmUtilizationInfo)(nil), // 68: google.cloud.vmmigration.v1.VmUtilizationInfo + (*VmUtilizationMetrics)(nil), // 69: google.cloud.vmmigration.v1.VmUtilizationMetrics + (*ListUtilizationReportsRequest)(nil), // 70: google.cloud.vmmigration.v1.ListUtilizationReportsRequest + (*ListUtilizationReportsResponse)(nil), // 71: google.cloud.vmmigration.v1.ListUtilizationReportsResponse + (*GetUtilizationReportRequest)(nil), // 72: google.cloud.vmmigration.v1.GetUtilizationReportRequest + (*CreateUtilizationReportRequest)(nil), // 73: google.cloud.vmmigration.v1.CreateUtilizationReportRequest + (*DeleteUtilizationReportRequest)(nil), // 74: google.cloud.vmmigration.v1.DeleteUtilizationReportRequest + (*ListDatacenterConnectorsResponse)(nil), // 75: google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse + (*GetDatacenterConnectorRequest)(nil), // 76: google.cloud.vmmigration.v1.GetDatacenterConnectorRequest + (*CreateDatacenterConnectorRequest)(nil), // 77: google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest + (*DeleteDatacenterConnectorRequest)(nil), // 78: google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest + (*UpgradeApplianceRequest)(nil), // 79: google.cloud.vmmigration.v1.UpgradeApplianceRequest + (*UpgradeApplianceResponse)(nil), // 80: google.cloud.vmmigration.v1.UpgradeApplianceResponse + (*ListDatacenterConnectorsRequest)(nil), // 81: google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest + (*ComputeEngineTargetDefaults)(nil), // 82: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults + (*ComputeEngineTargetDetails)(nil), // 83: google.cloud.vmmigration.v1.ComputeEngineTargetDetails + (*NetworkInterface)(nil), // 84: google.cloud.vmmigration.v1.NetworkInterface + (*AppliedLicense)(nil), // 85: google.cloud.vmmigration.v1.AppliedLicense + (*SchedulingNodeAffinity)(nil), // 86: google.cloud.vmmigration.v1.SchedulingNodeAffinity + (*ComputeScheduling)(nil), // 87: google.cloud.vmmigration.v1.ComputeScheduling + (*SchedulePolicy)(nil), // 88: google.cloud.vmmigration.v1.SchedulePolicy + (*CreateMigratingVmRequest)(nil), // 89: google.cloud.vmmigration.v1.CreateMigratingVmRequest + (*ListMigratingVmsRequest)(nil), // 90: google.cloud.vmmigration.v1.ListMigratingVmsRequest + (*ListMigratingVmsResponse)(nil), // 91: google.cloud.vmmigration.v1.ListMigratingVmsResponse + (*GetMigratingVmRequest)(nil), // 92: google.cloud.vmmigration.v1.GetMigratingVmRequest + (*UpdateMigratingVmRequest)(nil), // 93: google.cloud.vmmigration.v1.UpdateMigratingVmRequest + (*DeleteMigratingVmRequest)(nil), // 94: google.cloud.vmmigration.v1.DeleteMigratingVmRequest + (*StartMigrationRequest)(nil), // 95: google.cloud.vmmigration.v1.StartMigrationRequest + (*StartMigrationResponse)(nil), // 96: google.cloud.vmmigration.v1.StartMigrationResponse + (*PauseMigrationRequest)(nil), // 97: google.cloud.vmmigration.v1.PauseMigrationRequest + (*PauseMigrationResponse)(nil), // 98: google.cloud.vmmigration.v1.PauseMigrationResponse + (*ResumeMigrationRequest)(nil), // 99: google.cloud.vmmigration.v1.ResumeMigrationRequest + (*ResumeMigrationResponse)(nil), // 100: google.cloud.vmmigration.v1.ResumeMigrationResponse + (*FinalizeMigrationRequest)(nil), // 101: google.cloud.vmmigration.v1.FinalizeMigrationRequest + (*FinalizeMigrationResponse)(nil), // 102: google.cloud.vmmigration.v1.FinalizeMigrationResponse + (*TargetProject)(nil), // 103: google.cloud.vmmigration.v1.TargetProject + (*GetTargetProjectRequest)(nil), // 104: google.cloud.vmmigration.v1.GetTargetProjectRequest + (*ListTargetProjectsRequest)(nil), // 105: google.cloud.vmmigration.v1.ListTargetProjectsRequest + (*ListTargetProjectsResponse)(nil), // 106: google.cloud.vmmigration.v1.ListTargetProjectsResponse + (*CreateTargetProjectRequest)(nil), // 107: google.cloud.vmmigration.v1.CreateTargetProjectRequest + (*UpdateTargetProjectRequest)(nil), // 108: google.cloud.vmmigration.v1.UpdateTargetProjectRequest + (*DeleteTargetProjectRequest)(nil), // 109: google.cloud.vmmigration.v1.DeleteTargetProjectRequest + (*Group)(nil), // 110: google.cloud.vmmigration.v1.Group + (*ListGroupsRequest)(nil), // 111: google.cloud.vmmigration.v1.ListGroupsRequest + (*ListGroupsResponse)(nil), // 112: google.cloud.vmmigration.v1.ListGroupsResponse + (*GetGroupRequest)(nil), // 113: google.cloud.vmmigration.v1.GetGroupRequest + (*CreateGroupRequest)(nil), // 114: google.cloud.vmmigration.v1.CreateGroupRequest + (*UpdateGroupRequest)(nil), // 115: google.cloud.vmmigration.v1.UpdateGroupRequest + (*DeleteGroupRequest)(nil), // 116: google.cloud.vmmigration.v1.DeleteGroupRequest + (*AddGroupMigrationRequest)(nil), // 117: google.cloud.vmmigration.v1.AddGroupMigrationRequest + (*AddGroupMigrationResponse)(nil), // 118: google.cloud.vmmigration.v1.AddGroupMigrationResponse + (*RemoveGroupMigrationRequest)(nil), // 119: google.cloud.vmmigration.v1.RemoveGroupMigrationRequest + (*RemoveGroupMigrationResponse)(nil), // 120: google.cloud.vmmigration.v1.RemoveGroupMigrationResponse + (*CreateCutoverJobRequest)(nil), // 121: google.cloud.vmmigration.v1.CreateCutoverJobRequest + (*CancelCutoverJobRequest)(nil), // 122: google.cloud.vmmigration.v1.CancelCutoverJobRequest + (*CancelCutoverJobResponse)(nil), // 123: google.cloud.vmmigration.v1.CancelCutoverJobResponse + (*ListCutoverJobsRequest)(nil), // 124: google.cloud.vmmigration.v1.ListCutoverJobsRequest + (*ListCutoverJobsResponse)(nil), // 125: google.cloud.vmmigration.v1.ListCutoverJobsResponse + (*GetCutoverJobRequest)(nil), // 126: google.cloud.vmmigration.v1.GetCutoverJobRequest + (*OperationMetadata)(nil), // 127: google.cloud.vmmigration.v1.OperationMetadata + (*MigrationError)(nil), // 128: google.cloud.vmmigration.v1.MigrationError + (*AwsSourceVmDetails)(nil), // 129: google.cloud.vmmigration.v1.AwsSourceVmDetails + (*ListReplicationCyclesRequest)(nil), // 130: google.cloud.vmmigration.v1.ListReplicationCyclesRequest + (*ListReplicationCyclesResponse)(nil), // 131: google.cloud.vmmigration.v1.ListReplicationCyclesResponse + (*GetReplicationCycleRequest)(nil), // 132: google.cloud.vmmigration.v1.GetReplicationCycleRequest + nil, // 133: google.cloud.vmmigration.v1.MigratingVm.LabelsEntry + nil, // 134: google.cloud.vmmigration.v1.Source.LabelsEntry + (*AwsSourceDetails_AccessKeyCredentials)(nil), // 135: google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials + (*AwsSourceDetails_Tag)(nil), // 136: google.cloud.vmmigration.v1.AwsSourceDetails.Tag + nil, // 137: google.cloud.vmmigration.v1.AwsSourceDetails.MigrationResourcesUserTagsEntry + nil, // 138: google.cloud.vmmigration.v1.AwsVmDetails.TagsEntry + nil, // 139: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.LabelsEntry + nil, // 140: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.MetadataEntry + nil, // 141: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.LabelsEntry + nil, // 142: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.MetadataEntry + (*timestamppb.Timestamp)(nil), // 143: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 144: google.protobuf.Duration + (*status.Status)(nil), // 145: google.rpc.Status + (*fieldmaskpb.FieldMask)(nil), // 146: google.protobuf.FieldMask + (*errdetails.LocalizedMessage)(nil), // 147: google.rpc.LocalizedMessage + (*errdetails.Help_Link)(nil), // 148: google.rpc.Help.Link + (*longrunning.Operation)(nil), // 149: google.longrunning.Operation } var file_google_cloud_vmmigration_v1_vmmigration_proto_depIdxs = []int32{ - 114, // 0: google.cloud.vmmigration.v1.ReplicationCycle.start_time:type_name -> google.protobuf.Timestamp - 114, // 1: google.cloud.vmmigration.v1.ReplicationSync.last_sync_time:type_name -> google.protobuf.Timestamp - 61, // 2: google.cloud.vmmigration.v1.MigratingVm.compute_engine_target_defaults:type_name -> google.cloud.vmmigration.v1.ComputeEngineTargetDefaults - 67, // 3: google.cloud.vmmigration.v1.MigratingVm.policy:type_name -> google.cloud.vmmigration.v1.SchedulePolicy - 114, // 4: google.cloud.vmmigration.v1.MigratingVm.create_time:type_name -> google.protobuf.Timestamp - 114, // 5: google.cloud.vmmigration.v1.MigratingVm.update_time:type_name -> google.protobuf.Timestamp - 20, // 6: google.cloud.vmmigration.v1.MigratingVm.last_sync:type_name -> google.cloud.vmmigration.v1.ReplicationSync - 5, // 7: google.cloud.vmmigration.v1.MigratingVm.state:type_name -> google.cloud.vmmigration.v1.MigratingVm.State - 114, // 8: google.cloud.vmmigration.v1.MigratingVm.state_time:type_name -> google.protobuf.Timestamp - 19, // 9: google.cloud.vmmigration.v1.MigratingVm.current_sync_info:type_name -> google.cloud.vmmigration.v1.ReplicationCycle - 108, // 10: google.cloud.vmmigration.v1.MigratingVm.labels:type_name -> google.cloud.vmmigration.v1.MigratingVm.LabelsEntry - 22, // 11: google.cloud.vmmigration.v1.MigratingVm.recent_clone_jobs:type_name -> google.cloud.vmmigration.v1.CloneJob - 115, // 12: google.cloud.vmmigration.v1.MigratingVm.error:type_name -> google.rpc.Status - 23, // 13: google.cloud.vmmigration.v1.MigratingVm.recent_cutover_jobs:type_name -> google.cloud.vmmigration.v1.CutoverJob - 62, // 14: google.cloud.vmmigration.v1.CloneJob.compute_engine_target_details:type_name -> google.cloud.vmmigration.v1.ComputeEngineTargetDetails - 114, // 15: google.cloud.vmmigration.v1.CloneJob.create_time:type_name -> google.protobuf.Timestamp - 114, // 16: google.cloud.vmmigration.v1.CloneJob.end_time:type_name -> google.protobuf.Timestamp - 6, // 17: google.cloud.vmmigration.v1.CloneJob.state:type_name -> google.cloud.vmmigration.v1.CloneJob.State - 114, // 18: google.cloud.vmmigration.v1.CloneJob.state_time:type_name -> google.protobuf.Timestamp - 115, // 19: google.cloud.vmmigration.v1.CloneJob.error:type_name -> google.rpc.Status - 62, // 20: google.cloud.vmmigration.v1.CutoverJob.compute_engine_target_details:type_name -> google.cloud.vmmigration.v1.ComputeEngineTargetDetails - 114, // 21: google.cloud.vmmigration.v1.CutoverJob.create_time:type_name -> google.protobuf.Timestamp - 114, // 22: google.cloud.vmmigration.v1.CutoverJob.end_time:type_name -> google.protobuf.Timestamp - 7, // 23: google.cloud.vmmigration.v1.CutoverJob.state:type_name -> google.cloud.vmmigration.v1.CutoverJob.State - 114, // 24: google.cloud.vmmigration.v1.CutoverJob.state_time:type_name -> google.protobuf.Timestamp - 115, // 25: google.cloud.vmmigration.v1.CutoverJob.error:type_name -> google.rpc.Status - 22, // 26: google.cloud.vmmigration.v1.CreateCloneJobRequest.clone_job:type_name -> google.cloud.vmmigration.v1.CloneJob - 22, // 27: google.cloud.vmmigration.v1.ListCloneJobsResponse.clone_jobs:type_name -> google.cloud.vmmigration.v1.CloneJob - 31, // 28: google.cloud.vmmigration.v1.Source.vmware:type_name -> google.cloud.vmmigration.v1.VmwareSourceDetails - 114, // 29: google.cloud.vmmigration.v1.Source.create_time:type_name -> google.protobuf.Timestamp - 114, // 30: google.cloud.vmmigration.v1.Source.update_time:type_name -> google.protobuf.Timestamp - 109, // 31: google.cloud.vmmigration.v1.Source.labels:type_name -> google.cloud.vmmigration.v1.Source.LabelsEntry - 114, // 32: google.cloud.vmmigration.v1.DatacenterConnector.create_time:type_name -> google.protobuf.Timestamp - 114, // 33: google.cloud.vmmigration.v1.DatacenterConnector.update_time:type_name -> google.protobuf.Timestamp - 8, // 34: google.cloud.vmmigration.v1.DatacenterConnector.state:type_name -> google.cloud.vmmigration.v1.DatacenterConnector.State - 114, // 35: google.cloud.vmmigration.v1.DatacenterConnector.state_time:type_name -> google.protobuf.Timestamp - 115, // 36: google.cloud.vmmigration.v1.DatacenterConnector.error:type_name -> google.rpc.Status - 34, // 37: google.cloud.vmmigration.v1.DatacenterConnector.available_versions:type_name -> google.cloud.vmmigration.v1.AvailableUpdates - 33, // 38: google.cloud.vmmigration.v1.DatacenterConnector.upgrade_status:type_name -> google.cloud.vmmigration.v1.UpgradeStatus - 9, // 39: google.cloud.vmmigration.v1.UpgradeStatus.state:type_name -> google.cloud.vmmigration.v1.UpgradeStatus.State - 115, // 40: google.cloud.vmmigration.v1.UpgradeStatus.error:type_name -> google.rpc.Status - 114, // 41: google.cloud.vmmigration.v1.UpgradeStatus.start_time:type_name -> google.protobuf.Timestamp - 35, // 42: google.cloud.vmmigration.v1.AvailableUpdates.new_deployable_appliance:type_name -> google.cloud.vmmigration.v1.ApplianceVersion - 35, // 43: google.cloud.vmmigration.v1.AvailableUpdates.in_place_update:type_name -> google.cloud.vmmigration.v1.ApplianceVersion - 30, // 44: google.cloud.vmmigration.v1.ListSourcesResponse.sources:type_name -> google.cloud.vmmigration.v1.Source - 30, // 45: google.cloud.vmmigration.v1.CreateSourceRequest.source:type_name -> google.cloud.vmmigration.v1.Source - 116, // 46: google.cloud.vmmigration.v1.UpdateSourceRequest.update_mask:type_name -> google.protobuf.FieldMask - 30, // 47: google.cloud.vmmigration.v1.UpdateSourceRequest.source:type_name -> google.cloud.vmmigration.v1.Source - 10, // 48: google.cloud.vmmigration.v1.VmwareVmDetails.power_state:type_name -> google.cloud.vmmigration.v1.VmwareVmDetails.PowerState - 11, // 49: google.cloud.vmmigration.v1.VmwareVmDetails.boot_option:type_name -> google.cloud.vmmigration.v1.VmwareVmDetails.BootOption - 43, // 50: google.cloud.vmmigration.v1.VmwareVmsDetails.details:type_name -> google.cloud.vmmigration.v1.VmwareVmDetails - 44, // 51: google.cloud.vmmigration.v1.FetchInventoryResponse.vmware_vms:type_name -> google.cloud.vmmigration.v1.VmwareVmsDetails - 114, // 52: google.cloud.vmmigration.v1.FetchInventoryResponse.update_time:type_name -> google.protobuf.Timestamp - 12, // 53: google.cloud.vmmigration.v1.UtilizationReport.state:type_name -> google.cloud.vmmigration.v1.UtilizationReport.State - 114, // 54: google.cloud.vmmigration.v1.UtilizationReport.state_time:type_name -> google.protobuf.Timestamp - 115, // 55: google.cloud.vmmigration.v1.UtilizationReport.error:type_name -> google.rpc.Status - 114, // 56: google.cloud.vmmigration.v1.UtilizationReport.create_time:type_name -> google.protobuf.Timestamp - 13, // 57: google.cloud.vmmigration.v1.UtilizationReport.time_frame:type_name -> google.cloud.vmmigration.v1.UtilizationReport.TimeFrame - 114, // 58: google.cloud.vmmigration.v1.UtilizationReport.frame_end_time:type_name -> google.protobuf.Timestamp - 47, // 59: google.cloud.vmmigration.v1.UtilizationReport.vms:type_name -> google.cloud.vmmigration.v1.VmUtilizationInfo - 43, // 60: google.cloud.vmmigration.v1.VmUtilizationInfo.vmware_vm_details:type_name -> google.cloud.vmmigration.v1.VmwareVmDetails - 48, // 61: google.cloud.vmmigration.v1.VmUtilizationInfo.utilization:type_name -> google.cloud.vmmigration.v1.VmUtilizationMetrics - 0, // 62: google.cloud.vmmigration.v1.ListUtilizationReportsRequest.view:type_name -> google.cloud.vmmigration.v1.UtilizationReportView - 46, // 63: google.cloud.vmmigration.v1.ListUtilizationReportsResponse.utilization_reports:type_name -> google.cloud.vmmigration.v1.UtilizationReport - 0, // 64: google.cloud.vmmigration.v1.GetUtilizationReportRequest.view:type_name -> google.cloud.vmmigration.v1.UtilizationReportView - 46, // 65: google.cloud.vmmigration.v1.CreateUtilizationReportRequest.utilization_report:type_name -> google.cloud.vmmigration.v1.UtilizationReport - 32, // 66: google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse.datacenter_connectors:type_name -> google.cloud.vmmigration.v1.DatacenterConnector - 32, // 67: google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest.datacenter_connector:type_name -> google.cloud.vmmigration.v1.DatacenterConnector - 63, // 68: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.network_interfaces:type_name -> google.cloud.vmmigration.v1.NetworkInterface - 2, // 69: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.disk_type:type_name -> google.cloud.vmmigration.v1.ComputeEngineDiskType - 110, // 70: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.labels:type_name -> google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.LabelsEntry - 3, // 71: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.license_type:type_name -> google.cloud.vmmigration.v1.ComputeEngineLicenseType - 64, // 72: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.applied_license:type_name -> google.cloud.vmmigration.v1.AppliedLicense - 66, // 73: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.compute_scheduling:type_name -> google.cloud.vmmigration.v1.ComputeScheduling - 4, // 74: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.boot_option:type_name -> google.cloud.vmmigration.v1.ComputeEngineBootOption - 111, // 75: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.metadata:type_name -> google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.MetadataEntry - 63, // 76: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.network_interfaces:type_name -> google.cloud.vmmigration.v1.NetworkInterface - 2, // 77: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.disk_type:type_name -> google.cloud.vmmigration.v1.ComputeEngineDiskType - 112, // 78: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.labels:type_name -> google.cloud.vmmigration.v1.ComputeEngineTargetDetails.LabelsEntry - 3, // 79: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.license_type:type_name -> google.cloud.vmmigration.v1.ComputeEngineLicenseType - 64, // 80: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.applied_license:type_name -> google.cloud.vmmigration.v1.AppliedLicense - 66, // 81: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.compute_scheduling:type_name -> google.cloud.vmmigration.v1.ComputeScheduling - 4, // 82: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.boot_option:type_name -> google.cloud.vmmigration.v1.ComputeEngineBootOption - 113, // 83: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.metadata:type_name -> google.cloud.vmmigration.v1.ComputeEngineTargetDetails.MetadataEntry - 14, // 84: google.cloud.vmmigration.v1.AppliedLicense.type:type_name -> google.cloud.vmmigration.v1.AppliedLicense.Type - 15, // 85: google.cloud.vmmigration.v1.SchedulingNodeAffinity.operator:type_name -> google.cloud.vmmigration.v1.SchedulingNodeAffinity.Operator - 16, // 86: google.cloud.vmmigration.v1.ComputeScheduling.on_host_maintenance:type_name -> google.cloud.vmmigration.v1.ComputeScheduling.OnHostMaintenance - 17, // 87: google.cloud.vmmigration.v1.ComputeScheduling.restart_type:type_name -> google.cloud.vmmigration.v1.ComputeScheduling.RestartType - 65, // 88: google.cloud.vmmigration.v1.ComputeScheduling.node_affinities:type_name -> google.cloud.vmmigration.v1.SchedulingNodeAffinity - 117, // 89: google.cloud.vmmigration.v1.SchedulePolicy.idle_duration:type_name -> google.protobuf.Duration - 21, // 90: google.cloud.vmmigration.v1.CreateMigratingVmRequest.migrating_vm:type_name -> google.cloud.vmmigration.v1.MigratingVm - 1, // 91: google.cloud.vmmigration.v1.ListMigratingVmsRequest.view:type_name -> google.cloud.vmmigration.v1.MigratingVmView - 21, // 92: google.cloud.vmmigration.v1.ListMigratingVmsResponse.migrating_vms:type_name -> google.cloud.vmmigration.v1.MigratingVm - 1, // 93: google.cloud.vmmigration.v1.GetMigratingVmRequest.view:type_name -> google.cloud.vmmigration.v1.MigratingVmView - 116, // 94: google.cloud.vmmigration.v1.UpdateMigratingVmRequest.update_mask:type_name -> google.protobuf.FieldMask - 21, // 95: google.cloud.vmmigration.v1.UpdateMigratingVmRequest.migrating_vm:type_name -> google.cloud.vmmigration.v1.MigratingVm - 114, // 96: google.cloud.vmmigration.v1.TargetProject.create_time:type_name -> google.protobuf.Timestamp - 114, // 97: google.cloud.vmmigration.v1.TargetProject.update_time:type_name -> google.protobuf.Timestamp - 82, // 98: google.cloud.vmmigration.v1.ListTargetProjectsResponse.target_projects:type_name -> google.cloud.vmmigration.v1.TargetProject - 82, // 99: google.cloud.vmmigration.v1.CreateTargetProjectRequest.target_project:type_name -> google.cloud.vmmigration.v1.TargetProject - 116, // 100: google.cloud.vmmigration.v1.UpdateTargetProjectRequest.update_mask:type_name -> google.protobuf.FieldMask - 82, // 101: google.cloud.vmmigration.v1.UpdateTargetProjectRequest.target_project:type_name -> google.cloud.vmmigration.v1.TargetProject - 114, // 102: google.cloud.vmmigration.v1.Group.create_time:type_name -> google.protobuf.Timestamp - 114, // 103: google.cloud.vmmigration.v1.Group.update_time:type_name -> google.protobuf.Timestamp - 89, // 104: google.cloud.vmmigration.v1.ListGroupsResponse.groups:type_name -> google.cloud.vmmigration.v1.Group - 89, // 105: google.cloud.vmmigration.v1.CreateGroupRequest.group:type_name -> google.cloud.vmmigration.v1.Group - 116, // 106: google.cloud.vmmigration.v1.UpdateGroupRequest.update_mask:type_name -> google.protobuf.FieldMask - 89, // 107: google.cloud.vmmigration.v1.UpdateGroupRequest.group:type_name -> google.cloud.vmmigration.v1.Group - 23, // 108: google.cloud.vmmigration.v1.CreateCutoverJobRequest.cutover_job:type_name -> google.cloud.vmmigration.v1.CutoverJob - 23, // 109: google.cloud.vmmigration.v1.ListCutoverJobsResponse.cutover_jobs:type_name -> google.cloud.vmmigration.v1.CutoverJob - 114, // 110: google.cloud.vmmigration.v1.OperationMetadata.create_time:type_name -> google.protobuf.Timestamp - 114, // 111: google.cloud.vmmigration.v1.OperationMetadata.end_time:type_name -> google.protobuf.Timestamp - 18, // 112: google.cloud.vmmigration.v1.MigrationError.code:type_name -> google.cloud.vmmigration.v1.MigrationError.ErrorCode - 118, // 113: google.cloud.vmmigration.v1.MigrationError.error_message:type_name -> google.rpc.LocalizedMessage - 118, // 114: google.cloud.vmmigration.v1.MigrationError.action_item:type_name -> google.rpc.LocalizedMessage - 119, // 115: google.cloud.vmmigration.v1.MigrationError.help_links:type_name -> google.rpc.Help.Link - 114, // 116: google.cloud.vmmigration.v1.MigrationError.error_time:type_name -> google.protobuf.Timestamp - 36, // 117: google.cloud.vmmigration.v1.VmMigration.ListSources:input_type -> google.cloud.vmmigration.v1.ListSourcesRequest - 38, // 118: google.cloud.vmmigration.v1.VmMigration.GetSource:input_type -> google.cloud.vmmigration.v1.GetSourceRequest - 39, // 119: google.cloud.vmmigration.v1.VmMigration.CreateSource:input_type -> google.cloud.vmmigration.v1.CreateSourceRequest - 40, // 120: google.cloud.vmmigration.v1.VmMigration.UpdateSource:input_type -> google.cloud.vmmigration.v1.UpdateSourceRequest - 41, // 121: google.cloud.vmmigration.v1.VmMigration.DeleteSource:input_type -> google.cloud.vmmigration.v1.DeleteSourceRequest - 42, // 122: google.cloud.vmmigration.v1.VmMigration.FetchInventory:input_type -> google.cloud.vmmigration.v1.FetchInventoryRequest - 49, // 123: google.cloud.vmmigration.v1.VmMigration.ListUtilizationReports:input_type -> google.cloud.vmmigration.v1.ListUtilizationReportsRequest - 51, // 124: google.cloud.vmmigration.v1.VmMigration.GetUtilizationReport:input_type -> google.cloud.vmmigration.v1.GetUtilizationReportRequest - 52, // 125: google.cloud.vmmigration.v1.VmMigration.CreateUtilizationReport:input_type -> google.cloud.vmmigration.v1.CreateUtilizationReportRequest - 53, // 126: google.cloud.vmmigration.v1.VmMigration.DeleteUtilizationReport:input_type -> google.cloud.vmmigration.v1.DeleteUtilizationReportRequest - 60, // 127: google.cloud.vmmigration.v1.VmMigration.ListDatacenterConnectors:input_type -> google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest - 55, // 128: google.cloud.vmmigration.v1.VmMigration.GetDatacenterConnector:input_type -> google.cloud.vmmigration.v1.GetDatacenterConnectorRequest - 56, // 129: google.cloud.vmmigration.v1.VmMigration.CreateDatacenterConnector:input_type -> google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest - 57, // 130: google.cloud.vmmigration.v1.VmMigration.DeleteDatacenterConnector:input_type -> google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest - 58, // 131: google.cloud.vmmigration.v1.VmMigration.UpgradeAppliance:input_type -> google.cloud.vmmigration.v1.UpgradeApplianceRequest - 68, // 132: google.cloud.vmmigration.v1.VmMigration.CreateMigratingVm:input_type -> google.cloud.vmmigration.v1.CreateMigratingVmRequest - 69, // 133: google.cloud.vmmigration.v1.VmMigration.ListMigratingVms:input_type -> google.cloud.vmmigration.v1.ListMigratingVmsRequest - 71, // 134: google.cloud.vmmigration.v1.VmMigration.GetMigratingVm:input_type -> google.cloud.vmmigration.v1.GetMigratingVmRequest - 72, // 135: google.cloud.vmmigration.v1.VmMigration.UpdateMigratingVm:input_type -> google.cloud.vmmigration.v1.UpdateMigratingVmRequest - 73, // 136: google.cloud.vmmigration.v1.VmMigration.DeleteMigratingVm:input_type -> google.cloud.vmmigration.v1.DeleteMigratingVmRequest - 74, // 137: google.cloud.vmmigration.v1.VmMigration.StartMigration:input_type -> google.cloud.vmmigration.v1.StartMigrationRequest - 78, // 138: google.cloud.vmmigration.v1.VmMigration.ResumeMigration:input_type -> google.cloud.vmmigration.v1.ResumeMigrationRequest - 76, // 139: google.cloud.vmmigration.v1.VmMigration.PauseMigration:input_type -> google.cloud.vmmigration.v1.PauseMigrationRequest - 80, // 140: google.cloud.vmmigration.v1.VmMigration.FinalizeMigration:input_type -> google.cloud.vmmigration.v1.FinalizeMigrationRequest - 24, // 141: google.cloud.vmmigration.v1.VmMigration.CreateCloneJob:input_type -> google.cloud.vmmigration.v1.CreateCloneJobRequest - 25, // 142: google.cloud.vmmigration.v1.VmMigration.CancelCloneJob:input_type -> google.cloud.vmmigration.v1.CancelCloneJobRequest - 27, // 143: google.cloud.vmmigration.v1.VmMigration.ListCloneJobs:input_type -> google.cloud.vmmigration.v1.ListCloneJobsRequest - 29, // 144: google.cloud.vmmigration.v1.VmMigration.GetCloneJob:input_type -> google.cloud.vmmigration.v1.GetCloneJobRequest - 100, // 145: google.cloud.vmmigration.v1.VmMigration.CreateCutoverJob:input_type -> google.cloud.vmmigration.v1.CreateCutoverJobRequest - 101, // 146: google.cloud.vmmigration.v1.VmMigration.CancelCutoverJob:input_type -> google.cloud.vmmigration.v1.CancelCutoverJobRequest - 103, // 147: google.cloud.vmmigration.v1.VmMigration.ListCutoverJobs:input_type -> google.cloud.vmmigration.v1.ListCutoverJobsRequest - 105, // 148: google.cloud.vmmigration.v1.VmMigration.GetCutoverJob:input_type -> google.cloud.vmmigration.v1.GetCutoverJobRequest - 90, // 149: google.cloud.vmmigration.v1.VmMigration.ListGroups:input_type -> google.cloud.vmmigration.v1.ListGroupsRequest - 92, // 150: google.cloud.vmmigration.v1.VmMigration.GetGroup:input_type -> google.cloud.vmmigration.v1.GetGroupRequest - 93, // 151: google.cloud.vmmigration.v1.VmMigration.CreateGroup:input_type -> google.cloud.vmmigration.v1.CreateGroupRequest - 94, // 152: google.cloud.vmmigration.v1.VmMigration.UpdateGroup:input_type -> google.cloud.vmmigration.v1.UpdateGroupRequest - 95, // 153: google.cloud.vmmigration.v1.VmMigration.DeleteGroup:input_type -> google.cloud.vmmigration.v1.DeleteGroupRequest - 96, // 154: google.cloud.vmmigration.v1.VmMigration.AddGroupMigration:input_type -> google.cloud.vmmigration.v1.AddGroupMigrationRequest - 98, // 155: google.cloud.vmmigration.v1.VmMigration.RemoveGroupMigration:input_type -> google.cloud.vmmigration.v1.RemoveGroupMigrationRequest - 84, // 156: google.cloud.vmmigration.v1.VmMigration.ListTargetProjects:input_type -> google.cloud.vmmigration.v1.ListTargetProjectsRequest - 83, // 157: google.cloud.vmmigration.v1.VmMigration.GetTargetProject:input_type -> google.cloud.vmmigration.v1.GetTargetProjectRequest - 86, // 158: google.cloud.vmmigration.v1.VmMigration.CreateTargetProject:input_type -> google.cloud.vmmigration.v1.CreateTargetProjectRequest - 87, // 159: google.cloud.vmmigration.v1.VmMigration.UpdateTargetProject:input_type -> google.cloud.vmmigration.v1.UpdateTargetProjectRequest - 88, // 160: google.cloud.vmmigration.v1.VmMigration.DeleteTargetProject:input_type -> google.cloud.vmmigration.v1.DeleteTargetProjectRequest - 37, // 161: google.cloud.vmmigration.v1.VmMigration.ListSources:output_type -> google.cloud.vmmigration.v1.ListSourcesResponse - 30, // 162: google.cloud.vmmigration.v1.VmMigration.GetSource:output_type -> google.cloud.vmmigration.v1.Source - 120, // 163: google.cloud.vmmigration.v1.VmMigration.CreateSource:output_type -> google.longrunning.Operation - 120, // 164: google.cloud.vmmigration.v1.VmMigration.UpdateSource:output_type -> google.longrunning.Operation - 120, // 165: google.cloud.vmmigration.v1.VmMigration.DeleteSource:output_type -> google.longrunning.Operation - 45, // 166: google.cloud.vmmigration.v1.VmMigration.FetchInventory:output_type -> google.cloud.vmmigration.v1.FetchInventoryResponse - 50, // 167: google.cloud.vmmigration.v1.VmMigration.ListUtilizationReports:output_type -> google.cloud.vmmigration.v1.ListUtilizationReportsResponse - 46, // 168: google.cloud.vmmigration.v1.VmMigration.GetUtilizationReport:output_type -> google.cloud.vmmigration.v1.UtilizationReport - 120, // 169: google.cloud.vmmigration.v1.VmMigration.CreateUtilizationReport:output_type -> google.longrunning.Operation - 120, // 170: google.cloud.vmmigration.v1.VmMigration.DeleteUtilizationReport:output_type -> google.longrunning.Operation - 54, // 171: google.cloud.vmmigration.v1.VmMigration.ListDatacenterConnectors:output_type -> google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse - 32, // 172: google.cloud.vmmigration.v1.VmMigration.GetDatacenterConnector:output_type -> google.cloud.vmmigration.v1.DatacenterConnector - 120, // 173: google.cloud.vmmigration.v1.VmMigration.CreateDatacenterConnector:output_type -> google.longrunning.Operation - 120, // 174: google.cloud.vmmigration.v1.VmMigration.DeleteDatacenterConnector:output_type -> google.longrunning.Operation - 120, // 175: google.cloud.vmmigration.v1.VmMigration.UpgradeAppliance:output_type -> google.longrunning.Operation - 120, // 176: google.cloud.vmmigration.v1.VmMigration.CreateMigratingVm:output_type -> google.longrunning.Operation - 70, // 177: google.cloud.vmmigration.v1.VmMigration.ListMigratingVms:output_type -> google.cloud.vmmigration.v1.ListMigratingVmsResponse - 21, // 178: google.cloud.vmmigration.v1.VmMigration.GetMigratingVm:output_type -> google.cloud.vmmigration.v1.MigratingVm - 120, // 179: google.cloud.vmmigration.v1.VmMigration.UpdateMigratingVm:output_type -> google.longrunning.Operation - 120, // 180: google.cloud.vmmigration.v1.VmMigration.DeleteMigratingVm:output_type -> google.longrunning.Operation - 120, // 181: google.cloud.vmmigration.v1.VmMigration.StartMigration:output_type -> google.longrunning.Operation - 120, // 182: google.cloud.vmmigration.v1.VmMigration.ResumeMigration:output_type -> google.longrunning.Operation - 120, // 183: google.cloud.vmmigration.v1.VmMigration.PauseMigration:output_type -> google.longrunning.Operation - 120, // 184: google.cloud.vmmigration.v1.VmMigration.FinalizeMigration:output_type -> google.longrunning.Operation - 120, // 185: google.cloud.vmmigration.v1.VmMigration.CreateCloneJob:output_type -> google.longrunning.Operation - 120, // 186: google.cloud.vmmigration.v1.VmMigration.CancelCloneJob:output_type -> google.longrunning.Operation - 28, // 187: google.cloud.vmmigration.v1.VmMigration.ListCloneJobs:output_type -> google.cloud.vmmigration.v1.ListCloneJobsResponse - 22, // 188: google.cloud.vmmigration.v1.VmMigration.GetCloneJob:output_type -> google.cloud.vmmigration.v1.CloneJob - 120, // 189: google.cloud.vmmigration.v1.VmMigration.CreateCutoverJob:output_type -> google.longrunning.Operation - 120, // 190: google.cloud.vmmigration.v1.VmMigration.CancelCutoverJob:output_type -> google.longrunning.Operation - 104, // 191: google.cloud.vmmigration.v1.VmMigration.ListCutoverJobs:output_type -> google.cloud.vmmigration.v1.ListCutoverJobsResponse - 23, // 192: google.cloud.vmmigration.v1.VmMigration.GetCutoverJob:output_type -> google.cloud.vmmigration.v1.CutoverJob - 91, // 193: google.cloud.vmmigration.v1.VmMigration.ListGroups:output_type -> google.cloud.vmmigration.v1.ListGroupsResponse - 89, // 194: google.cloud.vmmigration.v1.VmMigration.GetGroup:output_type -> google.cloud.vmmigration.v1.Group - 120, // 195: google.cloud.vmmigration.v1.VmMigration.CreateGroup:output_type -> google.longrunning.Operation - 120, // 196: google.cloud.vmmigration.v1.VmMigration.UpdateGroup:output_type -> google.longrunning.Operation - 120, // 197: google.cloud.vmmigration.v1.VmMigration.DeleteGroup:output_type -> google.longrunning.Operation - 120, // 198: google.cloud.vmmigration.v1.VmMigration.AddGroupMigration:output_type -> google.longrunning.Operation - 120, // 199: google.cloud.vmmigration.v1.VmMigration.RemoveGroupMigration:output_type -> google.longrunning.Operation - 85, // 200: google.cloud.vmmigration.v1.VmMigration.ListTargetProjects:output_type -> google.cloud.vmmigration.v1.ListTargetProjectsResponse - 82, // 201: google.cloud.vmmigration.v1.VmMigration.GetTargetProject:output_type -> google.cloud.vmmigration.v1.TargetProject - 120, // 202: google.cloud.vmmigration.v1.VmMigration.CreateTargetProject:output_type -> google.longrunning.Operation - 120, // 203: google.cloud.vmmigration.v1.VmMigration.UpdateTargetProject:output_type -> google.longrunning.Operation - 120, // 204: google.cloud.vmmigration.v1.VmMigration.DeleteTargetProject:output_type -> google.longrunning.Operation - 161, // [161:205] is the sub-list for method output_type - 117, // [117:161] is the sub-list for method input_type - 117, // [117:117] is the sub-list for extension type_name - 117, // [117:117] is the sub-list for extension extendee - 0, // [0:117] is the sub-list for field type_name + 143, // 0: google.cloud.vmmigration.v1.ReplicationCycle.start_time:type_name -> google.protobuf.Timestamp + 143, // 1: google.cloud.vmmigration.v1.ReplicationCycle.end_time:type_name -> google.protobuf.Timestamp + 144, // 2: google.cloud.vmmigration.v1.ReplicationCycle.total_pause_duration:type_name -> google.protobuf.Duration + 27, // 3: google.cloud.vmmigration.v1.ReplicationCycle.steps:type_name -> google.cloud.vmmigration.v1.CycleStep + 5, // 4: google.cloud.vmmigration.v1.ReplicationCycle.state:type_name -> google.cloud.vmmigration.v1.ReplicationCycle.State + 145, // 5: google.cloud.vmmigration.v1.ReplicationCycle.error:type_name -> google.rpc.Status + 28, // 6: google.cloud.vmmigration.v1.CycleStep.initializing_replication:type_name -> google.cloud.vmmigration.v1.InitializingReplicationStep + 29, // 7: google.cloud.vmmigration.v1.CycleStep.replicating:type_name -> google.cloud.vmmigration.v1.ReplicatingStep + 30, // 8: google.cloud.vmmigration.v1.CycleStep.post_processing:type_name -> google.cloud.vmmigration.v1.PostProcessingStep + 143, // 9: google.cloud.vmmigration.v1.CycleStep.start_time:type_name -> google.protobuf.Timestamp + 143, // 10: google.cloud.vmmigration.v1.CycleStep.end_time:type_name -> google.protobuf.Timestamp + 143, // 11: google.cloud.vmmigration.v1.ReplicationSync.last_sync_time:type_name -> google.protobuf.Timestamp + 82, // 12: google.cloud.vmmigration.v1.MigratingVm.compute_engine_target_defaults:type_name -> google.cloud.vmmigration.v1.ComputeEngineTargetDefaults + 129, // 13: google.cloud.vmmigration.v1.MigratingVm.aws_source_vm_details:type_name -> google.cloud.vmmigration.v1.AwsSourceVmDetails + 88, // 14: google.cloud.vmmigration.v1.MigratingVm.policy:type_name -> google.cloud.vmmigration.v1.SchedulePolicy + 143, // 15: google.cloud.vmmigration.v1.MigratingVm.create_time:type_name -> google.protobuf.Timestamp + 143, // 16: google.cloud.vmmigration.v1.MigratingVm.update_time:type_name -> google.protobuf.Timestamp + 31, // 17: google.cloud.vmmigration.v1.MigratingVm.last_sync:type_name -> google.cloud.vmmigration.v1.ReplicationSync + 6, // 18: google.cloud.vmmigration.v1.MigratingVm.state:type_name -> google.cloud.vmmigration.v1.MigratingVm.State + 143, // 19: google.cloud.vmmigration.v1.MigratingVm.state_time:type_name -> google.protobuf.Timestamp + 26, // 20: google.cloud.vmmigration.v1.MigratingVm.current_sync_info:type_name -> google.cloud.vmmigration.v1.ReplicationCycle + 133, // 21: google.cloud.vmmigration.v1.MigratingVm.labels:type_name -> google.cloud.vmmigration.v1.MigratingVm.LabelsEntry + 33, // 22: google.cloud.vmmigration.v1.MigratingVm.recent_clone_jobs:type_name -> google.cloud.vmmigration.v1.CloneJob + 145, // 23: google.cloud.vmmigration.v1.MigratingVm.error:type_name -> google.rpc.Status + 38, // 24: google.cloud.vmmigration.v1.MigratingVm.recent_cutover_jobs:type_name -> google.cloud.vmmigration.v1.CutoverJob + 83, // 25: google.cloud.vmmigration.v1.CloneJob.compute_engine_target_details:type_name -> google.cloud.vmmigration.v1.ComputeEngineTargetDetails + 143, // 26: google.cloud.vmmigration.v1.CloneJob.create_time:type_name -> google.protobuf.Timestamp + 143, // 27: google.cloud.vmmigration.v1.CloneJob.end_time:type_name -> google.protobuf.Timestamp + 7, // 28: google.cloud.vmmigration.v1.CloneJob.state:type_name -> google.cloud.vmmigration.v1.CloneJob.State + 143, // 29: google.cloud.vmmigration.v1.CloneJob.state_time:type_name -> google.protobuf.Timestamp + 145, // 30: google.cloud.vmmigration.v1.CloneJob.error:type_name -> google.rpc.Status + 34, // 31: google.cloud.vmmigration.v1.CloneJob.steps:type_name -> google.cloud.vmmigration.v1.CloneStep + 35, // 32: google.cloud.vmmigration.v1.CloneStep.adapting_os:type_name -> google.cloud.vmmigration.v1.AdaptingOSStep + 36, // 33: google.cloud.vmmigration.v1.CloneStep.preparing_vm_disks:type_name -> google.cloud.vmmigration.v1.PreparingVMDisksStep + 37, // 34: google.cloud.vmmigration.v1.CloneStep.instantiating_migrated_vm:type_name -> google.cloud.vmmigration.v1.InstantiatingMigratedVMStep + 143, // 35: google.cloud.vmmigration.v1.CloneStep.start_time:type_name -> google.protobuf.Timestamp + 143, // 36: google.cloud.vmmigration.v1.CloneStep.end_time:type_name -> google.protobuf.Timestamp + 83, // 37: google.cloud.vmmigration.v1.CutoverJob.compute_engine_target_details:type_name -> google.cloud.vmmigration.v1.ComputeEngineTargetDetails + 143, // 38: google.cloud.vmmigration.v1.CutoverJob.create_time:type_name -> google.protobuf.Timestamp + 143, // 39: google.cloud.vmmigration.v1.CutoverJob.end_time:type_name -> google.protobuf.Timestamp + 8, // 40: google.cloud.vmmigration.v1.CutoverJob.state:type_name -> google.cloud.vmmigration.v1.CutoverJob.State + 143, // 41: google.cloud.vmmigration.v1.CutoverJob.state_time:type_name -> google.protobuf.Timestamp + 145, // 42: google.cloud.vmmigration.v1.CutoverJob.error:type_name -> google.rpc.Status + 39, // 43: google.cloud.vmmigration.v1.CutoverJob.steps:type_name -> google.cloud.vmmigration.v1.CutoverStep + 26, // 44: google.cloud.vmmigration.v1.CutoverStep.previous_replication_cycle:type_name -> google.cloud.vmmigration.v1.ReplicationCycle + 40, // 45: google.cloud.vmmigration.v1.CutoverStep.shutting_down_source_vm:type_name -> google.cloud.vmmigration.v1.ShuttingDownSourceVMStep + 26, // 46: google.cloud.vmmigration.v1.CutoverStep.final_sync:type_name -> google.cloud.vmmigration.v1.ReplicationCycle + 36, // 47: google.cloud.vmmigration.v1.CutoverStep.preparing_vm_disks:type_name -> google.cloud.vmmigration.v1.PreparingVMDisksStep + 37, // 48: google.cloud.vmmigration.v1.CutoverStep.instantiating_migrated_vm:type_name -> google.cloud.vmmigration.v1.InstantiatingMigratedVMStep + 143, // 49: google.cloud.vmmigration.v1.CutoverStep.start_time:type_name -> google.protobuf.Timestamp + 143, // 50: google.cloud.vmmigration.v1.CutoverStep.end_time:type_name -> google.protobuf.Timestamp + 33, // 51: google.cloud.vmmigration.v1.CreateCloneJobRequest.clone_job:type_name -> google.cloud.vmmigration.v1.CloneJob + 33, // 52: google.cloud.vmmigration.v1.ListCloneJobsResponse.clone_jobs:type_name -> google.cloud.vmmigration.v1.CloneJob + 48, // 53: google.cloud.vmmigration.v1.Source.vmware:type_name -> google.cloud.vmmigration.v1.VmwareSourceDetails + 49, // 54: google.cloud.vmmigration.v1.Source.aws:type_name -> google.cloud.vmmigration.v1.AwsSourceDetails + 143, // 55: google.cloud.vmmigration.v1.Source.create_time:type_name -> google.protobuf.Timestamp + 143, // 56: google.cloud.vmmigration.v1.Source.update_time:type_name -> google.protobuf.Timestamp + 134, // 57: google.cloud.vmmigration.v1.Source.labels:type_name -> google.cloud.vmmigration.v1.Source.LabelsEntry + 135, // 58: google.cloud.vmmigration.v1.AwsSourceDetails.access_key_creds:type_name -> google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials + 9, // 59: google.cloud.vmmigration.v1.AwsSourceDetails.state:type_name -> google.cloud.vmmigration.v1.AwsSourceDetails.State + 145, // 60: google.cloud.vmmigration.v1.AwsSourceDetails.error:type_name -> google.rpc.Status + 136, // 61: google.cloud.vmmigration.v1.AwsSourceDetails.inventory_tag_list:type_name -> google.cloud.vmmigration.v1.AwsSourceDetails.Tag + 137, // 62: google.cloud.vmmigration.v1.AwsSourceDetails.migration_resources_user_tags:type_name -> google.cloud.vmmigration.v1.AwsSourceDetails.MigrationResourcesUserTagsEntry + 143, // 63: google.cloud.vmmigration.v1.DatacenterConnector.create_time:type_name -> google.protobuf.Timestamp + 143, // 64: google.cloud.vmmigration.v1.DatacenterConnector.update_time:type_name -> google.protobuf.Timestamp + 10, // 65: google.cloud.vmmigration.v1.DatacenterConnector.state:type_name -> google.cloud.vmmigration.v1.DatacenterConnector.State + 143, // 66: google.cloud.vmmigration.v1.DatacenterConnector.state_time:type_name -> google.protobuf.Timestamp + 145, // 67: google.cloud.vmmigration.v1.DatacenterConnector.error:type_name -> google.rpc.Status + 52, // 68: google.cloud.vmmigration.v1.DatacenterConnector.available_versions:type_name -> google.cloud.vmmigration.v1.AvailableUpdates + 51, // 69: google.cloud.vmmigration.v1.DatacenterConnector.upgrade_status:type_name -> google.cloud.vmmigration.v1.UpgradeStatus + 11, // 70: google.cloud.vmmigration.v1.UpgradeStatus.state:type_name -> google.cloud.vmmigration.v1.UpgradeStatus.State + 145, // 71: google.cloud.vmmigration.v1.UpgradeStatus.error:type_name -> google.rpc.Status + 143, // 72: google.cloud.vmmigration.v1.UpgradeStatus.start_time:type_name -> google.protobuf.Timestamp + 53, // 73: google.cloud.vmmigration.v1.AvailableUpdates.new_deployable_appliance:type_name -> google.cloud.vmmigration.v1.ApplianceVersion + 53, // 74: google.cloud.vmmigration.v1.AvailableUpdates.in_place_update:type_name -> google.cloud.vmmigration.v1.ApplianceVersion + 47, // 75: google.cloud.vmmigration.v1.ListSourcesResponse.sources:type_name -> google.cloud.vmmigration.v1.Source + 47, // 76: google.cloud.vmmigration.v1.CreateSourceRequest.source:type_name -> google.cloud.vmmigration.v1.Source + 146, // 77: google.cloud.vmmigration.v1.UpdateSourceRequest.update_mask:type_name -> google.protobuf.FieldMask + 47, // 78: google.cloud.vmmigration.v1.UpdateSourceRequest.source:type_name -> google.cloud.vmmigration.v1.Source + 12, // 79: google.cloud.vmmigration.v1.VmwareVmDetails.power_state:type_name -> google.cloud.vmmigration.v1.VmwareVmDetails.PowerState + 13, // 80: google.cloud.vmmigration.v1.VmwareVmDetails.boot_option:type_name -> google.cloud.vmmigration.v1.VmwareVmDetails.BootOption + 14, // 81: google.cloud.vmmigration.v1.AwsVmDetails.power_state:type_name -> google.cloud.vmmigration.v1.AwsVmDetails.PowerState + 15, // 82: google.cloud.vmmigration.v1.AwsVmDetails.boot_option:type_name -> google.cloud.vmmigration.v1.AwsVmDetails.BootOption + 63, // 83: google.cloud.vmmigration.v1.AwsVmDetails.security_groups:type_name -> google.cloud.vmmigration.v1.AwsSecurityGroup + 138, // 84: google.cloud.vmmigration.v1.AwsVmDetails.tags:type_name -> google.cloud.vmmigration.v1.AwsVmDetails.TagsEntry + 16, // 85: google.cloud.vmmigration.v1.AwsVmDetails.virtualization_type:type_name -> google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType + 17, // 86: google.cloud.vmmigration.v1.AwsVmDetails.architecture:type_name -> google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture + 61, // 87: google.cloud.vmmigration.v1.VmwareVmsDetails.details:type_name -> google.cloud.vmmigration.v1.VmwareVmDetails + 62, // 88: google.cloud.vmmigration.v1.AwsVmsDetails.details:type_name -> google.cloud.vmmigration.v1.AwsVmDetails + 64, // 89: google.cloud.vmmigration.v1.FetchInventoryResponse.vmware_vms:type_name -> google.cloud.vmmigration.v1.VmwareVmsDetails + 65, // 90: google.cloud.vmmigration.v1.FetchInventoryResponse.aws_vms:type_name -> google.cloud.vmmigration.v1.AwsVmsDetails + 143, // 91: google.cloud.vmmigration.v1.FetchInventoryResponse.update_time:type_name -> google.protobuf.Timestamp + 18, // 92: google.cloud.vmmigration.v1.UtilizationReport.state:type_name -> google.cloud.vmmigration.v1.UtilizationReport.State + 143, // 93: google.cloud.vmmigration.v1.UtilizationReport.state_time:type_name -> google.protobuf.Timestamp + 145, // 94: google.cloud.vmmigration.v1.UtilizationReport.error:type_name -> google.rpc.Status + 143, // 95: google.cloud.vmmigration.v1.UtilizationReport.create_time:type_name -> google.protobuf.Timestamp + 19, // 96: google.cloud.vmmigration.v1.UtilizationReport.time_frame:type_name -> google.cloud.vmmigration.v1.UtilizationReport.TimeFrame + 143, // 97: google.cloud.vmmigration.v1.UtilizationReport.frame_end_time:type_name -> google.protobuf.Timestamp + 68, // 98: google.cloud.vmmigration.v1.UtilizationReport.vms:type_name -> google.cloud.vmmigration.v1.VmUtilizationInfo + 61, // 99: google.cloud.vmmigration.v1.VmUtilizationInfo.vmware_vm_details:type_name -> google.cloud.vmmigration.v1.VmwareVmDetails + 69, // 100: google.cloud.vmmigration.v1.VmUtilizationInfo.utilization:type_name -> google.cloud.vmmigration.v1.VmUtilizationMetrics + 0, // 101: google.cloud.vmmigration.v1.ListUtilizationReportsRequest.view:type_name -> google.cloud.vmmigration.v1.UtilizationReportView + 67, // 102: google.cloud.vmmigration.v1.ListUtilizationReportsResponse.utilization_reports:type_name -> google.cloud.vmmigration.v1.UtilizationReport + 0, // 103: google.cloud.vmmigration.v1.GetUtilizationReportRequest.view:type_name -> google.cloud.vmmigration.v1.UtilizationReportView + 67, // 104: google.cloud.vmmigration.v1.CreateUtilizationReportRequest.utilization_report:type_name -> google.cloud.vmmigration.v1.UtilizationReport + 50, // 105: google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse.datacenter_connectors:type_name -> google.cloud.vmmigration.v1.DatacenterConnector + 50, // 106: google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest.datacenter_connector:type_name -> google.cloud.vmmigration.v1.DatacenterConnector + 84, // 107: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.network_interfaces:type_name -> google.cloud.vmmigration.v1.NetworkInterface + 2, // 108: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.disk_type:type_name -> google.cloud.vmmigration.v1.ComputeEngineDiskType + 139, // 109: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.labels:type_name -> google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.LabelsEntry + 3, // 110: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.license_type:type_name -> google.cloud.vmmigration.v1.ComputeEngineLicenseType + 85, // 111: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.applied_license:type_name -> google.cloud.vmmigration.v1.AppliedLicense + 87, // 112: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.compute_scheduling:type_name -> google.cloud.vmmigration.v1.ComputeScheduling + 4, // 113: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.boot_option:type_name -> google.cloud.vmmigration.v1.ComputeEngineBootOption + 140, // 114: google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.metadata:type_name -> google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.MetadataEntry + 84, // 115: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.network_interfaces:type_name -> google.cloud.vmmigration.v1.NetworkInterface + 2, // 116: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.disk_type:type_name -> google.cloud.vmmigration.v1.ComputeEngineDiskType + 141, // 117: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.labels:type_name -> google.cloud.vmmigration.v1.ComputeEngineTargetDetails.LabelsEntry + 3, // 118: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.license_type:type_name -> google.cloud.vmmigration.v1.ComputeEngineLicenseType + 85, // 119: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.applied_license:type_name -> google.cloud.vmmigration.v1.AppliedLicense + 87, // 120: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.compute_scheduling:type_name -> google.cloud.vmmigration.v1.ComputeScheduling + 4, // 121: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.boot_option:type_name -> google.cloud.vmmigration.v1.ComputeEngineBootOption + 142, // 122: google.cloud.vmmigration.v1.ComputeEngineTargetDetails.metadata:type_name -> google.cloud.vmmigration.v1.ComputeEngineTargetDetails.MetadataEntry + 20, // 123: google.cloud.vmmigration.v1.AppliedLicense.type:type_name -> google.cloud.vmmigration.v1.AppliedLicense.Type + 21, // 124: google.cloud.vmmigration.v1.SchedulingNodeAffinity.operator:type_name -> google.cloud.vmmigration.v1.SchedulingNodeAffinity.Operator + 22, // 125: google.cloud.vmmigration.v1.ComputeScheduling.on_host_maintenance:type_name -> google.cloud.vmmigration.v1.ComputeScheduling.OnHostMaintenance + 23, // 126: google.cloud.vmmigration.v1.ComputeScheduling.restart_type:type_name -> google.cloud.vmmigration.v1.ComputeScheduling.RestartType + 86, // 127: google.cloud.vmmigration.v1.ComputeScheduling.node_affinities:type_name -> google.cloud.vmmigration.v1.SchedulingNodeAffinity + 144, // 128: google.cloud.vmmigration.v1.SchedulePolicy.idle_duration:type_name -> google.protobuf.Duration + 32, // 129: google.cloud.vmmigration.v1.CreateMigratingVmRequest.migrating_vm:type_name -> google.cloud.vmmigration.v1.MigratingVm + 1, // 130: google.cloud.vmmigration.v1.ListMigratingVmsRequest.view:type_name -> google.cloud.vmmigration.v1.MigratingVmView + 32, // 131: google.cloud.vmmigration.v1.ListMigratingVmsResponse.migrating_vms:type_name -> google.cloud.vmmigration.v1.MigratingVm + 1, // 132: google.cloud.vmmigration.v1.GetMigratingVmRequest.view:type_name -> google.cloud.vmmigration.v1.MigratingVmView + 146, // 133: google.cloud.vmmigration.v1.UpdateMigratingVmRequest.update_mask:type_name -> google.protobuf.FieldMask + 32, // 134: google.cloud.vmmigration.v1.UpdateMigratingVmRequest.migrating_vm:type_name -> google.cloud.vmmigration.v1.MigratingVm + 143, // 135: google.cloud.vmmigration.v1.TargetProject.create_time:type_name -> google.protobuf.Timestamp + 143, // 136: google.cloud.vmmigration.v1.TargetProject.update_time:type_name -> google.protobuf.Timestamp + 103, // 137: google.cloud.vmmigration.v1.ListTargetProjectsResponse.target_projects:type_name -> google.cloud.vmmigration.v1.TargetProject + 103, // 138: google.cloud.vmmigration.v1.CreateTargetProjectRequest.target_project:type_name -> google.cloud.vmmigration.v1.TargetProject + 146, // 139: google.cloud.vmmigration.v1.UpdateTargetProjectRequest.update_mask:type_name -> google.protobuf.FieldMask + 103, // 140: google.cloud.vmmigration.v1.UpdateTargetProjectRequest.target_project:type_name -> google.cloud.vmmigration.v1.TargetProject + 143, // 141: google.cloud.vmmigration.v1.Group.create_time:type_name -> google.protobuf.Timestamp + 143, // 142: google.cloud.vmmigration.v1.Group.update_time:type_name -> google.protobuf.Timestamp + 110, // 143: google.cloud.vmmigration.v1.ListGroupsResponse.groups:type_name -> google.cloud.vmmigration.v1.Group + 110, // 144: google.cloud.vmmigration.v1.CreateGroupRequest.group:type_name -> google.cloud.vmmigration.v1.Group + 146, // 145: google.cloud.vmmigration.v1.UpdateGroupRequest.update_mask:type_name -> google.protobuf.FieldMask + 110, // 146: google.cloud.vmmigration.v1.UpdateGroupRequest.group:type_name -> google.cloud.vmmigration.v1.Group + 38, // 147: google.cloud.vmmigration.v1.CreateCutoverJobRequest.cutover_job:type_name -> google.cloud.vmmigration.v1.CutoverJob + 38, // 148: google.cloud.vmmigration.v1.ListCutoverJobsResponse.cutover_jobs:type_name -> google.cloud.vmmigration.v1.CutoverJob + 143, // 149: google.cloud.vmmigration.v1.OperationMetadata.create_time:type_name -> google.protobuf.Timestamp + 143, // 150: google.cloud.vmmigration.v1.OperationMetadata.end_time:type_name -> google.protobuf.Timestamp + 24, // 151: google.cloud.vmmigration.v1.MigrationError.code:type_name -> google.cloud.vmmigration.v1.MigrationError.ErrorCode + 147, // 152: google.cloud.vmmigration.v1.MigrationError.error_message:type_name -> google.rpc.LocalizedMessage + 147, // 153: google.cloud.vmmigration.v1.MigrationError.action_item:type_name -> google.rpc.LocalizedMessage + 148, // 154: google.cloud.vmmigration.v1.MigrationError.help_links:type_name -> google.rpc.Help.Link + 143, // 155: google.cloud.vmmigration.v1.MigrationError.error_time:type_name -> google.protobuf.Timestamp + 25, // 156: google.cloud.vmmigration.v1.AwsSourceVmDetails.firmware:type_name -> google.cloud.vmmigration.v1.AwsSourceVmDetails.Firmware + 26, // 157: google.cloud.vmmigration.v1.ListReplicationCyclesResponse.replication_cycles:type_name -> google.cloud.vmmigration.v1.ReplicationCycle + 54, // 158: google.cloud.vmmigration.v1.VmMigration.ListSources:input_type -> google.cloud.vmmigration.v1.ListSourcesRequest + 56, // 159: google.cloud.vmmigration.v1.VmMigration.GetSource:input_type -> google.cloud.vmmigration.v1.GetSourceRequest + 57, // 160: google.cloud.vmmigration.v1.VmMigration.CreateSource:input_type -> google.cloud.vmmigration.v1.CreateSourceRequest + 58, // 161: google.cloud.vmmigration.v1.VmMigration.UpdateSource:input_type -> google.cloud.vmmigration.v1.UpdateSourceRequest + 59, // 162: google.cloud.vmmigration.v1.VmMigration.DeleteSource:input_type -> google.cloud.vmmigration.v1.DeleteSourceRequest + 60, // 163: google.cloud.vmmigration.v1.VmMigration.FetchInventory:input_type -> google.cloud.vmmigration.v1.FetchInventoryRequest + 70, // 164: google.cloud.vmmigration.v1.VmMigration.ListUtilizationReports:input_type -> google.cloud.vmmigration.v1.ListUtilizationReportsRequest + 72, // 165: google.cloud.vmmigration.v1.VmMigration.GetUtilizationReport:input_type -> google.cloud.vmmigration.v1.GetUtilizationReportRequest + 73, // 166: google.cloud.vmmigration.v1.VmMigration.CreateUtilizationReport:input_type -> google.cloud.vmmigration.v1.CreateUtilizationReportRequest + 74, // 167: google.cloud.vmmigration.v1.VmMigration.DeleteUtilizationReport:input_type -> google.cloud.vmmigration.v1.DeleteUtilizationReportRequest + 81, // 168: google.cloud.vmmigration.v1.VmMigration.ListDatacenterConnectors:input_type -> google.cloud.vmmigration.v1.ListDatacenterConnectorsRequest + 76, // 169: google.cloud.vmmigration.v1.VmMigration.GetDatacenterConnector:input_type -> google.cloud.vmmigration.v1.GetDatacenterConnectorRequest + 77, // 170: google.cloud.vmmigration.v1.VmMigration.CreateDatacenterConnector:input_type -> google.cloud.vmmigration.v1.CreateDatacenterConnectorRequest + 78, // 171: google.cloud.vmmigration.v1.VmMigration.DeleteDatacenterConnector:input_type -> google.cloud.vmmigration.v1.DeleteDatacenterConnectorRequest + 79, // 172: google.cloud.vmmigration.v1.VmMigration.UpgradeAppliance:input_type -> google.cloud.vmmigration.v1.UpgradeApplianceRequest + 89, // 173: google.cloud.vmmigration.v1.VmMigration.CreateMigratingVm:input_type -> google.cloud.vmmigration.v1.CreateMigratingVmRequest + 90, // 174: google.cloud.vmmigration.v1.VmMigration.ListMigratingVms:input_type -> google.cloud.vmmigration.v1.ListMigratingVmsRequest + 92, // 175: google.cloud.vmmigration.v1.VmMigration.GetMigratingVm:input_type -> google.cloud.vmmigration.v1.GetMigratingVmRequest + 93, // 176: google.cloud.vmmigration.v1.VmMigration.UpdateMigratingVm:input_type -> google.cloud.vmmigration.v1.UpdateMigratingVmRequest + 94, // 177: google.cloud.vmmigration.v1.VmMigration.DeleteMigratingVm:input_type -> google.cloud.vmmigration.v1.DeleteMigratingVmRequest + 95, // 178: google.cloud.vmmigration.v1.VmMigration.StartMigration:input_type -> google.cloud.vmmigration.v1.StartMigrationRequest + 99, // 179: google.cloud.vmmigration.v1.VmMigration.ResumeMigration:input_type -> google.cloud.vmmigration.v1.ResumeMigrationRequest + 97, // 180: google.cloud.vmmigration.v1.VmMigration.PauseMigration:input_type -> google.cloud.vmmigration.v1.PauseMigrationRequest + 101, // 181: google.cloud.vmmigration.v1.VmMigration.FinalizeMigration:input_type -> google.cloud.vmmigration.v1.FinalizeMigrationRequest + 41, // 182: google.cloud.vmmigration.v1.VmMigration.CreateCloneJob:input_type -> google.cloud.vmmigration.v1.CreateCloneJobRequest + 42, // 183: google.cloud.vmmigration.v1.VmMigration.CancelCloneJob:input_type -> google.cloud.vmmigration.v1.CancelCloneJobRequest + 44, // 184: google.cloud.vmmigration.v1.VmMigration.ListCloneJobs:input_type -> google.cloud.vmmigration.v1.ListCloneJobsRequest + 46, // 185: google.cloud.vmmigration.v1.VmMigration.GetCloneJob:input_type -> google.cloud.vmmigration.v1.GetCloneJobRequest + 121, // 186: google.cloud.vmmigration.v1.VmMigration.CreateCutoverJob:input_type -> google.cloud.vmmigration.v1.CreateCutoverJobRequest + 122, // 187: google.cloud.vmmigration.v1.VmMigration.CancelCutoverJob:input_type -> google.cloud.vmmigration.v1.CancelCutoverJobRequest + 124, // 188: google.cloud.vmmigration.v1.VmMigration.ListCutoverJobs:input_type -> google.cloud.vmmigration.v1.ListCutoverJobsRequest + 126, // 189: google.cloud.vmmigration.v1.VmMigration.GetCutoverJob:input_type -> google.cloud.vmmigration.v1.GetCutoverJobRequest + 111, // 190: google.cloud.vmmigration.v1.VmMigration.ListGroups:input_type -> google.cloud.vmmigration.v1.ListGroupsRequest + 113, // 191: google.cloud.vmmigration.v1.VmMigration.GetGroup:input_type -> google.cloud.vmmigration.v1.GetGroupRequest + 114, // 192: google.cloud.vmmigration.v1.VmMigration.CreateGroup:input_type -> google.cloud.vmmigration.v1.CreateGroupRequest + 115, // 193: google.cloud.vmmigration.v1.VmMigration.UpdateGroup:input_type -> google.cloud.vmmigration.v1.UpdateGroupRequest + 116, // 194: google.cloud.vmmigration.v1.VmMigration.DeleteGroup:input_type -> google.cloud.vmmigration.v1.DeleteGroupRequest + 117, // 195: google.cloud.vmmigration.v1.VmMigration.AddGroupMigration:input_type -> google.cloud.vmmigration.v1.AddGroupMigrationRequest + 119, // 196: google.cloud.vmmigration.v1.VmMigration.RemoveGroupMigration:input_type -> google.cloud.vmmigration.v1.RemoveGroupMigrationRequest + 105, // 197: google.cloud.vmmigration.v1.VmMigration.ListTargetProjects:input_type -> google.cloud.vmmigration.v1.ListTargetProjectsRequest + 104, // 198: google.cloud.vmmigration.v1.VmMigration.GetTargetProject:input_type -> google.cloud.vmmigration.v1.GetTargetProjectRequest + 107, // 199: google.cloud.vmmigration.v1.VmMigration.CreateTargetProject:input_type -> google.cloud.vmmigration.v1.CreateTargetProjectRequest + 108, // 200: google.cloud.vmmigration.v1.VmMigration.UpdateTargetProject:input_type -> google.cloud.vmmigration.v1.UpdateTargetProjectRequest + 109, // 201: google.cloud.vmmigration.v1.VmMigration.DeleteTargetProject:input_type -> google.cloud.vmmigration.v1.DeleteTargetProjectRequest + 130, // 202: google.cloud.vmmigration.v1.VmMigration.ListReplicationCycles:input_type -> google.cloud.vmmigration.v1.ListReplicationCyclesRequest + 132, // 203: google.cloud.vmmigration.v1.VmMigration.GetReplicationCycle:input_type -> google.cloud.vmmigration.v1.GetReplicationCycleRequest + 55, // 204: google.cloud.vmmigration.v1.VmMigration.ListSources:output_type -> google.cloud.vmmigration.v1.ListSourcesResponse + 47, // 205: google.cloud.vmmigration.v1.VmMigration.GetSource:output_type -> google.cloud.vmmigration.v1.Source + 149, // 206: google.cloud.vmmigration.v1.VmMigration.CreateSource:output_type -> google.longrunning.Operation + 149, // 207: google.cloud.vmmigration.v1.VmMigration.UpdateSource:output_type -> google.longrunning.Operation + 149, // 208: google.cloud.vmmigration.v1.VmMigration.DeleteSource:output_type -> google.longrunning.Operation + 66, // 209: google.cloud.vmmigration.v1.VmMigration.FetchInventory:output_type -> google.cloud.vmmigration.v1.FetchInventoryResponse + 71, // 210: google.cloud.vmmigration.v1.VmMigration.ListUtilizationReports:output_type -> google.cloud.vmmigration.v1.ListUtilizationReportsResponse + 67, // 211: google.cloud.vmmigration.v1.VmMigration.GetUtilizationReport:output_type -> google.cloud.vmmigration.v1.UtilizationReport + 149, // 212: google.cloud.vmmigration.v1.VmMigration.CreateUtilizationReport:output_type -> google.longrunning.Operation + 149, // 213: google.cloud.vmmigration.v1.VmMigration.DeleteUtilizationReport:output_type -> google.longrunning.Operation + 75, // 214: google.cloud.vmmigration.v1.VmMigration.ListDatacenterConnectors:output_type -> google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse + 50, // 215: google.cloud.vmmigration.v1.VmMigration.GetDatacenterConnector:output_type -> google.cloud.vmmigration.v1.DatacenterConnector + 149, // 216: google.cloud.vmmigration.v1.VmMigration.CreateDatacenterConnector:output_type -> google.longrunning.Operation + 149, // 217: google.cloud.vmmigration.v1.VmMigration.DeleteDatacenterConnector:output_type -> google.longrunning.Operation + 149, // 218: google.cloud.vmmigration.v1.VmMigration.UpgradeAppliance:output_type -> google.longrunning.Operation + 149, // 219: google.cloud.vmmigration.v1.VmMigration.CreateMigratingVm:output_type -> google.longrunning.Operation + 91, // 220: google.cloud.vmmigration.v1.VmMigration.ListMigratingVms:output_type -> google.cloud.vmmigration.v1.ListMigratingVmsResponse + 32, // 221: google.cloud.vmmigration.v1.VmMigration.GetMigratingVm:output_type -> google.cloud.vmmigration.v1.MigratingVm + 149, // 222: google.cloud.vmmigration.v1.VmMigration.UpdateMigratingVm:output_type -> google.longrunning.Operation + 149, // 223: google.cloud.vmmigration.v1.VmMigration.DeleteMigratingVm:output_type -> google.longrunning.Operation + 149, // 224: google.cloud.vmmigration.v1.VmMigration.StartMigration:output_type -> google.longrunning.Operation + 149, // 225: google.cloud.vmmigration.v1.VmMigration.ResumeMigration:output_type -> google.longrunning.Operation + 149, // 226: google.cloud.vmmigration.v1.VmMigration.PauseMigration:output_type -> google.longrunning.Operation + 149, // 227: google.cloud.vmmigration.v1.VmMigration.FinalizeMigration:output_type -> google.longrunning.Operation + 149, // 228: google.cloud.vmmigration.v1.VmMigration.CreateCloneJob:output_type -> google.longrunning.Operation + 149, // 229: google.cloud.vmmigration.v1.VmMigration.CancelCloneJob:output_type -> google.longrunning.Operation + 45, // 230: google.cloud.vmmigration.v1.VmMigration.ListCloneJobs:output_type -> google.cloud.vmmigration.v1.ListCloneJobsResponse + 33, // 231: google.cloud.vmmigration.v1.VmMigration.GetCloneJob:output_type -> google.cloud.vmmigration.v1.CloneJob + 149, // 232: google.cloud.vmmigration.v1.VmMigration.CreateCutoverJob:output_type -> google.longrunning.Operation + 149, // 233: google.cloud.vmmigration.v1.VmMigration.CancelCutoverJob:output_type -> google.longrunning.Operation + 125, // 234: google.cloud.vmmigration.v1.VmMigration.ListCutoverJobs:output_type -> google.cloud.vmmigration.v1.ListCutoverJobsResponse + 38, // 235: google.cloud.vmmigration.v1.VmMigration.GetCutoverJob:output_type -> google.cloud.vmmigration.v1.CutoverJob + 112, // 236: google.cloud.vmmigration.v1.VmMigration.ListGroups:output_type -> google.cloud.vmmigration.v1.ListGroupsResponse + 110, // 237: google.cloud.vmmigration.v1.VmMigration.GetGroup:output_type -> google.cloud.vmmigration.v1.Group + 149, // 238: google.cloud.vmmigration.v1.VmMigration.CreateGroup:output_type -> google.longrunning.Operation + 149, // 239: google.cloud.vmmigration.v1.VmMigration.UpdateGroup:output_type -> google.longrunning.Operation + 149, // 240: google.cloud.vmmigration.v1.VmMigration.DeleteGroup:output_type -> google.longrunning.Operation + 149, // 241: google.cloud.vmmigration.v1.VmMigration.AddGroupMigration:output_type -> google.longrunning.Operation + 149, // 242: google.cloud.vmmigration.v1.VmMigration.RemoveGroupMigration:output_type -> google.longrunning.Operation + 106, // 243: google.cloud.vmmigration.v1.VmMigration.ListTargetProjects:output_type -> google.cloud.vmmigration.v1.ListTargetProjectsResponse + 103, // 244: google.cloud.vmmigration.v1.VmMigration.GetTargetProject:output_type -> google.cloud.vmmigration.v1.TargetProject + 149, // 245: google.cloud.vmmigration.v1.VmMigration.CreateTargetProject:output_type -> google.longrunning.Operation + 149, // 246: google.cloud.vmmigration.v1.VmMigration.UpdateTargetProject:output_type -> google.longrunning.Operation + 149, // 247: google.cloud.vmmigration.v1.VmMigration.DeleteTargetProject:output_type -> google.longrunning.Operation + 131, // 248: google.cloud.vmmigration.v1.VmMigration.ListReplicationCycles:output_type -> google.cloud.vmmigration.v1.ListReplicationCyclesResponse + 26, // 249: google.cloud.vmmigration.v1.VmMigration.GetReplicationCycle:output_type -> google.cloud.vmmigration.v1.ReplicationCycle + 204, // [204:250] is the sub-list for method output_type + 158, // [158:204] is the sub-list for method input_type + 158, // [158:158] is the sub-list for extension type_name + 158, // [158:158] is the sub-list for extension extendee + 0, // [0:158] is the sub-list for field type_name } func init() { file_google_cloud_vmmigration_v1_vmmigration_proto_init() } @@ -10781,7 +13349,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { } } file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReplicationSync); i { + switch v := v.(*CycleStep); i { case 0: return &v.state case 1: @@ -10793,7 +13361,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { } } file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MigratingVm); i { + switch v := v.(*InitializingReplicationStep); i { case 0: return &v.state case 1: @@ -10805,7 +13373,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { } } file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloneJob); i { + switch v := v.(*ReplicatingStep); i { case 0: return &v.state case 1: @@ -10817,7 +13385,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { } } file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CutoverJob); i { + switch v := v.(*PostProcessingStep); i { case 0: return &v.state case 1: @@ -10829,7 +13397,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { } } file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateCloneJobRequest); i { + switch v := v.(*ReplicationSync); i { case 0: return &v.state case 1: @@ -10841,7 +13409,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { } } file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelCloneJobRequest); i { + switch v := v.(*MigratingVm); i { case 0: return &v.state case 1: @@ -10853,7 +13421,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { } } file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelCloneJobResponse); i { + switch v := v.(*CloneJob); i { case 0: return &v.state case 1: @@ -10865,7 +13433,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { } } file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListCloneJobsRequest); i { + switch v := v.(*CloneStep); i { case 0: return &v.state case 1: @@ -10877,7 +13445,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { } } file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListCloneJobsResponse); i { + switch v := v.(*AdaptingOSStep); i { case 0: return &v.state case 1: @@ -10889,7 +13457,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { } } file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCloneJobRequest); i { + switch v := v.(*PreparingVMDisksStep); i { case 0: return &v.state case 1: @@ -10901,7 +13469,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { } } file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Source); i { + switch v := v.(*InstantiatingMigratedVMStep); i { case 0: return &v.state case 1: @@ -10913,7 +13481,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { } } file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VmwareSourceDetails); i { + switch v := v.(*CutoverJob); i { case 0: return &v.state case 1: @@ -10925,7 +13493,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { } } file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DatacenterConnector); i { + switch v := v.(*CutoverStep); i { case 0: return &v.state case 1: @@ -10937,7 +13505,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { } } file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpgradeStatus); i { + switch v := v.(*ShuttingDownSourceVMStep); i { case 0: return &v.state case 1: @@ -10949,7 +13517,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { } } file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AvailableUpdates); i { + switch v := v.(*CreateCloneJobRequest); i { case 0: return &v.state case 1: @@ -10961,6 +13529,138 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { } } file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelCloneJobRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelCloneJobResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListCloneJobsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListCloneJobsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCloneJobRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Source); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VmwareSourceDetails); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AwsSourceDetails); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DatacenterConnector); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpgradeStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AvailableUpdates); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ApplianceVersion); i { case 0: return &v.state @@ -10972,8 +13672,44 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListSourcesRequest); i { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSourcesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSourcesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSourceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateSourceRequest); i { case 0: return &v.state case 1: @@ -10984,8 +13720,8 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListSourcesResponse); i { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateSourceRequest); i { case 0: return &v.state case 1: @@ -10996,8 +13732,8 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSourceRequest); i { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteSourceRequest); i { case 0: return &v.state case 1: @@ -11008,8 +13744,8 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateSourceRequest); i { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FetchInventoryRequest); i { case 0: return &v.state case 1: @@ -11020,8 +13756,8 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateSourceRequest); i { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VmwareVmDetails); i { case 0: return &v.state case 1: @@ -11032,8 +13768,8 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteSourceRequest); i { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AwsVmDetails); i { case 0: return &v.state case 1: @@ -11044,8 +13780,8 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchInventoryRequest); i { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AwsSecurityGroup); i { case 0: return &v.state case 1: @@ -11056,8 +13792,8 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VmwareVmDetails); i { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VmwareVmsDetails); i { case 0: return &v.state case 1: @@ -11068,8 +13804,8 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VmwareVmsDetails); i { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AwsVmsDetails); i { case 0: return &v.state case 1: @@ -11080,7 +13816,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FetchInventoryResponse); i { case 0: return &v.state @@ -11092,7 +13828,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UtilizationReport); i { case 0: return &v.state @@ -11104,7 +13840,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*VmUtilizationInfo); i { case 0: return &v.state @@ -11116,7 +13852,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*VmUtilizationMetrics); i { case 0: return &v.state @@ -11128,7 +13864,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListUtilizationReportsRequest); i { case 0: return &v.state @@ -11140,7 +13876,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListUtilizationReportsResponse); i { case 0: return &v.state @@ -11152,7 +13888,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetUtilizationReportRequest); i { case 0: return &v.state @@ -11164,7 +13900,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateUtilizationReportRequest); i { case 0: return &v.state @@ -11176,7 +13912,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteUtilizationReportRequest); i { case 0: return &v.state @@ -11188,7 +13924,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListDatacenterConnectorsResponse); i { case 0: return &v.state @@ -11200,7 +13936,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetDatacenterConnectorRequest); i { case 0: return &v.state @@ -11212,7 +13948,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateDatacenterConnectorRequest); i { case 0: return &v.state @@ -11224,7 +13960,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteDatacenterConnectorRequest); i { case 0: return &v.state @@ -11236,7 +13972,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpgradeApplianceRequest); i { case 0: return &v.state @@ -11248,7 +13984,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpgradeApplianceResponse); i { case 0: return &v.state @@ -11260,7 +13996,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListDatacenterConnectorsRequest); i { case 0: return &v.state @@ -11272,7 +14008,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ComputeEngineTargetDefaults); i { case 0: return &v.state @@ -11284,7 +14020,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ComputeEngineTargetDetails); i { case 0: return &v.state @@ -11296,7 +14032,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*NetworkInterface); i { case 0: return &v.state @@ -11308,7 +14044,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AppliedLicense); i { case 0: return &v.state @@ -11320,7 +14056,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SchedulingNodeAffinity); i { case 0: return &v.state @@ -11332,7 +14068,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ComputeScheduling); i { case 0: return &v.state @@ -11344,7 +14080,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SchedulePolicy); i { case 0: return &v.state @@ -11356,7 +14092,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateMigratingVmRequest); i { case 0: return &v.state @@ -11368,7 +14104,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListMigratingVmsRequest); i { case 0: return &v.state @@ -11380,7 +14116,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListMigratingVmsResponse); i { case 0: return &v.state @@ -11392,7 +14128,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetMigratingVmRequest); i { case 0: return &v.state @@ -11404,7 +14140,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateMigratingVmRequest); i { case 0: return &v.state @@ -11416,7 +14152,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteMigratingVmRequest); i { case 0: return &v.state @@ -11428,7 +14164,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartMigrationRequest); i { case 0: return &v.state @@ -11440,7 +14176,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartMigrationResponse); i { case 0: return &v.state @@ -11452,7 +14188,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PauseMigrationRequest); i { case 0: return &v.state @@ -11464,7 +14200,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PauseMigrationResponse); i { case 0: return &v.state @@ -11476,7 +14212,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ResumeMigrationRequest); i { case 0: return &v.state @@ -11488,7 +14224,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ResumeMigrationResponse); i { case 0: return &v.state @@ -11500,7 +14236,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FinalizeMigrationRequest); i { case 0: return &v.state @@ -11512,7 +14248,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FinalizeMigrationResponse); i { case 0: return &v.state @@ -11524,7 +14260,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TargetProject); i { case 0: return &v.state @@ -11536,7 +14272,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetTargetProjectRequest); i { case 0: return &v.state @@ -11548,7 +14284,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListTargetProjectsRequest); i { case 0: return &v.state @@ -11560,7 +14296,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListTargetProjectsResponse); i { case 0: return &v.state @@ -11572,7 +14308,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateTargetProjectRequest); i { case 0: return &v.state @@ -11584,7 +14320,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateTargetProjectRequest); i { case 0: return &v.state @@ -11596,7 +14332,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteTargetProjectRequest); i { case 0: return &v.state @@ -11608,7 +14344,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Group); i { case 0: return &v.state @@ -11620,7 +14356,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListGroupsRequest); i { case 0: return &v.state @@ -11632,7 +14368,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListGroupsResponse); i { case 0: return &v.state @@ -11644,7 +14380,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetGroupRequest); i { case 0: return &v.state @@ -11656,7 +14392,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateGroupRequest); i { case 0: return &v.state @@ -11668,7 +14404,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateGroupRequest); i { case 0: return &v.state @@ -11680,7 +14416,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteGroupRequest); i { case 0: return &v.state @@ -11692,7 +14428,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddGroupMigrationRequest); i { case 0: return &v.state @@ -11704,7 +14440,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddGroupMigrationResponse); i { case 0: return &v.state @@ -11716,7 +14452,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RemoveGroupMigrationRequest); i { case 0: return &v.state @@ -11728,7 +14464,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RemoveGroupMigrationResponse); i { case 0: return &v.state @@ -11740,7 +14476,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateCutoverJobRequest); i { case 0: return &v.state @@ -11752,7 +14488,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CancelCutoverJobRequest); i { case 0: return &v.state @@ -11764,7 +14500,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CancelCutoverJobResponse); i { case 0: return &v.state @@ -11776,7 +14512,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListCutoverJobsRequest); i { case 0: return &v.state @@ -11788,7 +14524,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListCutoverJobsResponse); i { case 0: return &v.state @@ -11800,7 +14536,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetCutoverJobRequest); i { case 0: return &v.state @@ -11812,7 +14548,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*OperationMetadata); i { case 0: return &v.state @@ -11824,7 +14560,7 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MigrationError); i { case 0: return &v.state @@ -11836,23 +14572,118 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { return nil } } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[103].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AwsSourceVmDetails); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[104].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListReplicationCyclesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[105].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListReplicationCyclesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[106].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetReplicationCycleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[109].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AwsSourceDetails_AccessKeyCredentials); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[110].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AwsSourceDetails_Tag); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[2].OneofWrappers = []interface{}{ + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*CycleStep_InitializingReplication)(nil), + (*CycleStep_Replicating)(nil), + (*CycleStep_PostProcessing)(nil), + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[6].OneofWrappers = []interface{}{ (*MigratingVm_ComputeEngineTargetDefaults)(nil), + (*MigratingVm_AwsSourceVmDetails)(nil), } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[3].OneofWrappers = []interface{}{ + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[7].OneofWrappers = []interface{}{ (*CloneJob_ComputeEngineTargetDetails)(nil), } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[4].OneofWrappers = []interface{}{ + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[8].OneofWrappers = []interface{}{ + (*CloneStep_AdaptingOs)(nil), + (*CloneStep_PreparingVmDisks)(nil), + (*CloneStep_InstantiatingMigratedVm)(nil), + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[12].OneofWrappers = []interface{}{ (*CutoverJob_ComputeEngineTargetDetails)(nil), } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[11].OneofWrappers = []interface{}{ + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[13].OneofWrappers = []interface{}{ + (*CutoverStep_PreviousReplicationCycle)(nil), + (*CutoverStep_ShuttingDownSourceVm)(nil), + (*CutoverStep_FinalSync)(nil), + (*CutoverStep_PreparingVmDisks)(nil), + (*CutoverStep_InstantiatingMigratedVm)(nil), + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[21].OneofWrappers = []interface{}{ (*Source_Vmware)(nil), + (*Source_Aws)(nil), + } + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[23].OneofWrappers = []interface{}{ + (*AwsSourceDetails_AccessKeyCreds)(nil), } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[26].OneofWrappers = []interface{}{ + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[40].OneofWrappers = []interface{}{ (*FetchInventoryResponse_VmwareVms)(nil), + (*FetchInventoryResponse_AwsVms)(nil), } - file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[28].OneofWrappers = []interface{}{ + file_google_cloud_vmmigration_v1_vmmigration_proto_msgTypes[42].OneofWrappers = []interface{}{ (*VmUtilizationInfo_VmwareVmDetails)(nil), } type x struct{} @@ -11860,8 +14691,8 @@ func file_google_cloud_vmmigration_v1_vmmigration_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_google_cloud_vmmigration_v1_vmmigration_proto_rawDesc, - NumEnums: 19, - NumMessages: 95, + NumEnums: 26, + NumMessages: 117, NumExtensions: 0, NumServices: 1, }, @@ -12005,6 +14836,10 @@ type VmMigrationClient interface { // NOTE: TargetProject is a global resource; hence the only supported value // for location is `global`. DeleteTargetProject(ctx context.Context, in *DeleteTargetProjectRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) + // Lists ReplicationCycles in a given MigratingVM. + ListReplicationCycles(ctx context.Context, in *ListReplicationCyclesRequest, opts ...grpc.CallOption) (*ListReplicationCyclesResponse, error) + // Gets details of a single ReplicationCycle. + GetReplicationCycle(ctx context.Context, in *GetReplicationCycleRequest, opts ...grpc.CallOption) (*ReplicationCycle, error) } type vmMigrationClient struct { @@ -12411,6 +15246,24 @@ func (c *vmMigrationClient) DeleteTargetProject(ctx context.Context, in *DeleteT return out, nil } +func (c *vmMigrationClient) ListReplicationCycles(ctx context.Context, in *ListReplicationCyclesRequest, opts ...grpc.CallOption) (*ListReplicationCyclesResponse, error) { + out := new(ListReplicationCyclesResponse) + err := c.cc.Invoke(ctx, "/google.cloud.vmmigration.v1.VmMigration/ListReplicationCycles", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *vmMigrationClient) GetReplicationCycle(ctx context.Context, in *GetReplicationCycleRequest, opts ...grpc.CallOption) (*ReplicationCycle, error) { + out := new(ReplicationCycle) + err := c.cc.Invoke(ctx, "/google.cloud.vmmigration.v1.VmMigration/GetReplicationCycle", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // VmMigrationServer is the server API for VmMigration service. type VmMigrationServer interface { // Lists Sources in a given project and location. @@ -12530,6 +15383,10 @@ type VmMigrationServer interface { // NOTE: TargetProject is a global resource; hence the only supported value // for location is `global`. DeleteTargetProject(context.Context, *DeleteTargetProjectRequest) (*longrunning.Operation, error) + // Lists ReplicationCycles in a given MigratingVM. + ListReplicationCycles(context.Context, *ListReplicationCyclesRequest) (*ListReplicationCyclesResponse, error) + // Gets details of a single ReplicationCycle. + GetReplicationCycle(context.Context, *GetReplicationCycleRequest) (*ReplicationCycle, error) } // UnimplementedVmMigrationServer can be embedded to have forward compatible implementations. @@ -12668,6 +15525,12 @@ func (*UnimplementedVmMigrationServer) UpdateTargetProject(context.Context, *Upd func (*UnimplementedVmMigrationServer) DeleteTargetProject(context.Context, *DeleteTargetProjectRequest) (*longrunning.Operation, error) { return nil, status1.Errorf(codes.Unimplemented, "method DeleteTargetProject not implemented") } +func (*UnimplementedVmMigrationServer) ListReplicationCycles(context.Context, *ListReplicationCyclesRequest) (*ListReplicationCyclesResponse, error) { + return nil, status1.Errorf(codes.Unimplemented, "method ListReplicationCycles not implemented") +} +func (*UnimplementedVmMigrationServer) GetReplicationCycle(context.Context, *GetReplicationCycleRequest) (*ReplicationCycle, error) { + return nil, status1.Errorf(codes.Unimplemented, "method GetReplicationCycle not implemented") +} func RegisterVmMigrationServer(s *grpc.Server, srv VmMigrationServer) { s.RegisterService(&_VmMigration_serviceDesc, srv) @@ -13465,6 +16328,42 @@ func _VmMigration_DeleteTargetProject_Handler(srv interface{}, ctx context.Conte return interceptor(ctx, in, info, handler) } +func _VmMigration_ListReplicationCycles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListReplicationCyclesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VmMigrationServer).ListReplicationCycles(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.vmmigration.v1.VmMigration/ListReplicationCycles", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VmMigrationServer).ListReplicationCycles(ctx, req.(*ListReplicationCyclesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _VmMigration_GetReplicationCycle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetReplicationCycleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(VmMigrationServer).GetReplicationCycle(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.cloud.vmmigration.v1.VmMigration/GetReplicationCycle", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(VmMigrationServer).GetReplicationCycle(ctx, req.(*GetReplicationCycleRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _VmMigration_serviceDesc = grpc.ServiceDesc{ ServiceName: "google.cloud.vmmigration.v1.VmMigration", HandlerType: (*VmMigrationServer)(nil), @@ -13645,6 +16544,14 @@ var _VmMigration_serviceDesc = grpc.ServiceDesc{ MethodName: "DeleteTargetProject", Handler: _VmMigration_DeleteTargetProject_Handler, }, + { + MethodName: "ListReplicationCycles", + Handler: _VmMigration_ListReplicationCycles_Handler, + }, + { + MethodName: "GetReplicationCycle", + Handler: _VmMigration_GetReplicationCycle_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "google/cloud/vmmigration/v1/vmmigration.proto", diff --git a/vmmigration/go.mod b/vmmigration/go.mod index bd7c8c85df2b..b0285d689d71 100644 --- a/vmmigration/go.mod +++ b/vmmigration/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/vmmigration/go.sum b/vmmigration/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/vmmigration/go.sum +++ b/vmmigration/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/vmwareengine/apiv1/doc.go b/vmwareengine/apiv1/doc.go index 8651d734c1e0..21dfb95f558e 100644 --- a/vmwareengine/apiv1/doc.go +++ b/vmwareengine/apiv1/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -82,9 +87,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package vmwareengine // import "cloud.google.com/go/vmwareengine/apiv1" import ( diff --git a/vmwareengine/go.mod b/vmwareengine/go.mod index 9084f7bc5405..54ccbdaa8d70 100644 --- a/vmwareengine/go.mod +++ b/vmwareengine/go.mod @@ -5,24 +5,25 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v0.8.0 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/vmwareengine/go.sum b/vmwareengine/go.sum index 1957b0c5def1..299518b5132c 100644 --- a/vmwareengine/go.sum +++ b/vmwareengine/go.sum @@ -1,10 +1,12 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/iam v0.8.0 h1:E2osAkZzxI/+8pZcxVLcDtAQx/u+hZXVryUaYQ5O0Kk= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +46,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +90,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +107,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/vpcaccess/apiv1/doc.go b/vpcaccess/apiv1/doc.go index 167bc582c0d5..5e5dcea129ef 100644 --- a/vpcaccess/apiv1/doc.go +++ b/vpcaccess/apiv1/doc.go @@ -19,6 +19,11 @@ // // API for managing VPC access connectors. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -78,9 +83,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package vpcaccess // import "cloud.google.com/go/vpcaccess/apiv1" import ( diff --git a/vpcaccess/go.mod b/vpcaccess/go.mod index 8632ce745433..1a3fb251a877 100644 --- a/vpcaccess/go.mod +++ b/vpcaccess/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/vpcaccess/go.sum b/vpcaccess/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/vpcaccess/go.sum +++ b/vpcaccess/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/webrisk/apiv1/doc.go b/webrisk/apiv1/doc.go index 37df86e56b3b..af499fe7f010 100644 --- a/webrisk/apiv1/doc.go +++ b/webrisk/apiv1/doc.go @@ -17,6 +17,11 @@ // Package webrisk is an auto-generated package for the // Web Risk API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -71,9 +76,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package webrisk // import "cloud.google.com/go/webrisk/apiv1" import ( diff --git a/webrisk/apiv1beta1/doc.go b/webrisk/apiv1beta1/doc.go index 5c2c0fc337f4..08cc3829566a 100644 --- a/webrisk/apiv1beta1/doc.go +++ b/webrisk/apiv1beta1/doc.go @@ -19,6 +19,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package webrisk // import "cloud.google.com/go/webrisk/apiv1beta1" import ( diff --git a/webrisk/go.mod b/webrisk/go.mod index cafa614ca56f..79cdcc676aef 100644 --- a/webrisk/go.mod +++ b/webrisk/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/webrisk/go.sum b/webrisk/go.sum index b197d3308493..067d9e20ab06 100644 --- a/webrisk/go.sum +++ b/webrisk/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/websecurityscanner/apiv1/doc.go b/websecurityscanner/apiv1/doc.go index 4288acf66085..ee3e8dd4ded3 100644 --- a/websecurityscanner/apiv1/doc.go +++ b/websecurityscanner/apiv1/doc.go @@ -19,6 +19,11 @@ // // Scans your Compute and App Engine apps for common web vulnerabilities. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -73,9 +78,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package websecurityscanner // import "cloud.google.com/go/websecurityscanner/apiv1" import ( diff --git a/websecurityscanner/go.mod b/websecurityscanner/go.mod index b5656300e0b8..206e2863a9e7 100644 --- a/websecurityscanner/go.mod +++ b/websecurityscanner/go.mod @@ -4,23 +4,23 @@ go 1.19 require ( github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/websecurityscanner/go.sum b/websecurityscanner/go.sum index b197d3308493..067d9e20ab06 100644 --- a/websecurityscanner/go.sum +++ b/websecurityscanner/go.sum @@ -1,9 +1,9 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -42,8 +42,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -86,16 +86,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -103,8 +103,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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= diff --git a/workflows/apiv1/doc.go b/workflows/apiv1/doc.go index 05946c6c935e..96b31975b6ef 100644 --- a/workflows/apiv1/doc.go +++ b/workflows/apiv1/doc.go @@ -20,6 +20,11 @@ // Manage workflow definitions. To execute workflows and manage executions, // see the Workflows Executions API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -80,9 +85,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package workflows // import "cloud.google.com/go/workflows/apiv1" import ( diff --git a/workflows/apiv1beta/doc.go b/workflows/apiv1beta/doc.go index 96a004ad6e16..f286a5bd87b3 100644 --- a/workflows/apiv1beta/doc.go +++ b/workflows/apiv1beta/doc.go @@ -22,6 +22,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -82,9 +87,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package workflows // import "cloud.google.com/go/workflows/apiv1beta" import ( diff --git a/workflows/executions/apiv1/doc.go b/workflows/executions/apiv1/doc.go index 79b10b986d31..470157a07d25 100644 --- a/workflows/executions/apiv1/doc.go +++ b/workflows/executions/apiv1/doc.go @@ -19,6 +19,11 @@ // // Execute workflows created with Workflows API. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -79,9 +84,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package executions // import "cloud.google.com/go/workflows/executions/apiv1" import ( diff --git a/workflows/executions/apiv1beta/doc.go b/workflows/executions/apiv1beta/doc.go index d0f37811ccc0..0e780b696a03 100644 --- a/workflows/executions/apiv1beta/doc.go +++ b/workflows/executions/apiv1beta/doc.go @@ -21,6 +21,11 @@ // // NOTE: This package is in beta. It is not stable, and may be subject to changes. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -81,9 +86,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package executions // import "cloud.google.com/go/workflows/executions/apiv1beta" import ( diff --git a/workflows/go.mod b/workflows/go.mod index e774aba8d849..1d4c52376b3c 100644 --- a/workflows/go.mod +++ b/workflows/go.mod @@ -5,24 +5,24 @@ go 1.19 require ( cloud.google.com/go/longrunning v0.3.0 github.com/googleapis/gax-go/v2 v2.7.0 - google.golang.org/api v0.103.0 - google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c + google.golang.org/api v0.106.0 + google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f google.golang.org/grpc v1.51.0 google.golang.org/protobuf v1.28.1 ) require ( cloud.google.com/go v0.105.0 // indirect - cloud.google.com/go/compute v1.12.1 // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect + cloud.google.com/go/compute v1.14.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.0.0-20221014081412-f15817d10f9b // indirect golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect - golang.org/x/text v0.4.0 // indirect + golang.org/x/text v0.5.0 // indirect google.golang.org/appengine v1.6.7 // indirect ) diff --git a/workflows/go.sum b/workflows/go.sum index 1957b0c5def1..b629d3d5cb73 100644 --- a/workflows/go.sum +++ b/workflows/go.sum @@ -1,10 +1,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= -cloud.google.com/go/compute v1.12.1 h1:gKVJMEyqV5c/UnpzjjQbo3Rjvvqpr9B1DFSbJC4OXr0= -cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.14.0 h1:hfm2+FfxVmnRlh6LpB7cg1ZNU+5edAHmW679JePztk0= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/longrunning v0.3.0 h1:NjljC+FYPV3uh5/OwWT6pVU+doBqMg2x/rZlE+CamDs= cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -44,8 +44,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.0 h1:y8Yozv7SZtlU//QXbezB6QkpuE6jMD2/gfzk4AftXjs= -github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1 h1:RY7tHKZcRlk788d5WSo/e83gOyyy742E8GSs771ySpg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.7.0 h1:IcsPKeInNvYi7eqSaDjiZqDDKu5rsmunY0Y1YupQSSQ= github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -88,16 +88,16 @@ golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 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= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.103.0 h1:9yuVqlu2JCvcLg9p8S3fcFLZij8EPSyvODIY1rkMizQ= -google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.106.0 h1:ffmW0faWCwKkpbbtvlY/K/8fUl+JKvNS5CVzRoyfCv8= +google.golang.org/api v0.106.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= 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/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= @@ -105,8 +105,8 @@ google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCID 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-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c h1:S34D59DS2GWOEwWNt4fYmTcFrtlOgukG2k9WsomZ7tg= -google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f h1:BWUVssLB0HVOSY78gIdvk1dTVYtT1y8SBWtPYuTJ/6w= +google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= 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=